@nextclaw/ui 0.26.5 → 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 +53 -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-Bcnn2_uV.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-Cqs73hGI.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-EY1ScSMe.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-CH7w6yRV.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-Cfo2ySi5.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-BDYITStl.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-DwgG6wrz.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-BoaKzDJk.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-D9JWSFQu.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-Bm3Ov7Fy.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-DZ8A1iLg.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-C-DvcG3L.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-CjxNC8aT.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-BlXDrVP0.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-ei6rPD6z.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-DdF-bXgC.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-CrNhfInU.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-C3SRFEta.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-evzage09.js → use-config-D3cNzk2k.js} +1 -1
- package/dist/assets/{use-desktop-capabilities-BYDjFlpt.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 +4 -4
- 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/utils/chat-message-execution-summary.utils.ts +3 -0
- package/src/features/chat/features/message/utils/chat-message-texts.utils.ts +1 -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 +1 -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 +3 -7
- package/src/features/chat/features/workspace/components/chat-session-workspace-file-preview.tsx +5 -4
- package/src/features/chat/features/workspace/components/chat-session-workspace-panel-content.tsx +27 -27
- 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 +4 -2
- package/src/features/inbox/pages/inbox-page.tsx +6 -5
- 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/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/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 +2 -2
- 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 +4 -1
- package/src/shared/lib/i18n/locales/en-US/chat.json +13 -7
- 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 +13 -7
- 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-BAH7FW6z.js +0 -1
- package/dist/assets/api-DjiZvIa0.js +0 -20
- package/dist/assets/app-presenter-provider-CCRFsFYr.js +0 -232
- package/dist/assets/appearance-settings-page-CdP86QJ7.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-5qGagKuE.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-CuEGQL8Z.js +0 -1
- package/dist/assets/confirm-dialog-CxfecBzO.js +0 -1
- package/dist/assets/context-menu-BsCj2fRs.js +0 -1
- package/dist/assets/cynefin-VYW2F7L2-DXUGnpJH.js +0 -1
- package/dist/assets/desktop-update-config-e-zhkJuS.js +0 -1
- package/dist/assets/dialog-QjQoKbIV.js +0 -5
- package/dist/assets/doc-browser-CLEdkH9z.js +0 -1
- package/dist/assets/es2015-Bp6cuSGh.js +0 -41
- package/dist/assets/eventmodeling-45OFAUF4-ZBfVS3ZC.js +0 -1
- package/dist/assets/extensions-CgShSIkd.js +0 -1
- package/dist/assets/eye-kisejBFH.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-Bd1fTm-x.js +0 -1
- package/dist/assets/login-page-D99JjH9F.js +0 -1
- package/dist/assets/main-Bt5r6b21.js +0 -2
- package/dist/assets/main-DXd_aKJV.css +0 -1
- package/dist/assets/main-i18n-catalog.config-D0Ll36J_.js +0 -1
- package/dist/assets/mcp-marketplace-page-DUoGfSmY.js +0 -1
- package/dist/assets/model-config-page-9NNf-mzK.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-Ddf2Kv8A.js +0 -1
- package/dist/assets/panelStandalone-BRg7B1EI.css +0 -1
- package/dist/assets/panelStandalone-BaUzY8Wy.js +0 -2
- package/dist/assets/pie-RZYD4A2V-VEnYu9s5.js +0 -1
- package/dist/assets/privacy-settings-page-CVMBFuak.js +0 -1
- package/dist/assets/projects-BEsU3box.js +0 -1
- package/dist/assets/provider-models-Dm-pmWAA.js +0 -1
- package/dist/assets/provider-scoped-model-input-CzrXg4cX.js +0 -1
- package/dist/assets/providers-config-page-839uUADZ.js +0 -1
- package/dist/assets/puzzle-BGvD2DPZ.js +0 -1
- package/dist/assets/pwa-DNNK_8E9.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-B5qIuUbT.js +0 -1
- package/dist/assets/runtime-config-page-Bf-4JYxQ.js +0 -1
- package/dist/assets/search-config-page-C0qA3j-T.js +0 -1
- package/dist/assets/secrets-config-page-DxfZWpnk.js +0 -3
- package/dist/assets/security-config-CItfIQZ4.js +0 -1
- package/dist/assets/select-CWyjnar7.js +0 -1
- package/dist/assets/service-apps-panel-D3SOkRVv.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-BIuavK2K.js +0 -1
- package/dist/assets/theme-provider-CWUz4yO9.js +0 -1
- package/dist/assets/trash-2-hAbJh9VZ.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-D_9XWGDV.js +0 -1
- package/dist/assets/wardley-OPB4EBWU-D8d6DbbJ.js +0 -1
- package/dist/assets/x-ChPbNv39.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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRef, useState } from "react";
|
|
2
|
-
import { ACTION_FEEDBACK, ACTION_MENU_ITEM_CLASS } from '@/shared/components/ui/actions/action-feedback';
|
|
3
2
|
import type { AppDataEntry, AppPackageOperationView, AppPackageView } from "@nextclaw/client-sdk";
|
|
4
3
|
import {
|
|
5
4
|
AlertCircle,
|
|
@@ -9,27 +8,33 @@ import {
|
|
|
9
8
|
CheckSquare2,
|
|
10
9
|
ChevronRight,
|
|
11
10
|
MoreVertical,
|
|
11
|
+
Info,
|
|
12
|
+
Power,
|
|
12
13
|
NotebookText,
|
|
13
14
|
RefreshCw,
|
|
14
15
|
RotateCcw,
|
|
15
|
-
Server,
|
|
16
16
|
Trash2,
|
|
17
17
|
LoaderCircle,
|
|
18
|
-
HardDrive,
|
|
19
|
-
ShieldAlert,
|
|
20
|
-
ShieldCheck,
|
|
21
18
|
type LucideIcon,
|
|
22
19
|
} from "lucide-react";
|
|
23
20
|
import { AppArtwork } from "@/features/apps/components/app-artwork";
|
|
24
|
-
import {
|
|
25
|
-
import { AppDataRemovalChoice, AppStorageUsageDetails
|
|
21
|
+
import { AppPackageDetailsDialog } from "@/features/apps/components/app-package-details-dialog";
|
|
22
|
+
import { AppDataRemovalChoice, AppStorageUsageDetails } from "@/features/app-data";
|
|
26
23
|
import { isAppPackageOperationActive } from "@/features/apps/hooks/use-app-packages";
|
|
27
24
|
import { readAppPackageAvailability } from "@/features/apps/utils/app-package-readiness.utils";
|
|
28
25
|
import type { PanelAppEntryView } from "@/shared/lib/api";
|
|
29
26
|
import { Button } from "@/shared/components/ui/button";
|
|
27
|
+
import { IconActionButton } from "@/shared/components/ui/actions/icon-action-button";
|
|
30
28
|
import { Card } from "@/shared/components/ui/card";
|
|
31
|
-
import {
|
|
32
|
-
|
|
29
|
+
import {
|
|
30
|
+
Dialog,
|
|
31
|
+
DialogContent,
|
|
32
|
+
DialogDescription,
|
|
33
|
+
DialogFooter,
|
|
34
|
+
DialogHeader,
|
|
35
|
+
DialogTitle,
|
|
36
|
+
} from "@/shared/components/ui/dialog";
|
|
37
|
+
import { ContextMenu, ContextMenuTrigger } from "@/shared/components/ui/context-menu/context-menu";
|
|
33
38
|
import { getLanguage, t } from "@/shared/lib/i18n";
|
|
34
39
|
import { cn } from "@/shared/lib/utils";
|
|
35
40
|
|
|
@@ -64,29 +69,49 @@ export function AppPackageCard({
|
|
|
64
69
|
storageUsageUnavailable: boolean;
|
|
65
70
|
unavailableMessage?: string;
|
|
66
71
|
}) {
|
|
67
|
-
const [
|
|
72
|
+
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
73
|
+
const detailsTriggerRef = useRef<HTMLButtonElement>(null);
|
|
68
74
|
const [uninstallOpen, setUninstallOpen] = useState(false);
|
|
69
75
|
const [purgeData, setPurgeData] = useState(false);
|
|
70
|
-
const skipMenuFocusRestoreRef = useRef(false);
|
|
71
76
|
const uninstallCancelRef = useRef<HTMLButtonElement>(null);
|
|
72
77
|
const panelComponents = appPackage.components.filter((component) => component.kind === "panel");
|
|
73
|
-
const serviceCount = appPackage.components.length - panelComponents.length;
|
|
74
78
|
const rollbackVersions = appPackage.installedVersions.filter((version) => version !== appPackage.activeVersion);
|
|
75
79
|
const displayName = readLocalizedText(appPackage.name, appPackage.nameI18n) ?? appPackage.id;
|
|
76
80
|
const displayDescription = readLocalizedText(appPackage.description, appPackage.descriptionI18n);
|
|
77
81
|
const operationActive = operation ? isAppPackageOperationActive(operation.status) : false;
|
|
78
82
|
const pending = isPending || operationActive;
|
|
79
83
|
const availability = readAppPackageAvailability(appPackage, unavailableMessage);
|
|
80
|
-
const
|
|
84
|
+
const singlePanel =
|
|
85
|
+
panelComponents.length === 1 ? panelApps.find((entry) => entry.appId === panelComponents[0].id) : undefined;
|
|
86
|
+
const primaryAction = !appPackage.enabled ? "enable" : panelComponents.length === 1 ? "open" : "details";
|
|
87
|
+
const primaryDisabled =
|
|
88
|
+
pending || (primaryAction !== "details" && !availability.interactive) || (primaryAction === "open" && !singlePanel);
|
|
89
|
+
const primaryLabel = { enable: "appPackagesEnable", open: "appPackagesOpen", details: "appPackagesDetails" } as const;
|
|
81
90
|
|
|
82
91
|
return (
|
|
83
|
-
<Card
|
|
84
|
-
|
|
92
|
+
<Card
|
|
93
|
+
surface="flat"
|
|
94
|
+
hover={false}
|
|
95
|
+
className="[container-type:inline-size] overflow-hidden rounded-none border-0 shadow-none"
|
|
96
|
+
>
|
|
97
|
+
<div className="grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 px-3 py-4">
|
|
85
98
|
<AppArtwork icon={appPackage.icon} name={displayName} />
|
|
86
99
|
<div className="min-w-0 flex-1">
|
|
87
|
-
<div className="flex min-w-0 items-center gap-2">
|
|
88
|
-
<h2 className="
|
|
89
|
-
|
|
100
|
+
<div className="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1">
|
|
101
|
+
<h2 className="min-w-0 max-w-full text-sm font-semibold text-foreground">
|
|
102
|
+
<button
|
|
103
|
+
ref={detailsTriggerRef}
|
|
104
|
+
type="button"
|
|
105
|
+
onClick={() => setDetailsOpen(true)}
|
|
106
|
+
className="block max-w-full truncate rounded-sm text-left hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
|
|
107
|
+
title={displayName}
|
|
108
|
+
>
|
|
109
|
+
{displayName}
|
|
110
|
+
</button>
|
|
111
|
+
</h2>
|
|
112
|
+
<span className={cn("shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium", availability.className)}>
|
|
113
|
+
{availability.label}
|
|
114
|
+
</span>
|
|
90
115
|
</div>
|
|
91
116
|
{availability.message ? (
|
|
92
117
|
<p role="alert" className={cn("mt-2 text-xs leading-5", availability.messageClassName)}>
|
|
@@ -103,109 +128,119 @@ export function AppPackageCard({
|
|
|
103
128
|
))}
|
|
104
129
|
</ul>
|
|
105
130
|
) : null}
|
|
106
|
-
{displayDescription ?
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
{appPackage.builtIn ? <span>{t("appPackagesBuiltIn")}</span> : null}
|
|
110
|
-
{serviceCount > 0 ? (
|
|
111
|
-
<span className="inline-flex items-center gap-1">
|
|
112
|
-
<Server className="h-3 w-3" />
|
|
113
|
-
{t("appPackagesLocalService")}
|
|
114
|
-
</span>
|
|
115
|
-
) : null}
|
|
116
|
-
<span className={cn("inline-flex items-center gap-1", appPackage.isolation === "full-user" && "text-amber-700 dark:text-amber-300")}>
|
|
117
|
-
{appPackage.isolation === "full-user" ? <ShieldAlert className="h-3 w-3" /> : <ShieldCheck className="h-3 w-3" />}
|
|
118
|
-
{appPackage.isolation === "full-user" ? t("appPackagesIsolationFullUser") : appPackage.isolation === "host-mediated" ? t("appPackagesIsolationMediated") : t("appPackagesIsolationPanel")}
|
|
119
|
-
</span>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="mt-2 flex min-w-0 items-center gap-1.5 rounded-md bg-muted/35 px-2 py-1 text-[10px] text-muted-foreground" title={appPackage.storage.dataDirectory}>
|
|
122
|
-
<HardDrive className="h-3 w-3 shrink-0" />
|
|
123
|
-
<span className="shrink-0">
|
|
124
|
-
{t("appPackagesDataUsage")} {storageUsageLabel}
|
|
125
|
-
</span>
|
|
126
|
-
<code className="min-w-0 truncate font-mono text-[10px]">{appPackage.storage.dataDirectory}</code>
|
|
127
|
-
</div>
|
|
131
|
+
{displayDescription ? (
|
|
132
|
+
<p className="mt-1 line-clamp-2 text-xs leading-5 text-muted-foreground">{displayDescription}</p>
|
|
133
|
+
) : null}
|
|
128
134
|
</div>
|
|
129
|
-
<div className="flex shrink-0 items-center gap-1
|
|
135
|
+
<div className="flex shrink-0 items-center justify-end gap-1">
|
|
130
136
|
<Button
|
|
131
137
|
type="button"
|
|
132
138
|
size="sm"
|
|
133
|
-
variant=
|
|
134
|
-
disabled={
|
|
139
|
+
variant="outline"
|
|
140
|
+
disabled={primaryDisabled}
|
|
135
141
|
title={availability.message}
|
|
136
|
-
onClick={
|
|
142
|
+
onClick={() => {
|
|
143
|
+
if (!appPackage.enabled) onEnable();
|
|
144
|
+
else if (singlePanel) onOpenPanelApp(singlePanel);
|
|
145
|
+
else setDetailsOpen(true);
|
|
146
|
+
}}
|
|
137
147
|
>
|
|
138
|
-
{
|
|
139
|
-
enabled: appPackage.enabled,
|
|
140
|
-
|
|
141
|
-
operation,
|
|
142
|
-
operationActive,
|
|
143
|
-
})}
|
|
148
|
+
{pending
|
|
149
|
+
? renderPrimaryActionLabel({ enabled: appPackage.enabled, isPending, operation, operationActive })
|
|
150
|
+
: t(primaryLabel[primaryAction])}
|
|
144
151
|
</Button>
|
|
145
|
-
<
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
152
|
+
<ContextMenu
|
|
153
|
+
label={t("appPackagesMoreActions")}
|
|
154
|
+
groups={
|
|
155
|
+
pending
|
|
156
|
+
? []
|
|
157
|
+
: [
|
|
158
|
+
{
|
|
159
|
+
key: "manage",
|
|
160
|
+
items: [
|
|
161
|
+
{
|
|
162
|
+
key: "details",
|
|
163
|
+
icon: <Info className="h-4 w-4" />,
|
|
164
|
+
label: t("appPackagesDetails"),
|
|
165
|
+
restoreFocus: false,
|
|
166
|
+
onSelect: () => setDetailsOpen(true),
|
|
167
|
+
},
|
|
168
|
+
...(appPackage.enabled
|
|
169
|
+
? [
|
|
170
|
+
{
|
|
171
|
+
key: "disable",
|
|
172
|
+
icon: <Power className="h-4 w-4" />,
|
|
173
|
+
label: t("appPackagesDisable"),
|
|
174
|
+
onSelect: onDisable,
|
|
175
|
+
},
|
|
176
|
+
]
|
|
177
|
+
: []),
|
|
178
|
+
{
|
|
179
|
+
key: "update",
|
|
180
|
+
icon: <RefreshCw className="h-4 w-4" />,
|
|
181
|
+
label: t("appPackagesCheckUpdate"),
|
|
182
|
+
onSelect: onUpdate,
|
|
183
|
+
},
|
|
184
|
+
...rollbackVersions.map((version) => ({
|
|
185
|
+
key: version,
|
|
186
|
+
icon: <RotateCcw className="h-4 w-4" />,
|
|
187
|
+
label: `${t("appPackagesRollback")} v${version}`,
|
|
188
|
+
onSelect: () => onRollback(version),
|
|
189
|
+
})),
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
key: "remove",
|
|
194
|
+
items: [
|
|
195
|
+
{
|
|
196
|
+
key: "uninstall",
|
|
197
|
+
destructive: true,
|
|
198
|
+
icon: <Trash2 className="h-4 w-4" />,
|
|
199
|
+
label: t("appPackagesUninstall"),
|
|
200
|
+
restoreFocus: false,
|
|
201
|
+
onSelect: () => {
|
|
202
|
+
setPurgeData(false);
|
|
203
|
+
setUninstallOpen(true);
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
>
|
|
211
|
+
<div>
|
|
212
|
+
<ContextMenuTrigger>
|
|
213
|
+
<IconActionButton
|
|
214
|
+
icon={<MoreVertical className="h-4 w-4" />}
|
|
215
|
+
label={t("appPackagesMoreActions")}
|
|
216
|
+
disabled={pending}
|
|
184
217
|
/>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
icon={Trash2}
|
|
189
|
-
label={t("appPackagesUninstall")}
|
|
190
|
-
onClick={() => {
|
|
191
|
-
skipMenuFocusRestoreRef.current = true;
|
|
192
|
-
setMenuOpen(false);
|
|
193
|
-
setPurgeData(false);
|
|
194
|
-
setUninstallOpen(true);
|
|
195
|
-
}}
|
|
196
|
-
/>
|
|
197
|
-
</PopoverContent>
|
|
198
|
-
</Popover>
|
|
218
|
+
</ContextMenuTrigger>
|
|
219
|
+
</div>
|
|
220
|
+
</ContextMenu>
|
|
199
221
|
</div>
|
|
200
222
|
</div>
|
|
201
223
|
|
|
202
|
-
|
|
224
|
+
<AppPackageDetailsDialog
|
|
225
|
+
appPackage={appPackage}
|
|
226
|
+
disabled={pending || Boolean(unavailableMessage)}
|
|
227
|
+
displayName={displayName}
|
|
228
|
+
displayDescription={displayDescription}
|
|
229
|
+
open={detailsOpen}
|
|
230
|
+
onOpenChange={setDetailsOpen}
|
|
231
|
+
onFocusReturn={() => detailsTriggerRef.current?.focus()}
|
|
232
|
+
storageUsage={storageUsage}
|
|
233
|
+
storageUsageLoading={storageUsageLoading}
|
|
234
|
+
storageUsageUnavailable={storageUsageUnavailable}
|
|
235
|
+
/>
|
|
203
236
|
|
|
204
|
-
|
|
237
|
+
{operation && (operationActive || operation.status === "failed" || operation.status === "interrupted") ? (
|
|
238
|
+
<PackageOperationStatus operation={operation} />
|
|
239
|
+
) : null}
|
|
205
240
|
|
|
206
|
-
{panelComponents.length >
|
|
207
|
-
<div className="
|
|
208
|
-
<div className="grid grid-cols-
|
|
241
|
+
{appPackage.enabled && panelComponents.length > 1 ? (
|
|
242
|
+
<div className="px-3 pb-3 [@container(min-width:28rem)]:pl-16">
|
|
243
|
+
<div className="grid grid-cols-1 gap-1 [@container(min-width:20rem)]:grid-cols-2">
|
|
209
244
|
{panelComponents.map((component) => {
|
|
210
245
|
const panelApp = panelApps.find((entry) => entry.appId === component.id);
|
|
211
246
|
const Icon = resolveComponentIcon(component.id);
|
|
@@ -214,7 +249,7 @@ export function AppPackageCard({
|
|
|
214
249
|
<button
|
|
215
250
|
key={component.id}
|
|
216
251
|
type="button"
|
|
217
|
-
disabled={!
|
|
252
|
+
disabled={!panelApp || pending || !availability.interactive}
|
|
218
253
|
onClick={() =>
|
|
219
254
|
panelApp &&
|
|
220
255
|
onOpenPanelApp({
|
|
@@ -224,13 +259,13 @@ export function AppPackageCard({
|
|
|
224
259
|
})
|
|
225
260
|
}
|
|
226
261
|
className="group flex min-w-0 items-center gap-2 rounded-lg px-2.5 py-2 text-left transition-colors hover:bg-[var(--interaction-hover)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border disabled:cursor-default disabled:opacity-55"
|
|
227
|
-
title={availability.message ??
|
|
262
|
+
title={availability.message ?? componentTitle}
|
|
228
263
|
>
|
|
229
|
-
<span className="flex h-7 w-7 shrink-0 items-center justify-center rounded-lg
|
|
264
|
+
<span className="flex h-7 w-7 shrink-0 items-center justify-center rounded-lg text-muted-foreground">
|
|
230
265
|
<ComponentIcon icon={component.icon} fallback={Icon} />
|
|
231
266
|
</span>
|
|
232
267
|
<span className="min-w-0 flex-1 truncate text-xs font-medium text-foreground">{componentTitle}</span>
|
|
233
|
-
|
|
268
|
+
<ChevronRight className="h-3.5 w-3.5 shrink-0 text-muted-foreground/50 transition-transform group-hover:translate-x-0.5" />
|
|
234
269
|
</button>
|
|
235
270
|
);
|
|
236
271
|
})}
|
|
@@ -240,25 +275,51 @@ export function AppPackageCard({
|
|
|
240
275
|
|
|
241
276
|
<Dialog open={uninstallOpen} onOpenChange={setUninstallOpen}>
|
|
242
277
|
<DialogContent
|
|
243
|
-
className="max-w-md
|
|
278
|
+
className="max-w-md"
|
|
279
|
+
onCloseAutoFocus={(event) => {
|
|
280
|
+
event.preventDefault();
|
|
281
|
+
detailsTriggerRef.current?.focus();
|
|
282
|
+
}}
|
|
244
283
|
onOpenAutoFocus={(event) => {
|
|
245
284
|
event.preventDefault();
|
|
246
285
|
uninstallCancelRef.current?.focus();
|
|
247
286
|
}}
|
|
248
287
|
>
|
|
249
|
-
<DialogHeader>
|
|
288
|
+
<DialogHeader showClose={false}>
|
|
250
289
|
<DialogTitle>{t("appPackagesUninstallTitle")}</DialogTitle>
|
|
251
290
|
<DialogDescription>{t("appPackagesUninstallDescription")}</DialogDescription>
|
|
252
291
|
</DialogHeader>
|
|
253
292
|
<div className="mt-4 grid gap-2">
|
|
254
|
-
<AppDataRemovalChoice
|
|
255
|
-
|
|
293
|
+
<AppDataRemovalChoice
|
|
294
|
+
checked={!purgeData}
|
|
295
|
+
description={t("appPackagesKeepDataDescription")}
|
|
296
|
+
label={t("appPackagesKeepData")}
|
|
297
|
+
onClick={() => setPurgeData(false)}
|
|
298
|
+
/>
|
|
299
|
+
<AppDataRemovalChoice
|
|
300
|
+
checked={purgeData}
|
|
301
|
+
destructive
|
|
302
|
+
description={t("appPackagesDeleteDataDescription")}
|
|
303
|
+
label={t("appPackagesDeleteData")}
|
|
304
|
+
onClick={() => setPurgeData(true)}
|
|
305
|
+
/>
|
|
256
306
|
</div>
|
|
257
307
|
<div className="mt-3">
|
|
258
|
-
<AppPackageStorageUsage
|
|
308
|
+
<AppPackageStorageUsage
|
|
309
|
+
loading={storageUsageLoading}
|
|
310
|
+
storage={appPackage.storage}
|
|
311
|
+
usage={storageUsage}
|
|
312
|
+
unavailable={storageUsageUnavailable}
|
|
313
|
+
/>
|
|
259
314
|
</div>
|
|
260
315
|
<DialogFooter className="mt-5 gap-2 sm:gap-0">
|
|
261
|
-
<Button
|
|
316
|
+
<Button
|
|
317
|
+
ref={uninstallCancelRef}
|
|
318
|
+
autoFocus
|
|
319
|
+
type="button"
|
|
320
|
+
variant="outline"
|
|
321
|
+
onClick={() => setUninstallOpen(false)}
|
|
322
|
+
>
|
|
262
323
|
{t("cancel")}
|
|
263
324
|
</Button>
|
|
264
325
|
<Button
|
|
@@ -278,7 +339,17 @@ export function AppPackageCard({
|
|
|
278
339
|
);
|
|
279
340
|
}
|
|
280
341
|
|
|
281
|
-
function AppPackageStorageUsage({
|
|
342
|
+
function AppPackageStorageUsage({
|
|
343
|
+
loading,
|
|
344
|
+
storage,
|
|
345
|
+
unavailable,
|
|
346
|
+
usage,
|
|
347
|
+
}: {
|
|
348
|
+
loading: boolean;
|
|
349
|
+
storage: AppPackageView["storage"];
|
|
350
|
+
unavailable: boolean;
|
|
351
|
+
usage?: AppDataEntry["usage"];
|
|
352
|
+
}) {
|
|
282
353
|
if (usage) {
|
|
283
354
|
return <AppStorageUsageDetails storage={storage} usage={usage} />;
|
|
284
355
|
}
|
|
@@ -290,13 +361,17 @@ function AppPackageStorageUsage({ loading, storage, unavailable, usage }: { load
|
|
|
290
361
|
);
|
|
291
362
|
}
|
|
292
363
|
|
|
293
|
-
function
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
364
|
+
function renderPrimaryActionLabel({
|
|
365
|
+
enabled,
|
|
366
|
+
isPending,
|
|
367
|
+
operation,
|
|
368
|
+
operationActive,
|
|
369
|
+
}: {
|
|
370
|
+
enabled: boolean;
|
|
371
|
+
isPending: boolean;
|
|
372
|
+
operation?: AppPackageOperationView;
|
|
373
|
+
operationActive: boolean;
|
|
374
|
+
}) {
|
|
300
375
|
if (operationActive) {
|
|
301
376
|
return (
|
|
302
377
|
<>
|
|
@@ -309,24 +384,11 @@ function renderPrimaryActionLabel({ enabled, isPending, operation, operationActi
|
|
|
309
384
|
return enabled ? t("appPackagesDisable") : t("appPackagesEnable");
|
|
310
385
|
}
|
|
311
386
|
|
|
312
|
-
function AppPackageMenuItem({ destructive = false, icon: Icon, label, onClick }: { destructive?: boolean; icon: LucideIcon; label: string; onClick: () => void }) {
|
|
313
|
-
return (
|
|
314
|
-
<button
|
|
315
|
-
type="button"
|
|
316
|
-
onClick={onClick}
|
|
317
|
-
className={cn(
|
|
318
|
-
ACTION_MENU_ITEM_CLASS,
|
|
319
|
-
destructive ? ACTION_FEEDBACK.destructive : `text-foreground ${ACTION_FEEDBACK.item}`,
|
|
320
|
-
)}
|
|
321
|
-
>
|
|
322
|
-
<Icon className="h-4 w-4 shrink-0" />
|
|
323
|
-
<span>{label}</span>
|
|
324
|
-
</button>
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
387
|
function ComponentIcon({ fallback: Fallback, icon }: { fallback: LucideIcon; icon?: string }) {
|
|
329
|
-
if (
|
|
388
|
+
if (
|
|
389
|
+
icon &&
|
|
390
|
+
(icon.startsWith("data:") || icon.startsWith("/") || icon.startsWith("http://") || icon.startsWith("https://"))
|
|
391
|
+
) {
|
|
330
392
|
return <img src={icon} alt="" className="h-4 w-4 rounded object-cover" />;
|
|
331
393
|
}
|
|
332
394
|
if (icon) {
|
|
@@ -341,11 +403,23 @@ function PackageOperationStatus({ operation }: { operation: AppPackageOperationV
|
|
|
341
403
|
return (
|
|
342
404
|
<div className="border-t border-border/50 px-4 py-2.5" role={failed ? "alert" : "status"} aria-live="polite">
|
|
343
405
|
<div className="flex items-center gap-2 text-[11px]">
|
|
344
|
-
{failed ?
|
|
345
|
-
|
|
406
|
+
{failed ? (
|
|
407
|
+
<AlertCircle className="h-3.5 w-3.5 text-destructive" />
|
|
408
|
+
) : (
|
|
409
|
+
<LoaderCircle className="h-3.5 w-3.5 animate-spin text-primary" />
|
|
410
|
+
)}
|
|
411
|
+
<span className={failed ? "text-destructive" : "text-muted-foreground"}>
|
|
412
|
+
{failed ? (operation.error ?? t("appPackagesActionFailed")) : operationLabel(operation)}
|
|
413
|
+
</span>
|
|
346
414
|
</div>
|
|
347
415
|
<div className="mt-2 h-1 overflow-hidden rounded-full bg-muted">
|
|
348
|
-
<div
|
|
416
|
+
<div
|
|
417
|
+
className={cn(
|
|
418
|
+
"h-full rounded-full transition-[width] duration-300",
|
|
419
|
+
failed ? "bg-destructive" : "bg-primary",
|
|
420
|
+
)}
|
|
421
|
+
style={{ width: failed ? "100%" : `${progress}%` }}
|
|
422
|
+
/>
|
|
349
423
|
</div>
|
|
350
424
|
</div>
|
|
351
425
|
);
|
|
@@ -385,7 +459,10 @@ function resolveComponentIcon(componentId: string): LucideIcon {
|
|
|
385
459
|
return AppWindow;
|
|
386
460
|
}
|
|
387
461
|
|
|
388
|
-
function readLocalizedText(
|
|
462
|
+
function readLocalizedText(
|
|
463
|
+
fallback: string | undefined,
|
|
464
|
+
localized: Record<string, string> | undefined,
|
|
465
|
+
): string | undefined {
|
|
389
466
|
const languageTag = getLanguage() === "zh" ? "zh-CN" : "en-US";
|
|
390
467
|
return localized?.[languageTag] ?? fallback;
|
|
391
468
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { AppDataEntry, AppPackageView } from "@nextclaw/client-sdk";
|
|
2
|
+
import { HardDrive, Server, ShieldAlert, ShieldCheck } from "lucide-react";
|
|
3
|
+
import { formatBytes } from "@/features/app-data";
|
|
4
|
+
import { AppDocumentAccessSection } from "@/features/apps/components/app-document-access-section";
|
|
5
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/shared/components/ui/dialog";
|
|
6
|
+
import { t } from "@/shared/lib/i18n";
|
|
7
|
+
import { cn } from "@/shared/lib/utils";
|
|
8
|
+
|
|
9
|
+
export function AppPackageDetailsDialog({
|
|
10
|
+
appPackage,
|
|
11
|
+
disabled,
|
|
12
|
+
displayName,
|
|
13
|
+
displayDescription,
|
|
14
|
+
open,
|
|
15
|
+
onOpenChange,
|
|
16
|
+
onFocusReturn,
|
|
17
|
+
storageUsage,
|
|
18
|
+
storageUsageLoading,
|
|
19
|
+
storageUsageUnavailable,
|
|
20
|
+
}: {
|
|
21
|
+
appPackage: AppPackageView;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
displayName: string;
|
|
24
|
+
displayDescription?: string;
|
|
25
|
+
open: boolean;
|
|
26
|
+
onOpenChange: (open: boolean) => void;
|
|
27
|
+
onFocusReturn: () => void;
|
|
28
|
+
storageUsage?: AppDataEntry["usage"];
|
|
29
|
+
storageUsageLoading: boolean;
|
|
30
|
+
storageUsageUnavailable: boolean;
|
|
31
|
+
}) {
|
|
32
|
+
const serviceCount = appPackage.components.filter((component) => component.kind !== "panel").length;
|
|
33
|
+
const storageUsageLabel = resolveStorageUsageLabel(storageUsage, storageUsageLoading, storageUsageUnavailable);
|
|
34
|
+
return (
|
|
35
|
+
<Dialog open={open} onOpenChange={onOpenChange}>
|
|
36
|
+
<DialogContent
|
|
37
|
+
className="max-w-xl"
|
|
38
|
+
onCloseAutoFocus={(event) => {
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
onFocusReturn();
|
|
41
|
+
}}
|
|
42
|
+
>
|
|
43
|
+
<DialogHeader>
|
|
44
|
+
<DialogTitle>{displayName}</DialogTitle>
|
|
45
|
+
<DialogDescription>{displayDescription ?? t("appPackagesDetails")}</DialogDescription>
|
|
46
|
+
</DialogHeader>
|
|
47
|
+
<div className="flex flex-wrap items-center gap-x-3 gap-y-2 text-xs text-muted-foreground">
|
|
48
|
+
<span>v{appPackage.activeVersion}</span>
|
|
49
|
+
{appPackage.builtIn ? <span>{t("appPackagesBuiltIn")}</span> : null}
|
|
50
|
+
{serviceCount > 0 ? (
|
|
51
|
+
<span className="inline-flex items-center gap-1">
|
|
52
|
+
<Server className="h-3 w-3" />
|
|
53
|
+
{t("appPackagesLocalService")}
|
|
54
|
+
</span>
|
|
55
|
+
) : null}
|
|
56
|
+
<span
|
|
57
|
+
className={cn(
|
|
58
|
+
"inline-flex items-center gap-1",
|
|
59
|
+
appPackage.isolation === "full-user" && "text-amber-700 dark:text-amber-300",
|
|
60
|
+
)}
|
|
61
|
+
>
|
|
62
|
+
{appPackage.isolation === "full-user" ? (
|
|
63
|
+
<ShieldAlert className="h-3 w-3" />
|
|
64
|
+
) : (
|
|
65
|
+
<ShieldCheck className="h-3 w-3" />
|
|
66
|
+
)}
|
|
67
|
+
{appPackage.isolation === "full-user"
|
|
68
|
+
? t("appPackagesIsolationFullUser")
|
|
69
|
+
: appPackage.isolation === "host-mediated"
|
|
70
|
+
? t("appPackagesIsolationMediated")
|
|
71
|
+
: t("appPackagesIsolationPanel")}
|
|
72
|
+
</span>
|
|
73
|
+
</div>
|
|
74
|
+
<div
|
|
75
|
+
className="flex min-w-0 items-center gap-1.5 rounded-md bg-muted/35 px-2 py-1 text-xs text-muted-foreground"
|
|
76
|
+
title={appPackage.storage.dataDirectory}
|
|
77
|
+
>
|
|
78
|
+
<HardDrive className="h-3 w-3 shrink-0" />
|
|
79
|
+
<span className="shrink-0">
|
|
80
|
+
{t("appPackagesDataUsage")} {storageUsageLabel}
|
|
81
|
+
</span>
|
|
82
|
+
<code className="min-w-0 truncate font-mono text-xs">{appPackage.storage.dataDirectory}</code>
|
|
83
|
+
</div>
|
|
84
|
+
<AppDocumentAccessSection
|
|
85
|
+
appId={appPackage.id}
|
|
86
|
+
appName={displayName}
|
|
87
|
+
disabled={disabled}
|
|
88
|
+
scopes={appPackage.documentAccess ?? []}
|
|
89
|
+
/>
|
|
90
|
+
</DialogContent>
|
|
91
|
+
</Dialog>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function resolveStorageUsageLabel(
|
|
96
|
+
usage: AppDataEntry["usage"] | undefined,
|
|
97
|
+
loading: boolean,
|
|
98
|
+
unavailable: boolean,
|
|
99
|
+
): string {
|
|
100
|
+
if (usage) return formatBytes(usage.totalBytes);
|
|
101
|
+
if (loading) return t("appPackagesLoading");
|
|
102
|
+
return t(unavailable ? "appPackagesDataUsageUnavailable" : "appPackagesNoDataYet");
|
|
103
|
+
}
|