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

feat(chat): implement apps editor on separated route (Issue #3146) #2669

Open
wants to merge 288 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
ab88d4a
Merge branch 'feat/quick-apps' into feat/apps-editor-route
valerydluski Nov 27, 2024
3090984
feat(apps-editor): enhance settings page to fetch and display applica…
valerydluski Nov 27, 2024
0ec81b9
feat(apps-editor): refactor routing and rename apps-editor pages to s…
valerydluski Nov 29, 2024
b1ec611
Merge branch 'development' into feat/quick-apps
valerydluski Nov 29, 2024
3ac9fd3
Merge branch 'feat/quick-apps' into feat/apps-editor-route
valerydluski Nov 29, 2024
ebb4d15
feat(chat): add CircleIndicator component and update AppsEditorHeader…
valerydluski Nov 29, 2024
f5d2371
Merge branch 'development' into feat/quick-apps
valerydluski Dec 2, 2024
3afa8f1
feat(chat): implement MindmapView component and update routing for ap…
valerydluski Dec 2, 2024
bc08e52
Merge branch 'feat/quick-apps' into feat/apps-editor-route
valerydluski Dec 2, 2024
9e32db0
feat(chat): refactor GeneralInfoPreview to use ApplicationCard compon…
valerydluski Dec 3, 2024
3df7002
feat(chat): update application creation to include slug and refactor …
valerydluski Dec 3, 2024
8163b39
feat(chat): refactor GeneralInfo components and enhance ApplicationCa…
valerydluski Dec 4, 2024
63ade75
feat(chat): add MindmapPreview component and integrate it into Applic…
valerydluski Dec 4, 2024
faf2006
feat(chat): enhance Mindmap and QuickApp settings with dynamic host c…
valerydluski Dec 5, 2024
d35f44b
feat(chat): remove CircleIndicator SVG and replace with Tabler icons …
valerydluski Dec 5, 2024
6e437c1
feat(chat): update application creation payload structure and enhance…
valerydluski Dec 5, 2024
37b38fc
feat(chat): refactor Mindmap components to use dynamic URL generation…
valerydluski Dec 6, 2024
f980030
Merge branch 'development' into feat/quick-apps
valerydluski Dec 6, 2024
8d0fb2c
Merge branch 'feat/quick-apps' into feat/apps-editor-route
valerydluski Dec 6, 2024
5933bfc
feat(chat): enhance application editor with new fields and update han…
valerydluski Dec 6, 2024
65b3cff
feat(chat): improve URL generation in Mindmap components
valerydluski Dec 6, 2024
753a8ec
chore(chat): add `bypass_ort`
IlyaBondar Dec 10, 2024
0612dd7
use ort_version: 42.1.0
IlyaBondar Dec 10, 2024
3679898
feat(chat): optimize application update flow by concatenating move an…
valerydluski Dec 11, 2024
b8b480b
fix(chat): clean up AppsEditorHeader component by removing unnecessar…
valerydluski Dec 11, 2024
69d27af
Merge branch 'development' into feat/quick-apps
valerydluski Dec 11, 2024
18a0e67
Merge branch 'feat/quick-apps' into feat/apps-editor-route
valerydluski Dec 11, 2024
d14d6ea
fix(chat): update import for useTranslation and TemperatureSlider com…
valerydluski Dec 12, 2024
44872fc
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 12, 2024
3327df5
fix(chat): update translation imports and clean up layout in various …
valerydluski Dec 12, 2024
9e979d7
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 12, 2024
1ce5dcf
fix(chat): enhance preview mode controls and improve layout transitio…
valerydluski Dec 12, 2024
1febc1a
fix(chat): refactor ApplicationSettings component for improved defaul…
valerydluski Dec 12, 2024
7ce57b7
fix(chat): improve layout transitions and visibility handling in Appl…
valerydluski 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
ce77a90
fix(chat): conditionally render preview in ApplicationSettings compon…
valerydluski Dec 13, 2024
93afce4
fix(chat): update layout and styling in AppsEditor settings component…
valerydluski Dec 13, 2024
ae2825c
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 15, 2024
cb827cb
fix(chat): refine application type handling and improve slug consiste…
valerydluski Dec 16, 2024
b32b3c4
Merge branch 'development' into feat/apps-editor-route
valerydluski Dec 16, 2024
2433ed7
fix(chat): enhance application type handling by introducing slug-base…
valerydluski Dec 16, 2024
ba0f461
fix(chat): improve type handling in getTypeFromSlug function for bett…
valerydluski Dec 16, 2024
e2e52b1
fix(chat): update preview button to improve user interaction
valerydluski Dec 18, 2024
038b806
fix(chat): enhance button styles and transitions for improved preview…
valerydluski Dec 19, 2024
48b6921
fix(chat): enhance MindmapPreview URL generation and add conversation…
valerydluski Dec 19, 2024
50af7d3
fix(chat): enhance preview mode buttons and improve interaction in Ap…
valerydluski Dec 20, 2024
afff3d1
fix(chat): update getApplicationData to include type in topics array
valerydluski Dec 20, 2024
7a8e670
fix(chat): refactor MindmapPreview and ApplicationSettings components…
valerydluski Dec 20, 2024
1677ee5
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Dec 20, 2024
61c3c70
fix(chat): update MindmapPreview URL generation to always include con…
valerydluski Dec 20, 2024
0ffbfb8
fix(chat): integrate MindmapPreview component based on model topics i…
valerydluski Dec 23, 2024
7577ecf
fix(chat): add mindmapAppsHost to settings and update MindmapPreview …
valerydluski Dec 23, 2024
38dec26
fix(chat): remove debug log and add check for empty selected conversa…
valerydluski Dec 23, 2024
e5bb3c7
fix(chat): add null check for selected conversation model and enhance…
valerydluski Dec 24, 2024
37c4e15
fix(chat): simplify MindmapPreview integration by removing unnecessar…
valerydluski Dec 24, 2024
3726085
fix(chat): refactor QuickAppView layout by removing unnecessary wrapp…
valerydluski Dec 24, 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
fd72601
feat(chat): implement application type schemas API integration and st…
valerydluski Dec 30, 2024
0849768
fix(chat): clean up imports and simplify response handling in applica…
valerydluski Dec 30, 2024
f5b6f9a
feat(chat): add application type schemas integration with selectors a…
valerydluski Dec 30, 2024
5231ef5
feat(chat): implement encryption and decryption for application type …
valerydluski Dec 31, 2024
cc97dd8
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 3, 2025
fd14c93
feat(chat): add support for custom application schemas in application…
valerydluski Jan 3, 2025
214c3d0
fix(chat): return empty object instead of null in getDefaultValue fun…
valerydluski Jan 3, 2025
c7d7ca8
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 3, 2025
03e25af
fix(chat): update getDefaultValue and fillRequiredFromSchema to retur…
valerydluski Jan 3, 2025
2d4a52e
feat(chat): add schema parameter to application update methods and se…
valerydluski Jan 3, 2025
3132c3c
feat(chat): enhance application settings to support detailed applicat…
valerydluski Jan 7, 2025
e90bc06
Merge branch 'development' into feat/apps-editor-route
valerydluski Jan 7, 2025
06f4eb1
refactor(chat): remove isolated model ID and derive active model from…
valerydluski Jan 7, 2025
32f336f
refactor(chat): remove debug log for active model in ChatView component
valerydluski Jan 7, 2025
f8f705d
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 7, 2025
f24edda
refactor(chat): update preview label to prevent text selection in App…
valerydluski Jan 7, 2025
c71600c
refactor(chat): clean up application type schemas reducer by removing…
valerydluski Jan 7, 2025
c710ab4
refactor(chat): enhance application data schema processing with array…
valerydluski Jan 8, 2025
2730576
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 8, 2025
d42ea68
Merge branch 'development' into feat/apps-editor-route
valerydluski Jan 8, 2025
80e3914
add share button for application card
Derikyan Jan 8, 2025
9b94eef
feat(chat): add custom_app_schema_id handling and improve application…
valerydluski Jan 8, 2025
57b86f0
add version selector
Derikyan Jan 9, 2025
5b602a6
feat: add simple app sharing
denys-kolomiitsev Jan 9, 2025
0faf4c8
share modal
Derikyan Jan 9, 2025
ffdf525
Merge branch 'feat/2044-share-applications' of https://github.com/epa…
Derikyan Jan 9, 2025
5b79083
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 9, 2025
db6cdbf
fix(chat): correct import paths for application type schema and remov…
valerydluski Jan 9, 2025
5448329
fix(features): remove MindmapApps feature from available features
valerydluski Jan 9, 2025
dff31a7
add unshare button
Derikyan Jan 9, 2025
43df1c3
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 9, 2025
baaaf7a
feature flag conditions
Derikyan Jan 10, 2025
b863807
feat(chat): refactor custom viewer URL handling and improve schema re…
valerydluski Jan 10, 2025
33a2c72
feat: add sharing info to the custom apps
denys-kolomiitsev Jan 10, 2025
23ae0d8
Merge branch 'feat/2044-share-applications' of https://github.com/epa…
denys-kolomiitsev Jan 10, 2025
43e9209
feat: add epic to get new models when invitation accepted
denys-kolomiitsev Jan 10, 2025
ea1d387
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 11, 2025
ebea3d2
Merge branch 'feat/2044-share-applications' of https://github.com/epa…
Derikyan Jan 11, 2025
033bb0e
feat: add unshare
denys-kolomiitsev Jan 12, 2025
090e1c9
feat: app icon to the sharing resources
denys-kolomiitsev Jan 12, 2025
20d7562
Merge branch 'feat/2044-share-applications' of https://github.com/epa…
Derikyan Jan 13, 2025
5a7302e
models reducers
Derikyan Jan 13, 2025
dbf0a77
feat: delete shared app when discard
denys-kolomiitsev Jan 13, 2025
f767f49
change context menu
Derikyan Jan 13, 2025
36f4031
Merge branch 'feat/2044-share-applications' of https://github.com/epa…
Derikyan Jan 13, 2025
3b12fc4
Merge branch 'development' of https://github.com/epam/ai-dial-chat in…
Derikyan Jan 13, 2025
37d1236
fix context menu
Derikyan Jan 13, 2025
4745e72
refactor(applications): remove Quick App references and simplify appl…
valerydluski Jan 13, 2025
608af9e
feat: open marketplace when invitation accepted
denys-kolomiitsev Jan 13, 2025
af67990
Merge branch 'development' into feat/2044-share-applications
denys-kolomiitsev Jan 13, 2025
70a2489
add share and unshare to context menu in talk to card, fix icon field…
Derikyan Jan 13, 2025
3bf1109
Merge branch 'feat/2044-share-applications' of https://github.com/epa…
Derikyan Jan 13, 2025
1b7fbb4
fix
Derikyan Jan 14, 2025
8b301f3
fix: fix update shared application
denys-kolomiitsev Jan 14, 2025
5f594be
Merge branch 'feat/2044-share-applications' of https://github.com/epa…
denys-kolomiitsev Jan 14, 2025
e157e96
fix: fix edit shared application
denys-kolomiitsev Jan 14, 2025
75e013b
Merge branch 'development' into feat/2044-share-applications
denys-kolomiitsev Jan 14, 2025
c12b36a
fix: show logs buttons for the shared applications
denys-kolomiitsev Jan 14, 2025
0a24aed
Merge branch 'feat/2044-share-applications' of https://github.com/epa…
denys-kolomiitsev Jan 14, 2025
25d790b
fix edit x icon disabling, add TODO comment
Derikyan Jan 14, 2025
d20e591
fix docker error
Derikyan Jan 14, 2025
fec1510
feat(chat): enhance CustomViewerPreview with title prop and improve c…
valerydluski Jan 14, 2025
2a62170
Merge branch 'development' into feat/apps-editor-route
valerydluski Jan 14, 2025
e2f5e72
Merge branch 'feat/2044-share-applications' into feat/apps-editor-route
valerydluski Jan 14, 2025
1090894
small fixes
Derikyan Jan 14, 2025
b3e272d
Merge branch 'development' into feat/2044-share-applications
denys-kolomiitsev Jan 14, 2025
b5e2aec
fix: fix write permission and refactoring
denys-kolomiitsev Jan 14, 2025
d13c5fc
Merge branch 'development' into feat/2044-share-applications
denys-kolomiitsev Jan 14, 2025
76ad116
Merge branch 'feat/2044-share-applications' into feat/apps-editor-route
valerydluski Jan 15, 2025
48212d4
refactor: improve code readability and error handling in IframeRender…
valerydluski Jan 15, 2025
ce2bb45
refactor: rename custom_app_schema_id to applicationTypeSchemaId and …
valerydluski Jan 16, 2025
b2add4a
fix: update isDefault property to false in getApplicationData function
valerydluski Jan 16, 2025
c41d213
feat: add applicationProperties to app default values and data handling
valerydluski Jan 16, 2025
68023d3
feat: add theme support to CustomApplicationEditorView and CustomView…
valerydluski Jan 16, 2025
401962b
fix: update applicationTypeSchemaId to use correct property name appl…
valerydluski Jan 16, 2025
da36a22
feat: add application_type_schema_id to CoreAIEntity interface for im…
valerydluski Jan 16, 2025
273bd3d
fix: update getApplicationType to support application_type_schema_id …
valerydluski Jan 16, 2025
755d644
fix: update Chat and TabRenderer components to handle application_typ…
valerydluski Jan 16, 2025
9a769a2
fix: update applicationProperties and application_type_schema_id for …
valerydluski Jan 17, 2025
55e11ee
fix: update model in getQuickAppData to use DefaultsService for impro…
valerydluski Jan 17, 2025
7d908df
fix: integrate validators into GeneralInfoEditor for enhanced form va…
valerydluski Jan 17, 2025
afa7c7e
fix: update QuickApps to Quick App for consistency in ApplicationSett…
valerydluski Jan 20, 2025
628c938
fix: encode URI components in AppsEditor and TabRenderer for improved…
valerydluski Jan 20, 2025
49e264d
fix: encode URI components in CustomApplicationEditorView and CustomV…
valerydluski Jan 20, 2025
da911ba
fix: update ApplicationGeneralInfoFormData to include features and at…
valerydluski Jan 21, 2025
46ced2d
fix: dispatch model updates in IframeRenderer for improved conversati…
valerydluski Jan 21, 2025
076963b
fix: add 'allow-popups' to iframe sandbox for enhanced functionality
valerydluski Jan 22, 2025
a5a98b8
fix: add support for application preview conversations and update rel…
valerydluski Jan 24, 2025
63d15f3
fix: implement encryption for application slugs in AppsEditor compone…
valerydluski Jan 24, 2025
a06c8ae
Merge branch 'development' into feat/apps-editor-route
valerydluski Jan 24, 2025
7e1ef9c
feat(chat): enhance applicationProperties type handling and update re…
valerydluski Jan 24, 2025
7fd3033
feat(chat): add custom viewer conversation state management and relat…
valerydluski Jan 27, 2025
d5202d0
feat(chat): initiate custom viewer conversation on new conversation c…
valerydluski Jan 27, 2025
409e6c7
fix(chat): correct custom viewer conversation initiation state in Cre…
valerydluski Jan 27, 2025
8ab8b1e
fix(chat): streamline custom viewer conversation initiation logic in …
valerydluski Jan 27, 2025
988783d
feat(chat): update CustomChatViewer and IframeRenderer to manage conv…
valerydluski Jan 28, 2025
84b7288
feat(chat): refactor routing in AppsEditor components to use object s…
valerydluski Jan 28, 2025
d521a80
feat(chat): refactor ApplicationSettings to derive type from router q…
valerydluski Jan 28, 2025
f65f51b
fix(chat): update pathname in setQueryParamsEpic to use router.pathna…
valerydluski Jan 28, 2025
00fd6b9
fix(chat): update query parameters in AppsEditorHeader to remove enco…
valerydluski Jan 28, 2025
c9de4af
fix(chat): refactor setQueryParamsEpic to use Router from 'next/route…
valerydluski Jan 28, 2025
c8b9e44
fix(chat): update Chat component layout for improved responsiveness a…
valerydluski Jan 29, 2025
17232bc
fix(chat): remove unused encryption import and streamline message sen…
valerydluski Jan 29, 2025
a8d6841
fix(chat): update iframe URL generation to include conversation ID fo…
valerydluski Jan 29, 2025
2e0e016
fix(chat): enhance conversation loading checks in ApplicationSettings…
valerydluski Jan 29, 2025
6834023
fix(chat): implement preview conversation ID handling in ApplicationS…
valerydluski Jan 29, 2025
30b0834
fix(chat): remove isPreviewConversation prop from CustomChatViewer an…
valerydluski Jan 30, 2025
4138d1d
fix(chat): update version display format in ApplicationCard for impro…
valerydluski Jan 30, 2025
70bb80d
Merge branch 'development' into feat/apps-editor-route
valerydluski Jan 30, 2025
fdb76cd
fix(chat): refactor CustomViewerChatView to improve readability and s…
valerydluski Jan 30, 2025
3f97fd9
fix(chat): replace currentProviderId prop with providerId from state …
valerydluski Jan 30, 2025
1b6c959
fix(chat): update exit editor link text to 'Go to marketplace' for cl…
valerydluski Jan 30, 2025
5ec0fe1
fix(chat): update handleEditApplication to use router for navigation …
valerydluski Jan 30, 2025
b0ea543
fix(chat): add applicationProperties to form data and clean up API co…
valerydluski Jan 30, 2025
fc385ef
fix(chat): simplify move logic and enhance redirect handling in updat…
valerydluski Jan 31, 2025
7fa814c
fix(chat): implement safeStringifyApplicationFeatures for better feat…
valerydluski Jan 31, 2025
12d3e99
fix(chat): add mobile menu toggle and enhance header layout for bette…
valerydluski Jan 31, 2025
600f2d5
fix(chat): highlight active tab in AppsEditorHeader for improved navi…
valerydluski Jan 31, 2025
9d871cf
fix(chat): refactor AppsEditorHeader to simplify layout and enhance l…
valerydluski Jan 31, 2025
33a7c52
fix(chat): enhance GeneralInfoView with bucket handling and additiona…
valerydluski Jan 31, 2025
a55b09c
fix(chat): enhance TabRenderer and marketplace selectors to support a…
valerydluski Jan 31, 2025
83af924
fix(chat): enhance GeneralInfoEditor to support shared application ha…
valerydluski Feb 3, 2025
e297fa2
fix(chat): replace ApplicationSlug with ApplicationType for improved …
valerydluski Feb 3, 2025
88bccbe
fix(chat): remove unused ApplicationWizard and editModel state from T…
valerydluski Feb 3, 2025
10e04b2
fix(chat): update default values in GeneralInfoView to include models…
valerydluski Feb 3, 2025
293ecc0
fix(chat): enhance QuickAppView to support document URL and model sel…
valerydluski Feb 3, 2025
693145a
fix(chat): enhance application settings to support deployment status …
valerydluski Feb 3, 2025
50a64d9
fix(chat): ensure consistent display logic for action buttons in Appl…
valerydluski Feb 4, 2025
08a59f5
fix(chat): update marketplace link to include workspace tab in AppsEd…
valerydluski Feb 4, 2025
61fd8be
fix(chat): refine layout in AppsEditorHeader for improved responsiven…
valerydluski Feb 4, 2025
a060d21
Merge branch 'development' into feat/apps-editor-route
valerydluski Feb 4, 2025
07b9282
feat(chat): enhance ConversationContextMenu to conditionally disable …
valerydluski Feb 4, 2025
352a670
feat(chat): implement message handling in CustomChatViewer and update…
valerydluski Feb 4, 2025
26aa864
feat(chat): add event handling for updated conversation success in Cu…
valerydluski Feb 4, 2025
a91adf4
refactor(chat): remove unused props from CustomApplicationEditorView …
valerydluski Feb 4, 2025
6f19b3e
refactor(chat): update data type in GeneralInfoPreview and simplify g…
valerydluski Feb 4, 2025
ffad37e
fix(chat): update version display format in ApplicationCard component
valerydluski Feb 4, 2025
827d3b7
fix(chat): decode application name in default values for GeneralInfoV…
valerydluski Feb 5, 2025
21cfeff
refactor(chat): update translation imports to use custom hook and tra…
valerydluski Feb 5, 2025
4142c33
fix(chat): improve error handling in updateApplicationEpic and stream…
valerydluski Feb 5, 2025
58b5658
chore: review
valerydluski Feb 6, 2025
180e632
test(chat): enable dialTest for network error scenario during file up…
valerydluski Feb 6, 2025
7be34d7
fix(chat): enhance error handling in getServerSideProps and streamlin…
valerydluski Feb 10, 2025
bb467b5
fix(chat): remove unnecessary console log from getServerSideProps err…
valerydluski Feb 10, 2025
33384f0
Merge branch 'development' into feat/apps-editor-route
valerydluski Feb 11, 2025
03613eb
Merge branch 'development' into feat/apps-editor-route
valerydluski Feb 11, 2025
169db8f
refactor(chat): replace isEdit prop with oldApplication in GeneralInf…
valerydluski Feb 11, 2025
e86e9ff
refactor(chat): code review
valerydluski Feb 11, 2025
937ba48
Merge branch 'development' into feat/apps-editor-route
IlyaBondar Feb 11, 2025
24d3d90
fix: code review
valerydluski Feb 12, 2025
fd1ba97
refactor(settings): simplify slug handling in AppsSettings component
valerydluski Feb 12, 2025
005fec8
Merge branch 'development' into feat/apps-editor-route
irinakartun Feb 13, 2025
6d69eeb
feat/apps-editor-route: fixed e2e est
irinakartun Feb 13, 2025
897dce0
feat(chat): implement detailed application type schema fetching and s…
valerydluski Feb 13, 2025
34cd5c4
Merge branch 'feat/apps-editor-route' of github.com:epam/ai-dial-chat…
valerydluski Feb 13, 2025
ebec233
refactor(chat): remove bucket prop and fetch bucket data using Bucket…
valerydluski Feb 13, 2025
c3008ee
feat(apps-editor): add AppsEditorGeneralInfo page type and update rou…
valerydluski Feb 13, 2025
496e1a3
Merge branch 'development' into feat/apps-editor-route
valerydluski Feb 13, 2025
8110709
feat(apps-editor): enhance preview display with application name and …
valerydluski Feb 13, 2025
c1f4820
Merge branch 'feat/apps-editor-route' of github.com:epam/ai-dial-chat…
valerydluski Feb 13, 2025
7fcf44d
refactor(apps-editor): clean up imports in CodeAppView component
valerydluski Feb 13, 2025
af2d467
refactor(apps-editor): reorganize imports in CodeAppView component
valerydluski Feb 13, 2025
9454a93
feat(apps-editor): add loading states and update handlers for applica…
valerydluski Feb 14, 2025
19b7eea
feat(apps-editor): improve application settings and loading states in…
valerydluski Feb 14, 2025
8f49a11
Merge branch 'development' into feat/apps-editor-route
valerydluski Feb 17, 2025
be795e9
refactor(chat): remove unused isApplicationPreviewConversation proper…
valerydluski Feb 17, 2025
45b6924
feat(chat): add application preview chat component and related state …
valerydluski Feb 18, 2025
a8b5762
feat(chat): enhance loading state management in apps editor and setti…
valerydluski Feb 18, 2025
7c60d7f
fix(chat): correct application ID assignment in CodeAppView component
valerydluski Feb 18, 2025
562b405
feat(chat): add application status prop to CodeAppView component
valerydluski Feb 18, 2025
2b9bc83
feat(chat): add applicationStatus prop to CodeAppView component
valerydluski Feb 18, 2025
4b049d2
feat(chat): add redeploy application functionality and update applica…
valerydluski Feb 19, 2025
1fdaa86
Merge branch 'feat/apps-editor-route' of github.com:epam/ai-dial-chat…
valerydluski Feb 20, 2025
fe79a78
Merge branch 'development' into feat/apps-editor-route
valerydluski Feb 20, 2025
9b263b4
feat(application): add exitAfterSave state and selector; update save …
valerydluski Feb 20, 2025
6aee9c4
feat(application): add resetDetailedApplicationTypeSchema action and …
valerydluski Feb 21, 2025
1afe178
feat(application): enhance enterEditMode logic; add loading state man…
valerydluski Feb 21, 2025
19f1a06
feat(application): add validation checks and error handling for manda…
valerydluski Feb 21, 2025
ea29da8
feat(application): move validation checks for mandatory fields into s…
valerydluski Feb 21, 2025
84338cb
Merge branch 'development' into feat/apps-editor-route
valerydluski Feb 21, 2025
643a0d9
Merge branch 'development' into feat/apps-editor-route
IlyaBondar Feb 21, 2025
c9900f2
Merge branch 'development' into feat/apps-editor-route
valerydluski Feb 21, 2025
9d1fc7f
fix(chat): format ApplicationCard component for better readability
valerydluski Feb 21, 2025
dc166a1
feat(chat): add revokedSharing state to manage sharing confirmation d…
valerydluski Feb 21, 2025
3052151
feat(chat): add revokedSharing state and confirmation dialog for URL …
valerydluski Feb 21, 2025
97ca820
feat(chat): update documentRelativeUrl handling in AppsEditor form
valerydluski Feb 21, 2025
e75119c
fix(chat): update isEditApplication logic to use id instead of applic…
valerydluski Feb 21, 2025
097a2e8
feat(chat): reset conversation ID when entering edit mode in AppsEditor
valerydluski Feb 21, 2025
2c93d68
feat(chat): enhance getCodeAppDefaultValues to conditionally decode s…
valerydluski Feb 21, 2025
b1f949d
Merge branch 'development' into feat/apps-editor-route
IlyaBondar Feb 21, 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 @@ -13,7 +13,7 @@ import {
MenuOptions,
} from '@/src/testData';
import { FileModalSection } from '@/src/ui/webElements';
import { FileUtil, GeneratorUtil, ModelsUtil } from '@/src/utils';
import { FileUtil, GeneratorUtil, ItemUtil, ModelsUtil } from '@/src/utils';
import { expect } from '@playwright/test';

let modelWithInputAttachments: DialAIEntityModel;
Expand Down Expand Up @@ -140,7 +140,7 @@ dialAdminTest(
await filesToPublishTree.getFileDownloadIUrl(
Attachment.cloudImageName,
),
`api/${imageUrl}`,
ItemUtil.getEncodedItemId(`/api/${imageUrl}`),
ExpectedMessages.attachmentUrlIsValid,
);
},
Expand Down
1 change: 1 addition & 0 deletions apps/chat/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ declare module 'next-auth' {
user: {
isAdmin: boolean;
} & DefaultSession['user'];
providerId: string;
}
}

