@nextclaw/ui 0.26.5 → 0.27.1
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 +82 -0
- package/dist/.vite/manifest.json +1342 -1227
- package/dist/assets/{abnfDiagram-VRR7QNED-Dcw10Yt1.js → abnfDiagram-VRR7QNED-BT0_ycaq.js} +1 -1
- package/dist/assets/account-panel-BVNV8XqM.js +1 -0
- package/dist/assets/agents-CfpN8PQc.js +1 -0
- package/dist/assets/agents-E4nu-17c.js +1 -0
- package/dist/assets/{aiden0z-pptx-renderer.es--oNqetPA.js → aiden0z-pptx-renderer.es-ClCaf_Wh.js} +1 -1
- package/dist/assets/api-CI6_8Qt1.js +20 -0
- package/dist/assets/app-presenter-provider-2DwHRRle.js +28 -0
- package/dist/assets/app-presenter-provider-D3BuuOyZ.css +1 -0
- package/dist/assets/appearance-settings-page-Cn9w3F-K.js +1 -0
- package/dist/assets/apps-YFlJirpx.js +1 -0
- package/dist/assets/{arc-DBRedCax.js → arc-cmSdpq1Z.js} +1 -1
- package/dist/assets/architecture-TIHT7OUA-BImoGh10.js +1 -0
- package/dist/assets/{architectureDiagram-ZJ3FMSHR-Dufhtuv-.js → architectureDiagram-ZJ3FMSHR-aYglVeoS.js} +1 -1
- package/dist/assets/{blockDiagram-677ZJIJ3-BUk0vtJ7.js → blockDiagram-677ZJIJ3-Di_PBl5q.js} +1 -1
- package/dist/assets/{book-open-Bcnn2_uV.js → book-open-i_BjUBqL.js} +1 -1
- package/dist/assets/{c4Diagram-LMCZKHZV-CxDcVE9p.js → c4Diagram-LMCZKHZV-CfuxybOL.js} +1 -1
- package/dist/assets/{card-Cqs73hGI.js → card-DokH7OBp.js} +1 -1
- package/dist/assets/channel-BDQry0ob.js +1 -0
- package/dist/assets/channels-list-page-B7G9lHUm.js +8 -0
- package/dist/assets/chunk-2Q5K7J3B-DkgSFfIy.js +1 -0
- package/dist/assets/{chunk-32BRIVSS-DSF3KElA.js → chunk-32BRIVSS-CCGc4qg4.js} +1 -1
- package/dist/assets/{chunk-52WLFC77-Costxzr3.js → chunk-52WLFC77-aJoxU2Ow.js} +1 -1
- package/dist/assets/{chunk-5FCAYU7R-rhqzGGZo.js → chunk-5FCAYU7R-CGwtZSax.js} +1 -1
- package/dist/assets/{chunk-5HE753X5-BsEsmIao.js → chunk-5HE753X5-DqaMSMeS.js} +1 -1
- package/dist/assets/{chunk-5JV3BV7I-Dqw_DCoN.js → chunk-5JV3BV7I-DnabINcd.js} +1 -1
- package/dist/assets/{chunk-5TONJI2A-Cft82fp8.js → chunk-5TONJI2A-BhpKv1k2.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-DqNHn9Dl.js → chunk-5VM5RSS4-DvkRPit_.js} +1 -1
- package/dist/assets/{chunk-7BUUIJ7U-A5SBEMYY.js → chunk-7BUUIJ7U-CgDQOLnC.js} +1 -1
- package/dist/assets/{chunk-BIQX33UG-1Ng3mTrH.js → chunk-BIQX33UG-9FEv5b7T.js} +1 -1
- package/dist/assets/{chunk-C7G6YPKG-DRJEy8ZI.js → chunk-C7G6YPKG-CNGFAFYL.js} +1 -1
- package/dist/assets/{chunk-CQNSW5MT-Bydv_J3J.js → chunk-CQNSW5MT-DovTZx0M.js} +1 -1
- package/dist/assets/{chunk-CYSBUYHQ-HkMIg12u.js → chunk-CYSBUYHQ-DpLEgYa1.js} +1 -1
- package/dist/assets/{chunk-EMLP6XTP-C5ndDvm3.js → chunk-EMLP6XTP-D4NuN01W.js} +1 -1
- package/dist/assets/{chunk-EX3LRPZG-DzeloZRo.js → chunk-EX3LRPZG-D8Jf4kc2.js} +1 -1
- package/dist/assets/{chunk-FWX5IMBZ-n_2_CLTQ.js → chunk-FWX5IMBZ-BdHymAs0.js} +2 -2
- package/dist/assets/{chunk-HOUHSVGY-kx_slvu3.js → chunk-HOUHSVGY-Dd_Ycn9Z.js} +1 -1
- package/dist/assets/{chunk-ICXQ74PX-sQLMURqL.js → chunk-ICXQ74PX-BRPUu3ff.js} +1 -1
- package/dist/assets/{chunk-JG7HCLWE-CMUn5Elc.js → chunk-JG7HCLWE-DnCasQja.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-Cra3s-Uk.js → chunk-JWPE2WC7-C3CkbEj1.js} +1 -1
- package/dist/assets/{chunk-MOJQB5TN-umcrg5Bi.js → chunk-MOJQB5TN-Pi--K4-1.js} +1 -1
- package/dist/assets/{chunk-MOZMSUNE-BnljD1ig.js → chunk-MOZMSUNE-3VTspvlh.js} +1 -1
- package/dist/assets/{chunk-OGEWGWER-BXx5pQjU.js → chunk-OGEWGWER-BetLLyJt.js} +1 -1
- package/dist/assets/{chunk-OSBZ3O6U-D-1qfdWu.js → chunk-OSBZ3O6U-D1VcupAj.js} +1 -1
- package/dist/assets/{chunk-PUDLZKDR-DLzX78LC.js → chunk-PUDLZKDR-Cy4G8SjV.js} +1 -1
- package/dist/assets/{chunk-Q4XR5HBZ-DTK-rtW6.js → chunk-Q4XR5HBZ-UYxXzi7_.js} +1 -1
- package/dist/assets/{chunk-QBLGF6JB-CsFeIGfr.js → chunk-QBLGF6JB-CHiGeRY1.js} +1 -1
- package/dist/assets/{chunk-R7FJI6CG-4xNYUeng.js → chunk-R7FJI6CG-C5kVJus8.js} +1 -1
- package/dist/assets/{chunk-RYQCIY6F-DJiHiTE5.js → chunk-RYQCIY6F-C6cuuEBn.js} +1 -1
- package/dist/assets/{chunk-U6XO7XAA-BVYkauHz.js → chunk-U6XO7XAA-CM0EK7Y0.js} +1 -1
- package/dist/assets/{chunk-V7JOEXUC-BsazE8cS.js → chunk-V7JOEXUC-DWJZIsME.js} +1 -1
- package/dist/assets/chunk-VAUOI2AC-CsTIB8qD.js +1 -0
- package/dist/assets/{chunk-VR4S4FIN-7RoZQffO.js → chunk-VR4S4FIN-CY5KYeEi.js} +1 -1
- package/dist/assets/{chunk-WYO6CB5R-DEuS6N1R.js → chunk-WYO6CB5R-B30N3ZP8.js} +3 -3
- package/dist/assets/chunk-XXDRQBXY-DK6dz0Q3.js +1 -0
- package/dist/assets/{chunk-YOTPTUD7-9KBrosZL.js → chunk-YOTPTUD7-CBu82JpO.js} +1 -1
- package/dist/assets/{chunk-ZGVPDNZ5-IYgN9f5A.js → chunk-ZGVPDNZ5-BN5NX5qA.js} +1 -1
- package/dist/assets/{chunk-ZIRB5QZD-BUo0-zcp.js → chunk-ZIRB5QZD-DcDXK29L.js} +1 -1
- package/dist/assets/{circle-dashed-EY1ScSMe.js → circle-dashed-Cx8CIEbg.js} +1 -1
- package/dist/assets/classDiagram-OUVF2IWQ-BYygHCrp.js +1 -0
- package/dist/assets/classDiagram-v2-EOCWNBFH-BgQ0XKYz.js +1 -0
- package/dist/assets/{client-CH7w6yRV.js → client-CUJUci3r.js} +1 -1
- package/dist/assets/config-split-page-hY1xug28.js +1 -0
- package/dist/assets/confirm-dialog-B-ejV666.js +1 -0
- package/dist/assets/{app-presenter-provider-jNGlmBLe.css → context-menu-DEcVZfaU.css} +1 -1
- package/dist/assets/context-menu-dGVv8klA.js +211 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-DhqbC1fR.js → cose-bilkent-JH36ORCC-CmeJVoTw.js} +1 -1
- package/dist/assets/{createLucideIcon-Cfo2ySi5.js → createLucideIcon-reFMl-W-.js} +1 -1
- package/dist/assets/cron-CH5c55CR.js +1 -0
- package/dist/assets/cynefin-VYW2F7L2-DKbotNWS.js +1 -0
- package/dist/assets/{cynefinDiagram-TSTJHNR4-C-TBRi5V.js → cynefinDiagram-TSTJHNR4-DGOUMgPP.js} +1 -1
- package/dist/assets/{dagre-CrgsRasE.js → dagre-CMxSkbJJ.js} +1 -1
- package/dist/assets/{dagre-VKFMJZFB-BmafJymp.js → dagre-VKFMJZFB-3YUBEXwo.js} +1 -1
- package/dist/assets/{desktop-capabilities-page-BDYITStl.js → desktop-capabilities-page-CYJTQ3nC.js} +1 -1
- package/dist/assets/desktop-update-config-guKAozXO.js +1 -0
- package/dist/assets/{diagram-FQU43EPY-BoOMwa6D.js → diagram-FQU43EPY-Br1g--ww.js} +1 -1
- package/dist/assets/{diagram-G47NLZAW-Le7N6Uym.js → diagram-G47NLZAW-D1wJCBgr.js} +1 -1
- package/dist/assets/{diagram-NH7WQ7WH-Fbpj3-MO.js → diagram-NH7WQ7WH-Cgg2auLH.js} +1 -1
- package/dist/assets/{diagram-OA4YK3LP-D3QuGGuu.js → diagram-OA4YK3LP-R-wHiWqh.js} +1 -1
- package/dist/assets/{diagram-WEI45ONY-Cxu1uiN6.js → diagram-WEI45ONY-CsNnKV0P.js} +1 -1
- package/dist/assets/dialog-DLOwdjT1.js +1 -0
- package/dist/assets/dist-ZaFFmAGl.js +41 -0
- package/dist/assets/doc-browser-ClDUWo9V.js +1 -0
- package/dist/assets/doc-browser-context-CTmOmuqa.js +1 -0
- package/dist/assets/{docx-preview-CkU2psnd.js → docx-preview-kPn_EtAr.js} +1 -1
- package/dist/assets/{download-BoaKzDJk.js → download-DovI3Yvf.js} +1 -1
- package/dist/assets/{ebnfDiagram-CCIWWBDH-CCAjuQM6.js → ebnfDiagram-CCIWWBDH-DCyhIPdi.js} +1 -1
- package/dist/assets/{erDiagram-Q63AITRT-BuzUAq-d.js → erDiagram-Q63AITRT-D0ZJYAUf.js} +1 -1
- package/dist/assets/eventmodeling-45OFAUF4-SIhbIFIw.js +1 -0
- package/dist/assets/extensions-BZ3qrM8M.js +1 -0
- package/dist/assets/external-link-DUD3AbsF.js +1 -0
- package/dist/assets/flowDiagram-23GEKE2U-DdAjkU7I.js +1 -0
- package/dist/assets/{form-actions-D9JWSFQu.js → form-actions-B8VniHts.js} +1 -1
- package/dist/assets/{ganttDiagram-NO4QXBWP-cJmWVY8F.js → ganttDiagram-NO4QXBWP-CiXDcXZD.js} +1 -1
- package/dist/assets/gitGraph-TEB2WS4Q-DnMNpESZ.js +1 -0
- package/dist/assets/{gitGraphDiagram-IHSO6WYX-F58o-vtP.js → gitGraphDiagram-IHSO6WYX-BSiIV48S.js} +1 -1
- package/dist/assets/{i18n-Bm3Ov7Fy.js → i18n-IGQbjBqS.js} +2 -2
- package/dist/assets/inbox-BjBZIbgx.js +1 -0
- package/dist/assets/inbox-ClAG7SI_.js +1 -0
- package/dist/assets/info-DKCQHKI2-BSm-69p_.js +1 -0
- package/dist/assets/{infoDiagram-FWYZ7A6U-Gt59b83C.js → infoDiagram-FWYZ7A6U-CCIgBCVq.js} +1 -1
- package/dist/assets/{ishikawaDiagram-FXEZZL3T-1u4IAj1I.js → ishikawaDiagram-FXEZZL3T-nQ_baN5u.js} +1 -1
- package/dist/assets/{journeyDiagram-5HDEW3XC-CCQsfV-5.js → journeyDiagram-5HDEW3XC-ABueIPzj.js} +1 -1
- package/dist/assets/{kanban-definition-HUTT4EX6-vlB6O_Zn.js → kanban-definition-HUTT4EX6-8FKS3fmQ.js} +1 -1
- package/dist/assets/katex-DPgHtix3.js +1 -0
- package/dist/assets/keyboard-shortcuts-settings-page-BqfbbKir.js +1 -0
- package/dist/assets/{line-D_bHubTL.js → line-Biw8iEUz.js} +1 -1
- package/dist/assets/{linear-ChlwuS5y.js → linear-D7CWUHTF.js} +1 -1
- package/dist/assets/login-page-BxSMwUsc.js +1 -0
- package/dist/assets/{login-page-C-DvcG3L.js → login-page-DYaozpzz.js} +1 -1
- package/dist/assets/main-CWYF9QU_.js +2 -0
- package/dist/assets/main-D_zmSVS1.css +1 -0
- package/dist/assets/main-i18n-catalog.config-itg3Gvzp.js +1 -0
- package/dist/assets/{map-oGHTsIu8.js → map-CDu47gTf.js} +1 -1
- package/dist/assets/marketplace-CnQ5USfr.js +1 -0
- package/dist/assets/mcp-marketplace-page-Dor6H9IC.js +1 -0
- package/dist/assets/{mermaid-parser.core-CuRe1ZG4.js → mermaid-parser.core-Cc9wjl82.js} +2 -2
- package/dist/assets/{mermaid.core-u4YCFKRf.js → mermaid.core-GWlaVWz1.js} +3 -3
- package/dist/assets/{mindmap-definition-LN4V7U3C-DeJAQYTu.js → mindmap-definition-LN4V7U3C-oqnKsz-R.js} +1 -1
- package/dist/assets/model-config-page-Cduyz2Hy.js +1 -0
- package/dist/assets/{navigation-link-CjxNC8aT.js → navigation-link-D-JSWFxj.js} +2 -2
- package/dist/assets/{ordinal-C6JFfkKN.js → ordinal-DImbxqBz.js} +1 -1
- package/dist/assets/packet-7NZHBO7P-1YQvC6mT.js +1 -0
- package/dist/assets/panel-app-BBTg0tVp.js +1 -0
- package/dist/assets/panel-app-i18n-catalog.config-BfLHr1tc.js +1 -0
- package/dist/assets/panel-apps-C-izvtu9.js +1 -0
- package/dist/assets/panelStandalone-XRlWxbRS.css +1 -0
- package/dist/assets/panelStandalone-oHxbXvYt.js +2 -0
- package/dist/assets/{pegDiagram-2B236MQR-nVMkxShH.js → pegDiagram-2B236MQR-DYAB8CEz.js} +1 -1
- package/dist/assets/pie-RZYD4A2V-BGoNOSwu.js +1 -0
- package/dist/assets/{pieDiagram-ENE6RG2P-8aUH44QZ.js → pieDiagram-ENE6RG2P-DGsH0Kk5.js} +1 -1
- package/dist/assets/plus-DUdl68Eo.js +1 -0
- package/dist/assets/privacy-settings-page-DG9E8N-F.js +1 -0
- package/dist/assets/projects-CzBaTOTL.js +1 -0
- package/dist/assets/provider-models-COzjYl29.js +1 -0
- package/dist/assets/provider-scoped-model-input-Cvy74uj8.js +1 -0
- package/dist/assets/providers-config-page-7rCwVnhh.js +1 -0
- package/dist/assets/puzzle-C5Wfpjk_.js +1 -0
- package/dist/assets/pwa-CAg_9zFs.js +1 -0
- package/dist/assets/{quadrantDiagram-ABIIQ3AL-EY8hpFv8.js → quadrantDiagram-ABIIQ3AL-BegGcT3l.js} +1 -1
- package/dist/assets/radar-I7S5WNFK-uPku9RRq.js +1 -0
- package/dist/assets/railroad-3IZDKUUU-DHnmbuIo.js +1 -0
- package/dist/assets/railroad-abnf-AHOZXSZD-DiZs--Iw.js +1 -0
- package/dist/assets/railroad-ebnf-EBAXGLYW-Nr53gnNE.js +1 -0
- package/dist/assets/railroad-peg-LSFZ7HO6-Cm_PuwJS.js +1 -0
- package/dist/assets/{railroadDiagram-RFXS5EU6-CNhcIeji.js → railroadDiagram-RFXS5EU6-B3yJ2yxE.js} +1 -1
- package/dist/assets/{refresh-cw-BlXDrVP0.js → refresh-cw-OhwaPDn1.js} +1 -1
- package/dist/assets/remote-DvCdHjzA.js +1 -0
- package/dist/assets/{requirementDiagram-TGXJPOKE-D8Dcs-Rt.js → requirementDiagram-TGXJPOKE-DtEyoEXG.js} +1 -1
- package/dist/assets/{rotate-cw-ei6rPD6z.js → rotate-cw-aBponvp7.js} +1 -1
- package/dist/assets/runtime-config-page-BF1wxvzR.js +1 -0
- package/dist/assets/{sankeyDiagram-HTMAVEWB-HTrb6aa-.js → sankeyDiagram-HTMAVEWB-h9AYS2UB.js} +1 -1
- package/dist/assets/{save-DdF-bXgC.js → save-394QCMXn.js} +1 -1
- package/dist/assets/search-BG2qAlNZ.js +1 -0
- package/dist/assets/search-config-page-D4LeiB9y.js +1 -0
- package/dist/assets/secrets-config-page-BzGcr5Vw.js +3 -0
- package/dist/assets/security-config-vD_V0BQF.js +1 -0
- package/dist/assets/select-xUXYV0Gr.js +1 -0
- package/dist/assets/{sequenceDiagram-DBY2YBRQ-6f_4X16Y.js → sequenceDiagram-DBY2YBRQ-D-uxCkob.js} +1 -1
- package/dist/assets/service-apps-panel-D3wwPRzV.js +1 -0
- package/dist/assets/{settings-2-CrNhfInU.js → settings-2-CWOGRRaA.js} +1 -1
- package/dist/assets/{sizeCapture-X5ZJPWSS-Ck9rsuwL.js → sizeCapture-X5ZJPWSS-DBzZytQo.js} +1 -1
- package/dist/assets/{src-C8AUg09O.js → src-zrGbZsfc.js} +1 -1
- package/dist/assets/{stateDiagram-2N3HPSRC-Cm33MLHu.js → stateDiagram-2N3HPSRC-DyDy7AHq.js} +1 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-CtkpO6aA.js +1 -0
- package/dist/assets/{status-dot-C3SRFEta.js → status-dot-CYifnSnt.js} +1 -1
- package/dist/assets/{swimlanes-5IMT3BWC-B107vmvM.js → swimlanes-5IMT3BWC-BzOduS38.js} +2 -2
- package/dist/assets/swimlanesDiagram-G3AALYLV-BSdi6mvi.js +8 -0
- package/dist/assets/tag-chip-CjM6lyeh.js +1 -0
- package/dist/assets/theme-provider-BToFZGZG.js +1 -0
- package/dist/assets/{timeline-definition-FHXFAJF6-CJEoAj33.js → timeline-definition-FHXFAJF6-CmgnEF2t.js} +1 -1
- package/dist/assets/trash-2-DvJ6duOW.js +1 -0
- package/dist/assets/treeView-QDETBFTQ-DBoqypPR.js +1 -0
- package/dist/assets/treemap-6X3UGDF4-BMeL3P0q.js +1 -0
- package/dist/assets/use-config-COusaY5p.js +1 -0
- package/dist/assets/{use-desktop-capabilities-BYDjFlpt.js → use-desktop-capabilities-B-u6ojjW.js} +1 -1
- package/dist/assets/use-viewport-layout-IKKGpjzF.js +1 -0
- package/dist/assets/{vennDiagram-L72KCM5P-DzsUHk5I.js → vennDiagram-L72KCM5P-DwS7D2kg.js} +1 -1
- package/dist/assets/wardley-OPB4EBWU-Dqxe7zN6.js +1 -0
- package/dist/assets/{wardleyDiagram-EHGQE667-1NfFs5ua.js → wardleyDiagram-EHGQE667-B4X8OOL4.js} +1 -1
- package/dist/assets/x-E9VB4HQx.js +1 -0
- package/dist/assets/{xychartDiagram-FW5EYKEG-Ci8AI3Qo.js → xychartDiagram-FW5EYKEG-BjRQ_0nx.js} +1 -1
- package/dist/index.html +44 -106
- package/dist/panel-standalone.html +19 -13
- package/index.html +15 -66
- package/package.json +5 -5
- package/src/app/styles/design-system.css +85 -1
- package/src/app/styles/island-theme.css +8 -6
- package/src/features/agents/components/__tests__/agents-page.test.tsx +8 -5
- package/src/features/agents/components/agent-details-dialog.tsx +24 -18
- package/src/features/agents/components/agents-page.tsx +27 -38
- package/src/features/app-data/components/app-retained-data-section.tsx +4 -4
- 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 +69 -42
- package/src/features/apps/components/app-marketplace-cover.tsx +5 -2
- package/src/features/apps/components/app-marketplace-detail.tsx +20 -8
- 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 +162 -147
- package/src/features/apps/components/apps-panel.tsx +43 -12
- 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/components/providers/chat-runtime.provider.tsx +1 -1
- package/src/features/chat/features/conversation/components/__tests__/session-conversation-area.test.tsx +0 -1
- package/src/features/chat/features/conversation/components/__tests__/session-conversation-input.streaming.test.tsx +13 -2
- package/src/features/chat/features/conversation/components/floating-session-conversation.tsx +2 -3
- package/src/features/chat/features/conversation/components/session-conversation-area.tsx +9 -1
- package/src/features/chat/features/conversation/components/session-conversation-input-top-slot.tsx +44 -0
- package/src/features/chat/features/conversation/components/session-conversation-input.tsx +4 -38
- package/src/features/chat/features/conversation/hooks/__tests__/use-session-conversation-controller.test.tsx +86 -10
- package/src/features/chat/features/conversation/hooks/__tests__/use-session-conversation-input-state.test.tsx +44 -1
- package/src/features/chat/features/conversation/hooks/use-session-conversation-controller.ts +85 -73
- package/src/features/chat/features/conversation/hooks/use-session-conversation-input-query.ts +5 -15
- package/src/features/chat/features/conversation/hooks/use-session-conversation-input-state.ts +53 -13
- package/src/features/chat/features/conversation/hooks/use-session-submission-recovery.ts +83 -0
- package/src/features/chat/features/conversation/types/session-conversation-input.types.ts +38 -0
- package/src/features/chat/features/input/utils/__tests__/ncp-chat-input-availability.utils.test.ts +1 -29
- package/src/features/chat/features/input/utils/ncp-chat-input-availability.utils.ts +1 -8
- package/src/features/chat/features/message/components/__tests__/chat-message-list-skill-preview.container.test.tsx +14 -1
- package/src/features/chat/features/message/hooks/use-chat-inline-token-actions.ts +7 -2
- 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/session/utils/__tests__/chat-session-route.utils.test.ts +26 -0
- package/src/features/chat/features/session/utils/chat-session-preference-governance.utils.ts +14 -8
- package/src/features/chat/features/session/utils/chat-session-route.utils.ts +9 -12
- 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/__tests__/chat-session-workspace-file-preview.selection.test.tsx +14 -2
- package/src/features/chat/features/workspace/components/__tests__/session-cron-job-content.test.tsx +5 -1
- 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 +6 -5
- 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 +13 -26
- package/src/features/chat/index.ts +1 -0
- package/src/features/chat/pages/__tests__/ncp-chat-page.test.ts +37 -47
- package/src/features/chat/pages/ncp-chat-page.tsx +3 -3
- package/src/features/chat/stores/__tests__/chat-composer-draft.store.test.ts +67 -1
- package/src/features/chat/stores/chat-composer-draft.store.ts +230 -29
- package/src/features/cron/components/__tests__/cron-config.test.tsx +8 -2
- package/src/features/cron/components/cron-config.tsx +6 -17
- package/src/features/cron/components/cron-job-detail-dialog.tsx +10 -9
- package/src/features/cron/components/cron-job-resource.tsx +51 -0
- package/src/features/cron/components/cron-job-row.tsx +5 -4
- package/src/features/cron/index.ts +1 -0
- 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 +14 -10
- package/src/features/marketplace/components/__tests__/marketplace-page-detail.test.tsx +1 -0
- package/src/features/marketplace/components/__tests__/marketplace-page.test.tsx +1 -0
- package/src/features/marketplace/components/mcp/__tests__/mcp-marketplace-page.test.tsx +2 -0
- package/src/features/marketplace/components/mcp/mcp-marketplace-card.tsx +2 -2
- package/src/features/marketplace/components/mcp/mcp-marketplace-page.tsx +23 -1
- package/src/features/marketplace/hooks/use-marketplace-item-detail.ts +11 -0
- 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/index.ts +1 -0
- package/src/features/panel-apps/utils/panel-app-doc-browser.utils.tsx +5 -24
- package/src/features/projects/components/work/project-work-item-drawer.tsx +7 -10
- package/src/features/projects/components/work/project-work-items.tsx +1 -1
- package/src/features/projects/pages/project-home-page.tsx +18 -23
- package/src/features/projects/pages/projects-page.test.tsx +4 -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/__tests__/system-object-resource.test.tsx +74 -6
- package/src/features/right-panel-resources/components/native-object-resource.tsx +134 -0
- package/src/features/right-panel-resources/components/page-resource-icon.tsx +16 -8
- package/src/features/right-panel-resources/components/system-object-resource.tsx +66 -1
- package/src/features/right-panel-resources/components/workspace-file-resource.tsx +9 -0
- package/src/features/right-panel-resources/configs/right-panel-resource-routes.config.ts +11 -21
- package/src/features/right-panel-resources/index.ts +3 -0
- package/src/features/right-panel-resources/managers/__tests__/page-resource.manager.test.ts +14 -4
- package/src/features/right-panel-resources/managers/page-resource.manager.ts +38 -21
- package/src/features/right-panel-resources/utils/__tests__/right-panel-resource-route-resolver.utils.test.ts +17 -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/service-apps/components/service-apps-panel.tsx +5 -2
- 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/__tests__/doc-browser-context.test.tsx +16 -0
- package/src/shared/components/doc-browser/__tests__/doc-browser.test.tsx +2 -2
- package/src/shared/components/doc-browser/__tests__/resource-link-interceptor.test.tsx +29 -1
- package/src/shared/components/doc-browser/doc-browser-tab-strip.tsx +2 -2
- package/src/shared/components/doc-browser/stores/doc-browser.store.ts +13 -7
- package/src/shared/components/doc-browser/utils/doc-browser-url.utils.ts +2 -1
- 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/skeleton.tsx +16 -2
- 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 +21 -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 +21 -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/src/shared/lib/transport/__tests__/local-transport.service.test.ts +24 -0
- package/src/shared/lib/transport/local-transport.service.ts +8 -6
- 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/doc-browser-context-DwgG6wrz.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/keyboard-shortcuts-settings-page-DZ8A1iLg.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-config-evzage09.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-DsNX3jRj.js} +0 -0
- /package/dist/assets/{chunk-KEIR6QF5-Cx-8EJ4_.js → chunk-KEIR6QF5-BOAXXeyv.js} +0 -0
- /package/dist/assets/{chunk-Y2CYZVJY-Dy1ufvjf.js → chunk-Y2CYZVJY-CHjSjwoV.js} +0 -0
- /package/dist/assets/{config-hints-DbmiyTKg.js → config-hints-CaB3I7KP.js} +0 -0
- /package/dist/assets/{cytoscape.esm-CSCjuT4Z.js → cytoscape.esm-j4J9a91l.js} +0 -0
- /package/dist/assets/{defaultLocale-DWTiNsbT.js → defaultLocale-Bmxjp-V_.js} +0 -0
- /package/dist/assets/{dist-BVCSkfWY.js → dist-DwLj1Wg5.js} +0 -0
- /package/dist/assets/{graphlib-B1yb1Wl8.js → graphlib-CC0HTn1v.js} +0 -0
- /package/dist/assets/{host-capabilities-DuIFVsvM.js → host-capabilities-B107nwS3.js} +0 -0
- /package/dist/assets/{init-BF6GH5oe.js → init-Biz9Rus1.js} +0 -0
- /package/dist/assets/{jszip.min-D12teKzP.js → jszip.min-DQvBVV_R.js} +0 -0
- /package/dist/assets/{katex-CsAM73R9.js → katex-BzT-4KBu.js} +0 -0
- /package/dist/assets/{navigation-history-CzErJuPG.js → navigation-history-CCnxsAKR.js} +0 -0
- /package/dist/assets/{path-C56XkznJ.js → path-4azsBPZv.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-w1lBArN6.js} +0 -0
- /package/dist/assets/{xlsx-sds5nUpL.js → xlsx--SB9KlFl.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef, useState, type FormEvent } from 'react';
|
|
2
2
|
import type { AppDataEntry, AppPackageOperationView, AppPackageView } from '@nextclaw/client-sdk';
|
|
3
|
-
import { LoaderCircle, PackagePlus, RefreshCw, ShieldCheck
|
|
3
|
+
import { LoaderCircle, PackagePlus, RefreshCw, ShieldCheck } from 'lucide-react';
|
|
4
4
|
import { AppArtwork } from '@/features/apps/components/app-artwork';
|
|
5
5
|
import type { PanelAppEntryView } from '@/shared/lib/api';
|
|
6
6
|
import { useAppPresenter } from '@/app/components/app-presenter-provider';
|
|
7
|
-
import {
|
|
7
|
+
import { AppMarketplacePanel } from '@/features/apps/components/app-marketplace-panel';
|
|
8
8
|
import { AppPackageCard } from '@/features/apps/components/app-package-card';
|
|
9
9
|
import { AppRetainedDataSection, useAppData } from '@/features/app-data';
|
|
10
10
|
import {
|
|
@@ -15,11 +15,8 @@ import {
|
|
|
15
15
|
isAppPackageOperationActive,
|
|
16
16
|
type AppPackageMutationInput,
|
|
17
17
|
} from '@/features/apps/hooks/use-app-packages';
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
usePanelApps,
|
|
21
|
-
useRecordPanelAppOpened,
|
|
22
|
-
} from '@/features/panel-apps';
|
|
18
|
+
import { useGrantPanelAppClient, usePanelApps, useRecordPanelAppOpened } from '@/features/panel-apps';
|
|
19
|
+
import { IconActionButton } from '@/shared/components/ui/actions/icon-action-button';
|
|
23
20
|
import { Button } from '@/shared/components/ui/button';
|
|
24
21
|
import {
|
|
25
22
|
Dialog,
|
|
@@ -30,14 +27,20 @@ import {
|
|
|
30
27
|
DialogTitle,
|
|
31
28
|
} from '@/shared/components/ui/dialog';
|
|
32
29
|
import { Input } from '@/shared/components/ui/input';
|
|
33
|
-
import {
|
|
30
|
+
import { SkeletonContent } from '@/shared/components/ui/skeleton';
|
|
34
31
|
import { t } from '@/shared/lib/i18n';
|
|
35
32
|
|
|
36
33
|
export function AppPackagesPanel({
|
|
37
34
|
focusedPackageId,
|
|
35
|
+
marketplaceActive = false,
|
|
36
|
+
onBrowseMarketplace,
|
|
37
|
+
onManagePackage,
|
|
38
38
|
onOpenPanelApp,
|
|
39
39
|
}: {
|
|
40
40
|
focusedPackageId?: string;
|
|
41
|
+
marketplaceActive?: boolean;
|
|
42
|
+
onBrowseMarketplace: () => void;
|
|
43
|
+
onManagePackage: (appId: string) => void;
|
|
41
44
|
onOpenPanelApp: (entry: PanelAppEntryView) => void;
|
|
42
45
|
}) {
|
|
43
46
|
const appPackages = useAppPackages();
|
|
@@ -49,14 +52,11 @@ export function AppPackagesPanel({
|
|
|
49
52
|
const grantClient = useGrantPanelAppClient();
|
|
50
53
|
const presenter = useAppPresenter();
|
|
51
54
|
const libraryTitleRef = useRef<HTMLHeadingElement>(null);
|
|
55
|
+
const addButtonRef = useRef<HTMLButtonElement>(null);
|
|
52
56
|
const [installOpen, setInstallOpen] = useState(false);
|
|
53
57
|
const [installSource, setInstallSource] = useState('');
|
|
54
|
-
const [marketplaceOpen, setMarketplaceOpen] = useState(false);
|
|
55
58
|
|
|
56
|
-
const operations = useMemo(
|
|
57
|
-
() => appPackageOperations.data?.entries ?? [],
|
|
58
|
-
[appPackageOperations.data?.entries],
|
|
59
|
-
);
|
|
59
|
+
const operations = useMemo(() => appPackageOperations.data?.entries ?? [], [appPackageOperations.data?.entries]);
|
|
60
60
|
|
|
61
61
|
useEffect(() => {
|
|
62
62
|
if (!focusedPackageId || appPackages.isLoading) return;
|
|
@@ -83,12 +83,14 @@ export function AppPackagesPanel({
|
|
|
83
83
|
if (entry.clientDeclared && !entry.clientGranted) {
|
|
84
84
|
const allowed = await presenter.serviceActionAuthorizationManager.requestAuthorization({
|
|
85
85
|
panelAppId: entry.appId,
|
|
86
|
-
actions: [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
actions: [
|
|
87
|
+
{
|
|
88
|
+
actionId: 'nextclaw.client',
|
|
89
|
+
actionTitle: t('panelAppsClientGrantTitle'),
|
|
90
|
+
actionDescription: t('panelAppsClientGrantDescription'),
|
|
91
|
+
risk: 'dangerous',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
92
94
|
});
|
|
93
95
|
if (!allowed) return;
|
|
94
96
|
await grantClient.mutateAsync(entry.appId);
|
|
@@ -118,60 +120,31 @@ export function AppPackagesPanel({
|
|
|
118
120
|
};
|
|
119
121
|
|
|
120
122
|
return (
|
|
121
|
-
<div className="
|
|
122
|
-
<div className=
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
className="rounded-full p-2 text-muted-foreground transition-colors hover:bg-[var(--interaction-hover)] hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border"
|
|
127
|
-
title={t('appPackagesRefresh')}
|
|
128
|
-
aria-label={t('appPackagesRefresh')}
|
|
129
|
-
>
|
|
130
|
-
<RefreshCw className="h-3.5 w-3.5" />
|
|
131
|
-
</button>
|
|
132
|
-
<Button
|
|
133
|
-
type="button"
|
|
134
|
-
size="sm"
|
|
135
|
-
variant="outline"
|
|
136
|
-
onClick={() => {
|
|
137
|
-
lifecycle.reset();
|
|
138
|
-
setMarketplaceOpen(true);
|
|
139
|
-
}}
|
|
140
|
-
>
|
|
141
|
-
<Store className="mr-1.5 h-3.5 w-3.5" />
|
|
142
|
-
{t('appPackagesBrowse')}
|
|
143
|
-
</Button>
|
|
144
|
-
<Button
|
|
145
|
-
type="button"
|
|
146
|
-
size="sm"
|
|
147
|
-
variant="outline"
|
|
148
|
-
onClick={() => {
|
|
149
|
-
lifecycle.reset();
|
|
150
|
-
setInstallOpen(true);
|
|
151
|
-
}}
|
|
152
|
-
>
|
|
153
|
-
<PackagePlus className="mr-1.5 h-3.5 w-3.5" />
|
|
154
|
-
{t('appPackagesInstall')}
|
|
155
|
-
</Button>
|
|
156
|
-
</div>
|
|
157
|
-
|
|
158
|
-
<div className="custom-scrollbar min-h-0 flex-1 overflow-y-auto">
|
|
159
|
-
<div className="mx-auto w-full max-w-3xl p-3 sm:p-5">
|
|
160
|
-
<div className="mb-4 px-1">
|
|
161
|
-
<h1
|
|
162
|
-
ref={libraryTitleRef}
|
|
163
|
-
tabIndex={-1}
|
|
164
|
-
className="text-base font-semibold tracking-tight text-foreground"
|
|
165
|
-
>
|
|
123
|
+
<div className="[container-type:inline-size] flex h-full min-h-0 flex-col bg-card text-card-foreground">
|
|
124
|
+
<div hidden={marketplaceActive} className={marketplaceActive ? 'hidden' : 'custom-scrollbar min-h-0 flex-1 overflow-y-auto'}>
|
|
125
|
+
<div className="mx-auto w-full max-w-3xl px-3 py-4 [@container(min-width:28rem)]:px-5">
|
|
126
|
+
<div className="mb-4 flex flex-wrap items-center justify-between gap-3 px-1">
|
|
127
|
+
<h1 ref={libraryTitleRef} tabIndex={-1} className="text-base font-semibold tracking-tight text-foreground">
|
|
166
128
|
{t('appPackagesLibraryTitle')}
|
|
167
129
|
</h1>
|
|
168
|
-
<
|
|
169
|
-
|
|
170
|
-
|
|
130
|
+
<div className="flex items-center gap-2">
|
|
131
|
+
<IconActionButton
|
|
132
|
+
icon={<RefreshCw className="h-3.5 w-3.5" />}
|
|
133
|
+
label={t('appPackagesRefresh')}
|
|
134
|
+
onClick={refetch}
|
|
135
|
+
/>
|
|
136
|
+
<Button type="button" size="sm" onClick={onBrowseMarketplace}>
|
|
137
|
+
<PackagePlus className="mr-1.5 h-3.5 w-3.5" />
|
|
138
|
+
{t('appPackagesBrowse')}
|
|
139
|
+
</Button>
|
|
140
|
+
</div>
|
|
171
141
|
</div>
|
|
172
142
|
|
|
173
143
|
{lifecycle.isError ? (
|
|
174
|
-
<div
|
|
144
|
+
<div
|
|
145
|
+
role="alert"
|
|
146
|
+
className="mb-3 rounded-xl bg-destructive/8 px-3 py-2.5 text-xs leading-5 text-destructive ring-1 ring-destructive/15"
|
|
147
|
+
>
|
|
175
148
|
{lifecycle.error instanceof Error ? lifecycle.error.message : t('appPackagesActionFailed')}
|
|
176
149
|
</div>
|
|
177
150
|
) : null}
|
|
@@ -184,14 +157,14 @@ export function AppPackagesPanel({
|
|
|
184
157
|
focusedPackageId={focusedPackageId}
|
|
185
158
|
isLoading={appPackages.isLoading || panelApps.isLoading}
|
|
186
159
|
isPending={lifecycle.isPending}
|
|
187
|
-
mutationAppId={
|
|
188
|
-
? (lifecycle.variables as { appId: string }).appId
|
|
189
|
-
|
|
160
|
+
mutationAppId={
|
|
161
|
+
'appId' in (lifecycle.variables ?? {}) ? (lifecycle.variables as { appId: string }).appId : undefined
|
|
162
|
+
}
|
|
190
163
|
packages={appPackages.data?.entries ?? []}
|
|
191
164
|
panelApps={panelApps.data?.entries ?? []}
|
|
192
165
|
unavailablePackages={panelApps.data?.unavailablePackages ?? []}
|
|
193
166
|
operations={operations}
|
|
194
|
-
onInstall={
|
|
167
|
+
onInstall={onBrowseMarketplace}
|
|
195
168
|
onMutate={runMutation}
|
|
196
169
|
onOpenPanelApp={(entry) => void openPanelApp(entry)}
|
|
197
170
|
/>
|
|
@@ -205,29 +178,40 @@ export function AppPackagesPanel({
|
|
|
205
178
|
</div>
|
|
206
179
|
</div>
|
|
207
180
|
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
? lifecycle.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
181
|
+
<div hidden={!marketplaceActive} className={marketplaceActive ? 'flex min-h-0 flex-1 flex-col' : 'hidden'}>
|
|
182
|
+
<AppMarketplacePanel
|
|
183
|
+
sourceButtonRef={addButtonRef}
|
|
184
|
+
onCustomInstall={() => { lifecycle.reset(); setInstallOpen(true); }}
|
|
185
|
+
onManagePackage={onManagePackage}
|
|
186
|
+
error={lifecycle.error instanceof Error ? lifecycle.error : null}
|
|
187
|
+
hostTarget={appPackages.data?.hostTarget}
|
|
188
|
+
installedPackages={appPackages.data?.entries ?? []}
|
|
189
|
+
startingSource={lifecycle.variables?.action === 'install' ? lifecycle.variables.source : undefined}
|
|
190
|
+
isStarting={lifecycle.isPending}
|
|
191
|
+
operations={operations}
|
|
192
|
+
active={marketplaceActive}
|
|
193
|
+
onInstall={(source, registryUrl) =>
|
|
194
|
+
runMutation({
|
|
195
|
+
action: 'install',
|
|
196
|
+
source,
|
|
197
|
+
registryUrl,
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
onUpdate={(appId) => runMutation({ action: 'update', appId })}
|
|
201
|
+
/>
|
|
202
|
+
|
|
203
|
+
</div>
|
|
226
204
|
|
|
227
205
|
<Dialog open={installOpen} onOpenChange={setInstallOpen}>
|
|
228
|
-
<DialogContent
|
|
206
|
+
<DialogContent
|
|
207
|
+
className="max-w-md"
|
|
208
|
+
onCloseAutoFocus={(event) => {
|
|
209
|
+
event.preventDefault();
|
|
210
|
+
addButtonRef.current?.focus();
|
|
211
|
+
}}
|
|
212
|
+
>
|
|
229
213
|
<form onSubmit={submitInstall}>
|
|
230
|
-
<DialogHeader>
|
|
214
|
+
<DialogHeader showClose={false}>
|
|
231
215
|
<DialogTitle>{t('appPackagesInstallTitle')}</DialogTitle>
|
|
232
216
|
<DialogDescription>{t('appPackagesInstallDescription')}</DialogDescription>
|
|
233
217
|
</DialogHeader>
|
|
@@ -299,9 +283,9 @@ function AppPackageLibrary({
|
|
|
299
283
|
}) {
|
|
300
284
|
if (isLoading) {
|
|
301
285
|
return (
|
|
302
|
-
<div className="
|
|
303
|
-
<
|
|
304
|
-
<
|
|
286
|
+
<div className="divide-y divide-border/50" role="status" aria-label={t('appPackagesLoading')}>
|
|
287
|
+
<SkeletonContent />
|
|
288
|
+
<SkeletonContent />
|
|
305
289
|
</div>
|
|
306
290
|
);
|
|
307
291
|
}
|
|
@@ -313,44 +297,50 @@ function AppPackageLibrary({
|
|
|
313
297
|
);
|
|
314
298
|
}
|
|
315
299
|
if (packages.length === 0) {
|
|
316
|
-
const activeInstalls = operations.filter(
|
|
317
|
-
entry.action === 'install' && isAppPackageOperationActive(entry.status)
|
|
300
|
+
const activeInstalls = operations.filter(
|
|
301
|
+
(entry) => entry.action === 'install' && isAppPackageOperationActive(entry.status),
|
|
302
|
+
);
|
|
318
303
|
if (activeInstalls.length > 0) {
|
|
319
|
-
return
|
|
320
|
-
<
|
|
321
|
-
|
|
304
|
+
return (
|
|
305
|
+
<div className="divide-y divide-border/50">
|
|
306
|
+
{activeInstalls.map((operation) => (
|
|
307
|
+
<PendingInstallCard key={operation.id} operation={operation} />
|
|
308
|
+
))}
|
|
309
|
+
</div>
|
|
310
|
+
);
|
|
322
311
|
}
|
|
323
312
|
return (
|
|
324
313
|
<div className="flex flex-col items-center rounded-2xl border border-dashed border-border px-6 py-10 text-center">
|
|
325
314
|
<PackagePlus className="h-7 w-7 text-muted-foreground" />
|
|
326
315
|
<h2 className="mt-3 text-sm font-semibold text-foreground">{t('appPackagesEmptyTitle')}</h2>
|
|
327
|
-
<p className="mt-1 max-w-sm text-xs leading-5 text-muted-foreground">
|
|
328
|
-
{t('appPackagesEmptyDescription')}
|
|
329
|
-
</p>
|
|
316
|
+
<p className="mt-1 max-w-sm text-xs leading-5 text-muted-foreground">{t('appPackagesEmptyDescription')}</p>
|
|
330
317
|
<Button type="button" size="sm" className="mt-4" onClick={onInstall}>
|
|
331
|
-
{t('
|
|
318
|
+
{t('appPackagesBrowse')}
|
|
332
319
|
</Button>
|
|
333
320
|
</div>
|
|
334
321
|
);
|
|
335
322
|
}
|
|
336
323
|
return (
|
|
337
|
-
<div className="
|
|
338
|
-
{operations
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
324
|
+
<div className="divide-y divide-border/50">
|
|
325
|
+
{operations
|
|
326
|
+
.filter(
|
|
327
|
+
(entry) =>
|
|
328
|
+
entry.action === 'install' &&
|
|
329
|
+
isAppPackageOperationActive(entry.status) &&
|
|
330
|
+
!packages.some((appPackage) => appPackage.id === entry.appId),
|
|
331
|
+
)
|
|
332
|
+
.map((operation) => (
|
|
333
|
+
<PendingInstallCard key={operation.id} operation={operation} />
|
|
334
|
+
))}
|
|
345
335
|
{packages.map((appPackage) => {
|
|
346
336
|
const latestOperation = operations.find((entry) => entry.appId === appPackage.id);
|
|
347
|
-
const visibleOperation =
|
|
348
|
-
|
|
349
|
-
latestOperation.status
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
337
|
+
const visibleOperation =
|
|
338
|
+
latestOperation &&
|
|
339
|
+
(isAppPackageOperationActive(latestOperation.status) ||
|
|
340
|
+
latestOperation.status === 'failed' ||
|
|
341
|
+
latestOperation.status === 'interrupted')
|
|
342
|
+
? latestOperation
|
|
343
|
+
: undefined;
|
|
354
344
|
|
|
355
345
|
return (
|
|
356
346
|
<section
|
|
@@ -358,18 +348,24 @@ function AppPackageLibrary({
|
|
|
358
348
|
id={`app-package-${appPackage.id}`}
|
|
359
349
|
aria-label={appPackage.name}
|
|
360
350
|
tabIndex={-1}
|
|
361
|
-
className={
|
|
362
|
-
|
|
363
|
-
|
|
351
|
+
className={
|
|
352
|
+
focusedPackageId === appPackage.id
|
|
353
|
+
? 'rounded-xl outline-none ring-2 ring-primary/35 ring-offset-2 ring-offset-background'
|
|
354
|
+
: 'outline-none'
|
|
355
|
+
}
|
|
364
356
|
>
|
|
365
357
|
<AppPackageCard
|
|
366
358
|
appPackage={appPackage}
|
|
367
359
|
unavailableMessage={unavailablePackages.find((entry) => entry.appId === appPackage.id)?.message}
|
|
368
|
-
storageUsage={
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
360
|
+
storageUsage={
|
|
361
|
+
appDataEntries.find(
|
|
362
|
+
(entry) =>
|
|
363
|
+
entry.source === 'package' &&
|
|
364
|
+
entry.lifecycle === 'active' &&
|
|
365
|
+
entry.appId === appPackage.id &&
|
|
366
|
+
entry.instanceId === appPackage.instanceId,
|
|
367
|
+
)?.usage ?? appPackage.storageUsage
|
|
368
|
+
}
|
|
373
369
|
storageUsageLoading={appDataLoading}
|
|
374
370
|
storageUsageUnavailable={appDataUnavailable}
|
|
375
371
|
panelApps={panelApps.filter((entry) => entry.packageId === appPackage.id)}
|
|
@@ -378,16 +374,20 @@ function AppPackageLibrary({
|
|
|
378
374
|
onEnable={() => onMutate({ action: 'enable', appId: appPackage.id })}
|
|
379
375
|
onDisable={() => onMutate({ action: 'disable', appId: appPackage.id })}
|
|
380
376
|
onUpdate={() => onMutate({ action: 'update', appId: appPackage.id })}
|
|
381
|
-
onRollback={(version) =>
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
377
|
+
onRollback={(version) =>
|
|
378
|
+
onMutate({
|
|
379
|
+
action: 'rollback',
|
|
380
|
+
appId: appPackage.id,
|
|
381
|
+
version,
|
|
382
|
+
})
|
|
383
|
+
}
|
|
384
|
+
onUninstall={(purgeData) =>
|
|
385
|
+
onMutate({
|
|
386
|
+
action: 'uninstall',
|
|
387
|
+
appId: appPackage.id,
|
|
388
|
+
purgeData,
|
|
389
|
+
})
|
|
390
|
+
}
|
|
391
391
|
onOpenPanelApp={onOpenPanelApp}
|
|
392
392
|
/>
|
|
393
393
|
</section>
|
|
@@ -401,7 +401,11 @@ function PendingInstallCard({ operation }: { operation: AppPackageOperationView
|
|
|
401
401
|
const label = operation.appId ?? operation.source ?? t('appPackagesInstall');
|
|
402
402
|
const progress = Math.max(4, Math.round((operation.completedSteps / operation.totalSteps) * 100));
|
|
403
403
|
return (
|
|
404
|
-
<div
|
|
404
|
+
<div
|
|
405
|
+
className="rounded-xl border border-border/60 bg-card px-4 py-3.5 shadow-[0_1px_2px_rgba(0,0,0,0.025)]"
|
|
406
|
+
role="status"
|
|
407
|
+
aria-live="polite"
|
|
408
|
+
>
|
|
405
409
|
<div className="flex items-center gap-3">
|
|
406
410
|
<AppArtwork name={label} />
|
|
407
411
|
<div className="min-w-0 flex-1">
|
|
@@ -413,7 +417,10 @@ function PendingInstallCard({ operation }: { operation: AppPackageOperationView
|
|
|
413
417
|
</div>
|
|
414
418
|
</div>
|
|
415
419
|
<div className="ml-14 mt-2 h-1 overflow-hidden rounded-full bg-muted">
|
|
416
|
-
<div
|
|
420
|
+
<div
|
|
421
|
+
className="h-full rounded-full bg-primary transition-[width] duration-300"
|
|
422
|
+
style={{ width: `${progress}%` }}
|
|
423
|
+
/>
|
|
417
424
|
</div>
|
|
418
425
|
</div>
|
|
419
426
|
);
|
|
@@ -421,15 +428,23 @@ function PendingInstallCard({ operation }: { operation: AppPackageOperationView
|
|
|
421
428
|
|
|
422
429
|
function operationProgressLabel(operation: AppPackageOperationView): string {
|
|
423
430
|
switch (operation.status) {
|
|
424
|
-
case 'queued':
|
|
425
|
-
|
|
426
|
-
case '
|
|
427
|
-
|
|
428
|
-
case '
|
|
429
|
-
|
|
430
|
-
case '
|
|
431
|
+
case 'queued':
|
|
432
|
+
return t('appPackagesPreparing');
|
|
433
|
+
case 'resolving':
|
|
434
|
+
return t('appPackagesResolving');
|
|
435
|
+
case 'downloading':
|
|
436
|
+
return t('appPackagesDownloading');
|
|
437
|
+
case 'verifying':
|
|
438
|
+
return t('appPackagesVerifying');
|
|
439
|
+
case 'installing':
|
|
440
|
+
return t('appPackagesInstalling');
|
|
441
|
+
case 'finalizing':
|
|
442
|
+
return t('appPackagesFinalizing');
|
|
443
|
+
case 'succeeded':
|
|
444
|
+
return t('appPackagesCompleted');
|
|
431
445
|
case 'failed':
|
|
432
|
-
case 'interrupted':
|
|
446
|
+
case 'interrupted':
|
|
447
|
+
return operation.error ?? t('appPackagesActionFailed');
|
|
433
448
|
}
|
|
434
449
|
}
|
|
435
450
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { lazy, Suspense, useState } from 'react';
|
|
2
|
-
import { AppWindow, Boxes, Server } from 'lucide-react';
|
|
1
|
+
import { lazy, Suspense, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { AppWindow, Boxes, Server, Store } from 'lucide-react';
|
|
3
3
|
import type { PanelAppEntryView } from '@/shared/lib/api';
|
|
4
4
|
import { AppPackagesPanel } from '@/features/apps/components/app-packages-panel';
|
|
5
5
|
import { PanelAppsList } from '@/features/panel-apps';
|
|
@@ -7,7 +7,8 @@ import { loadServiceAppsPanel } from '@/features/service-apps';
|
|
|
7
7
|
import { Tabs, TabsList, TabsTrigger } from '@/shared/components/ui/tabs';
|
|
8
8
|
import { t } from '@/shared/lib/i18n';
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type { RightPanelAppsTab as AppsPanelTab } from '@/features/right-panel-resources';
|
|
11
|
+
import type { RightPanelAppsTab as AppsPanelTab } from '@/features/right-panel-resources';
|
|
11
12
|
|
|
12
13
|
const ServiceAppsPanel = lazy(async () => ({
|
|
13
14
|
default: (await loadServiceAppsPanel()).ServiceAppsPanel,
|
|
@@ -17,12 +18,31 @@ export function AppsPanel({
|
|
|
17
18
|
activeTab,
|
|
18
19
|
onActiveTabChange,
|
|
19
20
|
onOpenPanelApp,
|
|
21
|
+
serviceResourceId,
|
|
20
22
|
}: {
|
|
21
23
|
activeTab: AppsPanelTab;
|
|
22
24
|
onActiveTabChange: (tab: AppsPanelTab) => void;
|
|
23
25
|
onOpenPanelApp: (entry: PanelAppEntryView) => void;
|
|
26
|
+
serviceResourceId?: string;
|
|
24
27
|
}) {
|
|
25
28
|
const [focusedPackageId, setFocusedPackageId] = useState<string>();
|
|
29
|
+
const navigationRef = useRef<HTMLElement>(null);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const navigation = navigationRef.current;
|
|
32
|
+
if (!navigation) return;
|
|
33
|
+
const revealSelectedTab = () => {
|
|
34
|
+
const selected = navigation.querySelector('[aria-selected="true"]');
|
|
35
|
+
if (!selected) return;
|
|
36
|
+
const bounds = navigation.getBoundingClientRect();
|
|
37
|
+
const tab = selected.getBoundingClientRect();
|
|
38
|
+
if (tab.right > bounds.right) navigation.scrollLeft += tab.right - bounds.right + 12;
|
|
39
|
+
else if (tab.left < bounds.left) navigation.scrollLeft -= bounds.left - tab.left + 12;
|
|
40
|
+
};
|
|
41
|
+
revealSelectedTab();
|
|
42
|
+
const observer = new ResizeObserver(revealSelectedTab);
|
|
43
|
+
observer.observe(navigation);
|
|
44
|
+
return () => observer.disconnect();
|
|
45
|
+
}, [activeTab]);
|
|
26
46
|
const changeTab = (tab: AppsPanelTab) => {
|
|
27
47
|
setFocusedPackageId(undefined);
|
|
28
48
|
onActiveTabChange(tab);
|
|
@@ -34,12 +54,12 @@ export function AppsPanel({
|
|
|
34
54
|
|
|
35
55
|
return (
|
|
36
56
|
<div className="flex h-full min-h-0 flex-col bg-card text-card-foreground">
|
|
37
|
-
<nav className="shrink-0 border-b border-border/
|
|
57
|
+
<nav ref={navigationRef} className="custom-scrollbar shrink-0 overflow-x-auto border-b border-border/60 px-3 py-2" aria-label={t('appsTitle')}>
|
|
38
58
|
<Tabs value={activeTab} onValueChange={(value) => changeTab(value as AppsPanelTab)}>
|
|
39
|
-
<TabsList className="
|
|
59
|
+
<TabsList className="flex h-auto w-max flex-nowrap rounded-lg bg-transparent p-0.5 [&>button]:shrink-0">
|
|
40
60
|
<TabsTrigger value="apps" className="min-w-0 gap-1.5 px-2 py-1.5 text-xs">
|
|
41
61
|
<Boxes className="h-3.5 w-3.5 shrink-0" />
|
|
42
|
-
<span
|
|
62
|
+
<span>{t('appPackagesLibraryTitle')}</span>
|
|
43
63
|
</TabsTrigger>
|
|
44
64
|
<TabsTrigger value="panel-apps" className="min-w-0 gap-1.5 px-2 py-1.5 text-xs">
|
|
45
65
|
<AppWindow className="h-3.5 w-3.5 shrink-0" />
|
|
@@ -49,19 +69,30 @@ export function AppsPanel({
|
|
|
49
69
|
<Server className="h-3.5 w-3.5 shrink-0" />
|
|
50
70
|
<span className="truncate">{t('serviceAppsTitle')}</span>
|
|
51
71
|
</TabsTrigger>
|
|
72
|
+
<TabsTrigger value="marketplace" className="gap-1.5 px-2 py-1.5 text-xs">
|
|
73
|
+
<Store className="h-3.5 w-3.5 shrink-0" />
|
|
74
|
+
<span>{t('appPackagesMarketplaceTitle')}</span>
|
|
75
|
+
</TabsTrigger>
|
|
52
76
|
</TabsList>
|
|
53
77
|
</Tabs>
|
|
54
78
|
</nav>
|
|
55
79
|
<div className="min-h-0 flex-1">
|
|
56
|
-
{activeTab === 'apps' ?
|
|
57
|
-
<AppPackagesPanel
|
|
58
|
-
|
|
80
|
+
<div hidden={activeTab !== 'apps' && activeTab !== 'marketplace'} className={activeTab === 'apps' || activeTab === 'marketplace' ? 'h-full' : 'hidden'}>
|
|
81
|
+
<AppPackagesPanel
|
|
82
|
+
focusedPackageId={focusedPackageId}
|
|
83
|
+
onOpenPanelApp={onOpenPanelApp}
|
|
84
|
+
marketplaceActive={activeTab === 'marketplace'}
|
|
85
|
+
onBrowseMarketplace={() => changeTab('marketplace')}
|
|
86
|
+
onManagePackage={managePackage}
|
|
87
|
+
/>
|
|
88
|
+
</div>
|
|
89
|
+
{activeTab === 'panel-apps' ? (
|
|
59
90
|
<PanelAppsList onOpenPanelApp={onOpenPanelApp} />
|
|
60
|
-
) : (
|
|
91
|
+
) : activeTab === 'service-apps' ? (
|
|
61
92
|
<Suspense fallback={null}>
|
|
62
|
-
<ServiceAppsPanel onManagePackage={managePackage} />
|
|
93
|
+
<ServiceAppsPanel resourceId={serviceResourceId} onManagePackage={managePackage} />
|
|
63
94
|
</Suspense>
|
|
64
|
-
)}
|
|
95
|
+
) : null}
|
|
65
96
|
</div>
|
|
66
97
|
</div>
|
|
67
98
|
);
|
|
@@ -150,7 +150,7 @@ export function ChatConversationHeaderSection({
|
|
|
150
150
|
) : null
|
|
151
151
|
}
|
|
152
152
|
actions={
|
|
153
|
-
<IconActionGroup>
|
|
153
|
+
<IconActionGroup className="[--icon-control-size:2rem] [--icon-feedback-size:1.75rem]">
|
|
154
154
|
{layoutMode === "mobile" && sessionKey ? (
|
|
155
155
|
<IconActionButton
|
|
156
156
|
icon={<SquarePen className="h-4 w-4" />}
|
|
@@ -63,7 +63,7 @@ export function ChatConversationHeader({
|
|
|
63
63
|
data-testid="chat-conversation-header"
|
|
64
64
|
data-theme-surface="header"
|
|
65
65
|
className={cn(
|
|
66
|
-
"bg-background/80 backdrop-blur-sm flex items-center justify-between shrink-0 overflow-hidden transition-colors duration-200",
|
|
66
|
+
"bg-background/80 backdrop-blur-sm flex items-center justify-between gap-2 shrink-0 overflow-hidden transition-colors duration-200",
|
|
67
67
|
isMobileLayout ? "px-3 sm:px-3" : "px-4 sm:px-5",
|
|
68
68
|
shouldShow ? "opacity-100" : "h-0 py-0 opacity-0",
|
|
69
69
|
shouldShow && (isMobileLayout ? "min-h-[var(--mobile-header-height)] pb-0.5 pt-0.5" : "h-[52px]"),
|
|
@@ -29,7 +29,7 @@ export function ChatSidebarDesktopToolbar({ onCreateSession, collapsed }: Pick<C
|
|
|
29
29
|
}
|
|
30
30
|
return <>
|
|
31
31
|
<div className="px-4 pb-2">
|
|
32
|
-
<Button variant="ghost" className="w-full rounded-
|
|
32
|
+
<Button variant="ghost" className="w-full rounded-[var(--sidebar-create-radius)] [box-shadow:var(--sidebar-create-shadow)] bg-[var(--sidebar-create-background)] font-[number:var(--sidebar-create-weight)] text-[var(--sidebar-create-foreground)] hover:bg-[var(--sidebar-create-hover)] hover:text-[var(--sidebar-create-hover-foreground)]" onClick={onCreateSession}>
|
|
33
33
|
<Plus className="mr-1.5 h-4 w-4" />{t('chatSidebarNewTask')}
|
|
34
34
|
</Button>
|
|
35
35
|
</div>
|
|
@@ -93,7 +93,7 @@ export function ChatSidebarMobileToolbar(props: ChatSidebarToolbarProps & {
|
|
|
93
93
|
</button>
|
|
94
94
|
</PopoverTrigger>
|
|
95
95
|
</h1>
|
|
96
|
-
<ChatPopoverContent align="start"
|
|
96
|
+
<ChatPopoverContent align="start" variant="menu">
|
|
97
97
|
<div onClick={() => setViewMenuOpen(false)}>
|
|
98
98
|
<ChatSessionHeaderMenuItem icon={Clock3} label={t('chatSidebarViewTime')} onClick={() => onSelectMode('time-first')} />
|
|
99
99
|
<ChatSessionHeaderMenuItem icon={Folder} label={t('chatSidebarViewProject')} onClick={() => onSelectMode('project-first')} />
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ACTION_FEEDBACK, ACTION_MENU_ITEM_CLASS } from '@/shared/components/ui/actions/action-feedback';
|
|
1
2
|
import { NavLink } from "react-router-dom";
|
|
2
3
|
import {
|
|
3
4
|
Popover,
|
|
@@ -112,13 +113,14 @@ export function ChatSidebarUtilityMenu({
|
|
|
112
113
|
<ChatPopoverContent
|
|
113
114
|
side={collapsed ? "right" : "top"}
|
|
114
115
|
align={collapsed ? "end" : "start"}
|
|
115
|
-
|
|
116
|
+
variant="menu"
|
|
117
|
+
matchTriggerWidth={!collapsed}
|
|
116
118
|
>
|
|
117
|
-
<div
|
|
119
|
+
<div>
|
|
118
120
|
<NavLink
|
|
119
121
|
to="/settings"
|
|
120
122
|
onClick={() => onOpenChange(false)}
|
|
121
|
-
className=
|
|
123
|
+
className={`${ACTION_MENU_ITEM_CLASS} text-foreground ${ACTION_FEEDBACK.item}`}
|
|
122
124
|
>
|
|
123
125
|
<Settings className="h-4 w-4 text-muted-foreground/70" />
|
|
124
126
|
<span className="flex-1 text-left">{t("settings")}</span>
|
|
@@ -134,7 +136,7 @@ export function ChatSidebarUtilityMenu({
|
|
|
134
136
|
action();
|
|
135
137
|
onOpenChange(false);
|
|
136
138
|
}}
|
|
137
|
-
className=
|
|
139
|
+
className={`${ACTION_MENU_ITEM_CLASS} text-foreground ${ACTION_FEEDBACK.item}`}
|
|
138
140
|
>
|
|
139
141
|
<Icon className="h-4 w-4 text-muted-foreground/70" />
|
|
140
142
|
<span className="flex-1 text-left">{label}</span>
|
|
@@ -142,7 +144,7 @@ export function ChatSidebarUtilityMenu({
|
|
|
142
144
|
))}
|
|
143
145
|
</div>
|
|
144
146
|
|
|
145
|
-
<div className="my-
|
|
147
|
+
<div className="my-1 h-px bg-border" />
|
|
146
148
|
|
|
147
149
|
<ChatSidebarUtilitySelect
|
|
148
150
|
icon={Palette}
|
|
@@ -197,10 +199,10 @@ function ChatSidebarUtilitySelect<Value extends string>({
|
|
|
197
199
|
>
|
|
198
200
|
<SelectTrigger
|
|
199
201
|
aria-label={label}
|
|
200
|
-
className=
|
|
202
|
+
className={`${ACTION_MENU_ITEM_CLASS} h-auto border-0 bg-transparent text-foreground shadow-none focus:ring-0 ${ACTION_FEEDBACK.item}`}
|
|
201
203
|
indicator={<ChevronRight className="h-4 w-4 text-muted-foreground/70" />}
|
|
202
204
|
>
|
|
203
|
-
<div className="flex min-w-0 items-center gap-2
|
|
205
|
+
<div className="flex min-w-0 items-center gap-2">
|
|
204
206
|
<Icon className="h-4 w-4 shrink-0 text-muted-foreground/70" />
|
|
205
207
|
<span className="text-left">{label}</span>
|
|
206
208
|
</div>
|