@nextclaw/ui 0.26.4 → 0.27.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 +63 -0
- package/dist/.vite/manifest.json +1271 -1227
- package/dist/assets/{abnfDiagram-VRR7QNED-Dcw10Yt1.js → abnfDiagram-VRR7QNED-DmeCRAkd.js} +1 -1
- package/dist/assets/account-panel-BYxGT4m4.js +1 -0
- package/dist/assets/{aiden0z-pptx-renderer.es--oNqetPA.js → aiden0z-pptx-renderer.es-ChX5DHqP.js} +1 -1
- package/dist/assets/api-CG22BskB.js +20 -0
- package/dist/assets/app-presenter-provider-CJFjhVYI.js +28 -0
- package/dist/assets/app-presenter-provider-D3BuuOyZ.css +1 -0
- package/dist/assets/appearance-settings-page-BcXr0vHp.js +1 -0
- package/dist/assets/{arc-DBRedCax.js → arc-Cu6Ols44.js} +1 -1
- package/dist/assets/architecture-TIHT7OUA-CLjV_xu4.js +1 -0
- package/dist/assets/{architectureDiagram-ZJ3FMSHR-Dufhtuv-.js → architectureDiagram-ZJ3FMSHR-DrNB0eLE.js} +1 -1
- package/dist/assets/{blockDiagram-677ZJIJ3-BUk0vtJ7.js → blockDiagram-677ZJIJ3-08rHt6DJ.js} +1 -1
- package/dist/assets/{book-open-CmRdT3N1.js → book-open-ClbJmmxP.js} +1 -1
- package/dist/assets/{c4Diagram-LMCZKHZV-CxDcVE9p.js → c4Diagram-LMCZKHZV-CCVgRG-u.js} +1 -1
- package/dist/assets/{card-CdRBL1E0.js → card-BdC01NFF.js} +1 -1
- package/dist/assets/channel-BgpbPyEH.js +1 -0
- package/dist/assets/channels-list-page-BrIvJlop.js +8 -0
- package/dist/assets/chunk-2Q5K7J3B-DjhMPqAC.js +1 -0
- package/dist/assets/{chunk-32BRIVSS-DSF3KElA.js → chunk-32BRIVSS-BeCaI-JN.js} +1 -1
- package/dist/assets/{chunk-52WLFC77-Costxzr3.js → chunk-52WLFC77-ZXIcYPYs.js} +1 -1
- package/dist/assets/{chunk-5FCAYU7R-rhqzGGZo.js → chunk-5FCAYU7R-DDwTPcy8.js} +1 -1
- package/dist/assets/{chunk-5HE753X5-BsEsmIao.js → chunk-5HE753X5-WygrMYPL.js} +1 -1
- package/dist/assets/{chunk-5JV3BV7I-Dqw_DCoN.js → chunk-5JV3BV7I-o8T3KZgk.js} +1 -1
- package/dist/assets/{chunk-5TONJI2A-Cft82fp8.js → chunk-5TONJI2A-BKFbUT7J.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-DqNHn9Dl.js → chunk-5VM5RSS4-DYxCRV86.js} +1 -1
- package/dist/assets/{chunk-7BUUIJ7U-A5SBEMYY.js → chunk-7BUUIJ7U-CvSeJlKZ.js} +1 -1
- package/dist/assets/{chunk-BIQX33UG-1Ng3mTrH.js → chunk-BIQX33UG-BhH3RHCY.js} +1 -1
- package/dist/assets/{chunk-C7G6YPKG-DRJEy8ZI.js → chunk-C7G6YPKG-BTL0-xL3.js} +1 -1
- package/dist/assets/{chunk-CQNSW5MT-Bydv_J3J.js → chunk-CQNSW5MT-DWAU4QaD.js} +1 -1
- package/dist/assets/{chunk-CYSBUYHQ-HkMIg12u.js → chunk-CYSBUYHQ-B7ZBMXTx.js} +1 -1
- package/dist/assets/{chunk-EMLP6XTP-C5ndDvm3.js → chunk-EMLP6XTP-D92HvnHE.js} +1 -1
- package/dist/assets/{chunk-EX3LRPZG-DzeloZRo.js → chunk-EX3LRPZG-DfOGKwW8.js} +1 -1
- package/dist/assets/{chunk-FWX5IMBZ-n_2_CLTQ.js → chunk-FWX5IMBZ-DUuJUrXJ.js} +2 -2
- package/dist/assets/{chunk-HOUHSVGY-kx_slvu3.js → chunk-HOUHSVGY-i3MDyUY5.js} +1 -1
- package/dist/assets/{chunk-ICXQ74PX-sQLMURqL.js → chunk-ICXQ74PX-F_pmNX6t.js} +1 -1
- package/dist/assets/{chunk-JG7HCLWE-CMUn5Elc.js → chunk-JG7HCLWE-DygOelrU.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-Cra3s-Uk.js → chunk-JWPE2WC7-BpiZMeRl.js} +1 -1
- package/dist/assets/{chunk-MOJQB5TN-umcrg5Bi.js → chunk-MOJQB5TN-CV10sB1I.js} +1 -1
- package/dist/assets/{chunk-MOZMSUNE-BnljD1ig.js → chunk-MOZMSUNE-Cf1WZNm0.js} +1 -1
- package/dist/assets/{chunk-OGEWGWER-BXx5pQjU.js → chunk-OGEWGWER-DuSw54VR.js} +1 -1
- package/dist/assets/{chunk-OSBZ3O6U-D-1qfdWu.js → chunk-OSBZ3O6U-_rt_XKSZ.js} +1 -1
- package/dist/assets/{chunk-PUDLZKDR-DLzX78LC.js → chunk-PUDLZKDR-BFPaAGNW.js} +1 -1
- package/dist/assets/{chunk-Q4XR5HBZ-DTK-rtW6.js → chunk-Q4XR5HBZ-GE0v_E5y.js} +1 -1
- package/dist/assets/{chunk-QBLGF6JB-CsFeIGfr.js → chunk-QBLGF6JB-BK_FpnlJ.js} +1 -1
- package/dist/assets/{chunk-R7FJI6CG-4xNYUeng.js → chunk-R7FJI6CG-CpYh6rGo.js} +1 -1
- package/dist/assets/{chunk-RYQCIY6F-DJiHiTE5.js → chunk-RYQCIY6F-htnxL_Cl.js} +1 -1
- package/dist/assets/{chunk-U6XO7XAA-BVYkauHz.js → chunk-U6XO7XAA-wDbE4BZ7.js} +1 -1
- package/dist/assets/{chunk-V7JOEXUC-BsazE8cS.js → chunk-V7JOEXUC-DDRSVFTB.js} +1 -1
- package/dist/assets/chunk-VAUOI2AC-GYimZYx9.js +1 -0
- package/dist/assets/{chunk-VR4S4FIN-7RoZQffO.js → chunk-VR4S4FIN-COdhHR1o.js} +1 -1
- package/dist/assets/{chunk-WYO6CB5R-DEuS6N1R.js → chunk-WYO6CB5R-DPDGhyF6.js} +3 -3
- package/dist/assets/chunk-XXDRQBXY-KKCf0HV5.js +1 -0
- package/dist/assets/{chunk-YOTPTUD7-9KBrosZL.js → chunk-YOTPTUD7-D8ir9Nx5.js} +1 -1
- package/dist/assets/{chunk-ZGVPDNZ5-IYgN9f5A.js → chunk-ZGVPDNZ5-BuNKD836.js} +1 -1
- package/dist/assets/{chunk-ZIRB5QZD-BUo0-zcp.js → chunk-ZIRB5QZD-DyHzq8jH.js} +1 -1
- package/dist/assets/{circle-dashed-HOgt3gIJ.js → circle-dashed-nDaMRmP-.js} +1 -1
- package/dist/assets/classDiagram-OUVF2IWQ-iRMPRR8M.js +1 -0
- package/dist/assets/classDiagram-v2-EOCWNBFH-BguFy_wj.js +1 -0
- package/dist/assets/{client-DKKbdJ6Q.js → client-DlFB5dW5.js} +1 -1
- package/dist/assets/config-split-page-C06fU9OQ.js +1 -0
- package/dist/assets/confirm-dialog-DpcmlXhd.js +1 -0
- package/dist/assets/{app-presenter-provider-jNGlmBLe.css → context-menu-DEcVZfaU.css} +1 -1
- package/dist/assets/context-menu-DKIEaY7f.js +211 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-DhqbC1fR.js → cose-bilkent-JH36ORCC-B1I1_P6a.js} +1 -1
- package/dist/assets/{createLucideIcon-DE0sB9Nu.js → createLucideIcon-Lnt-4LMC.js} +1 -1
- package/dist/assets/cynefin-VYW2F7L2-CtbjXuCW.js +1 -0
- package/dist/assets/{cynefinDiagram-TSTJHNR4-C-TBRi5V.js → cynefinDiagram-TSTJHNR4-DcOnhnCo.js} +1 -1
- package/dist/assets/{dagre-VKFMJZFB-BmafJymp.js → dagre-VKFMJZFB-hAX89lg3.js} +1 -1
- package/dist/assets/{dagre-CrgsRasE.js → dagre-nSYhf9yY.js} +1 -1
- package/dist/assets/{desktop-capabilities-page-B9-B9k1A.js → desktop-capabilities-page-DPORyZAu.js} +1 -1
- package/dist/assets/desktop-update-config-BMTeWZmn.js +1 -0
- package/dist/assets/{diagram-FQU43EPY-BoOMwa6D.js → diagram-FQU43EPY-C1mRMD2k.js} +1 -1
- package/dist/assets/{diagram-G47NLZAW-Le7N6Uym.js → diagram-G47NLZAW-D2XBn5al.js} +1 -1
- package/dist/assets/{diagram-NH7WQ7WH-Fbpj3-MO.js → diagram-NH7WQ7WH-3LmRsmkC.js} +1 -1
- package/dist/assets/{diagram-OA4YK3LP-D3QuGGuu.js → diagram-OA4YK3LP-CFWn-osC.js} +1 -1
- package/dist/assets/{diagram-WEI45ONY-Cxu1uiN6.js → diagram-WEI45ONY-BqNRbUvU.js} +1 -1
- package/dist/assets/dialog-BNXSPMX_.js +1 -0
- package/dist/assets/dist-Cuiqqp1O.js +41 -0
- package/dist/assets/doc-browser-CDEapjmj.js +1 -0
- package/dist/assets/{doc-browser-context-ClLgMbxd.js → doc-browser-context-0QDWYorh.js} +1 -1
- package/dist/assets/{docx-preview-CkU2psnd.js → docx-preview-CunAATyC.js} +1 -1
- package/dist/assets/{download-CKqS1Ksj.js → download-f_sPcoLZ.js} +1 -1
- package/dist/assets/{ebnfDiagram-CCIWWBDH-CCAjuQM6.js → ebnfDiagram-CCIWWBDH-CYb8IwqD.js} +1 -1
- package/dist/assets/{erDiagram-Q63AITRT-BuzUAq-d.js → erDiagram-Q63AITRT-H47mUoeK.js} +1 -1
- package/dist/assets/eventmodeling-45OFAUF4-Djd6id_u.js +1 -0
- package/dist/assets/extensions-B-0xQz3L.js +1 -0
- package/dist/assets/external-link-CbVlnlNy.js +1 -0
- package/dist/assets/flowDiagram-23GEKE2U-DUrsM_ZL.js +1 -0
- package/dist/assets/{form-actions-CCoxz33Q.js → form-actions-BoTqELHB.js} +1 -1
- package/dist/assets/{ganttDiagram-NO4QXBWP-cJmWVY8F.js → ganttDiagram-NO4QXBWP-hSX45zfV.js} +1 -1
- package/dist/assets/gitGraph-TEB2WS4Q-CU6P_2Cm.js +1 -0
- package/dist/assets/{gitGraphDiagram-IHSO6WYX-F58o-vtP.js → gitGraphDiagram-IHSO6WYX-Br0UW2qg.js} +1 -1
- package/dist/assets/{i18n-OGmF0Ws_.js → i18n-B0V5NkFj.js} +2 -2
- package/dist/assets/inbox-Bna8iUy0.js +1 -0
- package/dist/assets/info-DKCQHKI2-Bj2P_7RC.js +1 -0
- package/dist/assets/{infoDiagram-FWYZ7A6U-Gt59b83C.js → infoDiagram-FWYZ7A6U-DQmP_67w.js} +1 -1
- package/dist/assets/{ishikawaDiagram-FXEZZL3T-1u4IAj1I.js → ishikawaDiagram-FXEZZL3T-BHAV2oes.js} +1 -1
- package/dist/assets/{journeyDiagram-5HDEW3XC-CCQsfV-5.js → journeyDiagram-5HDEW3XC-CFHax4_d.js} +1 -1
- package/dist/assets/{kanban-definition-HUTT4EX6-vlB6O_Zn.js → kanban-definition-HUTT4EX6-B4ZA9rp5.js} +1 -1
- package/dist/assets/katex-BprZ-Wwb.js +1 -0
- package/dist/assets/{keyboard-shortcuts-settings-page-D8rosOVh.js → keyboard-shortcuts-settings-page-BluWKrSo.js} +1 -1
- package/dist/assets/{line-D_bHubTL.js → line-BboM0HLF.js} +1 -1
- package/dist/assets/{linear-ChlwuS5y.js → linear-4K_M1oYM.js} +1 -1
- package/dist/assets/login-page-BMHW0Hh0.js +1 -0
- package/dist/assets/{login-page-BT3GV3Sb.js → login-page-JNr5JCEw.js} +1 -1
- package/dist/assets/main-BCX_Untx.css +1 -0
- package/dist/assets/main-C5kbmGUV.js +2 -0
- package/dist/assets/main-i18n-catalog.config-DO4wNT7T.js +1 -0
- package/dist/assets/{map-oGHTsIu8.js → map-26GpO1wn.js} +1 -1
- package/dist/assets/mcp-marketplace-page-CV-PHKTN.js +1 -0
- package/dist/assets/{mermaid-parser.core-CuRe1ZG4.js → mermaid-parser.core-BTJFnvRC.js} +2 -2
- package/dist/assets/{mermaid.core-u4YCFKRf.js → mermaid.core-B7ufoXgq.js} +3 -3
- package/dist/assets/{mindmap-definition-LN4V7U3C-DeJAQYTu.js → mindmap-definition-LN4V7U3C-BHyru6KE.js} +1 -1
- package/dist/assets/model-config-page-C-wbM6Fe.js +1 -0
- package/dist/assets/{navigation-link-DC-Pku0Y.js → navigation-link-DFLSVIut.js} +2 -2
- package/dist/assets/{ordinal-C6JFfkKN.js → ordinal-BqFe2ePF.js} +1 -1
- package/dist/assets/packet-7NZHBO7P-ti5ge2jr.js +1 -0
- package/dist/assets/panel-app-CSQmm_7E.js +1 -0
- package/dist/assets/panel-app-i18n-catalog.config-Bo52dPuF.js +1 -0
- package/dist/assets/panelStandalone-PuuMF65O.js +2 -0
- package/dist/assets/panelStandalone-XRlWxbRS.css +1 -0
- package/dist/assets/{pegDiagram-2B236MQR-nVMkxShH.js → pegDiagram-2B236MQR-PVTatU5j.js} +1 -1
- package/dist/assets/pie-RZYD4A2V-Bnep8TyV.js +1 -0
- package/dist/assets/{pieDiagram-ENE6RG2P-8aUH44QZ.js → pieDiagram-ENE6RG2P-CGc-QCc7.js} +1 -1
- package/dist/assets/plus-CywSlIbG.js +1 -0
- package/dist/assets/privacy-settings-page-CPdEiouE.js +1 -0
- package/dist/assets/projects-D_cd_t4G.js +1 -0
- package/dist/assets/provider-models-XRArsply.js +1 -0
- package/dist/assets/provider-scoped-model-input-C8JI-hus.js +1 -0
- package/dist/assets/providers-config-page-fyMlVgvq.js +1 -0
- package/dist/assets/puzzle-Bk3ud1KI.js +1 -0
- package/dist/assets/pwa-Cx6Fnox4.js +1 -0
- package/dist/assets/{quadrantDiagram-ABIIQ3AL-EY8hpFv8.js → quadrantDiagram-ABIIQ3AL-DGL36riv.js} +1 -1
- package/dist/assets/radar-I7S5WNFK-BYg-icAP.js +1 -0
- package/dist/assets/railroad-3IZDKUUU-_CHO-Fi1.js +1 -0
- package/dist/assets/railroad-abnf-AHOZXSZD-hbQDevHe.js +1 -0
- package/dist/assets/railroad-ebnf-EBAXGLYW-v4RZkOfi.js +1 -0
- package/dist/assets/railroad-peg-LSFZ7HO6-bC9BqkI5.js +1 -0
- package/dist/assets/{railroadDiagram-RFXS5EU6-CNhcIeji.js → railroadDiagram-RFXS5EU6-CyNwvhSb.js} +1 -1
- package/dist/assets/{refresh-cw-BG8VfcdA.js → refresh-cw-Ca2napNx.js} +1 -1
- package/dist/assets/remote-D5MBQNZE.js +1 -0
- package/dist/assets/{requirementDiagram-TGXJPOKE-D8Dcs-Rt.js → requirementDiagram-TGXJPOKE-C31NMKJ0.js} +1 -1
- package/dist/assets/{rotate-cw-DPEegUU2.js → rotate-cw-DXg7sNUE.js} +1 -1
- package/dist/assets/runtime-config-page--ivCxBT4.js +1 -0
- package/dist/assets/{sankeyDiagram-HTMAVEWB-HTrb6aa-.js → sankeyDiagram-HTMAVEWB-CwrQ_7PA.js} +1 -1
- package/dist/assets/{save-CPlctBjT.js → save-DNigywZ9.js} +1 -1
- package/dist/assets/search-U9C0oTQJ.js +1 -0
- package/dist/assets/search-config-page-Bdx_RR1q.js +1 -0
- package/dist/assets/secrets-config-page-CvMIcsfJ.js +3 -0
- package/dist/assets/security-config-CQmMqQ8v.js +1 -0
- package/dist/assets/select-DxwDeKUR.js +1 -0
- package/dist/assets/{sequenceDiagram-DBY2YBRQ-6f_4X16Y.js → sequenceDiagram-DBY2YBRQ-EFD482_y.js} +1 -1
- package/dist/assets/service-apps-panel-CiYO1Be4.js +1 -0
- package/dist/assets/{settings-2-CrGx9_De.js → settings-2-BrBUdRoY.js} +1 -1
- package/dist/assets/{sizeCapture-X5ZJPWSS-Ck9rsuwL.js → sizeCapture-X5ZJPWSS-TDvULTE1.js} +1 -1
- package/dist/assets/{src-C8AUg09O.js → src-CI2AvEMj.js} +1 -1
- package/dist/assets/{stateDiagram-2N3HPSRC-Cm33MLHu.js → stateDiagram-2N3HPSRC-JdPsIYHo.js} +1 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-4_aAQfB_.js +1 -0
- package/dist/assets/{status-dot-Cb8ewlUr.js → status-dot-BbGsrkIX.js} +1 -1
- package/dist/assets/{swimlanes-5IMT3BWC-B107vmvM.js → swimlanes-5IMT3BWC-BnxpKeK_.js} +2 -2
- package/dist/assets/swimlanesDiagram-G3AALYLV-wCqfwsw-.js +8 -0
- package/dist/assets/tag-chip-BDbxcf6P.js +1 -0
- package/dist/assets/theme-provider-D98XGa-c.js +1 -0
- package/dist/assets/{timeline-definition-FHXFAJF6-CJEoAj33.js → timeline-definition-FHXFAJF6-2IL22-uC.js} +1 -1
- package/dist/assets/trash-2-DwSkRfeB.js +1 -0
- package/dist/assets/treeView-QDETBFTQ-BAyOb14Z.js +1 -0
- package/dist/assets/treemap-6X3UGDF4-DgPDM0zS.js +1 -0
- package/dist/assets/{use-config-BM5jC65L.js → use-config-D3cNzk2k.js} +1 -1
- package/dist/assets/{use-desktop-capabilities-ezKJwKqg.js → use-desktop-capabilities-D7odgaTB.js} +1 -1
- package/dist/assets/use-viewport-layout-BANU5E1t.js +1 -0
- package/dist/assets/{vennDiagram-L72KCM5P-DzsUHk5I.js → vennDiagram-L72KCM5P-Cjf6n5Va.js} +1 -1
- package/dist/assets/wardley-OPB4EBWU-eCElh8z5.js +1 -0
- package/dist/assets/{wardleyDiagram-EHGQE667-1NfFs5ua.js → wardleyDiagram-EHGQE667-yv4qKbBO.js} +1 -1
- package/dist/assets/x-BqGj6_Vq.js +1 -0
- package/dist/assets/{xychartDiagram-FW5EYKEG-Ci8AI3Qo.js → xychartDiagram-FW5EYKEG-Bmp8Ck8X.js} +1 -1
- package/dist/index.html +43 -106
- package/dist/panel-standalone.html +18 -12
- package/index.html +15 -66
- package/package.json +5 -5
- package/src/app/configs/__tests__/app-navigation.config.test.ts +4 -2
- package/src/app/configs/app-navigation.config.ts +7 -2
- package/src/app/styles/design-system.css +85 -1
- package/src/app/styles/island-theme.css +8 -6
- package/src/features/agents/components/agent-details-dialog.tsx +5 -3
- package/src/features/app-data/components/app-retained-data-section.tsx +2 -2
- package/src/features/apps/components/__tests__/app-marketplace-catalog.test.tsx +2 -2
- package/src/features/apps/components/__tests__/app-packages-panel.test.tsx +94 -23
- package/src/features/apps/components/__tests__/apps-panel.test.tsx +5 -3
- package/src/features/apps/components/app-document-access-section.tsx +17 -14
- package/src/features/apps/components/app-marketplace-catalog.tsx +66 -39
- package/src/features/apps/components/app-marketplace-cover.tsx +5 -2
- package/src/features/apps/components/app-marketplace-detail.tsx +9 -6
- package/src/features/apps/components/app-marketplace-operation.tsx +8 -3
- package/src/features/apps/components/app-marketplace-panel.tsx +168 -0
- package/src/features/apps/components/app-package-card.tsx +224 -147
- package/src/features/apps/components/app-package-details-dialog.tsx +103 -0
- package/src/features/apps/components/app-packages-panel.tsx +159 -144
- package/src/features/apps/components/apps-panel.tsx +40 -11
- package/src/features/chat/components/conversation/chat-conversation-header-section.tsx +1 -1
- package/src/features/chat/components/conversation/chat-conversation-header.tsx +1 -1
- package/src/features/chat/components/layout/chat-sidebar-toolbar.tsx +2 -2
- package/src/features/chat/components/layout/chat-sidebar-utility-menu.tsx +9 -7
- package/src/features/chat/features/conversation/components/floating-session-conversation.tsx +2 -3
- package/src/features/chat/features/conversation/components/session-conversation-area.tsx +1 -0
- package/src/features/chat/features/conversation/hooks/__tests__/use-session-conversation-input-state.test.tsx +33 -0
- package/src/features/chat/features/message/components/chat-message-list.container.tsx +0 -2
- package/src/features/chat/features/message/utils/__tests__/chat-message-process-summary.utils.test.ts +4 -6
- package/src/features/chat/features/message/utils/chat-message-execution-summary.utils.ts +3 -0
- package/src/features/chat/features/message/utils/chat-message-process-summary.utils.ts +2 -10
- package/src/features/chat/features/message/utils/chat-message-texts.utils.ts +2 -0
- package/src/features/chat/features/message/utils/chat-message-trigger-details.utils.ts +3 -0
- package/src/features/chat/features/session/components/chat-sidebar-project-groups.tsx +2 -1
- package/src/features/chat/features/session/components/session-header/chat-session-metadata-dialog.tsx +1 -1
- package/src/features/chat/features/session/components/session-header/chat-session-project-badge.tsx +2 -2
- package/src/features/chat/features/welcome/components/__tests__/chat-welcome.test.tsx +31 -6
- package/src/features/chat/features/welcome/components/chat-conversation-welcome.tsx +13 -1
- package/src/features/chat/features/welcome/components/chat-welcome-agent-picker.tsx +1 -1
- package/src/features/chat/features/welcome/components/chat-welcome-project-picker.tsx +1 -1
- package/src/features/chat/features/welcome/components/chat-welcome-prompt-suggestions.tsx +56 -13
- package/src/features/chat/features/welcome/components/chat-welcome-session-type-picker.tsx +3 -3
- package/src/features/chat/features/welcome/components/chat-welcome.tsx +14 -4
- package/src/features/chat/features/welcome/utils/__tests__/chat-welcome-continuation.utils.test.ts +40 -0
- package/src/features/chat/features/welcome/utils/chat-welcome-continuation.utils.ts +21 -0
- package/src/features/chat/features/workspace/components/chat-session-workspace-directory-browser.tsx +1 -1
- package/src/features/chat/features/workspace/components/chat-session-workspace-file-breadcrumbs.tsx +5 -9
- package/src/features/chat/features/workspace/components/chat-session-workspace-file-preview.tsx +6 -4
- package/src/features/chat/features/workspace/components/chat-session-workspace-panel-content.tsx +27 -27
- package/src/features/chat/features/workspace/components/chat-session-workspace-panel-nav.tsx +1 -1
- package/src/features/chat/features/workspace/components/overview/chat-session-continuous-attention.tsx +11 -11
- package/src/features/chat/features/workspace/components/overview/chat-session-token-usage.tsx +15 -15
- 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-new-folder-tree-item.tsx +1 -1
- package/src/features/chat/features/workspace/components/project-files/workspace-project-files-toolbar.tsx +2 -2
- package/src/features/chat/features/workspace/components/session-cron-job-content.tsx +7 -4
- package/src/features/cron/components/cron-job-row.tsx +5 -4
- package/src/features/desktop-capabilities/components/desktop-authorization-dialog.tsx +5 -5
- package/src/features/inbox/components/inbox-reader-dialog.test.tsx +46 -6
- package/src/features/inbox/components/inbox-reader-dialog.tsx +38 -29
- package/src/features/inbox/managers/inbox.manager.test.ts +28 -0
- package/src/features/inbox/managers/inbox.manager.ts +18 -4
- package/src/features/inbox/pages/inbox-page.test.ts +16 -5
- package/src/features/inbox/pages/inbox-page.tsx +37 -29
- package/src/features/panel-apps/components/panel-app-list-item.tsx +4 -3
- package/src/features/panel-apps/components/panel-app-service-action-authorization-dialog.tsx +2 -2
- package/src/features/panel-apps/utils/panel-app-doc-browser.utils.tsx +5 -24
- package/src/features/projects/components/work/project-work-items.tsx +1 -1
- package/src/features/projects/pages/project-home-page.tsx +4 -2
- package/src/features/pwa/managers/__tests__/pwa-shell-theme.manager.test.ts +3 -3
- package/src/features/pwa/managers/pwa-shell-theme.manager.ts +8 -3
- package/src/features/right-panel-resources/components/__tests__/page-resource-icon.test.tsx +13 -2
- package/src/features/right-panel-resources/components/page-resource-icon.tsx +15 -7
- package/src/features/right-panel-resources/configs/right-panel-resource-routes.config.ts +1 -1
- package/src/features/right-panel-resources/index.ts +3 -0
- package/src/features/right-panel-resources/utils/__tests__/right-panel-resource-route-resolver.utils.test.ts +5 -0
- package/src/features/right-panel-resources/utils/right-panel-resource-uri.utils.ts +3 -2
- package/src/features/service-apps/components/service-action-row.tsx +4 -3
- package/src/features/service-apps/components/service-app-delete-dialog.tsx +2 -2
- package/src/features/service-apps/components/service-app-list-item.tsx +5 -4
- package/src/features/settings/components/config/provider-model-suggestions-panel.tsx +1 -1
- package/src/features/settings/pages/providers-config-page.tsx +3 -2
- package/src/index.css +42 -8
- package/src/platforms/mobile/components/__tests__/mobile-app-shell.test.tsx +9 -0
- package/src/platforms/mobile/components/mobile-app-shell.tsx +4 -2
- package/src/platforms/mobile/components/mobile-topbar.tsx +2 -2
- package/src/shared/components/doc-browser/doc-browser-tab-strip.tsx +2 -2
- package/src/shared/components/path-picker/server-path-picker-dialog.tsx +5 -3
- package/src/shared/components/ui/__tests__/dialog.test.tsx +37 -1
- package/src/shared/components/ui/actions/action-feedback.ts +1 -8
- package/src/shared/components/ui/actions/icon-action-button.tsx +1 -1
- package/src/shared/components/ui/confirm-dialog.tsx +1 -2
- package/src/shared/components/ui/context-menu/context-menu-items.tsx +2 -2
- package/src/shared/components/ui/dialog.tsx +29 -7
- package/src/shared/components/ui/popover.tsx +14 -3
- package/src/shared/components/ui/tab-strip/compact-tab-strip.tsx +5 -5
- package/src/shared/components/ui/tooltip.tsx +2 -1
- package/src/shared/components/workbench/__tests__/workbench-surface.test.tsx +21 -0
- package/src/shared/components/workbench/workbench-surface-toolbar.tsx +4 -0
- package/src/shared/components/workbench/workbench-surface.tsx +5 -2
- package/src/shared/lib/i18n/locales/en-US/chat.json +14 -9
- package/src/shared/lib/i18n/locales/en-US/core.json +5 -1
- package/src/shared/lib/i18n/locales/en-US/doc-browser.json +10 -5
- package/src/shared/lib/i18n/locales/en-US/inbox.json +1 -0
- package/src/shared/lib/i18n/locales/zh-CN/chat.json +14 -9
- package/src/shared/lib/i18n/locales/zh-CN/core.json +5 -1
- package/src/shared/lib/i18n/locales/zh-CN/doc-browser.json +11 -6
- package/src/shared/lib/i18n/locales/zh-CN/inbox.json +1 -0
- package/src/shared/lib/theme/index.test.ts +28 -1
- package/src/shared/lib/theme/index.ts +14 -3
- package/dist/assets/account-panel-DVi_jhkG.js +0 -1
- package/dist/assets/api-BZvNpFOS.js +0 -20
- package/dist/assets/app-presenter-provider-BcYL-VNe.js +0 -124
- package/dist/assets/appearance-settings-page-AZNBzLmT.js +0 -1
- package/dist/assets/architecture-TIHT7OUA-CvnC-LeA.js +0 -1
- package/dist/assets/channel-CpMstUPF.js +0 -1
- package/dist/assets/channels-list-page-eZN74FN3.js +0 -8
- package/dist/assets/chunk-2Q5K7J3B-Djp3VF0s.js +0 -1
- package/dist/assets/chunk-VAUOI2AC-BrbiIC1Q.js +0 -1
- package/dist/assets/chunk-XXDRQBXY-Cx9N40wF.js +0 -1
- package/dist/assets/classDiagram-OUVF2IWQ-DFN1v3PQ.js +0 -1
- package/dist/assets/classDiagram-v2-EOCWNBFH-DRvglADa.js +0 -1
- package/dist/assets/config-split-page-BA3V6b3Q.js +0 -1
- package/dist/assets/confirm-dialog-8vqYZ0wy.js +0 -1
- package/dist/assets/context-menu-DHVVdHzN.js +0 -1
- package/dist/assets/cynefin-VYW2F7L2-DXUGnpJH.js +0 -1
- package/dist/assets/desktop-update-config-Cfr3IRUe.js +0 -1
- package/dist/assets/dialog-BUfWO8hr.js +0 -5
- package/dist/assets/doc-browser-w8q1j0jL.js +0 -1
- package/dist/assets/es2015-BiB05Sav.js +0 -41
- package/dist/assets/eventmodeling-45OFAUF4-ZBfVS3ZC.js +0 -1
- package/dist/assets/extensions-vPD4dGqt.js +0 -1
- package/dist/assets/eye-bKzylu3p.js +0 -1
- package/dist/assets/flowDiagram-23GEKE2U-CqdsKk6x.js +0 -1
- package/dist/assets/gitGraph-TEB2WS4Q-fHYFd9Es.js +0 -1
- package/dist/assets/info-DKCQHKI2-CSaOL_bb.js +0 -1
- package/dist/assets/katex-B4FQSo9k.js +0 -1
- package/dist/assets/loader-circle-Clq1Gtb1.js +0 -1
- package/dist/assets/login-page-DKId3By8.js +0 -1
- package/dist/assets/main-bEWCGDHr.js +0 -2
- package/dist/assets/main-i18n-catalog.config-Bpu5GcwF.js +0 -1
- package/dist/assets/main-kqMRTwOs.css +0 -1
- package/dist/assets/mcp-marketplace-page-CZIP6j3L.js +0 -1
- package/dist/assets/model-config-page-D21a-BO0.js +0 -1
- package/dist/assets/packet-7NZHBO7P-D-YFTczs.js +0 -1
- package/dist/assets/panel-app-BYfQu_TS.js +0 -1
- package/dist/assets/panel-app-i18n-catalog.config-D44qmtfk.js +0 -1
- package/dist/assets/panelStandalone-BRg7B1EI.css +0 -1
- package/dist/assets/panelStandalone-CX8X2hjh.js +0 -2
- package/dist/assets/pie-RZYD4A2V-VEnYu9s5.js +0 -1
- package/dist/assets/privacy-settings-page-e0LFHZJm.js +0 -1
- package/dist/assets/projects-Rki7Fmth.js +0 -1
- package/dist/assets/provider-models-DFQgF4hS.js +0 -1
- package/dist/assets/provider-scoped-model-input-DaONL0j_.js +0 -1
- package/dist/assets/providers-config-page-CEOhQlMe.js +0 -1
- package/dist/assets/puzzle-D_TiFXOv.js +0 -1
- package/dist/assets/pwa-C9ac_1dg.js +0 -1
- package/dist/assets/radar-I7S5WNFK-BFNIekC1.js +0 -1
- package/dist/assets/railroad-3IZDKUUU-lVqJ3Hak.js +0 -1
- package/dist/assets/railroad-abnf-AHOZXSZD-DYaefdFC.js +0 -1
- package/dist/assets/railroad-ebnf-EBAXGLYW-CTAk6lVq.js +0 -1
- package/dist/assets/railroad-peg-LSFZ7HO6-Cob294tg.js +0 -1
- package/dist/assets/remote-DkSx5x4R.js +0 -1
- package/dist/assets/runtime-config-page-DDT1dVLt.js +0 -1
- package/dist/assets/search-config-page-CDwmd6eX.js +0 -1
- package/dist/assets/secrets-config-page-1OvgmwPv.js +0 -3
- package/dist/assets/security-config-Pv4CM-kw.js +0 -1
- package/dist/assets/select-Y9IEbx9x.js +0 -1
- package/dist/assets/service-apps-panel-DPrLeF3N.js +0 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-BrNv-raG.js +0 -1
- package/dist/assets/swimlanesDiagram-G3AALYLV-ntcxaPXp.js +0 -8
- package/dist/assets/tag-chip-D-6aPuuh.js +0 -1
- package/dist/assets/theme-provider-BjF1Eowc.js +0 -1
- package/dist/assets/trash-2-DER2EJKK.js +0 -1
- package/dist/assets/treeView-QDETBFTQ-DbFmr-gw.js +0 -1
- package/dist/assets/treemap-6X3UGDF4-C8aY96pi.js +0 -1
- package/dist/assets/use-viewport-layout-vmbQUNT6.js +0 -1
- package/dist/assets/wardley-OPB4EBWU-D8d6DbbJ.js +0 -1
- package/dist/assets/x-DSz9cGhy.js +0 -1
- package/src/features/apps/components/app-marketplace-dialog.tsx +0 -168
- /package/dist/assets/{array-BV9OtnO8.js → array-DstOKG9P.js} +0 -0
- /package/dist/assets/{chunk-KEIR6QF5-Cx-8EJ4_.js → chunk-KEIR6QF5-0TA8nwgf.js} +0 -0
- /package/dist/assets/{chunk-Y2CYZVJY-Dy1ufvjf.js → chunk-Y2CYZVJY-rfGCG6pM.js} +0 -0
- /package/dist/assets/{config-hints-DbmiyTKg.js → config-hints-BfGoD7-o.js} +0 -0
- /package/dist/assets/{cytoscape.esm-CSCjuT4Z.js → cytoscape.esm-DdIcNEda.js} +0 -0
- /package/dist/assets/{defaultLocale-DWTiNsbT.js → defaultLocale-CzXix2iJ.js} +0 -0
- /package/dist/assets/{dist-BVCSkfWY.js → dist-D5dwMwKA.js} +0 -0
- /package/dist/assets/{graphlib-B1yb1Wl8.js → graphlib-BKOe0eFe.js} +0 -0
- /package/dist/assets/{host-capabilities-DuIFVsvM.js → host-capabilities-CnSVTaot.js} +0 -0
- /package/dist/assets/{init-BF6GH5oe.js → init-OCFb3zgY.js} +0 -0
- /package/dist/assets/{jszip.min-D12teKzP.js → jszip.min-B2uhSxvV.js} +0 -0
- /package/dist/assets/{katex-CsAM73R9.js → katex-dBrYsE7B.js} +0 -0
- /package/dist/assets/{middleware-B--6mAUM.js → middleware-CAXxl-af.js} +0 -0
- /package/dist/assets/{path-C56XkznJ.js → path-T5eoIRSJ.js} +0 -0
- /package/dist/assets/{preload-helper-ca-nBW7U.js → preload-helper-DWTEM3RW.js} +0 -0
- /package/dist/assets/{rough.esm-CGfeEbtE.js → rough.esm-DmGXmZEB.js} +0 -0
- /package/dist/assets/{xlsx-sds5nUpL.js → xlsx-CoYacou7.js} +0 -0
package/src/features/chat/features/workspace/components/chat-session-workspace-file-breadcrumbs.tsx
CHANGED
|
@@ -44,11 +44,7 @@ function WorkspaceBreadcrumbSegmentButton({
|
|
|
44
44
|
aria-current={segment.isCurrent ? 'page' : undefined}
|
|
45
45
|
className={cn(
|
|
46
46
|
'inline-flex h-5 shrink-0 items-center gap-1 whitespace-nowrap rounded-sm px-1 text-[11px] leading-none transition-colors hover:bg-[var(--interaction-hover)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border',
|
|
47
|
-
segment.
|
|
48
|
-
? 'bg-[var(--interaction-selection)] text-foreground hover:bg-[var(--interaction-selection)]'
|
|
49
|
-
: segment.isCurrent
|
|
50
|
-
? 'bg-gray-200/70 text-gray-900'
|
|
51
|
-
: 'text-gray-500',
|
|
47
|
+
segment.isCurrent ? 'font-medium text-foreground' : 'text-muted-foreground',
|
|
52
48
|
)}
|
|
53
49
|
disabled={!segment.browsePath}
|
|
54
50
|
>
|
|
@@ -115,20 +111,20 @@ export function ChatSessionWorkspaceFileBreadcrumbs({
|
|
|
115
111
|
<div
|
|
116
112
|
data-testid="workspace-file-breadcrumbs"
|
|
117
113
|
title={breadcrumb.fullPath}
|
|
118
|
-
className="flex min-w-0 items-center border-b border-
|
|
114
|
+
className="flex h-7 min-w-0 shrink-0 items-center border-b border-border/40 bg-muted text-foreground"
|
|
119
115
|
>
|
|
120
116
|
{leading ? <div className="flex h-full shrink-0 items-center pl-1 pr-0.5">{leading}</div> : null}
|
|
121
117
|
<div
|
|
122
118
|
ref={scrollRef}
|
|
123
119
|
data-testid="workspace-file-breadcrumb-scroll"
|
|
124
|
-
className="workspace-horizontal-scrollbar flex min-w-0 flex-1 items-center gap-
|
|
120
|
+
className="workspace-horizontal-scrollbar flex h-full min-w-0 flex-1 items-center gap-1 overflow-x-auto overflow-y-hidden px-1.5"
|
|
125
121
|
>
|
|
126
122
|
<div className="flex min-w-0 flex-1 items-center gap-1 pr-1">
|
|
127
123
|
{breadcrumb.segments.map((segment, index) => (
|
|
128
124
|
<Fragment key={segment.key}>
|
|
129
125
|
<WorkspaceBreadcrumbSegmentButton segment={segment} onFileOpen={onFileOpen} />
|
|
130
126
|
{index < breadcrumb.segments.length - 1 ? (
|
|
131
|
-
<ChevronRight className="h-3 w-3 shrink-0 text-
|
|
127
|
+
<ChevronRight className="h-3 w-3 shrink-0 text-muted-foreground/65" />
|
|
132
128
|
) : null}
|
|
133
129
|
</Fragment>
|
|
134
130
|
))}
|
|
@@ -140,7 +136,7 @@ export function ChatSessionWorkspaceFileBreadcrumbs({
|
|
|
140
136
|
</div>
|
|
141
137
|
) : null}
|
|
142
138
|
</div>
|
|
143
|
-
{trailing ? <div className="flex shrink-0 items-center
|
|
139
|
+
{trailing ? <div className="flex h-full shrink-0 items-center pr-1 pl-0.5">{trailing}</div> : null}
|
|
144
140
|
</div>
|
|
145
141
|
);
|
|
146
142
|
}
|
package/src/features/chat/features/workspace/components/chat-session-workspace-file-preview.tsx
CHANGED
|
@@ -137,8 +137,8 @@ function WorkspaceFilePreviewStatus({ text, tone = 'muted' }: { text: string; to
|
|
|
137
137
|
return (
|
|
138
138
|
<div
|
|
139
139
|
className={cn(
|
|
140
|
-
'flex h-full items-center justify-center px-6 text-center text-sm',
|
|
141
|
-
tone === 'error' ? 'text-
|
|
140
|
+
'flex h-full items-center justify-center bg-background px-6 text-center text-sm',
|
|
141
|
+
tone === 'error' ? 'text-destructive' : 'text-muted-foreground',
|
|
142
142
|
)}
|
|
143
143
|
>
|
|
144
144
|
{text}
|
|
@@ -260,7 +260,7 @@ function WorkspacePreviewBody({
|
|
|
260
260
|
<div
|
|
261
261
|
ref={markdownScrollRef}
|
|
262
262
|
onScroll={onMarkdownScroll}
|
|
263
|
-
className="h-full overflow-auto custom-scrollbar px-5 py-4"
|
|
263
|
+
className="h-full overflow-auto bg-background text-foreground custom-scrollbar px-5 py-4"
|
|
264
264
|
>
|
|
265
265
|
<ChatMessageMarkdown
|
|
266
266
|
text={previewText}
|
|
@@ -268,6 +268,8 @@ function WorkspacePreviewBody({
|
|
|
268
268
|
texts={{
|
|
269
269
|
copyCodeLabel: t('chatCodeCopy'),
|
|
270
270
|
copiedCodeLabel: t('chatCodeCopied'),
|
|
271
|
+
frontmatterLabel: t('chatMarkdownFrontmatter'),
|
|
272
|
+
detailsLabel: t('chatMarkdownDetails'),
|
|
271
273
|
}}
|
|
272
274
|
onFileOpen={onFileOpen}
|
|
273
275
|
resolveFileContentUrl={(action) => buildServerPathContentUrl(action.path, fileBasePath)}
|
|
@@ -428,7 +430,7 @@ export function ChatSessionWorkspaceFilePreview({
|
|
|
428
430
|
);
|
|
429
431
|
|
|
430
432
|
return (
|
|
431
|
-
<div className="flex h-full min-h-0 flex-col bg-
|
|
433
|
+
<div className="flex h-full min-h-0 flex-col bg-background">
|
|
432
434
|
{showBreadcrumbs ? (
|
|
433
435
|
<ChatSessionWorkspaceFileBreadcrumbs
|
|
434
436
|
breadcrumb={breadcrumb}
|
package/src/features/chat/features/workspace/components/chat-session-workspace-panel-content.tsx
CHANGED
|
@@ -66,17 +66,17 @@ function WorkspaceOverviewEntry({
|
|
|
66
66
|
return (
|
|
67
67
|
<button
|
|
68
68
|
type="button"
|
|
69
|
-
className="group flex w-full items-center gap-3
|
|
69
|
+
className="group flex w-full items-center gap-3 px-3 py-2.5 text-left transition-colors first:rounded-t-lg last:rounded-b-lg hover:bg-[var(--interaction-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary/25"
|
|
70
70
|
onClick={onClick}
|
|
71
71
|
>
|
|
72
|
-
<span className="inline-flex h-
|
|
72
|
+
<span className="inline-flex h-7 w-7 shrink-0 items-center justify-center text-muted-foreground">
|
|
73
73
|
{icon}
|
|
74
74
|
</span>
|
|
75
75
|
<span className="min-w-0 flex-1">
|
|
76
76
|
<span className="flex items-center gap-2 text-sm font-medium text-gray-900">
|
|
77
77
|
<span className="truncate">{title}</span>
|
|
78
78
|
{typeof count === 'number' ? (
|
|
79
|
-
<span className="
|
|
79
|
+
<span className="min-w-5 rounded bg-background px-1.5 py-0.5 text-center text-[11px] font-medium tabular-nums text-muted-foreground">
|
|
80
80
|
{count}
|
|
81
81
|
</span>
|
|
82
82
|
) : null}
|
|
@@ -84,7 +84,7 @@ function WorkspaceOverviewEntry({
|
|
|
84
84
|
</span>
|
|
85
85
|
<span className="mt-0.5 block text-xs leading-5 text-gray-500">{description}</span>
|
|
86
86
|
</span>
|
|
87
|
-
<ChevronRight className="h-
|
|
87
|
+
<ChevronRight className="h-3.5 w-3.5 shrink-0 text-muted-foreground/60 group-hover:text-muted-foreground" />
|
|
88
88
|
</button>
|
|
89
89
|
);
|
|
90
90
|
}
|
|
@@ -102,52 +102,52 @@ function WorkspaceOverview({
|
|
|
102
102
|
const observationsQuery = useNcpSessionObservations(sessionKey);
|
|
103
103
|
|
|
104
104
|
return (
|
|
105
|
-
<div className="h-full overflow-auto bg-
|
|
105
|
+
<div className="h-full overflow-auto bg-background px-4 py-5 custom-scrollbar">
|
|
106
106
|
<div className="mx-auto max-w-xl">
|
|
107
107
|
<h2 className="text-base font-semibold text-gray-900">{t('chatWorkspaceOverview')}</h2>
|
|
108
108
|
<p className="mt-1 text-xs leading-5 text-gray-500">{t('chatWorkspaceOverviewDescription')}</p>
|
|
109
|
-
<div className="mt-
|
|
109
|
+
<div className="mt-3 divide-y divide-border rounded-lg border border-border bg-muted/40">
|
|
110
110
|
<WorkspaceOverviewEntry
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
title={t('chatWorkspaceContinuousAttention')}
|
|
111
|
+
description={t('chatWorkspaceProjectFilesDescription')}
|
|
112
|
+
icon={<FolderTree className="h-4 w-4" />}
|
|
113
|
+
title={t('chatWorkspaceProjectFiles')}
|
|
115
114
|
onClick={() => {
|
|
116
115
|
if (sessionKey) {
|
|
117
|
-
presenter.chatThreadManager.
|
|
116
|
+
presenter.chatThreadManager.openProjectFiles(sessionKey);
|
|
118
117
|
}
|
|
119
118
|
}}
|
|
120
119
|
/>
|
|
121
120
|
<WorkspaceOverviewEntry
|
|
122
|
-
count={
|
|
123
|
-
description={t('
|
|
124
|
-
icon={<
|
|
125
|
-
|
|
126
|
-
title={t('chatWorkspaceChildSessions')}
|
|
121
|
+
count={sessionCronJobs.length}
|
|
122
|
+
description={t('chatWorkspaceSessionCronJobsDescription')}
|
|
123
|
+
icon={<AlarmClock className="h-4 w-4" />}
|
|
124
|
+
title={t('chatWorkspaceSessionCronJobs')}
|
|
127
125
|
onClick={() => {
|
|
128
126
|
if (sessionKey) {
|
|
129
|
-
presenter.chatThreadManager.
|
|
127
|
+
presenter.chatThreadManager.openSessionCronPanel(sessionKey);
|
|
130
128
|
}
|
|
131
129
|
}}
|
|
132
130
|
/>
|
|
133
131
|
<WorkspaceOverviewEntry
|
|
134
|
-
count={
|
|
135
|
-
description={t('
|
|
136
|
-
icon={<
|
|
137
|
-
|
|
132
|
+
count={childSessionTabs.length}
|
|
133
|
+
description={t('chatWorkspaceChildSessionsDescription')}
|
|
134
|
+
icon={<GitBranch className="h-4 w-4" />}
|
|
135
|
+
runStatus={childSessionTabs.some((tab) => tab.runStatus === 'running') ? 'running' : undefined}
|
|
136
|
+
title={t('chatWorkspaceChildSessions')}
|
|
138
137
|
onClick={() => {
|
|
139
138
|
if (sessionKey) {
|
|
140
|
-
presenter.chatThreadManager.
|
|
139
|
+
presenter.chatThreadManager.openChildSessions(sessionKey);
|
|
141
140
|
}
|
|
142
141
|
}}
|
|
143
142
|
/>
|
|
144
143
|
<WorkspaceOverviewEntry
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
count={observationsQuery.data?.counts.total ?? 0}
|
|
145
|
+
description={t('chatWorkspaceContinuousAttentionDescription')}
|
|
146
|
+
icon={<Eye className="h-4 w-4" />}
|
|
147
|
+
title={t('chatWorkspaceContinuousAttention')}
|
|
148
148
|
onClick={() => {
|
|
149
149
|
if (sessionKey) {
|
|
150
|
-
presenter.chatThreadManager.
|
|
150
|
+
presenter.chatThreadManager.openContinuousAttention(sessionKey);
|
|
151
151
|
}
|
|
152
152
|
}}
|
|
153
153
|
/>
|
|
@@ -372,7 +372,7 @@ export function ChatSessionWorkspacePanelContent({
|
|
|
372
372
|
data-theme-surface="workspace-explorer"
|
|
373
373
|
data-mode={projectFilesActive ? 'full' : explorerOverlay ? 'overlay' : 'side'}
|
|
374
374
|
className={cn(
|
|
375
|
-
'relative min-h-0 shrink-0 flex-col border-r border-
|
|
375
|
+
'relative min-h-0 shrink-0 flex-col border-r border-border bg-background',
|
|
376
376
|
showExplorer ? 'flex' : 'hidden',
|
|
377
377
|
projectFilesActive ? 'flex-1 border-r-0' : null,
|
|
378
378
|
explorerOverlay ? 'absolute inset-y-0 left-0 z-20 w-[min(320px,86%)] shadow-xl' : null,
|
package/src/features/chat/features/workspace/components/chat-session-workspace-panel-nav.tsx
CHANGED
|
@@ -218,7 +218,7 @@ export function WorkspaceTabsBar({
|
|
|
218
218
|
|
|
219
219
|
return (
|
|
220
220
|
<CompactTabStrip
|
|
221
|
-
className="h-
|
|
221
|
+
className="h-8 min-w-0 flex-1 border-0 bg-transparent px-0"
|
|
222
222
|
testId="workspace-tabs-bar"
|
|
223
223
|
scrollTestId="workspace-tabs-scroll"
|
|
224
224
|
tabs={compactTabs}
|
|
@@ -51,7 +51,7 @@ function ObservationRow({
|
|
|
51
51
|
: t('chatWorkspaceContinuousAttentionResume');
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
|
-
<article className="rounded-
|
|
54
|
+
<article className="rounded-lg border border-border bg-muted/30 p-3">
|
|
55
55
|
<div className="flex min-w-0 items-start gap-3">
|
|
56
56
|
<span className="mt-0.5 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-gray-100 text-gray-500">
|
|
57
57
|
{item.kind === 'context' ? <Eye className="h-4 w-4" /> : <Inbox className="h-4 w-4" />}
|
|
@@ -148,11 +148,11 @@ export function ChatSessionContinuousAttention({ sessionKey }: { sessionKey: str
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
return (
|
|
151
|
-
<div className="h-full overflow-auto bg-
|
|
151
|
+
<div className="h-full overflow-auto bg-background px-4 py-5 custom-scrollbar">
|
|
152
152
|
<div className="mx-auto max-w-xl">
|
|
153
153
|
<ConfirmDialog />
|
|
154
154
|
<div className="flex items-start gap-3">
|
|
155
|
-
<span className="inline-flex h-
|
|
155
|
+
<span className="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground">
|
|
156
156
|
<Eye className="h-4 w-4" />
|
|
157
157
|
</span>
|
|
158
158
|
<div className="min-w-0">
|
|
@@ -162,7 +162,7 @@ export function ChatSessionContinuousAttention({ sessionKey }: { sessionKey: str
|
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
{view ? (
|
|
165
|
-
<div className="mt-4 grid grid-cols-2 gap-
|
|
165
|
+
<div className="mt-4 grid grid-cols-2 gap-1.5 rounded-lg border border-border p-2">
|
|
166
166
|
<SummaryCard label={t('chatWorkspaceContinuousAttentionTotal')} value={view.counts.total} />
|
|
167
167
|
<SummaryCard label={t('chatWorkspaceContinuousAttentionState')} value={view.counts.context} />
|
|
168
168
|
<SummaryCard label={t('chatWorkspaceContinuousAttentionEvents')} value={view.counts.events} />
|
|
@@ -170,7 +170,7 @@ export function ChatSessionContinuousAttention({ sessionKey }: { sessionKey: str
|
|
|
170
170
|
</div>
|
|
171
171
|
) : null}
|
|
172
172
|
|
|
173
|
-
<div className="mt-
|
|
173
|
+
<div className="mt-3 flex rounded-lg border border-border bg-muted/40 p-1" role="tablist">
|
|
174
174
|
{(['context', 'events'] as const).map((group) => {
|
|
175
175
|
const count = group === 'context' ? (view?.counts.context ?? 0) : (view?.counts.events ?? 0);
|
|
176
176
|
return (
|
|
@@ -191,7 +191,7 @@ export function ChatSessionContinuousAttention({ sessionKey }: { sessionKey: str
|
|
|
191
191
|
|
|
192
192
|
{query.isPending ? (
|
|
193
193
|
<div className="mt-3 space-y-2" aria-label={t('chatWorkspaceContinuousAttentionLoading')}>
|
|
194
|
-
{[0, 1].map((item) => <div key={item} className="h-28 animate-pulse rounded-
|
|
194
|
+
{[0, 1].map((item) => <div key={item} className="h-28 animate-pulse rounded-lg border border-border bg-muted/40" />)}
|
|
195
195
|
</div>
|
|
196
196
|
) : query.isError ? (
|
|
197
197
|
<div className="mt-4 rounded-xl border border-rose-200 bg-rose-50 px-4 py-5 text-center">
|
|
@@ -202,8 +202,8 @@ export function ChatSessionContinuousAttention({ sessionKey }: { sessionKey: str
|
|
|
202
202
|
</button>
|
|
203
203
|
</div>
|
|
204
204
|
) : items.length === 0 ? (
|
|
205
|
-
<div className="mt-
|
|
206
|
-
<Clock3 className="mx-auto h-5 w-5 text-
|
|
205
|
+
<div className="mt-3 rounded-lg border border-border bg-muted/30 px-4 py-6 text-center">
|
|
206
|
+
<Clock3 className="mx-auto h-5 w-5 text-muted-foreground" />
|
|
207
207
|
<p className="mt-2 text-sm font-medium text-gray-700">{t('chatWorkspaceContinuousAttentionEmpty')}</p>
|
|
208
208
|
<p className="mt-1 text-xs leading-5 text-gray-500">{t('chatWorkspaceContinuousAttentionEmptyDescription')}</p>
|
|
209
209
|
</div>
|
|
@@ -226,9 +226,9 @@ export function ChatSessionContinuousAttention({ sessionKey }: { sessionKey: str
|
|
|
226
226
|
|
|
227
227
|
function SummaryCard({ label, value }: { label: string; value: number }) {
|
|
228
228
|
return (
|
|
229
|
-
<div className="rounded-
|
|
230
|
-
<div className="text-[
|
|
231
|
-
<div className="mt-
|
|
229
|
+
<div className="rounded-md bg-muted/60 px-2.5 py-2">
|
|
230
|
+
<div className="text-[11px] text-muted-foreground">{label}</div>
|
|
231
|
+
<div className="mt-0.5 text-base font-medium tabular-nums text-foreground">{value}</div>
|
|
232
232
|
</div>
|
|
233
233
|
);
|
|
234
234
|
}
|
package/src/features/chat/features/workspace/components/overview/chat-session-token-usage.tsx
CHANGED
|
@@ -25,9 +25,9 @@ function TokenUsageStatusBadge({ status }: { status: 'reported' | 'partial' | 'u
|
|
|
25
25
|
return (
|
|
26
26
|
<span
|
|
27
27
|
className={cn(
|
|
28
|
-
'inline-flex shrink-0 items-center rounded
|
|
28
|
+
'inline-flex shrink-0 items-center rounded px-1.5 py-0.5 text-[10px] font-medium',
|
|
29
29
|
status === 'reported'
|
|
30
|
-
? '
|
|
30
|
+
? 'text-muted-foreground'
|
|
31
31
|
: status === 'partial'
|
|
32
32
|
? 'bg-amber-50 text-amber-700'
|
|
33
33
|
: 'bg-gray-100 text-gray-500',
|
|
@@ -46,9 +46,9 @@ function TokenUsageStatusBadge({ status }: { status: 'reported' | 'partial' | 'u
|
|
|
46
46
|
|
|
47
47
|
function TokenUsageMetric({ label, value }: { label: string; value: string }) {
|
|
48
48
|
return (
|
|
49
|
-
<div className="min-w-0 rounded-md bg-
|
|
50
|
-
<div className="
|
|
51
|
-
<div className="mt-0.5
|
|
49
|
+
<div className="min-w-0 rounded-md bg-muted/60 px-2.5 py-2 first:bg-muted first:[&>div:last-child]:font-semibold">
|
|
50
|
+
<div className="text-[11px] text-muted-foreground">{label}</div>
|
|
51
|
+
<div className="mt-0.5 break-words text-sm font-medium tabular-nums text-foreground">
|
|
52
52
|
{value}
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
@@ -62,14 +62,14 @@ export function ChatSessionTokenUsage({ sessionKey }: { sessionKey: string | nul
|
|
|
62
62
|
return (
|
|
63
63
|
<section
|
|
64
64
|
aria-labelledby="chat-workspace-token-usage-title"
|
|
65
|
-
className="mt-4 rounded-lg border border-
|
|
65
|
+
className="mt-4 rounded-lg border border-border p-3"
|
|
66
66
|
>
|
|
67
|
-
<div className="flex items-start gap-
|
|
68
|
-
<span className="inline-flex h-
|
|
67
|
+
<div className="flex items-start gap-2">
|
|
68
|
+
<span className="inline-flex h-5 w-5 shrink-0 items-center justify-center text-muted-foreground">
|
|
69
69
|
<ChartNoAxesColumn className="h-4 w-4" />
|
|
70
70
|
</span>
|
|
71
71
|
<div className="min-w-0 flex-1">
|
|
72
|
-
<div className="flex items-center justify-between gap-2">
|
|
72
|
+
<div className="flex flex-wrap items-center justify-between gap-2">
|
|
73
73
|
<h3 id="chat-workspace-token-usage-title" className="text-sm font-semibold text-gray-900">
|
|
74
74
|
{t('chatWorkspaceTokenUsage')}
|
|
75
75
|
</h3>
|
|
@@ -136,10 +136,10 @@ export function ChatSessionTokenUsage({ sessionKey }: { sessionKey: string | nul
|
|
|
136
136
|
<div className="mb-1.5 text-[11px] font-medium text-gray-700">
|
|
137
137
|
{t('chatWorkspaceTokenUsageByModel')}
|
|
138
138
|
</div>
|
|
139
|
-
<div className="space-y-
|
|
139
|
+
<div className="space-y-2">
|
|
140
140
|
{usage.models.map((modelUsage) => (
|
|
141
|
-
<div key={modelUsage.model} className="rounded-md border border-
|
|
142
|
-
<div className="flex min-w-0 items-center justify-between gap-2">
|
|
141
|
+
<div key={modelUsage.model} className="rounded-md border border-border bg-muted/30 px-2.5 py-2">
|
|
142
|
+
<div className="flex min-w-0 flex-wrap items-center justify-between gap-2">
|
|
143
143
|
<span className="min-w-0 truncate text-xs font-semibold text-gray-900" title={modelUsage.model}>
|
|
144
144
|
{modelUsage.model}
|
|
145
145
|
</span>
|
|
@@ -158,16 +158,16 @@ export function ChatSessionTokenUsage({ sessionKey }: { sessionKey: string | nul
|
|
|
158
158
|
formatCacheHitRate(modelUsage.cacheHitRate),
|
|
159
159
|
)}
|
|
160
160
|
</div>
|
|
161
|
-
<dl className="mt-2 grid grid-cols-2 gap-x-3 gap-y-
|
|
161
|
+
<dl className="mt-2 grid grid-cols-2 gap-x-3 gap-y-2 text-[11px]">
|
|
162
162
|
{[
|
|
163
163
|
[t('chatWorkspaceTokenUsageInput'), modelUsage.inputTokens],
|
|
164
164
|
[t('chatWorkspaceTokenUsageOutput'), modelUsage.outputTokens],
|
|
165
165
|
[t('chatWorkspaceTokenUsageCachedInput'), modelUsage.cachedInputTokens],
|
|
166
166
|
[t('chatWorkspaceTokenUsageTotal'), modelUsage.totalTokens],
|
|
167
167
|
].map(([label, value]) => (
|
|
168
|
-
<div key={String(label)} className="
|
|
168
|
+
<div key={String(label)} className="min-w-0">
|
|
169
169
|
<dt className="truncate text-gray-500">{label}</dt>
|
|
170
|
-
<dd className="
|
|
170
|
+
<dd className="mt-0.5 break-words font-medium tabular-nums text-gray-800">
|
|
171
171
|
{formatTokenCount(value as number | null)}
|
|
172
172
|
</dd>
|
|
173
173
|
</div>
|
package/src/features/chat/features/workspace/components/project-files/workspace-directory-tree.tsx
CHANGED
|
@@ -77,9 +77,9 @@ function EntryIcon({
|
|
|
77
77
|
return <FileTypeIcon fileName={fileName} />;
|
|
78
78
|
}
|
|
79
79
|
return isExpanded ? (
|
|
80
|
-
<FolderOpen className="h-4 w-4 shrink-0 text-
|
|
80
|
+
<FolderOpen className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
81
81
|
) : (
|
|
82
|
-
<Folder className="h-4 w-4 shrink-0 text-
|
|
82
|
+
<Folder className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -64,7 +64,7 @@ export function WorkspaceNewFolderTreeItem({
|
|
|
64
64
|
{kind === 'file' ? (
|
|
65
65
|
<File className="h-4 w-4 shrink-0 text-gray-500" />
|
|
66
66
|
) : (
|
|
67
|
-
<Folder className="h-4 w-4 shrink-0 text-
|
|
67
|
+
<Folder className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
68
68
|
)}
|
|
69
69
|
<Input
|
|
70
70
|
density="compact"
|
|
@@ -19,9 +19,9 @@ export function WorkspaceProjectFilesToolbar({
|
|
|
19
19
|
onRefresh: () => void;
|
|
20
20
|
}) {
|
|
21
21
|
return (
|
|
22
|
-
<div className="flex h-9 shrink-0 items-center gap-0.5 border-b border-
|
|
22
|
+
<div className="flex h-9 shrink-0 items-center gap-0.5 border-b border-border bg-background px-1.5">
|
|
23
23
|
<span
|
|
24
|
-
className="min-w-0 flex-1 truncate px-
|
|
24
|
+
className="min-w-0 flex-1 truncate px-1 text-xs font-medium text-muted-foreground"
|
|
25
25
|
title={rootLabel}
|
|
26
26
|
>
|
|
27
27
|
{rootLabel}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ACTION_FEEDBACK, ACTION_MENU_ITEM_CLASS } from '@/shared/components/ui/actions/action-feedback';
|
|
2
|
+
import { Trash2 } from 'lucide-react';
|
|
1
3
|
import { useState } from "react";
|
|
2
4
|
import {
|
|
3
5
|
CalendarClock,
|
|
@@ -181,7 +183,7 @@ function SessionCronJobCard({
|
|
|
181
183
|
</TooltipTrigger>
|
|
182
184
|
<TooltipContent>{t("cronMoreActions")}</TooltipContent>
|
|
183
185
|
</Tooltip>
|
|
184
|
-
<PopoverContent align="end" sideOffset={4}
|
|
186
|
+
<PopoverContent align="end" sideOffset={4} variant="menu">
|
|
185
187
|
<button
|
|
186
188
|
type="button"
|
|
187
189
|
disabled={isPending}
|
|
@@ -189,9 +191,9 @@ function SessionCronJobCard({
|
|
|
189
191
|
setMenuOpen(false);
|
|
190
192
|
void cronActions.runJob(job);
|
|
191
193
|
}}
|
|
192
|
-
className=
|
|
194
|
+
className={`${ACTION_MENU_ITEM_CLASS} text-foreground ${ACTION_FEEDBACK.item}`}
|
|
193
195
|
>
|
|
194
|
-
<Play className="h-
|
|
196
|
+
<Play className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
195
197
|
{t("cronRunNow")}
|
|
196
198
|
</button>
|
|
197
199
|
<button
|
|
@@ -201,8 +203,9 @@ function SessionCronJobCard({
|
|
|
201
203
|
setMenuOpen(false);
|
|
202
204
|
void cronActions.deleteJob(job);
|
|
203
205
|
}}
|
|
204
|
-
className=
|
|
206
|
+
className={`${ACTION_MENU_ITEM_CLASS} ${ACTION_FEEDBACK.destructive}`}
|
|
205
207
|
>
|
|
208
|
+
<Trash2 className="h-4 w-4 shrink-0" />
|
|
206
209
|
{t("delete")}
|
|
207
210
|
</button>
|
|
208
211
|
</PopoverContent>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ACTION_FEEDBACK, ACTION_MENU_ITEM_CLASS } from '@/shared/components/ui/actions/action-feedback';
|
|
1
2
|
import { PageResourceActionItems } from '@/features/right-panel-resources';
|
|
2
3
|
import { pageResourceFromSystemObject } from '@/features/right-panel-resources';
|
|
3
4
|
import { useState } from "react";
|
|
@@ -206,9 +207,9 @@ export function CronJobRow({
|
|
|
206
207
|
setMenuOpen(false);
|
|
207
208
|
onRun(job);
|
|
208
209
|
}}
|
|
209
|
-
className=
|
|
210
|
+
className={`${ACTION_MENU_ITEM_CLASS} text-foreground ${ACTION_FEEDBACK.item}`}
|
|
210
211
|
>
|
|
211
|
-
<Play className="h-
|
|
212
|
+
<Play className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
212
213
|
{t("cronRunNow")}
|
|
213
214
|
</button>
|
|
214
215
|
<button
|
|
@@ -217,9 +218,9 @@ export function CronJobRow({
|
|
|
217
218
|
setMenuOpen(false);
|
|
218
219
|
onDelete(job);
|
|
219
220
|
}}
|
|
220
|
-
className=
|
|
221
|
+
className={`${ACTION_MENU_ITEM_CLASS} ${ACTION_FEEDBACK.destructive}`}
|
|
221
222
|
>
|
|
222
|
-
<Trash2 className="h-
|
|
223
|
+
<Trash2 className="h-4 w-4 shrink-0" />
|
|
223
224
|
{t("delete")}
|
|
224
225
|
</button>
|
|
225
226
|
<div className="my-1 h-px bg-border" />
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
} from "@/shared/components/ui/dialog";
|
|
12
12
|
import { Button } from "@/shared/components/ui/button";
|
|
13
13
|
import { appQueryClient } from "@/app-query-client";
|
|
14
|
-
import { nextclawClient } from "@/shared/lib/api
|
|
14
|
+
import { nextclawClient } from "@/shared/lib/api";
|
|
15
15
|
import { t } from "@/shared/lib/i18n";
|
|
16
|
-
import { desktopCapabilityManager } from "
|
|
16
|
+
import { desktopCapabilityManager } from "@/features/desktop-capabilities/managers/desktop-capability.manager";
|
|
17
17
|
import {
|
|
18
18
|
type DesktopAuthorizationRequest,
|
|
19
19
|
useDesktopAuthorizationStore,
|
|
20
|
-
} from "
|
|
20
|
+
} from "@/features/desktop-capabilities/stores/desktop-authorization.store";
|
|
21
21
|
|
|
22
22
|
const AUTHORIZATION_EVENT_TYPE = "desktop.authorization.required";
|
|
23
23
|
|
|
@@ -61,8 +61,8 @@ export function DesktopAuthorizationDialog() {
|
|
|
61
61
|
if (!open && !isGranting) clear();
|
|
62
62
|
}}
|
|
63
63
|
>
|
|
64
|
-
<DialogContent
|
|
65
|
-
<DialogHeader>
|
|
64
|
+
<DialogContent>
|
|
65
|
+
<DialogHeader showClose={false}>
|
|
66
66
|
<DialogTitle className="flex items-center gap-2">
|
|
67
67
|
<ShieldAlert className="h-4 w-4 text-amber-600" />
|
|
68
68
|
{t("desktopAuthorizationTitle")}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
|
|
2
2
|
import { MemoryRouter, useLocation } from "react-router-dom";
|
|
3
3
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
4
|
-
import { CHAT_DRAFT_SESSION_PATH } from "@/features/chat";
|
|
4
|
+
import { buildSessionPath, CHAT_DRAFT_SESSION_PATH } from "@/features/chat";
|
|
5
5
|
import { InboxReaderDialog } from "@/features/inbox/components/inbox-reader-dialog";
|
|
6
6
|
import { useInboxStore } from "@/features/inbox/stores/inbox.store";
|
|
7
7
|
import { t } from "@/shared/lib/i18n";
|
|
@@ -9,6 +9,7 @@ import { t } from "@/shared/lib/i18n";
|
|
|
9
9
|
const mocks = vi.hoisted(() => ({
|
|
10
10
|
closeReader: vi.fn(),
|
|
11
11
|
contentType: "markdown",
|
|
12
|
+
deliveryCount: 1,
|
|
12
13
|
prepareChatReference: vi.fn(),
|
|
13
14
|
requestSystemObjectReference: vi.fn(),
|
|
14
15
|
markRead: vi.fn(),
|
|
@@ -17,16 +18,17 @@ const mocks = vi.hoisted(() => ({
|
|
|
17
18
|
|
|
18
19
|
vi.mock("@/app/components/app-presenter-provider", () => ({
|
|
19
20
|
useAppPresenter: () => ({
|
|
21
|
+
docBrowserManager: { close: vi.fn() },
|
|
20
22
|
inboxManager: mocks,
|
|
21
|
-
|
|
23
|
+
chatComposerIntentManager: { requestSystemObjectReference: mocks.requestSystemObjectReference },
|
|
22
24
|
}),
|
|
23
25
|
}));
|
|
24
26
|
|
|
25
27
|
vi.mock("@/features/inbox/hooks/use-inbox-deliveries", () => ({
|
|
26
28
|
useInboxDeliveries: () => ({
|
|
27
29
|
data: {
|
|
28
|
-
deliveries:
|
|
29
|
-
id:
|
|
30
|
+
deliveries: Array.from({ length: mocks.deliveryCount }, (_, index) => ({
|
|
31
|
+
id: `delivery-${index + 1}`,
|
|
30
32
|
title: "A considered report",
|
|
31
33
|
summary: "A concise summary",
|
|
32
34
|
content: mocks.contentType === "html"
|
|
@@ -39,7 +41,7 @@ vi.mock("@/features/inbox/hooks/use-inbox-deliveries", () => ({
|
|
|
39
41
|
presentedAt: "2026-08-06T00:01:00.000Z",
|
|
40
42
|
readAt: null,
|
|
41
43
|
archivedAt: null,
|
|
42
|
-
}
|
|
44
|
+
})),
|
|
43
45
|
},
|
|
44
46
|
}),
|
|
45
47
|
}));
|
|
@@ -58,7 +60,9 @@ describe("InboxReaderDialog", () => {
|
|
|
58
60
|
beforeEach(() => {
|
|
59
61
|
vi.clearAllMocks();
|
|
60
62
|
mocks.contentType = "markdown";
|
|
63
|
+
mocks.deliveryCount = 1;
|
|
61
64
|
mocks.prepareChatReference.mockResolvedValue({
|
|
65
|
+
targetSessionKey: null,
|
|
62
66
|
reference: {
|
|
63
67
|
uri: "nextclaw://objects/inbox-delivery/delivery-1",
|
|
64
68
|
label: "A considered report",
|
|
@@ -110,9 +114,45 @@ describe("InboxReaderDialog", () => {
|
|
|
110
114
|
});
|
|
111
115
|
expect(mocks.prepareChatReference).toHaveBeenCalledWith("delivery-1");
|
|
112
116
|
expect(mocks.requestSystemObjectReference).toHaveBeenCalledWith(
|
|
113
|
-
expect.objectContaining({ uri: "nextclaw://objects/inbox-delivery/delivery-1" }),
|
|
117
|
+
{ targetSessionKey: null, reference: expect.objectContaining({ uri: "nextclaw://objects/inbox-delivery/delivery-1" }) },
|
|
114
118
|
);
|
|
115
119
|
});
|
|
120
|
+
|
|
121
|
+
it("keeps every reader action accessible and opens the current report in Inbox", async () => {
|
|
122
|
+
render(<MemoryRouter><InboxReaderDialog /><CurrentPath /></MemoryRouter>);
|
|
123
|
+
for (const key of ["inboxReadLater", "inboxMarkRead", "inboxOpenInbox", "inboxContinueChat"] as const) {
|
|
124
|
+
expect(screen.getByRole("button", { name: t(key) })).toBeTruthy();
|
|
125
|
+
}
|
|
126
|
+
fireEvent.click(screen.getByRole("button", { name: t("inboxOpenInbox") }));
|
|
127
|
+
await waitFor(() => expect(screen.getByTestId("current-path").textContent).toBe("/inbox/delivery-1"));
|
|
128
|
+
expect(mocks.markRead).toHaveBeenCalledWith("delivery-1");
|
|
129
|
+
expect(mocks.closeReader).toHaveBeenCalled();
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
it("returns to the report source instead of consuming the reference in the current session", async () => {
|
|
133
|
+
const reference = { uri: "nextclaw://objects/inbox-delivery/delivery-1", label: "A considered report" };
|
|
134
|
+
mocks.prepareChatReference.mockResolvedValue({ reference, targetSessionKey: "source-session" });
|
|
135
|
+
render(<MemoryRouter initialEntries={[buildSessionPath("other-session")]}><InboxReaderDialog /><CurrentPath /></MemoryRouter>);
|
|
136
|
+
fireEvent.click(screen.getByRole("button", { name: t("inboxContinueChat") }));
|
|
137
|
+
await waitFor(() => expect(screen.getByTestId("current-path").textContent).toBe(buildSessionPath("source-session")));
|
|
138
|
+
expect(mocks.requestSystemObjectReference).toHaveBeenCalledWith({ targetSessionKey: "source-session", reference });
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
it("closes through the shared icon action", () => {
|
|
142
|
+
render(<MemoryRouter><InboxReaderDialog /></MemoryRouter>);
|
|
143
|
+
fireEvent.click(screen.getByRole("button", { name: t("close") }));
|
|
144
|
+
expect(mocks.closeReader).toHaveBeenCalledOnce();
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
it("navigates multiple reports without triggering the adjacent close action", async () => {
|
|
148
|
+
mocks.deliveryCount = 2;
|
|
149
|
+
render(<MemoryRouter><InboxReaderDialog /></MemoryRouter>);
|
|
150
|
+
expect((screen.getByRole("button", { name: t("inboxPrevious") }) as HTMLButtonElement).disabled).toBe(true);
|
|
151
|
+
fireEvent.click(screen.getByRole("button", { name: t("inboxNext") }));
|
|
152
|
+
await waitFor(() => expect(mocks.selectInReader).toHaveBeenCalledWith("delivery-2"));
|
|
153
|
+
expect(mocks.closeReader).not.toHaveBeenCalled();
|
|
154
|
+
expect(screen.getAllByRole("button", { name: t("close") })).toHaveLength(1);
|
|
155
|
+
});
|
|
116
156
|
});
|
|
117
157
|
|
|
118
158
|
// Resource policy has separate integration coverage; keep this fixture scoped to its business UI.
|