Expand Down
215 changes: 215 additions & 0 deletions apps/chat/src/components/AppsEditor/AppsEditorHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
import {
IconCircleCheck,
IconCircleDot,
IconMenu2,
IconX,
} from '@tabler/icons-react';
import { useMemo, useState } from 'react';

import Link from 'next/link';
import { useRouter } from 'next/router';

import classNames from 'classnames';

import { useTranslation } from '@/src/hooks/useTranslation';

import { Translation } from '@/src/types/translation';

import { useAppDispatch, useAppSelector } from '@/src/store/hooks';
import { SettingsSelectors } from '@/src/store/settings/settings.reducers';
import { UIActions, UISelectors } from '@/src/store/ui/ui.reducers';

import { User } from '@/src/components/Header/User/User';
import { SettingDialog } from '@/src/components/Settings/SettingDialog';

import { Logo } from '../Header/Logo';

import LogOutIcon from '@/public/images/icons/log-out.svg';

enum TabKeys {
GENERAL = 'general',
SETTINGS = 'settings',
}
interface AppsEditorHeaderProps {
applicationTypeDisplayName: string;
isEditApplication?: boolean;
}

export const AppsEditorHeader: React.FC<AppsEditorHeaderProps> = ({
applicationTypeDisplayName,
isEditApplication,
}) => {
const dispatch = useAppDispatch();
const {
query: { id = '', slug = '' },
pathname,
} = useRouter();
const { t } = useTranslation(Translation.Chat);

const isUserSettingsOpen = useAppSelector(
UISelectors.selectIsUserSettingsOpen,
);
const isOverlay = useAppSelector(SettingsSelectors.selectIsOverlay);

const handleCloseUserSettings = () => {
dispatch(UIActions.setIsUserSettingsOpen(false));
};

const tabs = useMemo(
() => [
{
key: TabKeys.GENERAL,
label: t('General info'),
href: {
pathname: `/apps-editor/[slug]`,
query: {
id: id,
slug: slug,
},
},
},
{
key: TabKeys.SETTINGS,
label: t('Settings'),
href: {
pathname: `/apps-editor/[slug]/settings`,
query: {
id: id,
slug: slug,
},
},
},
],
[t, id, slug],
);

const [menuOpen, setMenuOpen] = useState(false);

return (
<div
className={classNames(
'z-40 flex w-full border-b border-tertiary bg-layer-3',
isOverlay ? 'min-h-[36px]' : 'min-h-[48px]',
)}
data-qa="header"
>
<div className="flex grow items-center justify-between">
<div className="flex h-full space-x-4">
<div className="flex items-center space-x-4">
<button
className="p-2 text-primary md:hidden"
onClick={() => setMenuOpen((prevState) => !prevState)}
>
{menuOpen ? <IconX size={24} /> : <IconMenu2 size={24} />}
</button>
</div>
<Logo />
<div className="h-full border-l border-tertiary"></div>
<span className="hidden items-center text-primary md:flex">
{isEditApplication ? t('Edit') : t('Add')}{' '}
{applicationTypeDisplayName}
</span>
<div className="hidden items-center space-x-4 md:flex">
{tabs.map((tab, index) => {
const isDisabled = tab.key === TabKeys.SETTINGS && !id;
return (
<div key={tab.key} className="flex items-center">
<Link
href={tab.href}
className={isDisabled ? 'pointer-events-none' : ''}
aria-disabled={isDisabled}
tabIndex={isDisabled ? -1 : undefined}
passHref
>
<div
className={classNames(
'flex cursor-pointer items-center px-2',
isDisabled ? 'text-secondary' : 'text-primary',
)}
>
{tab.key === TabKeys.GENERAL && id ? (
<IconCircleCheck
className="text-accent-primary"
width={24}
height={24}
/>
) : (
<IconCircleDot
className={
isDisabled
? 'text-secondary'
: 'text-accent-primary'
}
width={24}
height={24}
/>
)}
<span className="px-2">{tab.label}</span>
</div>
</Link>
{index < tabs.length - 1 && (
<div
className="mx-2 h-0.5 w-5"
style={{ backgroundColor: 'var(--text-secondary)' }}
></div>
)}
</div>
);
})}
</div>
</div>

<div className="flex h-full items-center space-x-2">
<Link
className="hidden items-center space-x-1 hover:text-accent-primary md:flex"
href={{ pathname: '/marketplace', query: { tab: 'workspace' } }}
>
<LogOutIcon width={14} height={14} />
<span>{t('Go to marketplace')}</span>
</Link>

<div className="h-full border-l border-tertiary max-md:border-tertiary md:pl-2">
<User />
</div>
</div>
</div>

{menuOpen && (
<div className="absolute left-0 top-[48px] w-full border-b border-tertiary bg-layer-3 md:hidden">
{tabs.map((tab) => {
const isDisabled = tab.key === TabKeys.SETTINGS && !id;
const isActive = pathname === tab.href.pathname;
return (
<Link key={tab.key} href={tab.href} passHref>
<div
className={classNames(
'cursor-pointer border-b border-tertiary px-4 py-2',
isDisabled ? 'text-secondary' : 'text-primary',
isActive && !isDisabled
? 'font-semibold text-accent-primary'
: '',
)}
onClick={() => setMenuOpen(false)}
>
{tab.label}
</div>
</Link>
);
})}
<Link
className="flex items-center px-4 py-2 hover:text-accent-primary"
href={{ pathname: '/marketplace', query: { tab: 'workspace' } }}
>
<LogOutIcon width={14} height={14} />
<span>{t('Go to marketplace')}</span>
</Link>
</div>
)}

<SettingDialog
open={isUserSettingsOpen}
onClose={handleCloseUserSettings}
/>
</div>
);
};
Loading
Loading