Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(chat): disable fields after editing shared app (Issue #3017) #3033

Merged
merged 23 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
753a8ec
chore(chat): add `bypass_ort`
IlyaBondar Dec 10, 2024
0612dd7
use ort_version: 42.1.0
IlyaBondar Dec 10, 2024
44872fc
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 12, 2024
9e979d7
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 12, 2024
9e185f6
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 12, 2024
96a239a
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 13, 2024
ae2825c
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 15, 2024
1677ee5
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 20, 2024
71cd3fa
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 25, 2024
88202b9
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 26, 2024
54d0f31
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 27, 2024
cc97dd8
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 3, 2025
c7d7ca8
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 3, 2025
f8f705d
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 7, 2025
2730576
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 8, 2025
5be6ecf
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 21, 2025
6f6ec43
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 22, 2025
dc56e53
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 23, 2025
9e3e340
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 24, 2025
6995a82
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 24, 2025
1eb7ba1
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 28, 2025
956ecbc
fix(chat): disable fields after editing shared app (Issue #3017)
Derikyan Jan 28, 2025
b7cb274
Merge branch 'development' into fix/3017-disable-fields-edit-shared-app
Derikyan Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const ApplicationWizard: React.FC<ApplicationWizardProps> = ({
const selectedApplication = useAppSelector(
ApplicationSelectors.selectApplicationDetail,
);
const isSharedWithMe = selectedApplication?.sharedWithMe;

const handleClose = useCallback(
(result?: boolean) => {
Expand Down Expand Up @@ -105,7 +104,6 @@ export const ApplicationWizard: React.FC<ApplicationWizardProps> = ({
isEdit={isEdit}
currentReference={currentReference}
selectedApplication={isEdit ? selectedApplication : undefined}
isSharedWithMe={!!isSharedWithMe}
/>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export const CodeAppView: FC<ViewProps> = ({
type,
selectedApplication,
currentReference,
isSharedWithMe,
}) => {
const { t } = useTranslation(Translation.Chat);

Expand All @@ -90,6 +89,8 @@ export const CodeAppView: FC<ViewProps> = ({
selectedApplication && isApplicationDeployed(selectedApplication);
const isCodeEditorDirty = useAppSelector(CodeEditorSelectors.selectIsDirty);

const isSharedWithMe = selectedApplication?.sharedWithMe;

const [editorConfirmation, setEditorConfirmation] = useState<FormData>();

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const CustomAppView: React.FC<ViewProps> = ({
type,
currentReference,
selectedApplication,
isSharedWithMe,
}) => {
const { t } = useTranslation(Translation.Chat);

Expand All @@ -59,6 +58,8 @@ export const CustomAppView: React.FC<ViewProps> = ({
const topics = useAppSelector(SettingsSelectors.selectTopics);
const models = useAppSelector(ModelsSelectors.selectModels);

const isSharedWithMe = selectedApplication?.sharedWithMe;

const modelsWithFolderId = models.map((model) => ({
...model,
folderId: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const QuickAppView: React.FC<ViewProps> = ({
type,
currentReference,
selectedApplication,
isSharedWithMe,
}) => {
const { t } = useTranslation(Translation.Chat);

Expand All @@ -60,6 +59,8 @@ export const QuickAppView: React.FC<ViewProps> = ({
const topics = useAppSelector(SettingsSelectors.selectTopics);
const models = useAppSelector(ModelsSelectors.selectModels);

const isSharedWithMe = selectedApplication?.sharedWithMe;

const modelsWithFolderId = models.map((model) => ({
...model,
folderId: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ export interface ViewProps {
isEdit?: boolean;
currentReference?: string;
selectedApplication?: CustomApplicationModel;
isSharedWithMe?: boolean;
}