@nextclaw/ui 0.25.4 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/dist/.vite/manifest.json +1146 -1390
- package/dist/assets/{abnfDiagram-VRR7QNED-DX_u5BBX.js → abnfDiagram-VRR7QNED-Bjrmb5-o.js} +1 -1
- package/dist/assets/account-panel-C1S3xtUB.js +1 -0
- package/dist/assets/{aiden0z-pptx-renderer.es-C-E9e5yB.js → aiden0z-pptx-renderer.es-DO4DCX3e.js} +1 -1
- package/dist/assets/api-D9e9cHtW.js +20 -0
- package/dist/assets/app-presenter-provider-J9IgTbc9.js +124 -0
- package/dist/assets/appearance-settings-page-BljTr6nB.js +1 -0
- package/dist/assets/{arc-Cxwa624o.js → arc-g4XaP3S4.js} +1 -1
- package/dist/assets/architecture-TIHT7OUA-BWywYH_m.js +1 -0
- package/dist/assets/{architectureDiagram-ZJ3FMSHR-D8mCj0H1.js → architectureDiagram-ZJ3FMSHR-CAP7YDux.js} +1 -1
- package/dist/assets/{blockDiagram-677ZJIJ3-CbGC1IHl.js → blockDiagram-677ZJIJ3-DhaP0zUG.js} +1 -1
- package/dist/assets/{book-open-xqEj1OLE.js → book-open-vxpV2eSM.js} +1 -1
- package/dist/assets/{c4Diagram-LMCZKHZV-BQhGC1Vc.js → c4Diagram-LMCZKHZV-DHCQJJkD.js} +1 -1
- package/dist/assets/card-D9NYhSdf.js +1 -0
- package/dist/assets/channel-1nKIAEXr.js +1 -0
- package/dist/assets/channels-list-page-BiHA1zZd.js +8 -0
- package/dist/assets/chunk-2Q5K7J3B-CAwv72v4.js +1 -0
- package/dist/assets/{chunk-32BRIVSS-B74ZZwYG.js → chunk-32BRIVSS-BcQlxl4v.js} +1 -1
- package/dist/assets/{chunk-52WLFC77-BvmxW_f_.js → chunk-52WLFC77-ClPpG-2S.js} +1 -1
- package/dist/assets/{chunk-5FCAYU7R-DQvBRnwL.js → chunk-5FCAYU7R-B_qmYOdX.js} +1 -1
- package/dist/assets/{chunk-5HE753X5-CDIH0_y3.js → chunk-5HE753X5-DTO-V56q.js} +1 -1
- package/dist/assets/{chunk-5JV3BV7I-CcevlKd-.js → chunk-5JV3BV7I-CU1SOaaG.js} +1 -1
- package/dist/assets/{chunk-5TONJI2A-_3dxVdnY.js → chunk-5TONJI2A-CzSDkWNa.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-pGO5vvo-.js → chunk-5VM5RSS4-ChkfqIRE.js} +1 -1
- package/dist/assets/{chunk-7BUUIJ7U-DEKF5uAN.js → chunk-7BUUIJ7U-Du3Ozi62.js} +1 -1
- package/dist/assets/{chunk-BIQX33UG-CjBFgq2r.js → chunk-BIQX33UG-C-HVafHB.js} +1 -1
- package/dist/assets/{chunk-C7G6YPKG-e_K9OGTz.js → chunk-C7G6YPKG-BSjZ86D0.js} +1 -1
- package/dist/assets/{chunk-CQNSW5MT-C2IiHyHz.js → chunk-CQNSW5MT-1D1W2lF6.js} +1 -1
- package/dist/assets/{chunk-CYSBUYHQ-DCC6KmGp.js → chunk-CYSBUYHQ-ISpyj_lK.js} +1 -1
- package/dist/assets/{chunk-EMLP6XTP-BYGgekQ0.js → chunk-EMLP6XTP-Cp8iUBt2.js} +1 -1
- package/dist/assets/{chunk-EX3LRPZG-FGcwuVsA.js → chunk-EX3LRPZG-BN5RzF5j.js} +1 -1
- package/dist/assets/{chunk-FWX5IMBZ-CV3Ih_Os.js → chunk-FWX5IMBZ-DecJDW4r.js} +2 -2
- package/dist/assets/{chunk-HOUHSVGY-CXpq_hfV.js → chunk-HOUHSVGY-BE_XNgGk.js} +1 -1
- package/dist/assets/{chunk-ICXQ74PX-CZIpjupq.js → chunk-ICXQ74PX-BFOKMkWV.js} +1 -1
- package/dist/assets/{chunk-JG7HCLWE-CdgwBpW7.js → chunk-JG7HCLWE-DL-pl8VB.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-BPjAZpOQ.js → chunk-JWPE2WC7-B-bcwfmh.js} +1 -1
- package/dist/assets/{chunk-MOJQB5TN-DbJDm8to.js → chunk-MOJQB5TN-BC0taFro.js} +1 -1
- package/dist/assets/{chunk-MOZMSUNE-BUa1fqKn.js → chunk-MOZMSUNE-RrhfU6MO.js} +1 -1
- package/dist/assets/{chunk-OGEWGWER-CtnzLgRu.js → chunk-OGEWGWER-TuI7SR7i.js} +1 -1
- package/dist/assets/{chunk-OSBZ3O6U-fUgdpTUM.js → chunk-OSBZ3O6U-C5jMBKlU.js} +1 -1
- package/dist/assets/{chunk-PUDLZKDR-CtDWZT9-.js → chunk-PUDLZKDR-C5lMBn0K.js} +1 -1
- package/dist/assets/{chunk-Q4XR5HBZ-BxnK2qxr.js → chunk-Q4XR5HBZ-B-kzUbwT.js} +1 -1
- package/dist/assets/{chunk-QBLGF6JB-CH4UKoCF.js → chunk-QBLGF6JB-CRb_WAEj.js} +1 -1
- package/dist/assets/{chunk-R7FJI6CG-BxwFoF1v.js → chunk-R7FJI6CG-De6Y7ozO.js} +1 -1
- package/dist/assets/{chunk-RYQCIY6F-DpHAmq7O.js → chunk-RYQCIY6F-Igv92q8k.js} +1 -1
- package/dist/assets/{chunk-U6XO7XAA-BjH2VUHU.js → chunk-U6XO7XAA-bCjRshkT.js} +1 -1
- package/dist/assets/{chunk-V7JOEXUC-DKJZ3HGj.js → chunk-V7JOEXUC-0J1s_Kgq.js} +1 -1
- package/dist/assets/chunk-VAUOI2AC-DnaryNw2.js +1 -0
- package/dist/assets/{chunk-VR4S4FIN-Cf-o2GtI.js → chunk-VR4S4FIN-DX6lXnNx.js} +1 -1
- package/dist/assets/{chunk-WYO6CB5R-zeNXGm20.js → chunk-WYO6CB5R-DLqMXfFC.js} +3 -3
- package/dist/assets/chunk-XXDRQBXY-BToo1uqb.js +1 -0
- package/dist/assets/{chunk-YOTPTUD7-Ck87Kqxe.js → chunk-YOTPTUD7-CY4obsV0.js} +1 -1
- package/dist/assets/{chunk-ZGVPDNZ5-BbfK6Bfd.js → chunk-ZGVPDNZ5-BleImZKe.js} +1 -1
- package/dist/assets/{chunk-ZIRB5QZD-BDpzh4Yl.js → chunk-ZIRB5QZD-C1TfdjpX.js} +1 -1
- package/dist/assets/{circle-dashed-CU3yApvP.js → circle-dashed-CEEssYIw.js} +1 -1
- package/dist/assets/classDiagram-OUVF2IWQ-D_TusZGx.js +1 -0
- package/dist/assets/classDiagram-v2-EOCWNBFH-B1NFZTmS.js +1 -0
- package/dist/assets/client-C6YQx7A-.js +1 -0
- package/dist/assets/config-split-page-DKPelvjR.js +1 -0
- package/dist/assets/confirm-dialog-BCGeh61X.js +1 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-CQfMxKCT.js → cose-bilkent-JH36ORCC-CVgUHXkj.js} +1 -1
- package/dist/assets/createLucideIcon-CF8U9dh7.js +1 -0
- package/dist/assets/cynefin-VYW2F7L2-CJZSs5s_.js +1 -0
- package/dist/assets/{cynefinDiagram-TSTJHNR4-CxFTiC-p.js → cynefinDiagram-TSTJHNR4-cdfImbfI.js} +1 -1
- package/dist/assets/{dagre-CaBNMcB1.js → dagre-CHNN9L9I.js} +1 -1
- package/dist/assets/{dagre-VKFMJZFB-S_7Hc7bI.js → dagre-VKFMJZFB-PscaENwr.js} +1 -1
- package/dist/assets/desktop-capabilities-page-BENHdKfk.js +1 -0
- package/dist/assets/desktop-update-config-BJMTQMRS.js +1 -0
- package/dist/assets/{diagram-FQU43EPY-C7zENvFb.js → diagram-FQU43EPY-CH_wye41.js} +1 -1
- package/dist/assets/{diagram-G47NLZAW-DqYTCqZA.js → diagram-G47NLZAW-Dtjpmi6D.js} +1 -1
- package/dist/assets/{diagram-NH7WQ7WH-BfSJtXRc.js → diagram-NH7WQ7WH-UdjLHyaz.js} +1 -1
- package/dist/assets/{diagram-OA4YK3LP-CFO-j67H.js → diagram-OA4YK3LP-DYsToEaL.js} +1 -1
- package/dist/assets/{diagram-WEI45ONY-DBQDbTaJ.js → diagram-WEI45ONY-CA7kuIer.js} +1 -1
- package/dist/assets/dialog-DQXou6pg.js +5 -0
- package/dist/assets/dist-CiC9Fd9J.js +1 -0
- package/dist/assets/doc-browser-CCYS_csH.js +1 -0
- package/dist/assets/doc-browser-context-CPLWVFLd.js +1 -0
- package/dist/assets/{docx-preview-B4-aDfvO.js → docx-preview-D--EsUWi.js} +1 -1
- package/dist/assets/{ebnfDiagram-CCIWWBDH-CfDNIXFN.js → ebnfDiagram-CCIWWBDH-BrjaoOuq.js} +1 -1
- package/dist/assets/{erDiagram-Q63AITRT-D95rFXMM.js → erDiagram-Q63AITRT-nZQa2kCM.js} +1 -1
- package/dist/assets/es2015-DHRpDU-q.js +41 -0
- package/dist/assets/eventmodeling-45OFAUF4-rc7kUq4V.js +1 -0
- package/dist/assets/extensions-CsWT7x3v.js +1 -0
- package/dist/assets/{eye-C84inPcV.js → eye-DJtw5KJ5.js} +1 -1
- package/dist/assets/flowDiagram-23GEKE2U-DAjaeGO8.js +1 -0
- package/dist/assets/form-actions-DDQk0END.js +1 -0
- package/dist/assets/{ganttDiagram-NO4QXBWP-Bawg0P0r.js → ganttDiagram-NO4QXBWP-CyFZHIHN.js} +1 -1
- package/dist/assets/gitGraph-TEB2WS4Q-Ce0gf6ps.js +1 -0
- package/dist/assets/{gitGraphDiagram-IHSO6WYX-BbKh9nbL.js → gitGraphDiagram-IHSO6WYX-Dfpq3z2M.js} +1 -1
- package/dist/assets/{i18n-20rSH40D.js → i18n-BjPkAKMQ.js} +2 -2
- package/dist/assets/info-DKCQHKI2-Cp-Tr78m.js +1 -0
- package/dist/assets/{infoDiagram-FWYZ7A6U-DPffZXYh.js → infoDiagram-FWYZ7A6U-Diiz0k1E.js} +1 -1
- package/dist/assets/{ishikawaDiagram-FXEZZL3T-CBMsLwZ2.js → ishikawaDiagram-FXEZZL3T-B3R3SN4M.js} +1 -1
- package/dist/assets/{journeyDiagram-5HDEW3XC-Mz5U4OzU.js → journeyDiagram-5HDEW3XC-DFOLKiNv.js} +1 -1
- package/dist/assets/{kanban-definition-HUTT4EX6-FXZq2k19.js → kanban-definition-HUTT4EX6-BMXpDp3g.js} +1 -1
- package/dist/assets/katex-B4FQSo9k.js +1 -0
- package/dist/assets/keyboard-shortcuts-settings-page-hqTP7akj.js +1 -0
- package/dist/assets/{line-BZwCgT9K.js → line-64_FhCoJ.js} +1 -1
- package/dist/assets/{linear-CTe9mKUw.js → linear-aF1fg7bK.js} +1 -1
- package/dist/assets/loader-circle-B-4WwzBj.js +1 -0
- package/dist/assets/login-page-BUwshAq4.js +1 -0
- package/dist/assets/login-page-CdlI6B8e.js +1 -0
- package/dist/assets/main-BVYdyT60.css +1 -0
- package/dist/assets/main-DYEALeoQ.js +2 -0
- package/dist/assets/main-i18n-catalog.config-1o2hjZ0m.js +1 -0
- package/dist/assets/{map-Ci48ZwAp.js → map-BC3Amra3.js} +1 -1
- package/dist/assets/mcp-marketplace-page-CRRQT6SP.js +1 -0
- package/dist/assets/{mermaid-parser.core-CzPD3U_z.js → mermaid-parser.core-DdMcZwnE.js} +2 -2
- package/dist/assets/{mermaid.core-geIMNPbV.js → mermaid.core-BHdiEBbI.js} +3 -3
- package/dist/assets/{mindmap-definition-LN4V7U3C-xqlKxsr_.js → mindmap-definition-LN4V7U3C-CtHVaZyV.js} +1 -1
- package/dist/assets/model-config-page-BSsHOhV7.js +1 -0
- package/dist/assets/navigation-history-CyawyVz0.js +1 -0
- package/dist/assets/navigation-link-D-fxdv0i.js +3 -0
- package/dist/assets/{ordinal-MxnX8yhv.js → ordinal-6b3jw4cz.js} +1 -1
- package/dist/assets/packet-7NZHBO7P-BOJuCraS.js +1 -0
- package/dist/assets/panel-app-i18n-catalog.config-kQO7QAwH.js +1 -0
- package/dist/assets/panelStandalone-BeI0Ndsx.js +2 -0
- package/dist/assets/{pegDiagram-2B236MQR-D50MFTN1.js → pegDiagram-2B236MQR-BtbG3Bgu.js} +1 -1
- package/dist/assets/pie-RZYD4A2V-D-FEO81x.js +1 -0
- package/dist/assets/{pieDiagram-ENE6RG2P-CpA13oiC.js → pieDiagram-ENE6RG2P-FmLl2hzN.js} +1 -1
- package/dist/assets/privacy-settings-page-pW_1naDz.js +1 -0
- package/dist/assets/projects-k6SLda_A.js +1 -0
- package/dist/assets/provider-models-mVzuEQBS.js +1 -0
- package/dist/assets/provider-scoped-model-input-CVbtT8L9.js +1 -0
- package/dist/assets/providers-config-page-rBlVrHkb.js +1 -0
- package/dist/assets/{puzzle-D6gulz7u.js → puzzle-kKiVft9-.js} +1 -1
- package/dist/assets/pwa-BgGM4kkY.js +1 -0
- package/dist/assets/{quadrantDiagram-ABIIQ3AL-CYCgaj4l.js → quadrantDiagram-ABIIQ3AL-7-OzMNpF.js} +1 -1
- package/dist/assets/radar-I7S5WNFK-Bq3eK1vK.js +1 -0
- package/dist/assets/railroad-3IZDKUUU-C3uZ1esg.js +1 -0
- package/dist/assets/railroad-abnf-AHOZXSZD-D3iZd1KT.js +1 -0
- package/dist/assets/railroad-ebnf-EBAXGLYW-Dl0FWqZu.js +1 -0
- package/dist/assets/railroad-peg-LSFZ7HO6-B51SbzGp.js +1 -0
- package/dist/assets/{railroadDiagram-RFXS5EU6-4LKDGlXN.js → railroadDiagram-RFXS5EU6-B_UVtLJO.js} +1 -1
- package/dist/assets/{refresh-cw-h9Xq3LY3.js → refresh-cw-BeG0y6yZ.js} +1 -1
- package/dist/assets/remote-wYWqir2w.js +1 -0
- package/dist/assets/{requirementDiagram-TGXJPOKE-CxNOU0JH.js → requirementDiagram-TGXJPOKE-D8TO2YeZ.js} +1 -1
- package/dist/assets/{rotate-cw-B6xm41Wn.js → rotate-cw-Ci2dcTO5.js} +1 -1
- package/dist/assets/runtime-config-page-DCXN0nkS.js +1 -0
- package/dist/assets/{sankeyDiagram-HTMAVEWB-DbCBDe2S.js → sankeyDiagram-HTMAVEWB-CUzIcq0B.js} +1 -1
- package/dist/assets/{save-fff_WpY2.js → save-Cr895abt.js} +1 -1
- package/dist/assets/search-config-page-CNQd481d.js +1 -0
- package/dist/assets/secrets-config-page--q7M58L8.js +3 -0
- package/dist/assets/security-config-CJb2pK2O.js +1 -0
- package/dist/assets/select-Bq-UmfCK.js +1 -0
- package/dist/assets/{sequenceDiagram-DBY2YBRQ-DA6W2BS_.js → sequenceDiagram-DBY2YBRQ-kqJzXbwu.js} +1 -1
- package/dist/assets/service-apps-panel-iLLEByRF.js +1 -0
- package/dist/assets/{settings-2-CE3ELQyk.js → settings-2-IodCcaXd.js} +1 -1
- package/dist/assets/{sizeCapture-X5ZJPWSS-T_q_d_VW.js → sizeCapture-X5ZJPWSS-D9ISogq1.js} +1 -1
- package/dist/assets/{src-CYpUlx-4.js → src-Bc0PoUJ1.js} +1 -1
- package/dist/assets/{stateDiagram-2N3HPSRC-mi8z2G0a.js → stateDiagram-2N3HPSRC-CqH5xc9W.js} +1 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-CcOGfDdx.js +1 -0
- package/dist/assets/status-dot-DUYSKRCU.js +1 -0
- package/dist/assets/{swimlanes-5IMT3BWC-DkBEhWE4.js → swimlanes-5IMT3BWC-mwejV-rW.js} +2 -2
- package/dist/assets/swimlanesDiagram-G3AALYLV-BMI2k8RZ.js +8 -0
- package/dist/assets/tag-chip-CQU51ST3.js +1 -0
- package/dist/assets/theme-provider-D-zZkXxS.js +1 -0
- package/dist/assets/{timeline-definition-FHXFAJF6-BoFmqBw1.js → timeline-definition-FHXFAJF6-CuikIDlX.js} +1 -1
- package/dist/assets/trash-2-BDdqDh6E.js +1 -0
- package/dist/assets/treeView-QDETBFTQ-C0_07QI1.js +1 -0
- package/dist/assets/treemap-6X3UGDF4-Djpx6ccG.js +1 -0
- package/dist/assets/use-config-Bxx7DdaL.js +1 -0
- package/dist/assets/{use-desktop-capabilities-BkuRd2cY.js → use-desktop-capabilities-BTgdFgJy.js} +1 -1
- package/dist/assets/use-viewport-layout-CDcca0YL.js +1 -0
- package/dist/assets/{vennDiagram-L72KCM5P-BlZ3Or5U.js → vennDiagram-L72KCM5P-BD0P0qHh.js} +1 -1
- package/dist/assets/wardley-OPB4EBWU-DZVFxu81.js +1 -0
- package/dist/assets/{wardleyDiagram-EHGQE667-yDfr33i3.js → wardleyDiagram-EHGQE667-C6ma3t5D.js} +1 -1
- package/dist/assets/x-LUUwl8rK.js +1 -0
- package/dist/assets/{xychartDiagram-FW5EYKEG-mIXwIGAQ.js → xychartDiagram-FW5EYKEG-D7E40NBk.js} +1 -1
- package/dist/index.html +37 -54
- package/dist/panel-standalone.html +11 -15
- package/package.json +5 -5
- package/src/app/components/layout/__tests__/app-layout.test.tsx +8 -0
- package/src/app/components/layout/app-layout.tsx +18 -46
- package/src/app/configs/__tests__/app-navigation.config.test.ts +4 -0
- package/src/app/configs/app-navigation.config.ts +2 -0
- package/src/app/configs/page-resource-renderers.config.ts +13 -0
- package/src/app/index.tsx +4 -0
- package/src/app/presenters/app.presenter.ts +13 -2
- package/src/features/agents/components/__tests__/agents-page.test.tsx +4 -0
- package/src/features/agents/components/agent-details-dialog.tsx +3 -0
- package/src/features/agents/components/agents-page.tsx +7 -3
- package/src/features/apps/components/app-package-card.tsx +2 -2
- package/src/features/chat/components/conversation/chat-conversation-content.tsx +32 -19
- package/src/features/chat/components/conversation/chat-conversation-header-section.tsx +1 -0
- package/src/features/chat/components/conversation/chat-conversation-header.tsx +1 -1
- package/src/features/chat/components/conversation/chat-conversation-panel.tsx +2 -2
- package/src/features/chat/components/conversation/chat-conversation-workspace-section.tsx +1 -0
- package/src/features/chat/components/layout/__tests__/chat-page-shell.test.tsx +7 -6
- package/src/features/chat/components/layout/__tests__/chat-sidebar-toolbar.test.tsx +14 -12
- package/src/features/chat/components/layout/chat-page-shell.tsx +33 -64
- package/src/features/chat/components/layout/chat-sidebar-desktop-layout.tsx +8 -4
- package/src/features/chat/components/layout/chat-sidebar-toolbar.tsx +64 -256
- package/src/features/chat/components/layout/chat-sidebar.tsx +8 -30
- package/src/features/chat/components/providers/chat-runtime.provider.tsx +62 -0
- package/src/features/chat/features/conversation/components/__tests__/floating-session-conversation.test.tsx +70 -0
- package/src/features/chat/features/conversation/components/floating-session-conversation.tsx +27 -0
- package/src/features/chat/features/conversation/components/session-conversation-area.tsx +1 -0
- package/src/features/chat/features/conversation/components/session-conversation-panel-tab.tsx +25 -0
- package/src/features/chat/features/conversation/hooks/use-chat-composer-reference-intent.ts +2 -1
- package/src/features/chat/features/message/components/__tests__/chat-inline-panel-app-card.test.tsx +2 -1
- package/src/features/chat/features/message/components/__tests__/chat-message-assistant-header.container.test.tsx +3 -0
- package/src/features/chat/features/message/components/__tests__/chat-message-list-skill-preview.container.test.tsx +3 -0
- package/src/features/chat/features/message/components/__tests__/chat-message-list.container.test.tsx +3 -0
- package/src/features/chat/features/message/hooks/use-chat-inline-token-actions.ts +7 -3
- package/src/features/chat/features/session/components/__tests__/chat-sidebar-session-item.test.tsx +20 -0
- package/src/features/chat/features/session/components/chat-mobile-session-row.tsx +61 -0
- package/src/features/chat/features/session/components/chat-sidebar-project-groups.tsx +0 -35
- package/src/features/chat/features/session/components/chat-sidebar-session-entry.tsx +2 -0
- package/src/features/chat/features/session/components/chat-sidebar-session-item.tsx +13 -5
- package/src/features/chat/features/session/components/chat-sidebar-session-list.tsx +5 -3
- package/src/features/chat/features/session/components/session-header/__tests__/chat-session-header-actions.test.tsx +8 -0
- package/src/features/chat/features/session/components/session-header/chat-session-header-actions.tsx +3 -0
- package/src/features/chat/features/session/components/session-header/chat-session-more-actions-menu.tsx +6 -0
- package/src/features/chat/features/session/utils/chat-session-route.utils.ts +12 -0
- package/src/features/chat/features/workspace/components/__tests__/chat-session-child-sessions.test.tsx +28 -0
- package/src/features/chat/features/workspace/components/__tests__/chat-session-workspace-file-preview.test.tsx +9 -0
- package/src/features/chat/features/workspace/components/__tests__/chat-session-workspace-panel-content.test.tsx +6 -2
- package/src/features/chat/features/workspace/components/__tests__/chat-session-workspace-panel.test.tsx +49 -12
- package/src/features/chat/features/workspace/components/chat-session-workspace-file-preview.tsx +13 -6
- package/src/features/chat/features/workspace/components/chat-session-workspace-panel-content.tsx +6 -0
- package/src/features/chat/features/workspace/components/chat-session-workspace-panel-nav.tsx +21 -36
- package/src/features/chat/features/workspace/components/chat-session-workspace-panel.tsx +40 -31
- package/src/features/chat/features/workspace/components/child-sessions/chat-session-child-sessions.tsx +6 -1
- package/src/features/chat/features/workspace/components/project-files/workspace-directory-tree.tsx +2 -2
- package/src/features/chat/features/workspace/components/project-files/workspace-project-files-toolbar.tsx +2 -2
- package/src/features/chat/features/workspace/utils/__tests__/chat-workspace-panel-view-model.utils.test.ts +27 -0
- package/src/features/chat/features/workspace/utils/__tests__/workspace-file-panel-route.utils.test.ts +94 -0
- package/src/features/chat/features/workspace/utils/chat-workspace-file-tab-persistence.utils.ts +2 -0
- package/src/features/chat/features/workspace/utils/chat-workspace-file-tab.utils.ts +15 -0
- package/src/features/chat/features/workspace/utils/chat-workspace-panel-view-model.utils.ts +11 -0
- package/src/features/chat/features/workspace/utils/workspace-file-panel-route.utils.ts +147 -0
- package/src/features/chat/index.ts +20 -4
- package/src/features/chat/managers/__tests__/chat-completion-notification.manager.test.ts +8 -0
- package/src/features/chat/managers/__tests__/chat-thread-workspace.manager.test.ts +7 -2
- package/src/features/chat/managers/__tests__/session-surface.manager.test.ts +45 -0
- package/src/features/chat/managers/chat-completion-notification.manager.ts +5 -0
- package/src/features/chat/managers/chat-composer-intent.manager.ts +16 -0
- package/src/features/chat/managers/chat-thread.manager.ts +18 -27
- package/src/features/chat/managers/session-surface.manager.ts +46 -0
- package/src/features/chat/pages/__tests__/ncp-chat-page.test.tsx +23 -5
- package/src/features/chat/pages/ncp-chat-page.tsx +6 -86
- package/src/features/chat/presenters/chat.presenter.ts +2 -1
- package/src/features/chat/stores/__tests__/chat-thread.store.test.ts +2 -2
- package/src/features/chat/stores/chat-thread.store.ts +7 -1
- package/src/features/chat/stores/floating-session.store.ts +11 -0
- package/src/features/cron/components/__tests__/cron-config.test.tsx +4 -0
- package/src/features/cron/components/cron-job-detail-dialog.tsx +3 -1
- package/src/features/cron/components/cron-job-row.tsx +5 -1
- package/src/features/inbox/components/inbox-reader-dialog.test.tsx +3 -0
- package/src/features/inbox/components/inbox-reader-dialog.tsx +3 -0
- package/src/features/inbox/pages/inbox-page.test.ts +3 -0
- package/src/features/inbox/pages/inbox-page.tsx +3 -0
- package/src/features/marketplace/components/__tests__/marketplace-page-detail.test.tsx +5 -1
- package/src/features/marketplace/components/__tests__/marketplace-page.test.tsx +3 -0
- package/src/features/marketplace/components/curated-shelves/__tests__/marketplace-curated-scene-route.test.tsx +2 -0
- package/src/features/marketplace/components/marketplace-list-card.tsx +4 -0
- package/src/features/marketplace/components/mcp/__tests__/mcp-marketplace-page.test.tsx +2 -0
- package/src/features/marketplace/components/mcp/mcp-marketplace-card.tsx +3 -0
- package/src/features/notifications/components/__tests__/app-notification-toast.test.tsx +19 -0
- package/src/features/notifications/components/app-notification-toast.tsx +33 -15
- package/src/features/notifications/managers/app-notification.manager.ts +2 -0
- package/src/features/panel-apps/components/__tests__/panel-app-list-item.test.tsx +11 -4
- package/src/features/panel-apps/components/__tests__/panel-app-toolbar.test.tsx +11 -5
- package/src/features/panel-apps/components/panel-app-main-sidebar-menu-item.tsx +5 -38
- package/src/features/panel-apps/index.ts +1 -1
- package/src/features/projects/components/project-materials.test.tsx +2 -0
- package/src/features/projects/components/project-skills.tsx +7 -3
- package/src/features/projects/components/work/project-work-item-drawer.test.tsx +2 -0
- package/src/features/projects/components/work/project-work-item-drawer.tsx +3 -1
- package/src/features/right-panel-resources/components/__tests__/page-resource-icon.test.tsx +67 -0
- package/src/features/right-panel-resources/components/__tests__/page-resource-sidebar-nav.test.tsx +158 -0
- package/src/features/right-panel-resources/components/__tests__/system-object-resource.test.tsx +42 -0
- package/src/features/right-panel-resources/components/current-page-actions.tsx +36 -0
- package/src/features/right-panel-resources/components/page-resource-actions-menu.tsx +71 -0
- package/src/features/right-panel-resources/components/page-resource-icon.tsx +245 -0
- package/src/features/right-panel-resources/components/page-resource-sidebar-nav.tsx +122 -0
- package/src/features/right-panel-resources/components/system-object-resource.tsx +100 -0
- package/src/features/right-panel-resources/components/workspace-file-resource.tsx +56 -0
- package/src/features/right-panel-resources/configs/right-panel-resource-routes.config.ts +46 -3
- package/src/features/right-panel-resources/hooks/use-page-resource-actions.ts +137 -0
- package/src/features/right-panel-resources/index.ts +22 -8
- package/src/features/right-panel-resources/managers/__tests__/page-resource.manager.test.ts +149 -0
- package/src/features/right-panel-resources/managers/page-resource.manager.ts +342 -0
- package/src/features/right-panel-resources/pages/resource-page.tsx +114 -0
- package/src/features/right-panel-resources/stores/page-navigation.store.ts +55 -0
- package/src/features/right-panel-resources/types/page-resource.types.ts +11 -0
- package/src/features/right-panel-resources/utils/__tests__/right-panel-resource-route-resolver.utils.test.ts +10 -0
- package/src/features/right-panel-resources/utils/page-resource-identity.utils.ts +61 -0
- package/src/features/right-panel-resources/utils/right-panel-resource-uri.utils.ts +2 -6
- package/src/features/service-apps/components/__tests__/service-apps-panel.test.tsx +2 -0
- package/src/features/service-apps/components/service-app-list-item.tsx +5 -1
- package/src/features/settings/pages/providers-config-page.tsx +2 -2
- package/src/features/side-dock/components/__tests__/side-dock.test.tsx +9 -8
- package/src/features/side-dock/components/side-dock.tsx +14 -47
- package/src/features/side-dock/managers/side-dock.manager.ts +2 -0
- package/src/platforms/desktop/components/__tests__/desktop-app-shell.test.tsx +3 -0
- package/src/platforms/desktop/components/desktop-app-shell.tsx +5 -14
- package/src/platforms/mobile/components/__tests__/mobile-app-shell.test.tsx +1 -0
- package/src/platforms/mobile/components/__tests__/mobile-bottom-nav.test.tsx +3 -2
- package/src/platforms/mobile/components/mobile-app-shell.tsx +5 -4
- package/src/platforms/mobile/components/mobile-bottom-nav.tsx +7 -7
- package/src/platforms/mobile/components/mobile-topbar.tsx +4 -4
- package/src/shared/components/doc-browser/__tests__/doc-browser-context.test.tsx +4 -3
- package/src/shared/components/doc-browser/__tests__/doc-browser-tab-strip.test.tsx +0 -5
- package/src/shared/components/doc-browser/__tests__/doc-browser.test.tsx +57 -73
- package/src/shared/components/doc-browser/__tests__/resource-link-interceptor.test.tsx +104 -0
- package/src/shared/components/doc-browser/doc-browser-context.tsx +5 -1
- package/src/shared/components/doc-browser/doc-browser-panel-parts.tsx +1 -1
- package/src/shared/components/doc-browser/doc-browser-tab-strip.tsx +6 -118
- package/src/shared/components/doc-browser/doc-browser.tsx +30 -194
- package/src/shared/components/doc-browser/hooks/use-doc-browser-scroll-restoration.ts +1 -1
- package/src/shared/components/doc-browser/managers/doc-browser.manager.ts +11 -1
- package/src/shared/components/doc-browser/stores/doc-browser.store.ts +3 -7
- package/src/shared/components/doc-browser/types/doc-browser.types.ts +8 -1
- package/src/shared/components/doc-browser/use-doc-link-interceptor.ts +30 -32
- package/src/shared/components/doc-browser/utils/doc-browser-state.utils.ts +6 -6
- package/src/shared/components/ui/context-menu/__tests__/context-menu.test.tsx +22 -0
- package/src/shared/components/ui/context-menu/context-menu.tsx +18 -10
- package/src/shared/components/workbench/__tests__/workbench-surface.manager.test.ts +70 -0
- package/src/shared/components/workbench/__tests__/workbench-surface.test.tsx +111 -0
- package/src/shared/components/workbench/managers/workbench-surface.manager.ts +120 -0
- package/src/shared/components/workbench/stores/workbench-surface.store.ts +83 -0
- package/src/shared/components/workbench/types/workbench-surface.types.ts +32 -0
- package/src/shared/components/workbench/utils/workbench-surface-geometry.utils.ts +46 -0
- package/src/shared/components/workbench/workbench-surface-toolbar.tsx +102 -0
- package/src/shared/components/workbench/workbench-surface.tsx +401 -0
- package/src/shared/hooks/use-panel-app-scroll-restoration.test.tsx +19 -0
- package/src/shared/hooks/use-panel-app-scroll-restoration.ts +8 -6
- package/src/shared/hooks/use-scroll-restoration.test.tsx +39 -2
- package/src/shared/hooks/use-scroll-restoration.ts +33 -33
- package/src/shared/lib/api/marketplace.types.ts +1 -0
- package/src/shared/lib/i18n/locales/en-US/chat.json +38 -0
- package/src/shared/lib/i18n/locales/en-US/doc-browser.json +1 -1
- package/src/shared/lib/i18n/locales/zh-CN/chat.json +38 -0
- package/src/shared/lib/navigation-history/index.ts +1 -0
- package/src/shared/lib/navigation-history/navigation-history.utils.ts +1 -1
- package/src/shared/lib/navigation-history/scroll-restoration.manager.test.ts +11 -0
- package/src/shared/lib/navigation-history/scroll-restoration.manager.ts +36 -7
- package/src/shared/lib/navigation-history/view-memory-storage.store.test.ts +37 -0
- package/src/shared/lib/navigation-history/view-memory-storage.store.ts +21 -0
- package/src/shared/lib/ui-document-title/index.ts +1 -0
- package/dist/assets/account-panel-BW4GbzQd.js +0 -1
- package/dist/assets/api-DqzQ-_3w.js +0 -13
- package/dist/assets/app-data-C54N2p8b.js +0 -1
- package/dist/assets/app-presenter-provider-CBZ_-ewx.js +0 -115
- package/dist/assets/appearance-settings-page-C-uZ2Wkf.js +0 -1
- package/dist/assets/architecture-TIHT7OUA-DEt0Abz9.js +0 -1
- package/dist/assets/boxes-D6uPnkGo.js +0 -1
- package/dist/assets/card-BhfAZv5L.js +0 -1
- package/dist/assets/channel-CxQkbwRD.js +0 -1
- package/dist/assets/channels-list-page-Bv7CVSqV.js +0 -8
- package/dist/assets/chevron-down-BL-yMYcX.js +0 -1
- package/dist/assets/chunk-2Q5K7J3B-ClVhziok.js +0 -1
- package/dist/assets/chunk-VAUOI2AC-DZQxkIsv.js +0 -1
- package/dist/assets/chunk-XXDRQBXY-BkExtw5C.js +0 -1
- package/dist/assets/circle-alert-lSa3LRvS.js +0 -1
- package/dist/assets/classDiagram-OUVF2IWQ-Bd6apBb-.js +0 -1
- package/dist/assets/classDiagram-v2-EOCWNBFH-CYxUZGCI.js +0 -1
- package/dist/assets/client-BtGBwLTs.js +0 -1
- package/dist/assets/config-split-page-DqAXKLmG.js +0 -1
- package/dist/assets/confirm-dialog-BTKCWMn6.js +0 -1
- package/dist/assets/createLucideIcon-BNKf0_kc.js +0 -1
- package/dist/assets/cynefin-VYW2F7L2-CV0bFLH9.js +0 -1
- package/dist/assets/desktop-capabilities-page-zLzCSB7A.js +0 -1
- package/dist/assets/desktop-update-config-PmofcFf6.js +0 -1
- package/dist/assets/dialog-Xe73hpQz.js +0 -5
- package/dist/assets/dist-BiIcnf9j.js +0 -1
- package/dist/assets/dist-C5I0v8Qn.js +0 -1
- package/dist/assets/dist-czPa8xFO.js +0 -1
- package/dist/assets/doc-browser-BJrre2S_.js +0 -1
- package/dist/assets/doc-browser-BPqA-zQx.js +0 -1
- package/dist/assets/doc-browser-context-TILuCY5c.js +0 -1
- package/dist/assets/ellipsis-C5YXdOUx.js +0 -1
- package/dist/assets/es2015-cuwbYI-l.js +0 -41
- package/dist/assets/eventmodeling-45OFAUF4-BzkLWWdP.js +0 -1
- package/dist/assets/extensions-CVUFK6Jj.js +0 -1
- package/dist/assets/flowDiagram-23GEKE2U-ukkCsB0j.js +0 -1
- package/dist/assets/form-actions-BRESe-m_.js +0 -1
- package/dist/assets/gitGraph-TEB2WS4Q-BYFhT0Q5.js +0 -1
- package/dist/assets/i18n-provider-BPRq6S7O.js +0 -1
- package/dist/assets/info-DKCQHKI2-CTmlJdcH.js +0 -1
- package/dist/assets/katex-DbZC06Q5.js +0 -1
- package/dist/assets/keyboard-shortcuts-settings-page-CScSXYS4.js +0 -1
- package/dist/assets/loader-circle-K1BDdHR5.js +0 -1
- package/dist/assets/login-page-Dlyvp-81.js +0 -1
- package/dist/assets/login-page-f8qQ4xKY.js +0 -1
- package/dist/assets/logo-badge-C-5-zim6.js +0 -1
- package/dist/assets/main-D2dWy8fM.css +0 -1
- package/dist/assets/main-DMNmwcJE.js +0 -2
- package/dist/assets/main-i18n-catalog.config-DZ-5ollN.js +0 -1
- package/dist/assets/mcp-marketplace-page-FfIfEo6w.js +0 -10
- package/dist/assets/mcp-marketplace-page-sH7VptN_.js +0 -1
- package/dist/assets/model-config-page-Bcm6-pCX.js +0 -1
- package/dist/assets/navigation-link-BAQjgx2F.js +0 -3
- package/dist/assets/packet-7NZHBO7P-BbrI0ZlN.js +0 -1
- package/dist/assets/panel-app-i18n-catalog.config-p3qAY_Eq.js +0 -1
- package/dist/assets/panelStandalone-By-6dDXS.js +0 -2
- package/dist/assets/pie-RZYD4A2V-B7zE1ZIr.js +0 -1
- package/dist/assets/plus-LA8-jpxP.js +0 -1
- package/dist/assets/popover-NkrFlWHp.js +0 -1
- package/dist/assets/privacy-settings-page-B1sHLAc1.js +0 -1
- package/dist/assets/projects-Voql-cvx.js +0 -1
- package/dist/assets/provider-models-hrHMcHqg.js +0 -1
- package/dist/assets/provider-scoped-model-input-BQsugx1v.js +0 -1
- package/dist/assets/providers-config-page-BDEdHJbw.js +0 -1
- package/dist/assets/pwa-CzqfYjFx.js +0 -1
- package/dist/assets/radar-I7S5WNFK-1X_q11Ed.js +0 -1
- package/dist/assets/railroad-3IZDKUUU-CIXnuFyE.js +0 -1
- package/dist/assets/railroad-abnf-AHOZXSZD-D6ImKl2r.js +0 -1
- package/dist/assets/railroad-ebnf-EBAXGLYW-2j9d3twU.js +0 -1
- package/dist/assets/railroad-peg-LSFZ7HO6-DMVaJGbm.js +0 -1
- package/dist/assets/remote-BekqL5nA.js +0 -1
- package/dist/assets/runtime-config-page-BH9uF4u_.js +0 -1
- package/dist/assets/search-CUe41wjm.js +0 -1
- package/dist/assets/search-config-page-DWKlMHgH.js +0 -1
- package/dist/assets/secrets-config-page-DiQL088Y.js +0 -3
- package/dist/assets/security-config-DmTDKKY4.js +0 -1
- package/dist/assets/select-CG5YWnwe.js +0 -1
- package/dist/assets/service-apps-panel-CEnyYsQp.js +0 -1
- package/dist/assets/skeleton-Drvn83YW.js +0 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-OlIMT57r.js +0 -1
- package/dist/assets/swimlanesDiagram-G3AALYLV-sLThrh07.js +0 -8
- package/dist/assets/tabs-BuE0qKMh.js +0 -1
- package/dist/assets/tag-chip-B1AYPOKL.js +0 -1
- package/dist/assets/theme-provider-DzvAi3pe.js +0 -1
- package/dist/assets/tooltip-DYcuWhuP.js +0 -1
- package/dist/assets/trash-2-BPPYt2NV.js +0 -1
- package/dist/assets/treeView-QDETBFTQ-CCFyazDE.js +0 -1
- package/dist/assets/treemap-6X3UGDF4-D6wvq1Hz.js +0 -1
- package/dist/assets/use-config-BEdbtpD4.js +0 -1
- package/dist/assets/use-panel-app-scroll-restoration-ZnicIfo3.js +0 -1
- package/dist/assets/use-viewport-layout-BS18drMT.js +0 -1
- package/dist/assets/utils-CBZPzC_b.js +0 -8
- package/dist/assets/wardley-OPB4EBWU-BRzaRyFf.js +0 -1
- package/dist/assets/x-DdXOqLnX.js +0 -1
- package/src/features/panel-apps/components/__tests__/panel-app-main-sidebar-nav.test.tsx +0 -219
- package/src/features/panel-apps/components/panel-app-main-sidebar-nav.tsx +0 -258
- package/src/shared/components/doc-browser/utils/doc-browser-floating-panel.utils.ts +0 -83
- /package/dist/assets/{array-D0DyKZdT.js → array-B0sEvCP9.js} +0 -0
- /package/dist/assets/{chunk-KEIR6QF5-CuZFOa6q.js → chunk-KEIR6QF5-BeO7fxDQ.js} +0 -0
- /package/dist/assets/{chunk-Y2CYZVJY-Frut-1TF.js → chunk-Y2CYZVJY-JQfgEV36.js} +0 -0
- /package/dist/assets/{config-hints-B_C9DAp5.js → config-hints-D3OuwoEY.js} +0 -0
- /package/dist/assets/{cytoscape.esm-BibuhnZD.js → cytoscape.esm-CzJ9uXgi.js} +0 -0
- /package/dist/assets/{defaultLocale-q7sRUXPc.js → defaultLocale-USmzX3VG.js} +0 -0
- /package/dist/assets/{dist-DhMddrrH.js → dist-BYF6XVna.js} +0 -0
- /package/dist/assets/{graphlib-BM63WsW3.js → graphlib-DEFMkHdW.js} +0 -0
- /package/dist/assets/{host-capabilities-B107nwS3.js → host-capabilities-C0MmWd3M.js} +0 -0
- /package/dist/assets/{init-CRMkf9sL.js → init-04ErALoz.js} +0 -0
- /package/dist/assets/{jszip.min-6thm2J_a.js → jszip.min-BnQ5NRy2.js} +0 -0
- /package/dist/assets/{katex-B26hhTOT.js → katex-CsAM73R9.js} +0 -0
- /package/dist/assets/{middleware-0o3JF3tS.js → middleware-CAXxl-af.js} +0 -0
- /package/dist/assets/{panel-app-B39rJPj8.js → panel-app-2EACRB8p.js} +0 -0
- /package/dist/assets/{path-BFMmafCM.js → path-CzxQ9n2G.js} +0 -0
- /package/dist/assets/{rough.esm-5Tjchx1D.js → rough.esm-pT9fdsW3.js} +0 -0
- /package/dist/assets/{xlsx-BC8ibjXK.js → xlsx-BRpCSiE4.js} +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ChatResourceLinkProvider } from '@nextclaw/agent-chat-ui';
|
|
2
|
+
import { PageResourceIcon } from '@/features/right-panel-resources';
|
|
3
|
+
import { usePageResourceActions } from '@/features/right-panel-resources';
|
|
4
|
+
import { pageResourceFromTab } from '@/features/right-panel-resources';
|
|
5
|
+
import { PAGE_RESOURCE_RENDERERS } from '@/app/configs/page-resource-renderers.config';
|
|
6
|
+
import { useEffect } from "react";
|
|
7
|
+
import { useLocation } from "react-router-dom";
|
|
4
8
|
import {
|
|
5
9
|
DocBrowserProvider,
|
|
6
10
|
useDocBrowser,
|
|
@@ -10,30 +14,21 @@ import { useI18n } from "@/app/components/i18n-provider";
|
|
|
10
14
|
import { useViewportLayout } from "@/app/hooks/use-viewport-layout";
|
|
11
15
|
import { DesktopAppShell, getDesktopHostPlatform } from "@/platforms/desktop";
|
|
12
16
|
import { MobileAppShell } from "@/platforms/mobile";
|
|
13
|
-
import { PANEL_APPS_DOC_BROWSER_RENDERERS } from "@/features/panel-apps";
|
|
14
|
-
import { MARKETPLACE_DETAIL_DOC_BROWSER_RENDERERS } from "@/features/marketplace";
|
|
15
17
|
import {
|
|
16
18
|
SideDock,
|
|
17
19
|
type SideDockManager,
|
|
18
20
|
useSideDockStore,
|
|
19
21
|
} from "@/features/side-dock";
|
|
20
22
|
import { getPresenter } from "@/app/presenters/app.presenter";
|
|
21
|
-
import { CHAT_DRAFT_SESSION_PATH } from "@/features/chat";
|
|
22
|
-
import { parseSessionKeyFromRoute } from "@/features/chat/features/session/utils/chat-session-route.utils";
|
|
23
|
-
import { createChatUiResourceReferenceFromTab } from "@/features/right-panel-resources/utils/right-panel-resource-uri.utils";
|
|
24
23
|
import { resolveUiDocumentTitle } from "@/shared/lib/ui-document-title";
|
|
25
24
|
import type { DocBrowserDockControls } from "@/shared/components/doc-browser/doc-browser-context";
|
|
26
25
|
import type { DocBrowserTabMenuGroupsResolver } from "@/shared/components/doc-browser/doc-browser";
|
|
27
|
-
import { t } from "@/shared/lib/i18n";
|
|
28
26
|
|
|
29
27
|
interface AppLayoutProps {
|
|
30
28
|
children: React.ReactNode;
|
|
31
29
|
}
|
|
32
30
|
|
|
33
|
-
const
|
|
34
|
-
...PANEL_APPS_DOC_BROWSER_RENDERERS,
|
|
35
|
-
...MARKETPLACE_DETAIL_DOC_BROWSER_RENDERERS,
|
|
36
|
-
};
|
|
31
|
+
const renderResourceIcon = (uri: string) => <PageResourceIcon uri={uri} />;
|
|
37
32
|
|
|
38
33
|
function AppLayoutInner({
|
|
39
34
|
children,
|
|
@@ -42,8 +37,6 @@ function AppLayoutInner({
|
|
|
42
37
|
const { isOpen, mode } = useDocBrowser();
|
|
43
38
|
useDocLinkInterceptor();
|
|
44
39
|
const { pathname } = useLocation();
|
|
45
|
-
const navigate = useNavigate();
|
|
46
|
-
const presenter = getPresenter();
|
|
47
40
|
const { language } = useI18n();
|
|
48
41
|
const { isMobile } = useViewportLayout();
|
|
49
42
|
const desktopHostPlatform = getDesktopHostPlatform();
|
|
@@ -54,32 +47,8 @@ function AppLayoutInner({
|
|
|
54
47
|
pinTab: sideDockManager.pinTab,
|
|
55
48
|
unpinTab: sideDockManager.unpinTab,
|
|
56
49
|
};
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
if (!reference) return undefined;
|
|
60
|
-
return [{
|
|
61
|
-
key: "chat",
|
|
62
|
-
items: [{
|
|
63
|
-
key: "add-to-chat",
|
|
64
|
-
icon: <MessageSquarePlus className="h-4 w-4" />,
|
|
65
|
-
label: t("docBrowserAddToChat"),
|
|
66
|
-
restoreFocus: false,
|
|
67
|
-
onSelect: () => {
|
|
68
|
-
const isChatRoute = pathname === "/chat" || pathname.startsWith("/chat/");
|
|
69
|
-
const routeSessionKey = pathname === "/chat"
|
|
70
|
-
? null
|
|
71
|
-
: parseSessionKeyFromRoute(pathname.slice("/chat/".length));
|
|
72
|
-
presenter.chatComposerIntentManager.requestUiResourceReference({
|
|
73
|
-
targetSessionKey: isChatRoute ? routeSessionKey : null,
|
|
74
|
-
reference,
|
|
75
|
-
});
|
|
76
|
-
if (!isChatRoute) {
|
|
77
|
-
navigate(CHAT_DRAFT_SESSION_PATH);
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
}],
|
|
81
|
-
}];
|
|
82
|
-
}, [navigate, pathname, presenter]);
|
|
50
|
+
const pageActions = usePageResourceActions();
|
|
51
|
+
const getDocBrowserTabMenuGroups: DocBrowserTabMenuGroupsResolver = (tab) => pageActions(pageResourceFromTab(tab), 'global');
|
|
83
52
|
|
|
84
53
|
useEffect(() => {
|
|
85
54
|
document.title = resolveUiDocumentTitle(pathname, window.location);
|
|
@@ -91,7 +60,7 @@ function AppLayoutInner({
|
|
|
91
60
|
pathname={pathname}
|
|
92
61
|
isDocBrowserOpen={isOpen}
|
|
93
62
|
docBrowserDockControls={docBrowserDockControls}
|
|
94
|
-
docBrowserRenderers={
|
|
63
|
+
docBrowserRenderers={PAGE_RESOURCE_RENDERERS}
|
|
95
64
|
docBrowserTabMenuGroups={getDocBrowserTabMenuGroups}
|
|
96
65
|
topbarLeadingInset={
|
|
97
66
|
desktopHostPlatform === "darwin" ? "4.75rem" : undefined
|
|
@@ -109,9 +78,12 @@ function AppLayoutInner({
|
|
|
109
78
|
isDocBrowserOpen={isOpen}
|
|
110
79
|
docBrowserMode={mode}
|
|
111
80
|
docBrowserDockControls={docBrowserDockControls}
|
|
112
|
-
docBrowserRenderers={
|
|
81
|
+
docBrowserRenderers={PAGE_RESOURCE_RENDERERS}
|
|
113
82
|
docBrowserTabMenuGroups={getDocBrowserTabMenuGroups}
|
|
114
|
-
sideDock={isSideDockVisible ? <SideDock manager={sideDockManager}
|
|
83
|
+
sideDock={isSideDockVisible ? <SideDock manager={sideDockManager} getItemMenuGroups={(item) => {
|
|
84
|
+
const page = getPresenter().pageResourceManager.resolve(item.target.type === 'right-panel-resource' ? item.target.uri : item.target.url);
|
|
85
|
+
return page ? pageActions(page) : [];
|
|
86
|
+
}} /> : null}
|
|
115
87
|
>
|
|
116
88
|
{children}
|
|
117
89
|
</DesktopAppShell>
|
|
@@ -123,9 +95,9 @@ export function AppLayout({ children }: AppLayoutProps) {
|
|
|
123
95
|
|
|
124
96
|
return (
|
|
125
97
|
<DocBrowserProvider manager={presenter.docBrowserManager}>
|
|
126
|
-
<AppLayoutInner sideDockManager={presenter.sideDockManager}>
|
|
98
|
+
<ChatResourceLinkProvider renderIcon={renderResourceIcon}><AppLayoutInner sideDockManager={presenter.sideDockManager}>
|
|
127
99
|
{children}
|
|
128
100
|
</AppLayoutInner>
|
|
129
|
-
</DocBrowserProvider>
|
|
101
|
+
</ChatResourceLinkProvider></DocBrowserProvider>
|
|
130
102
|
);
|
|
131
103
|
}
|
|
@@ -7,6 +7,10 @@ import {
|
|
|
7
7
|
} from "@/app/configs/app-navigation.config";
|
|
8
8
|
|
|
9
9
|
describe("panel app main navigation", () => {
|
|
10
|
+
it("labels resource pages as resources, not settings", () => {
|
|
11
|
+
expect(isMainWorkspaceRoute("/resource")).toBe(true);
|
|
12
|
+
expect(resolveMobileRouteMeta("/resource", key => key).title).toBe("resourcePageTitle");
|
|
13
|
+
});
|
|
10
14
|
it("keeps panel app routes inside the main workspace shell", () => {
|
|
11
15
|
expect(isMainWorkspaceRoute("/apps/panel/rust-todo")).toBe(true);
|
|
12
16
|
expect(isMainWorkspaceRoute("/apps")).toBe(false);
|
|
@@ -52,6 +52,7 @@ export function matchesRouteTarget(pathname: string, target: string): boolean {
|
|
|
52
52
|
export function isMainWorkspaceRoute(pathname: string): boolean {
|
|
53
53
|
const normalized = pathname.toLowerCase();
|
|
54
54
|
return (
|
|
55
|
+
normalized === "/resource" ||
|
|
55
56
|
normalized === "/chat" ||
|
|
56
57
|
normalized.startsWith("/chat/") ||
|
|
57
58
|
normalized === "/inbox" ||
|
|
@@ -260,6 +261,7 @@ export function resolveMobileRouteMeta(
|
|
|
260
261
|
} {
|
|
261
262
|
const normalized = pathname.toLowerCase();
|
|
262
263
|
const settingsItems = getSettingsNavItems(translate);
|
|
264
|
+
if (normalized === "/resource") return { title: translate("resourcePageTitle"), backTarget: null, backLabel: null };
|
|
263
265
|
|
|
264
266
|
if (isChatSessionDetailRoute(normalized)) {
|
|
265
267
|
return {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SYSTEM_OBJECT_RESOURCE_RENDERERS } from "@/features/right-panel-resources";
|
|
2
|
+
import { WORKSPACE_FILE_PANEL_RENDERERS } from "@/features/right-panel-resources";
|
|
3
|
+
import { CHAT_SESSION_PANEL_RENDERERS } from "@/features/chat";
|
|
4
|
+
import { PANEL_APPS_DOC_BROWSER_RENDERERS } from "@/features/panel-apps";
|
|
5
|
+
import { MARKETPLACE_DETAIL_DOC_BROWSER_RENDERERS } from "@/features/marketplace";
|
|
6
|
+
|
|
7
|
+
export const PAGE_RESOURCE_RENDERERS = {
|
|
8
|
+
...SYSTEM_OBJECT_RESOURCE_RENDERERS,
|
|
9
|
+
...WORKSPACE_FILE_PANEL_RENDERERS,
|
|
10
|
+
...CHAT_SESSION_PANEL_RENDERERS,
|
|
11
|
+
...PANEL_APPS_DOC_BROWSER_RENDERERS,
|
|
12
|
+
...MARKETPLACE_DETAIL_DOC_BROWSER_RENDERERS,
|
|
13
|
+
};
|
package/src/app/index.tsx
CHANGED
|
@@ -11,6 +11,7 @@ import { SIDEBAR_RAIL_WIDTH_PX } from "@/app/components/layout/sidebar-rail.styl
|
|
|
11
11
|
import { SettingsEntryPage } from "@/app/components/layout/settings-entry-page";
|
|
12
12
|
import { LoginPage } from "@/components/auth/login-page";
|
|
13
13
|
import { ChatPage } from "@/components/chat/chat-page";
|
|
14
|
+
import { ChatRuntimeProvider } from "@/features/chat";
|
|
14
15
|
import { loadAccountPanel } from "@/features/account";
|
|
15
16
|
import { InboxRuntime } from "@/features/inbox";
|
|
16
17
|
import { PanelAppServiceActionAuthorizationDialog } from "@/features/panel-apps";
|
|
@@ -117,6 +118,7 @@ function createLazyElement(element: ReactElement): ReactElement {
|
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
const protectedRouteDefinitions: ProtectedRouteDefinition[] = [
|
|
121
|
+
{ path: '/resource', element: createLazyElement(<ChatPage view="resource" />) },
|
|
120
122
|
{
|
|
121
123
|
path: "/projects/:projectId/:tab",
|
|
122
124
|
element: createLazyElement(<ChatPage view="projects" />),
|
|
@@ -274,6 +276,7 @@ function ProtectedApp() {
|
|
|
274
276
|
|
|
275
277
|
return (
|
|
276
278
|
<AppPresenterProvider>
|
|
279
|
+
<ChatRuntimeProvider>
|
|
277
280
|
<AppNotificationRuntime />
|
|
278
281
|
<InboxRuntime />
|
|
279
282
|
<AppLayout>
|
|
@@ -284,6 +287,7 @@ function ProtectedApp() {
|
|
|
284
287
|
</Suspense>
|
|
285
288
|
<PanelAppServiceActionAuthorizationDialog />
|
|
286
289
|
<DesktopAuthorizationDialog />
|
|
290
|
+
</ChatRuntimeProvider>
|
|
287
291
|
</AppPresenterProvider>
|
|
288
292
|
);
|
|
289
293
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PageResourceManager } from '@/features/right-panel-resources';
|
|
1
2
|
import { AccountManager } from '@/features/account';
|
|
2
3
|
import { viewportLayoutManager } from '@/app/managers/viewport-layout.manager';
|
|
3
4
|
import {
|
|
@@ -15,14 +16,17 @@ import { RemoteAccessManager } from '@/features/remote';
|
|
|
15
16
|
import { SideDockManager } from '@/features/side-dock';
|
|
16
17
|
import { DocBrowserManager } from '@/shared/components/doc-browser/managers/doc-browser.manager';
|
|
17
18
|
import { useDocBrowserStore } from '@/shared/components/doc-browser/stores/doc-browser.store';
|
|
19
|
+
import { GLOBAL_WORKBENCH_SURFACE } from '@/shared/components/workbench/types/workbench-surface.types';
|
|
20
|
+
import { workbenchSurfaceManager } from '@/shared/components/workbench/managers/workbench-surface.manager';
|
|
18
21
|
|
|
19
22
|
type ChatThreadSnapshot = ReturnType<typeof useChatThreadStore.getState>['snapshot'];
|
|
20
23
|
|
|
21
24
|
function isChatWorkspacePanelOpen(snapshot: ChatThreadSnapshot): boolean {
|
|
22
|
-
return snapshot.activeWorkspacePanelKind != null;
|
|
25
|
+
return snapshot.activeWorkspacePanelKind != null && !snapshot.workspacePanelHidden;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export class AppPresenter {
|
|
29
|
+
workbenchSurfaceManager = workbenchSurfaceManager;
|
|
26
30
|
notificationManager = new AppNotificationManager();
|
|
27
31
|
inboxManager = new InboxManager();
|
|
28
32
|
chatCompletionNotificationManager = new ChatCompletionNotificationManager(
|
|
@@ -34,15 +38,22 @@ export class AppPresenter {
|
|
|
34
38
|
const docBrowser = useDocBrowserStore.getState().snapshot;
|
|
35
39
|
const chatThread = useChatThreadStore.getState().snapshot;
|
|
36
40
|
viewportLayoutManager.collapseSidebarForDenseRightPanels({
|
|
37
|
-
isDocBrowserDocked:
|
|
41
|
+
isDocBrowserDocked: this.workbenchSurfaceManager.get(GLOBAL_WORKBENCH_SURFACE).placement === 'docked',
|
|
38
42
|
isDocBrowserOpen: docBrowser.isOpen,
|
|
39
43
|
isWorkspacePanelOpen: isChatWorkspacePanelOpen(chatThread),
|
|
40
44
|
});
|
|
41
45
|
};
|
|
46
|
+
notifyWorkspacePanelOpened = () => {
|
|
47
|
+
const parentKey = useChatThreadStore.getState().snapshot.workspacePanelParentKey;
|
|
48
|
+
this.workbenchSurfaceManager.restore(`session-workspace:${parentKey ?? 'draft'}`);
|
|
49
|
+
this.notifyRightPanelOpened();
|
|
50
|
+
};
|
|
42
51
|
docBrowserManager = new DocBrowserManager(
|
|
52
|
+
this.workbenchSurfaceManager,
|
|
43
53
|
this.rightPanelResourceRouteResolver,
|
|
44
54
|
this.notifyRightPanelOpened,
|
|
45
55
|
);
|
|
56
|
+
pageResourceManager = new PageResourceManager(this);
|
|
46
57
|
appPackageOperationSettlementManager = new AppPackageOperationSettlementManager(
|
|
47
58
|
this.docBrowserManager,
|
|
48
59
|
);
|
|
@@ -469,3 +469,7 @@ describe("AgentsPage", () => {
|
|
|
469
469
|
expect(useChatThreadStore.getState().snapshot.sessionKey).toBeNull();
|
|
470
470
|
});
|
|
471
471
|
});
|
|
472
|
+
|
|
473
|
+
vi.mock("@/features/right-panel-resources/hooks/use-page-resource-actions", () => ({ usePageResourceActions: () => () => [] }));
|
|
474
|
+
|
|
475
|
+
vi.mock("@/features/right-panel-resources", () => ({ PageResourceActionsMenu: () => null, PageResourceActionItems: () => null, pageResourceFromSystemObject: vi.fn() }));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PageResourceActionsMenu } from '@/features/right-panel-resources';
|
|
2
|
+
import { pageResourceFromSystemObject } from '@/features/right-panel-resources';
|
|
1
3
|
import type { ReactNode } from "react";
|
|
2
4
|
import type { AgentProfileView, ConfigView } from "@/shared/lib/api";
|
|
3
5
|
import { normalizeSessionType, resolveSessionTypeLabel } from "@/features/chat";
|
|
@@ -84,6 +86,7 @@ export function AgentDetailsDialog({
|
|
|
84
86
|
<DialogTitle className="truncate text-base">
|
|
85
87
|
{agent.displayName?.trim() || agent.id}
|
|
86
88
|
</DialogTitle>
|
|
89
|
+
<PageResourceActionsMenu page={pageResourceFromSystemObject('agent', agent.id, agent.displayName || agent.id)} />
|
|
87
90
|
<DialogDescription className="truncate text-xs">
|
|
88
91
|
@{agent.id}
|
|
89
92
|
</DialogDescription>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PageResourceActionItems } from '@/features/right-panel-resources';
|
|
2
|
+
import { pageResourceFromSystemObject } from '@/features/right-panel-resources';
|
|
1
3
|
import { useMemo, useState } from "react";
|
|
2
4
|
import {
|
|
3
5
|
useDeleteAgent,
|
|
@@ -37,7 +39,7 @@ import {
|
|
|
37
39
|
Eye,
|
|
38
40
|
House,
|
|
39
41
|
MessageCircle,
|
|
40
|
-
|
|
42
|
+
MoreVertical,
|
|
41
43
|
Pencil,
|
|
42
44
|
Plus,
|
|
43
45
|
ShieldCheck,
|
|
@@ -189,10 +191,12 @@ function AgentListCard(props: {
|
|
|
189
191
|
aria-label={t("chatSessionMoreActions")}
|
|
190
192
|
title={t("chatSessionMoreActions")}
|
|
191
193
|
>
|
|
192
|
-
<
|
|
194
|
+
<MoreVertical className="h-4 w-4" />
|
|
193
195
|
</Button>
|
|
194
196
|
</PopoverTrigger>
|
|
195
|
-
<PopoverContent align="end" className="w-
|
|
197
|
+
<PopoverContent align="end" className="w-56 p-1.5">
|
|
198
|
+
<PageResourceActionItems page={pageResourceFromSystemObject('agent', agent.id, agent.displayName || agent.id)} />
|
|
199
|
+
<div className="my-1 border-t border-border" />
|
|
196
200
|
<AgentActionMenuItem
|
|
197
201
|
icon={Eye}
|
|
198
202
|
label={t("agentsViewDetailsAction")}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
CalendarDays,
|
|
8
8
|
CheckSquare2,
|
|
9
9
|
ChevronRight,
|
|
10
|
-
|
|
10
|
+
MoreVertical,
|
|
11
11
|
NotebookText,
|
|
12
12
|
RefreshCw,
|
|
13
13
|
RotateCcw,
|
|
@@ -150,7 +150,7 @@ export function AppPackageCard({
|
|
|
150
150
|
disabled={pending}
|
|
151
151
|
className="rounded-full p-2 text-muted-foreground transition-colors hover:bg-[var(--interaction-hover)] hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border disabled:opacity-50"
|
|
152
152
|
>
|
|
153
|
-
<
|
|
153
|
+
<MoreVertical className="h-4 w-4" />
|
|
154
154
|
</button>
|
|
155
155
|
</PopoverTrigger>
|
|
156
156
|
<PopoverContent
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { scrollRestorationManager } from '@/shared/lib/navigation-history';
|
|
1
2
|
import {
|
|
2
3
|
useCallback,
|
|
4
|
+
useMemo,
|
|
3
5
|
useRef,
|
|
4
6
|
type ReactNode,
|
|
5
7
|
type UIEvent,
|
|
@@ -31,6 +33,7 @@ type ChatConversationContentProps = {
|
|
|
31
33
|
messages: readonly NcpMessage[];
|
|
32
34
|
messageDetailStates?: Readonly<Record<string, SessionMessageToolPayloadState>>;
|
|
33
35
|
sessionKey: string | null;
|
|
36
|
+
resourceWorkingDir?: string | null;
|
|
34
37
|
showWelcome: boolean;
|
|
35
38
|
onLoadPreviousMessages: () => Promise<void>;
|
|
36
39
|
onLoadMessageDetails?: (messageId: string) => Promise<void>;
|
|
@@ -49,6 +52,26 @@ function createConversationScrollRestorationKey(
|
|
|
49
52
|
return sessionKey && !showWelcome ? `chat-conversation:${sessionKey}` : null;
|
|
50
53
|
}
|
|
51
54
|
|
|
55
|
+
function ConversationHistoryStatus({ historyError, isLoadingPreviousMessages, onLoadPreviousMessages }: Pick<ChatConversationContentProps, 'historyError' | 'isLoadingPreviousMessages' | 'onLoadPreviousMessages'>) {
|
|
56
|
+
return <>{historyError ? (
|
|
57
|
+
<div role="alert" className="flex h-8 justify-center">
|
|
58
|
+
<button
|
|
59
|
+
type="button"
|
|
60
|
+
aria-label={t("chatHistoryRetry")}
|
|
61
|
+
className="rounded px-1.5 text-xs text-foreground underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
62
|
+
onClick={() => void onLoadPreviousMessages()}
|
|
63
|
+
>
|
|
64
|
+
{t("chatHistoryLoadFailed")} · {t("chatHistoryRetry")}
|
|
65
|
+
</button>
|
|
66
|
+
</div>
|
|
67
|
+
) : isLoadingPreviousMessages ? (
|
|
68
|
+
<span
|
|
69
|
+
aria-hidden="true"
|
|
70
|
+
className="pointer-events-none absolute left-1/2 top-[13px] block h-1.5 w-1.5 -translate-x-1/2 animate-pulse rounded-full bg-muted-foreground/50 sm:top-[17px]"
|
|
71
|
+
/>
|
|
72
|
+
) : null}</>;
|
|
73
|
+
}
|
|
74
|
+
|
|
52
75
|
export function ChatConversationContent({
|
|
53
76
|
bottomSlot,
|
|
54
77
|
canContinue = false,
|
|
@@ -62,6 +85,7 @@ export function ChatConversationContent({
|
|
|
62
85
|
messages,
|
|
63
86
|
messageDetailStates,
|
|
64
87
|
sessionKey,
|
|
88
|
+
resourceWorkingDir,
|
|
65
89
|
showWelcome,
|
|
66
90
|
onLoadPreviousMessages,
|
|
67
91
|
onLoadMessageDetails,
|
|
@@ -72,16 +96,19 @@ export function ChatConversationContent({
|
|
|
72
96
|
const threadRef = useRef<HTMLDivElement>(null);
|
|
73
97
|
const contentRef = useRef<HTMLDivElement>(null);
|
|
74
98
|
const hasConversationContent = messages.length > 0 || isSending;
|
|
99
|
+
const readingKey = createConversationScrollRestorationKey(sessionKey, showWelcome);
|
|
100
|
+
const initialReadingPosition = useMemo(() => readingKey ? scrollRestorationManager.read(readingKey) : null, [readingKey]);
|
|
75
101
|
const scrollRestoration = useScrollRestoration({
|
|
76
|
-
restorationKey:
|
|
102
|
+
restorationKey: readingKey,
|
|
77
103
|
scrollRef: threadRef,
|
|
78
|
-
isEnabled: !showWelcome,
|
|
104
|
+
isEnabled: !showWelcome && !isHistoryLoading,
|
|
79
105
|
});
|
|
80
106
|
const { onScroll: onScrollPositionSave } = scrollRestoration;
|
|
81
107
|
const { isAtBottom, onScroll, scrollToBottom } = useStickyBottomScroll({
|
|
82
108
|
contentRef,
|
|
83
109
|
scrollRef: threadRef,
|
|
84
110
|
resetKey: sessionKey,
|
|
111
|
+
initialScrollTop: initialReadingPosition?.y,
|
|
85
112
|
isLoading: isHistoryLoading,
|
|
86
113
|
hasContent: hasConversationContent,
|
|
87
114
|
contentVersion: messages[messages.length - 1] ?? isSending,
|
|
@@ -113,6 +140,8 @@ export function ChatConversationContent({
|
|
|
113
140
|
ref={threadRef}
|
|
114
141
|
onScroll={handleScroll}
|
|
115
142
|
data-chat-scroll-container="true"
|
|
143
|
+
data-resource-session={sessionKey ?? undefined}
|
|
144
|
+
data-resource-working-dir={resourceWorkingDir ?? undefined}
|
|
116
145
|
className={showWelcome ? "h-full overflow-y-auto custom-scrollbar" : `h-full overflow-y-auto custom-scrollbar ${SCROLL_BOTTOM_EDGE_FADE_CLASS}`}
|
|
117
146
|
style={{ overflowAnchor: "none" }}
|
|
118
147
|
>
|
|
@@ -122,23 +151,7 @@ export function ChatConversationContent({
|
|
|
122
151
|
<div ref={contentRef} className="pb-7">
|
|
123
152
|
{hasConversationContent ? (
|
|
124
153
|
<ChatConversationTrack className="relative py-4 sm:py-5">
|
|
125
|
-
{historyError
|
|
126
|
-
<div role="alert" className="flex h-8 justify-center">
|
|
127
|
-
<button
|
|
128
|
-
type="button"
|
|
129
|
-
aria-label={t("chatHistoryRetry")}
|
|
130
|
-
className="rounded px-1.5 text-xs text-foreground underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
131
|
-
onClick={() => void onLoadPreviousMessages()}
|
|
132
|
-
>
|
|
133
|
-
{t("chatHistoryLoadFailed")} · {t("chatHistoryRetry")}
|
|
134
|
-
</button>
|
|
135
|
-
</div>
|
|
136
|
-
) : isLoadingPreviousMessages ? (
|
|
137
|
-
<span
|
|
138
|
-
aria-hidden="true"
|
|
139
|
-
className="pointer-events-none absolute left-1/2 top-[13px] block h-1.5 w-1.5 -translate-x-1/2 animate-pulse rounded-full bg-muted-foreground/50 sm:top-[17px]"
|
|
140
|
-
/>
|
|
141
|
-
) : null}
|
|
154
|
+
<ConversationHistoryStatus historyError={historyError} isLoadingPreviousMessages={isLoadingPreviousMessages} onLoadPreviousMessages={onLoadPreviousMessages} />
|
|
142
155
|
<ChatMessageListContainer
|
|
143
156
|
canContinue={canContinue}
|
|
144
157
|
messages={messages}
|
|
@@ -165,6 +165,7 @@ export function ChatConversationHeaderSection({
|
|
|
165
165
|
) : null}
|
|
166
166
|
<ChatSessionHeaderActions
|
|
167
167
|
sessionKey={sessionKey}
|
|
168
|
+
sessionTitle={sessionHeaderTitle}
|
|
168
169
|
canDeleteSession={canDeleteSession}
|
|
169
170
|
isDeletePending={snapshot.isDeletePending}
|
|
170
171
|
currentPath={
|
|
@@ -80,7 +80,7 @@ export function ChatConversationHeader({
|
|
|
80
80
|
icon={<ArrowLeft className="h-4 w-4" />}
|
|
81
81
|
label={t("chat")}
|
|
82
82
|
onClick={onBackToList}
|
|
83
|
-
className="inline-flex h-
|
|
83
|
+
className="inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-[var(--interaction-hover)] hover:text-accent-foreground"
|
|
84
84
|
/>
|
|
85
85
|
) : null}
|
|
86
86
|
{leading}
|
|
@@ -22,9 +22,9 @@ export function ChatConversationPanel({
|
|
|
22
22
|
return (
|
|
23
23
|
<section
|
|
24
24
|
data-theme-surface="workspace"
|
|
25
|
-
className="relative flex-1 min-h-0 flex overflow-hidden bg-background"
|
|
25
|
+
className="relative flex-1 min-h-0 min-w-0 flex overflow-hidden bg-background"
|
|
26
26
|
>
|
|
27
|
-
<div className="flex min-h-0 flex-1 flex-col overflow-hidden">
|
|
27
|
+
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">
|
|
28
28
|
<ChatConversationParentBanner />
|
|
29
29
|
<ChatConversationHeaderSection
|
|
30
30
|
layoutMode={layoutMode}
|
|
@@ -44,6 +44,7 @@ export function ChatConversationWorkspaceSection({
|
|
|
44
44
|
return (
|
|
45
45
|
<ChatSessionWorkspacePanel
|
|
46
46
|
sessionKey={sessionKey}
|
|
47
|
+
hidden={snapshot.workspacePanelHidden === true}
|
|
47
48
|
childSessionTabs={sessionKey ? childSessionTabs : []}
|
|
48
49
|
activeChildSessionKey={snapshot.activeChildSessionKey ?? null}
|
|
49
50
|
activeSideChatDraft={activeSideChatDraft}
|
|
@@ -36,6 +36,7 @@ vi.mock("@/features/cron", () => ({
|
|
|
36
36
|
|
|
37
37
|
vi.mock("@/features/marketplace", () => ({
|
|
38
38
|
MarketplacePage: () => <div>Marketplace</div>,
|
|
39
|
+
MARKETPLACE_DETAIL_DOC_BROWSER_RENDERERS: {},
|
|
39
40
|
}));
|
|
40
41
|
|
|
41
42
|
vi.mock("@/features/projects", () => ({
|
|
@@ -45,7 +46,7 @@ vi.mock("@/features/projects", () => ({
|
|
|
45
46
|
describe("ChatPageLayout", () => {
|
|
46
47
|
it("uses the same canvas width for management pages", () => {
|
|
47
48
|
const agentsView = render(
|
|
48
|
-
<ChatPageLayout view="agents"
|
|
49
|
+
<ChatPageLayout view="agents" />,
|
|
49
50
|
);
|
|
50
51
|
const agentsCanvas = screen.getByText("Agents").parentElement;
|
|
51
52
|
|
|
@@ -53,14 +54,14 @@ describe("ChatPageLayout", () => {
|
|
|
53
54
|
agentsView.unmount();
|
|
54
55
|
|
|
55
56
|
const cronView = render(
|
|
56
|
-
<ChatPageLayout view="cron"
|
|
57
|
+
<ChatPageLayout view="cron" />,
|
|
57
58
|
);
|
|
58
59
|
const cronCanvas = screen.getByText("Cron").parentElement;
|
|
59
60
|
|
|
60
61
|
expect(cronCanvas?.className).toContain("max-w-[min(1180px,100%)]");
|
|
61
62
|
cronView.unmount();
|
|
62
63
|
|
|
63
|
-
render(<ChatPageLayout view="skills"
|
|
64
|
+
render(<ChatPageLayout view="skills" />);
|
|
64
65
|
const skillsCanvas = screen.getByText("Marketplace").parentElement;
|
|
65
66
|
|
|
66
67
|
expect(skillsCanvas?.className).toContain("max-w-[min(1180px,100%)]");
|
|
@@ -76,14 +77,12 @@ describe("ChatPageLayout", () => {
|
|
|
76
77
|
render(
|
|
77
78
|
<ChatPageLayout
|
|
78
79
|
view="chat"
|
|
79
|
-
confirmDialog={<div data-testid="confirm-dialog">Confirm</div>}
|
|
80
80
|
/>,
|
|
81
81
|
);
|
|
82
82
|
|
|
83
83
|
expect(screen.getByTestId("chat-mobile-shell")).toBeTruthy();
|
|
84
84
|
expect(screen.queryByTestId("desktop-chat-sidebar")).toBeNull();
|
|
85
85
|
expect(screen.queryByTestId("chat-conversation-panel")).toBeNull();
|
|
86
|
-
expect(screen.getByTestId("confirm-dialog")).toBeTruthy();
|
|
87
86
|
});
|
|
88
87
|
|
|
89
88
|
it("keeps the chat sidebar while rendering the project home in the workspace", async () => {
|
|
@@ -93,7 +92,7 @@ describe("ChatPageLayout", () => {
|
|
|
93
92
|
isDesktop: true,
|
|
94
93
|
});
|
|
95
94
|
|
|
96
|
-
render(<ChatPageLayout view="projects"
|
|
95
|
+
render(<ChatPageLayout view="projects" />);
|
|
97
96
|
|
|
98
97
|
expect(screen.getByTestId("desktop-chat-sidebar")).toBeTruthy();
|
|
99
98
|
const projectHome = await screen.findByText("Project Home");
|
|
@@ -103,3 +102,5 @@ describe("ChatPageLayout", () => {
|
|
|
103
102
|
expect(screen.queryByTestId("chat-conversation-panel")).toBeNull();
|
|
104
103
|
});
|
|
105
104
|
});
|
|
105
|
+
|
|
106
|
+
vi.mock("@/features/right-panel-resources/components/current-page-actions", () => ({ CurrentPageActions: () => null }));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { render, screen } from "@testing-library/react";
|
|
2
|
+
import userEvent from '@testing-library/user-event';
|
|
2
3
|
import { describe, expect, it, vi } from "vitest";
|
|
3
4
|
import {
|
|
4
5
|
ChatSidebarDesktopToolbar,
|
|
@@ -47,17 +48,18 @@ describe("ChatSidebarToolbar", () => {
|
|
|
47
48
|
).toBe("chat-search");
|
|
48
49
|
});
|
|
49
50
|
|
|
50
|
-
it(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
expect(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
expect(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
).
|
|
51
|
+
it('reveals mobile search on demand and clears the filter when closed', async () => {
|
|
52
|
+
const user = userEvent.setup();
|
|
53
|
+
const onQueryChange = vi.fn();
|
|
54
|
+
render(<ChatSidebarMobileToolbar {...toolbarProps} onQueryChange={onQueryChange} isProjectFirstView={false} onSelectMode={vi.fn()} onAddProject={vi.fn()} />);
|
|
55
|
+
expect(screen.queryByRole('textbox')).toBeNull();
|
|
56
|
+
await user.click(screen.getByRole('button', { name: 'Search conversations...' }));
|
|
57
|
+
const search = screen.getByRole('textbox');
|
|
58
|
+
expect(document.activeElement).toBe(search);
|
|
59
|
+
await user.type(search, 'a');
|
|
60
|
+
expect(onQueryChange).toHaveBeenLastCalledWith('a');
|
|
61
|
+
await user.click(screen.getByRole('button', { name: 'Close search' }));
|
|
62
|
+
expect(onQueryChange).toHaveBeenLastCalledWith('');
|
|
63
|
+
expect(screen.queryByRole('textbox')).toBeNull();
|
|
62
64
|
});
|
|
63
65
|
});
|