@kabmo-labs/kabmo 0.57.1 → 0.58.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/dist/client/index.html +1 -1
- package/dist/client/index.js +523 -506
- package/dist/client/static/js/Body-karkrzkc.js +3 -0
- package/dist/client/static/js/{CsvGrid-563qmmmr.js → CsvGrid-j03knmbe.js} +2 -2
- package/dist/client/static/js/{DocxView-5j69q3s0.js → DocxView-e8408vzs.js} +2 -2
- package/dist/client/static/js/{DrawioView-gd6k3hvn.js → DrawioView-fj4mfzch.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-6gnktzzp.js → HtmlPreview-9g8xwzgw.js} +1 -1
- package/dist/client/static/js/ImageView-sz4fzz9k.js +1 -0
- package/dist/client/static/js/LayoutWrapper-q6q4h04a.js +2 -0
- package/dist/client/static/js/MergeDiffView-b8f013ws.js +1 -0
- package/dist/client/static/js/Modal-ahecatp5.js +60 -0
- package/dist/client/static/js/{PdfView-n1zq27td.js → PdfView-8jtdx5hd.js} +1 -1
- package/dist/client/static/js/SessionsView-jwp8xvw5.js +1 -0
- package/dist/client/static/js/{SheetView-nes7j86v.js → SheetView-hwx8s864.js} +11 -11
- package/dist/client/static/js/{SvgPreview-vv0qzkt7.js → SvgPreview-ete36nzv.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-02g96sn6.js → abnfDiagram-O67JEVCF-7nsqzz6z.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-dc7zys46.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7qj2fpwt.js → architectureDiagram-NJMV4G6O-xvpkfq2f.js} +11 -11
- package/dist/client/static/js/{astro-asmathwv.js → astro-rsrqgjjx.js} +1 -1
- package/dist/client/static/js/bash-n5d0esqg.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-grdr1j2h.js → blockDiagram-BEXU5L5S-0saahcs6.js} +7 -7
- package/dist/client/static/js/c-pk766wx0.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-7y980xpx.js → c4Diagram-YGBWAQC7-ktpqnb4a.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-29ag4js1.js → classDiagram-v2-NBCMYWYE-x67cz3ms.js} +5 -5
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-e5dvgehd.js → cose-bilkent-JH36ORCC-9wzmhkz8.js} +1 -1
- package/dist/client/static/js/cpp-3pt91jvm.js +1 -0
- package/dist/client/static/js/css-sp1cgdbr.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-9fx59e89.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-eq6fmx0b.js → cynefinDiagram-VND7K2PF-dmmgmv99.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-xfhwp8ha.js → dagre-6A5THRUB-ygkkms1t.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-1bw6x6zt.js → diagram-22UHCM2B-qxj0pqb4.js} +14 -14
- package/dist/client/static/js/{diagram-3UASUU5V-076ej5n5.js → diagram-3UASUU5V-77k8w5dt.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-cvf9fhdq.js → diagram-ATOU4E4O-m0h86vf4.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-hn1wdx54.js → diagram-CDSNMT55-5v28kaeg.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-76gk27b5.js → diagram-MLGK6HIB-zgcg9gaz.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-0cbajhpx.js → diagram-MPIPVDR6-10c9s6e6.js} +2 -2
- package/dist/client/static/js/{dockerfile-7atfjhnf.js → dockerfile-dr9sdsqp.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-n0g3b9m2.js → ebnfDiagram-ZINNZB2B-mz4022dz.js} +1 -1
- package/dist/client/static/js/{elixir-7q2k61zb.js → elixir-3dy25ex8.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-f6wrjcv9.js → elk-276RUBZZ-ccerbsag.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-jz622yrg.js → erDiagram-OPXOYQCR-a8vjyrrw.js} +5 -5
- package/dist/client/static/js/{erlang-tjsd7n4d.js → erlang-v7344938.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-61d2ee91.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-104ywb7w.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-2ex4nxyg.js → ganttDiagram-FUAMR5RP-sz1g29fp.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-zkb30q0t.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-38eyay6g.js → gitGraphDiagram-X574FWY7-efqk42q0.js} +15 -15
- package/dist/client/static/js/graphql-2ntm7jyh.js +1 -0
- package/dist/client/static/js/html-mt2yb43b.js +1 -0
- package/dist/client/static/js/{index-db7vsjkd.js → index-2a0b9ya2.js} +1 -1
- package/dist/client/static/js/index-2f6psebk.js +2 -0
- package/dist/client/static/js/{index-j9y4tjk0.js → index-3m1dksmy.js} +2 -2
- package/dist/client/static/js/{index-668fc1df.js → index-3p732mvs.js} +2 -2
- package/dist/client/static/js/{index-3x88t8g9.js → index-3ymw778n.js} +2 -2
- package/dist/client/static/js/{index-rbkvw2xs.js → index-5tp3emtg.js} +2 -2
- package/dist/client/static/js/{index-8444mec5.js → index-6ac860yz.js} +2 -2
- package/dist/client/static/js/{index-zzggk17b.js → index-6ey6y9em.js} +2 -2
- package/dist/client/static/js/index-6h46r2de.js +1 -0
- package/dist/client/static/js/index-6qqsy78z.js +1 -0
- package/dist/client/static/js/{index-25zpywv7.js → index-6x0kn8pb.js} +2 -2
- package/dist/client/static/js/{index-zv8wrvha.js → index-7ma44af3.js} +3 -3
- package/dist/client/static/js/index-7s4dge1z.js +1 -0
- package/dist/client/static/js/{index-my856e49.js → index-7ynf3s2w.js} +2 -2
- package/dist/client/static/js/index-8aqjj2x2.js +1 -0
- package/dist/client/static/js/index-bkwax812.js +1 -0
- package/dist/client/static/js/{index-60g0e74a.js → index-dqf0srrp.js} +2 -2
- package/dist/client/static/js/{index-jaxhfk9x.js → index-dz18nn65.js} +2 -2
- package/dist/client/static/js/{index-9gfn1a3h.js → index-e42ys2q3.js} +7 -7
- package/dist/client/static/js/{index-wxs0x3g1.js → index-ewryzs4g.js} +2 -2
- package/dist/client/static/js/{index-55v3qv04.js → index-f31c6jg8.js} +22 -22
- package/dist/client/static/js/index-f44k9k8d.css +1 -0
- package/dist/client/static/js/{index-nnqyew8n.js → index-fhtnvqgf.js} +2 -2
- package/dist/client/static/js/{index-396g4zz4.js → index-gaa39w5q.js} +2 -2
- package/dist/client/static/js/{index-63mk2qk6.js → index-gqsnyh8k.js} +2 -2
- package/dist/client/static/js/index-gw4c5n3a.js +2 -0
- package/dist/client/static/js/index-j863hg0d.js +9 -0
- package/dist/client/static/js/{index-e4yj4kbe.js → index-jnxmvxb8.js} +12 -12
- package/dist/client/static/js/{index-0prwdwyb.js → index-jxsha63v.js} +2 -2
- package/dist/client/static/js/index-k1576e2m.js +2 -0
- package/dist/client/static/js/index-k4qshngy.js +4 -0
- package/dist/client/static/js/{index-ep99arz1.js → index-k56patms.js} +2 -2
- package/dist/client/static/js/{index-8pqx5n2p.js → index-kc5yt2cd.js} +2 -2
- package/dist/client/static/js/index-mkp3gwag.js +1 -0
- package/dist/client/static/js/{index-g2e0m757.js → index-nzq51nbb.js} +7 -7
- package/dist/client/static/js/{index-1q934wfk.js → index-q5q8a3qn.js} +2 -2
- package/dist/client/static/js/{index-tksrpqkh.js → index-qbqm3c91.js} +5 -5
- package/dist/client/static/js/{index-zynbvm7x.js → index-qkcmspxq.js} +2 -2
- package/dist/client/static/js/index-r1wrke3j.js +1 -0
- package/dist/client/static/js/index-rr79n77k.js +470 -0
- package/dist/client/static/js/{index-y1j18rha.js → index-rxt8sf9a.js} +2 -2
- package/dist/client/static/js/{index-tdryzzy9.js → index-ssepzdaz.js} +6 -6
- package/dist/client/static/js/{index-rsyqf691.js → index-sxag9ptg.js} +2 -2
- package/dist/client/static/js/{index-ewst55j2.js → index-t71k3b28.js} +2 -2
- package/dist/client/static/js/index-tc07gd33.js +2 -0
- package/dist/client/static/js/{index-m6eh5g1q.js → index-tdg7hz80.js} +2 -2
- package/dist/client/static/js/{index-nt17ejrm.js → index-th61y26d.js} +2 -2
- package/dist/client/static/js/{index-n1xmkf2g.js → index-tnxp90ac.js} +1 -1
- package/dist/client/static/js/{index-ms80nne4.js → index-tq3t3qm4.js} +2 -2
- package/dist/client/static/js/index-ts8rhd06.js +1 -0
- package/dist/client/static/js/{index-xtrsvm0d.js → index-v8xhgfeq.js} +2 -2
- package/dist/client/static/js/{index-ays8t3t3.js → index-vb5a3g01.js} +4 -4
- package/dist/client/static/js/{index-pjf5wak8.js → index-ver116ed.js} +1 -1
- package/dist/client/static/js/{index-hge0y4vn.js → index-vf01q99d.js} +2 -2
- package/dist/client/static/js/{index-4cff0zg2.js → index-w5j1wgcz.js} +1 -1
- package/dist/client/static/js/{index-cwwg7k5f.js → index-wnk9k57k.js} +27 -27
- package/dist/client/static/js/{index-6z30g3ha.js → index-x7h04xzf.js} +2 -2
- package/dist/client/static/js/{index-xfnjwhan.js → index-xfyxmaj1.js} +85 -85
- package/dist/client/static/js/index-xygk0v3e.js +2 -0
- package/dist/client/static/js/{index-kt7c42n7.js → index-y0f3wbc3.js} +2 -2
- package/dist/client/static/js/index-zh550byg.js +2 -0
- package/dist/client/static/js/info-A6RAGUB7-xxvyt8p8.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-c55t0tvd.js → infoDiagram-VRGFBTTK-rykcacj5.js} +1 -1
- package/dist/client/static/js/ini-bdk46a3d.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-r9kg5kg5.js → ishikawaDiagram-OU5B5YK6-rj752kd8.js} +3 -3
- package/dist/client/static/js/java-3g3925cf.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-zmmst4v8.js → journeyDiagram-ZHPQQLJL-mtetwn6f.js} +5 -5
- package/dist/client/static/js/json-hdyzmffz.js +1 -0
- package/dist/client/static/js/jsx-y8r9mrdq.js +1 -0
- package/dist/client/static/js/{julia-d18zhpyp.js → julia-mxe3pnz3.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-3tt6sc9a.js → kanban-definition-PNTS6WVX-4h5pw5mm.js} +3 -3
- package/dist/client/static/js/lua-wf5k6p3r.js +1 -0
- package/dist/client/static/js/markdown-9bf16dx7.js +1 -0
- package/dist/client/static/js/{mermaid.core-pkrs8zp5.js → mermaid.core-bs542jma.js} +8 -8
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-b4c6gxg4.js → mindmap-definition-NLK3R4M7-67s4xy7h.js} +5 -5
- package/dist/client/static/js/one-dark-pro-541ed4b7.js +1 -0
- package/dist/client/static/js/one-light-nr79mykt.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-cm8jeesg.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-9jkat1mz.js → pegDiagram-GJSIUBJH-qykb6ssk.js} +1 -1
- package/dist/client/static/js/{perl-sns2qvmf.js → perl-a8eeaqkn.js} +1 -1
- package/dist/client/static/js/{php-3q6v9eey.js → php-6gq92zt8.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-8b9xgcxv.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-6pbchjh7.js → pieDiagram-5QR66LMP-mymrrvck.js} +2 -2
- package/dist/client/static/js/properties-xk4dn00p.js +1 -0
- package/dist/client/static/js/python-7sgz05n4.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-p9brea19.js → quadrantDiagram-O4NWA36T-6f8ahd40.js} +6 -6
- package/dist/client/static/js/r-w4qxm0pv.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-fxr2x2mf.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-5qd45xk1.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-6fa00vpk.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pcbtg7tj.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-r0fdhdtp.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3cep8css.js → railroadDiagram-XR7U4H2S-c3habpvw.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-x1yjgsrr.js → requirementDiagram-PLB6GJNP-nysqy6te.js} +12 -12
- package/dist/client/static/js/{ruby-f9k99tfq.js → ruby-mc826p2e.js} +1 -1
- package/dist/client/static/js/{rust-yy8gekx8.js → rust-m4f4vpvn.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-23wzf4aj.js → sankeyDiagram-IPEJSGJF-s5dtfp3z.js} +4 -4
- package/dist/client/static/js/{sass-2syegq28.js → sass-8bq5r2tz.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-w4wr3zzr.js → sequenceDiagram-PO4LG4MO-bb3yp049.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-aabfesnr.js → sizeCapture-INFHLROL-0m2msee7.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-t0n288xw.js → stateDiagram-v2-GCMORJYK-cd0qgj6t.js} +3 -3
- package/dist/client/static/js/{svelte-mm3jfpje.js → svelte-5vrwkc13.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-1nnm0p7h.js → swimlanes-2SLR337P-rpb01f7p.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-zx36y2c8.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-8pyssn0q.js → timeline-definition-EJHVYXUP-tqw2e6y1.js} +5 -5
- package/dist/client/static/js/treeView-Q6P3EWNA-9sn2h4ea.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-9fzms0pq.js +1 -0
- package/dist/client/static/js/tsx-h5yzg80q.js +1 -0
- package/dist/client/static/js/typescript-qy1sbhea.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-vveepvt6.js → usecaseDiagram-POWQR4AR-dhf4d5xg.js} +41 -41
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-tqyvmqxc.js → vennDiagram-UO4OBE2U-ztkk79dv.js} +7 -7
- package/dist/client/static/js/{vue-e8e3q3hj.js → vue-gmjnxjm3.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-vy6rp5gp.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-p8rs34em.js → wardleyDiagram-VNRHLVJA-ahre5tmv.js} +5 -5
- package/dist/client/static/js/xml-mrk4xakv.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-pgnvxtps.js → xychartDiagram-PMCCYNJV-vak2c50n.js} +6 -6
- package/dist/client/static/js/yaml-xaza6dra.js +1 -0
- package/package.json +6 -6
- package/src/client/bootstrap.d.ts +11 -0
- package/src/client/borders.css +3 -4
- package/src/client/components/auth/login-screen/index.tsx +1 -1
- package/src/client/components/common/ComposerPicker.tsx +1 -1
- package/src/client/components/common/CopyButton.tsx +1 -1
- package/src/client/components/common/FolderPicker.tsx +1 -1
- package/src/client/components/common/SubagentStatusIcon.tsx +2 -2
- package/src/client/components/common/ViewportSelector.tsx +2 -2
- package/src/client/components/common/batch-selection/BatchActionBar.tsx +1 -1
- package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +4 -4
- package/src/client/components/common/checkbox/style.ts +1 -1
- package/src/client/components/common/context-usage-button/McpSection.tsx +3 -2
- package/src/client/components/common/file-icon/index.tsx +3 -3
- package/src/client/components/common/harness-glyph/index.tsx +4 -3
- package/src/client/components/common/image-viewer/fullscreen.tsx +1 -1
- package/src/client/components/common/image-viewer/index.tsx +2 -2
- package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
- package/src/client/components/common/markdown-review/ReviewSummary.tsx +3 -3
- package/src/client/components/common/plugin-render-boundary/index.tsx +1 -1
- package/src/client/components/common/server-control/Panel.tsx +1 -1
- package/src/client/components/common/server-control/Row.tsx +3 -3
- package/src/client/components/common/session-actions-menu/MenuItem.tsx +2 -2
- package/src/client/components/common/session-branch/SubagentRow.tsx +1 -1
- package/src/client/components/common/session-delete-modal/index.tsx +4 -4
- package/src/client/components/common/session-row/StatusSlot.tsx +1 -1
- package/src/client/components/common/session-row/index.tsx +40 -2
- package/src/client/components/common/session-row/session-row.test.tsx +46 -3
- package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
- package/src/client/components/common/todo-row/index.tsx +1 -1
- package/src/client/components/common/window-controls/index.tsx +1 -1
- package/src/client/components/common/workspace-options-menu/index.tsx +4 -4
- package/src/client/components/layout/session-sidebar/Toolbar.tsx +2 -2
- package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/UpdateLogDialog.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +3 -3
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/FilterChips.tsx +1 -1
- package/src/client/components/layout/session-sidebar/new-workspace-modal/DirectoryList.tsx +2 -2
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/ModelFields.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +4 -4
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/layout/update-popup/Actions.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +3 -3
- package/src/client/components/mobile/mobile-right-sidebar/MissingFileBanner.tsx +2 -2
- package/src/client/components/mobile/mobile-right-sidebar/PreviewScroller.tsx +2 -2
- package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +3 -3
- package/src/client/components/settings/Modal.tsx +8 -3
- package/src/client/components/settings/SettingsSidebarList.tsx +2 -2
- package/src/client/components/settings/Sidebar.tsx +3 -3
- package/src/client/components/settings/apply-side-effects.test.ts +46 -0
- package/src/client/components/settings/apply-side-effects.ts +8 -0
- package/src/client/components/settings/categories/BehaviorSettings.tsx +1 -1
- package/src/client/components/settings/categories/OmpSettings.tsx +3 -3
- package/src/client/components/settings/categories/UsageSettings.tsx +3 -3
- package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +5 -5
- package/src/client/components/settings/categories/appearance-settings/CustomThemeEditor.tsx +177 -0
- package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.test.tsx +136 -0
- package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.tsx +180 -0
- package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +6 -5
- package/src/client/components/settings/categories/appearance-settings/ThemePreview.tsx +106 -0
- package/src/client/components/settings/categories/appearance-settings/ThemeSection.tsx +7 -3
- package/src/client/components/settings/categories/behavior-settings/Editor.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/ToolRenderSection.tsx +1 -1
- package/src/client/components/settings/categories/command-settings/DetailPane.tsx +4 -4
- package/src/client/components/settings/categories/dictation-settings/ExternalSection.tsx +1 -1
- package/src/client/components/settings/categories/git-settings/CommitMessageSection.tsx +1 -1
- package/src/client/components/settings/categories/git-settings/IdentitySection.tsx +2 -2
- package/src/client/components/settings/categories/harness-settings/AccountLoginPanel.tsx +3 -3
- package/src/client/components/settings/categories/harness-settings/AccountsPanel.tsx +13 -83
- package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/ConnectionTest.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +5 -5
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/KeyValueSection.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +4 -4
- package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +3 -3
- package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/InstallForm.tsx +3 -3
- package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Meta.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +5 -5
- package/src/client/components/settings/categories/panel-plugins/ReadmeModal.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Registries.tsx +4 -4
- package/src/client/components/settings/categories/panel-plugins/Section.tsx +3 -3
- package/src/client/components/settings/categories/panel-plugins/SettingsModal.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/SyncBlockedNotice.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +1 -1
- package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -2
- package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +4 -4
- package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +1 -1
- package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +4 -4
- package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/DeleteProjectModal.tsx +3 -3
- package/src/client/components/settings/categories/project-settings/DetailsHeader.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/IconGrid.tsx +3 -3
- package/src/client/components/settings/categories/project-settings/SidebarList.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/SourceRail.tsx +1 -1
- package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +7 -7
- package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +1 -1
- package/src/client/components/settings/categories/skill-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/SavedResetsSection.tsx +2 -2
- package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/TokenHarborCard.tsx +1 -1
- package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +2 -2
- package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +5 -5
- package/src/client/components/settings/categories/voice-settings/speech/ModelsSection.tsx +4 -4
- package/src/client/components/workspace/browser-panel/ActivityToasts.tsx +2 -2
- package/src/client/components/workspace/browser-panel/EngineNotice.tsx +1 -1
- package/src/client/components/workspace/browser-panel/index.tsx +2 -2
- package/src/client/components/workspace/browser-toolbar/clusters.tsx +2 -2
- package/src/client/components/workspace/btw-panel/Messages.tsx +2 -2
- package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/IrcNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/OrchestrationNotice.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +11 -11
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/SwipeDeck.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/ApprovalBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Github.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +8 -8
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +35 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +17 -12
- package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
- package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +3 -3
- package/src/client/components/workspace/diff-panel/Toolbar.tsx +3 -3
- package/src/client/components/workspace/diff-panel/index.tsx +3 -3
- package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +1 -1
- package/src/client/components/workspace/editor/ConflictStrip.tsx +2 -2
- package/src/client/components/workspace/editor/ExternalChangeStrip.tsx +2 -2
- package/src/client/components/workspace/editor/FilePane.tsx +6 -6
- package/src/client/components/workspace/editor/FindWidget.tsx +2 -2
- package/src/client/components/workspace/editor/GoToLineModal.tsx +1 -1
- package/src/client/components/workspace/editor/SaveAsModal.tsx +3 -3
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
- package/src/client/components/workspace/editor/StatusBar.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.test.ts +3 -3
- package/src/client/components/workspace/editor/Tabs.tsx +6 -6
- package/src/client/components/workspace/editor/Toolbar.tsx +4 -4
- package/src/client/components/workspace/editor/toolbar-clusters.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/DataGrid.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/GridToolbar.tsx +2 -2
- package/src/client/components/workspace/editor/viewers/SheetView.tsx +2 -2
- package/src/client/components/workspace/editor/viewers/ViewerError.tsx +2 -2
- package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ContextMenu.tsx +3 -3
- package/src/client/components/workspace/file-explorer/Modals.tsx +3 -3
- package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +2 -2
- package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
- package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
- package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
- package/src/client/components/workspace/git-panel/FileItem.tsx +1 -1
- package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
- package/src/client/components/workspace/git-panel/OperationBar.tsx +4 -4
- package/src/client/components/workspace/git-panel/StashSection.tsx +1 -1
- package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/index.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +31 -76
- package/src/client/components/workspace/model-dropdown/Item.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/Panel.tsx +15 -9
- package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +12 -83
- package/src/client/components/workspace/model-dropdown/index.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +16 -2
- package/src/client/components/workspace/plan-panel/PageView.tsx +2 -2
- package/src/client/components/workspace/plan-panel/index.tsx +2 -2
- package/src/client/components/workspace/plugin-panel/Error.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Modal.tsx +3 -3
- package/src/client/components/workspace/repo-picker/Row.tsx +5 -5
- package/src/client/components/workspace/search-panel/Body.tsx +2 -2
- package/src/client/components/workspace/terminal-panel/Header.tsx +3 -3
- package/src/client/components/workspace/terminal-panel/KeyBar.tsx +2 -2
- package/src/client/components/workspace/terminal-panel/QuickActions.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
- package/src/client/components/workspace/usage-panel/index.tsx +3 -3
- package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/PageView.tsx +2 -2
- package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
- package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +27 -7
- package/src/client/hooks/chat/timeline/session-harness.ts +2 -1
- package/src/client/hooks/editor/use-unload-guard.tsx +2 -2
- package/src/client/hooks/models/use-harness-accounts-panel.ts +142 -0
- package/src/client/hooks/ui/border-style.test.ts +1 -2
- package/src/client/hooks/ui/theme.ts +23 -2
- package/src/client/main.tsx +7 -1
- package/src/client/tailwind-contrast.test.ts +22 -7
- package/src/client/tailwind.css +115 -18
- package/src/server/lib/assets/theme-css.server.test.ts +31 -1
- package/src/server/lib/assets/theme-css.server.ts +15 -1
- package/src/server/lib/harness/accounts.test.ts +5 -3
- package/src/server/lib/harness/acp/acp-todos.test.ts +23 -0
- package/src/server/lib/omp/session/delete.server.ts +4 -0
- package/src/server/lib/realtime/topics/session-data.server.ts +63 -1
- package/src/server/lib/realtime/topics/session-data.test.ts +154 -0
- package/src/server/lib/tray/runtime.server.ts +5 -0
- package/src/server/plugins/ssr.ts +16 -4
- package/src/server/routes/settings/root.ts +11 -0
- package/src/server/routes/settings/settings-store-routes.test.ts +37 -0
- package/src/shared/lib/chat/timeline/block-chrome.ts +2 -2
- package/src/shared/lib/chat/todo/flat-list.test.ts +81 -0
- package/src/shared/lib/chat/todo/flat-list.ts +29 -0
- package/src/shared/lib/chat/todo/parser.ts +7 -53
- package/src/shared/lib/chat/todo/progress.test.ts +3 -3
- package/src/shared/lib/chat/todo/progress.ts +3 -3
- package/src/shared/lib/fs/git-status.test.ts +22 -22
- package/src/shared/lib/fs/git-status.ts +31 -31
- package/src/shared/lib/icons/icon-paint-authority.ts +5 -4
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +20 -3
- package/src/shared/lib/settings/defaults.ts +1 -0
- package/src/shared/lib/theme/catalog.test.ts +42 -0
- package/src/shared/lib/theme/catalog.ts +66 -11
- package/src/shared/lib/theme/css.ts +25 -1
- package/src/shared/lib/theme/custom.test.ts +156 -0
- package/src/shared/lib/theme/custom.ts +260 -0
- package/src/shared/lib/theme/ink-scale.test.ts +83 -2
- package/src/shared/lib/theme/ink-scale.ts +74 -9
- package/src/shared/lib/theme/shell-palette.ts +3 -3
- package/src/shared/lib/theme/theme.test.ts +28 -13
- package/src/shared/types/settings/state.ts +11 -3
- package/tsconfig.json +6 -0
- package/dist/client/static/js/Body-p6zwk0nx.js +0 -3
- package/dist/client/static/js/ImageView-fkfq3fwv.js +0 -1
- package/dist/client/static/js/LayoutWrapper-mdb1qm26.js +0 -2
- package/dist/client/static/js/MergeDiffView-7kpjxcg9.js +0 -1
- package/dist/client/static/js/Modal-0p9cr2tn.js +0 -60
- package/dist/client/static/js/SessionsView-gptt0rq8.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-3hkq8grc.js +0 -1
- package/dist/client/static/js/bash-n7wcmq3s.js +0 -1
- package/dist/client/static/js/c-20y64hcp.js +0 -1
- package/dist/client/static/js/cpp-ty6n0dg9.js +0 -1
- package/dist/client/static/js/css-ncvxaxt0.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-9m18e6m5.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-d4egnv9v.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-5bvd5k2t.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-grqv890n.js +0 -1
- package/dist/client/static/js/graphql-6rwdfcnf.js +0 -1
- package/dist/client/static/js/html-p76eszt9.js +0 -1
- package/dist/client/static/js/index-28wv94gz.js +0 -2
- package/dist/client/static/js/index-3wgjtp2k.js +0 -9
- package/dist/client/static/js/index-7trfm17d.js +0 -2
- package/dist/client/static/js/index-cxe75e06.js +0 -2
- package/dist/client/static/js/index-dmb1pykr.js +0 -1
- package/dist/client/static/js/index-fqc1snjw.js +0 -1
- package/dist/client/static/js/index-jsn2kedv.js +0 -1
- package/dist/client/static/js/index-pe4d9wht.js +0 -1
- package/dist/client/static/js/index-sm8gpk3g.js +0 -4
- package/dist/client/static/js/index-st6a8q5z.js +0 -470
- package/dist/client/static/js/index-stmwbavz.js +0 -1
- package/dist/client/static/js/index-swaveqxg.css +0 -1
- package/dist/client/static/js/index-t82q5t6m.js +0 -1
- package/dist/client/static/js/index-t9zjfxvc.js +0 -1
- package/dist/client/static/js/index-tdbcp70z.js +0 -2
- package/dist/client/static/js/index-v38j2zxn.js +0 -2
- package/dist/client/static/js/index-x17y7xdr.js +0 -2
- package/dist/client/static/js/index-xrb4kjr3.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-rzpg7qk1.js +0 -1
- package/dist/client/static/js/ini-kjcpgebh.js +0 -1
- package/dist/client/static/js/java-0bcyv1jt.js +0 -1
- package/dist/client/static/js/json-xha2drny.js +0 -1
- package/dist/client/static/js/jsx-8p6dqgpq.js +0 -1
- package/dist/client/static/js/lua-njwwdj4s.js +0 -1
- package/dist/client/static/js/markdown-8gbyxxjd.js +0 -1
- package/dist/client/static/js/one-dark-pro-sstqnzcf.js +0 -1
- package/dist/client/static/js/one-light-6fpxxq2j.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-eac14hsq.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-a9xqvysf.js +0 -1
- package/dist/client/static/js/properties-d5bwhgwz.js +0 -1
- package/dist/client/static/js/python-fdwwjjhh.js +0 -1
- package/dist/client/static/js/r-4d2ygtfj.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-jv2pm0fe.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-j74sc0b6.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-eaf19baz.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d4j5nq31.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-ba862a9p.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-cx3f29mq.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-e8yb44pd.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-zvdv84vp.js +0 -1
- package/dist/client/static/js/tsx-dk8rpgtw.js +0 -1
- package/dist/client/static/js/typescript-5txwpd9t.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-hbv0cg4s.js +0 -1
- package/dist/client/static/js/xml-8516fzfp.js +0 -1
- package/dist/client/static/js/yaml-6k1tmwtm.js +0 -1
|
@@ -201,7 +201,7 @@ export function TaskForm({
|
|
|
201
201
|
</div>
|
|
202
202
|
</div>
|
|
203
203
|
|
|
204
|
-
<p className={`text-[11px] ${validation.ok ? 'text-ink/50' : 'text-error'}`}>
|
|
204
|
+
<p className={`text-[11px] ${validation.ok ? 'text-ink/50' : 'text-error-text'}`}>
|
|
205
205
|
{validation.ok
|
|
206
206
|
? `Next run ${formatNext(validation.nextRunAt)} · ${new Date(validation.nextRunAt).toLocaleString(undefined, { timeZone: timezone })} · ${timezone}`
|
|
207
207
|
: validation.error}
|
|
@@ -99,7 +99,7 @@ export function TaskList({
|
|
|
99
99
|
{!task.enabled ? (
|
|
100
100
|
<Pause size={14} className="text-ink/40" />
|
|
101
101
|
) : task.lastStatus === 'error' ? (
|
|
102
|
-
<AlertCircle size={14} className="text-error" />
|
|
102
|
+
<AlertCircle size={14} className="text-error-text" />
|
|
103
103
|
) : task.lastStatus === 'success' ? (
|
|
104
104
|
<CheckCircle2 size={14} className="text-ink/60" />
|
|
105
105
|
) : (
|
|
@@ -135,7 +135,7 @@ export function TaskList({
|
|
|
135
135
|
</p>
|
|
136
136
|
)}
|
|
137
137
|
{task.lastStatus === 'error' && task.lastError && (
|
|
138
|
-
<p className="text-[10.5px] text-error mt-0.5 break-words">{task.lastError}</p>
|
|
138
|
+
<p className="text-[10.5px] text-error-text mt-0.5 break-words">{task.lastError}</p>
|
|
139
139
|
)}
|
|
140
140
|
{task.runCount > 0 && (
|
|
141
141
|
<p className="text-[10.5px] text-ink/40 mt-0.5">Fired {task.runCount}×</p>
|
|
@@ -183,7 +183,7 @@ export function TaskList({
|
|
|
183
183
|
aria-label="Delete"
|
|
184
184
|
disabled={busy}
|
|
185
185
|
onClick={() => onDelete(task.id)}
|
|
186
|
-
className="p-1.5 rounded hover:bg-ink/5 text-ink/60 hover:text-error transition-colors disabled:opacity-40"
|
|
186
|
+
className="p-1.5 rounded hover:bg-ink/5 text-ink/60 hover:text-error-text transition-colors disabled:opacity-40"
|
|
187
187
|
>
|
|
188
188
|
<Trash2 size={13} />
|
|
189
189
|
</button>
|
|
@@ -211,7 +211,7 @@ export function TaskList({
|
|
|
211
211
|
<span className="w-16 shrink-0 text-ink/50">{new Date(run.startedAt).toLocaleTimeString()}</span>
|
|
212
212
|
<span
|
|
213
213
|
className={`w-14 shrink-0 font-medium ${
|
|
214
|
-
run.status === 'error' ? 'text-error' : run.status === 'running' ? 'text-ink/60' : 'text-ink/70'
|
|
214
|
+
run.status === 'error' ? 'text-error-text' : run.status === 'running' ? 'text-ink/60' : 'text-ink/70'
|
|
215
215
|
}`}
|
|
216
216
|
>
|
|
217
217
|
{run.status}
|
|
@@ -155,7 +155,7 @@ export function SchedulerModal({
|
|
|
155
155
|
|
|
156
156
|
<div className="p-4 overflow-y-auto space-y-4">
|
|
157
157
|
{controller.error && !editing && (
|
|
158
|
-
<p className="text-[11px] text-error border border-error/30 bg-error/5 rounded px-2.5 py-1.5">
|
|
158
|
+
<p className="text-[11px] text-error-text border border-error/30 bg-error/5 rounded px-2.5 py-1.5">
|
|
159
159
|
{controller.error}
|
|
160
160
|
</p>
|
|
161
161
|
)}
|
|
@@ -49,7 +49,7 @@ function ManualCommand({ command, reason }: { command: string; reason: string })
|
|
|
49
49
|
title="Copy command"
|
|
50
50
|
aria-label="Copy update command"
|
|
51
51
|
>
|
|
52
|
-
{copied ? <Check size={12} className="text-success" /> : <Copy size={12} />}
|
|
52
|
+
{copied ? <Check size={12} className="text-success-text" /> : <Copy size={12} />}
|
|
53
53
|
</button>
|
|
54
54
|
</div>
|
|
55
55
|
<p className="mt-1 text-[10px] leading-4 text-ink/45">
|
|
@@ -35,7 +35,7 @@ interface EditorActionProps {
|
|
|
35
35
|
|
|
36
36
|
export function EditorAction({ label, onClick, active = false, danger = false, children }: EditorActionProps) {
|
|
37
37
|
const tone = danger
|
|
38
|
-
? 'bg-error text-
|
|
38
|
+
? 'bg-error text-error-on hover:bg-error/90'
|
|
39
39
|
: active
|
|
40
40
|
? 'bg-ink text-canvas'
|
|
41
41
|
: 'text-ink/70 hover:bg-ink/10 hover:text-ink';
|
|
@@ -136,8 +136,8 @@ export function EditorHeader({
|
|
|
136
136
|
</EditorAction>
|
|
137
137
|
|
|
138
138
|
<div className="flex min-w-0 items-center gap-1.5">
|
|
139
|
-
<FileIcon name={fileName} size={15} className={`flex-shrink-0${missing ? ' text-error' : ''}`} />
|
|
140
|
-
<span className={`truncate font-semibold text-xs${missing ? ' text-error line-through' : ' text-ink'}`}>
|
|
139
|
+
<FileIcon name={fileName} size={15} className={`flex-shrink-0${missing ? ' text-error-text' : ''}`} />
|
|
140
|
+
<span className={`truncate font-semibold text-xs${missing ? ' text-error-text line-through' : ' text-ink'}`}>
|
|
141
141
|
{fileName}
|
|
142
142
|
</span>
|
|
143
143
|
</div>
|
|
@@ -187,7 +187,7 @@ export function EditorHeader({
|
|
|
187
187
|
{roomy && (
|
|
188
188
|
<>
|
|
189
189
|
<EditorAction label="Copy content" onClick={onCopy}>
|
|
190
|
-
{copied ? <Check size={EDITOR_ACTION_GLYPH_PX} className="text-success" /> : <Copy size={EDITOR_ACTION_GLYPH_PX} />}
|
|
190
|
+
{copied ? <Check size={EDITOR_ACTION_GLYPH_PX} className="text-success-text" /> : <Copy size={EDITOR_ACTION_GLYPH_PX} />}
|
|
191
191
|
</EditorAction>
|
|
192
192
|
<EditorAction label="Download file" onClick={onDownload}>
|
|
193
193
|
<Download size={EDITOR_ACTION_GLYPH_PX} />
|
|
@@ -17,11 +17,11 @@ import { AlertTriangle } from 'lucide-preact';
|
|
|
17
17
|
|
|
18
18
|
export function MissingFileBanner() {
|
|
19
19
|
return (
|
|
20
|
-
<div className="flex items-start gap-2 px-3 py-2 border-b border-error/30 bg-error/10 text-error shrink-0">
|
|
20
|
+
<div className="flex items-start gap-2 px-3 py-2 border-b border-error/30 bg-error/10 text-error-text shrink-0">
|
|
21
21
|
<AlertTriangle size={14} className="shrink-0 mt-0.5" />
|
|
22
22
|
<div className="min-w-0">
|
|
23
23
|
<div className="text-[11.5px] font-sans">This file was deleted from disk.</div>
|
|
24
|
-
<div className="text-[11px] font-sans text-error
|
|
24
|
+
<div className="text-[11px] font-sans text-error-text">
|
|
25
25
|
The buffer is still here. Saving recreates the file — autosave is off until then.
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
@@ -87,8 +87,8 @@ export function PreviewScroller({
|
|
|
87
87
|
</div>
|
|
88
88
|
) : loadError ? (
|
|
89
89
|
<div className="flex flex-col items-center justify-center h-full gap-2 px-6 text-center">
|
|
90
|
-
<AlertTriangle size={20} className="text-error" />
|
|
91
|
-
<span className="text-xs text-error font-sans">Could not read {fileName}</span>
|
|
90
|
+
<AlertTriangle size={20} className="text-error-text" />
|
|
91
|
+
<span className="text-xs text-error-text font-sans">Could not read {fileName}</span>
|
|
92
92
|
<span className="text-[11px] text-ink/50 font-mono break-all">{loadError}</span>
|
|
93
93
|
</div>
|
|
94
94
|
) : (
|
|
@@ -62,7 +62,7 @@ export function EditorStatusBar({
|
|
|
62
62
|
) : (
|
|
63
63
|
<>
|
|
64
64
|
{conflicts > 0 && (
|
|
65
|
-
<span className="text-error font-semibold tabular-nums">
|
|
65
|
+
<span className="text-error-text font-semibold tabular-nums">
|
|
66
66
|
⚠ {conflicts}
|
|
67
67
|
</span>
|
|
68
68
|
)}
|
|
@@ -88,7 +88,7 @@ export function EditorStatusBar({
|
|
|
88
88
|
{saveStatus === 'error' && (
|
|
89
89
|
<>
|
|
90
90
|
<span className="w-1.5 h-1.5 rounded-full bg-error"></span>
|
|
91
|
-
<span className="text-error">Save failed</span>
|
|
91
|
+
<span className="text-error-text">Save failed</span>
|
|
92
92
|
</>
|
|
93
93
|
)}
|
|
94
94
|
{saveStatus === 'idle' && path && <span className="truncate max-w-[140px]">{path}</span>}
|
|
@@ -171,7 +171,7 @@ export function MobileSessionToolbar({
|
|
|
171
171
|
type="button"
|
|
172
172
|
onClick={onToggleArchived}
|
|
173
173
|
aria-pressed={showArchived}
|
|
174
|
-
className={`${CONTROL_CLASS} ${showArchived ? 'bg-warning/15 border-warning/40 text-warning' : CONTROL_IDLE}`}
|
|
174
|
+
className={`${CONTROL_CLASS} ${showArchived ? 'bg-warning/15 border-warning/40 text-warning-text' : CONTROL_IDLE}`}
|
|
175
175
|
title={archiveLabel}
|
|
176
176
|
aria-label={archiveLabel}
|
|
177
177
|
>
|
|
@@ -288,13 +288,13 @@ export function MobileSessionToolbar({
|
|
|
288
288
|
</span>
|
|
289
289
|
)}
|
|
290
290
|
{showArchived && (
|
|
291
|
-
<span className="inline-flex items-center space-x-1 bg-warning/15 border border-warning/25 text-warning rounded-lg px-2 py-0.5 text-[10px] font-mono">
|
|
291
|
+
<span className="inline-flex items-center space-x-1 bg-warning/15 border border-warning/25 text-warning-text rounded-lg px-2 py-0.5 text-[10px] font-mono">
|
|
292
292
|
<Archive size={10} />
|
|
293
293
|
<span>Archived</span>
|
|
294
294
|
<button
|
|
295
295
|
type="button"
|
|
296
296
|
onClick={onHideArchived}
|
|
297
|
-
className="hover:text-warning-
|
|
297
|
+
className="hover:text-warning-text ml-0.5"
|
|
298
298
|
title="Hide archived"
|
|
299
299
|
>
|
|
300
300
|
<X size={10} />
|
|
@@ -3,6 +3,7 @@ import type { SettingsCategoryId, SettingsState } from '@/shared/types';
|
|
|
3
3
|
import { mergeKabmoSettings } from '@/shared/lib/settings/client';
|
|
4
4
|
import { diffSettings } from '@/shared/lib/settings/diff';
|
|
5
5
|
import { DEFAULT_SETTINGS } from '@/shared/lib/settings/defaults';
|
|
6
|
+
import { normalizeStoredThemeId, sanitizeCustomThemes } from '@/shared/lib/theme/custom';
|
|
6
7
|
import { useKabmoSettingsWriter } from '@/client/hooks/settings/use-kabmo-setting';
|
|
7
8
|
import { useReloadOmpEngine } from '@/client/hooks/settings/reload-engine';
|
|
8
9
|
import { useRestartKabmo } from '@/client/hooks/settings/restart-kabmo';
|
|
@@ -57,9 +58,13 @@ export function SettingsModal({
|
|
|
57
58
|
.filter((entry) => !entry.builtIn && !entry.enabled)
|
|
58
59
|
.map((entry) => entry.id);
|
|
59
60
|
|
|
60
|
-
const [settings, setSettings] = useState<SettingsState>(() =>
|
|
61
|
-
mergeKabmoSettings(DEFAULT_SETTINGS, appSettings)
|
|
62
|
-
|
|
61
|
+
const [settings, setSettings] = useState<SettingsState>(() => {
|
|
62
|
+
const merged = mergeKabmoSettings(DEFAULT_SETTINGS, appSettings);
|
|
63
|
+
// A stored palette written by another build (or a raw API call) is the
|
|
64
|
+
// boundary value: normalise it before the editor can re-save it.
|
|
65
|
+
const customThemes = sanitizeCustomThemes(merged.customThemes);
|
|
66
|
+
return { ...merged, customThemes, theme: normalizeStoredThemeId(merged.theme, customThemes) };
|
|
67
|
+
});
|
|
63
68
|
|
|
64
69
|
// The sheet is a dialog: it carries the role, traps Tab, closes on Escape and
|
|
65
70
|
// returns focus to the Settings button. Measured before this, focus stayed on
|
|
@@ -109,9 +109,9 @@ export const SettingsSidebarList: FunctionComponent<SettingsSidebarListProps> =
|
|
|
109
109
|
|
|
110
110
|
<div className="flex-1 scrollbar-overlay-container p-1.5 space-y-3 text-xs">
|
|
111
111
|
{loadError && (
|
|
112
|
-
<div className="mx-1 rounded-lg border border-error/30 bg-error/5 px-2.5 py-2 text-[11px] leading-snug text-error">
|
|
112
|
+
<div className="mx-1 rounded-lg border border-error/30 bg-error/5 px-2.5 py-2 text-[11px] leading-snug text-error-text">
|
|
113
113
|
<div className="font-semibold">Could not read the list</div>
|
|
114
|
-
<div className="mt-0.5 break-words text-error
|
|
114
|
+
<div className="mt-0.5 break-words text-error-text">{loadError}</div>
|
|
115
115
|
{onRetry && (
|
|
116
116
|
<button
|
|
117
117
|
type="button"
|
|
@@ -200,7 +200,7 @@ export function SettingsSidebar({
|
|
|
200
200
|
<span className="truncate">{item.label}</span>
|
|
201
201
|
</div>
|
|
202
202
|
{item.badge && (
|
|
203
|
-
<span className="px-1.5 py-0.2 text-[10px] font-mono font-medium rounded border border-warning/30 bg-warning/15 text-warning">
|
|
203
|
+
<span className="px-1.5 py-0.2 text-[10px] font-mono font-medium rounded border border-warning/30 bg-warning/15 text-warning-text">
|
|
204
204
|
{item.badge}
|
|
205
205
|
</span>
|
|
206
206
|
)}
|
|
@@ -224,7 +224,7 @@ export function SettingsSidebar({
|
|
|
224
224
|
aria-label="Reload OMP"
|
|
225
225
|
className="shrink-0 flex items-center space-x-1 px-1 py-1.5 text-[11px] text-ink/75 hover:text-ink hover:bg-ink/5 rounded-lg transition-colors font-medium cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed"
|
|
226
226
|
>
|
|
227
|
-
<RefreshCw size={12} className={`shrink-0 ${isReloading ? 'animate-spin text-warning' : 'text-ink/60'}`} />
|
|
227
|
+
<RefreshCw size={12} className={`shrink-0 ${isReloading ? 'animate-spin text-warning-text' : 'text-ink/60'}`} />
|
|
228
228
|
<span className="whitespace-nowrap">{isReloading ? 'Reloading…' : 'Reload OMP'}</span>
|
|
229
229
|
</button>
|
|
230
230
|
<button
|
|
@@ -235,7 +235,7 @@ export function SettingsSidebar({
|
|
|
235
235
|
aria-label="Restart Kabmo"
|
|
236
236
|
className="flex-1 min-w-0 flex items-center space-x-1 px-1 py-1.5 text-[11px] text-ink/75 hover:text-ink hover:bg-ink/5 rounded-lg transition-colors font-medium cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed"
|
|
237
237
|
>
|
|
238
|
-
<Power size={12} className={`shrink-0 ${isRestarting ? 'animate-pulse text-warning' : 'text-ink/60'}`} />
|
|
238
|
+
<Power size={12} className={`shrink-0 ${isRestarting ? 'animate-pulse text-warning-text' : 'text-ink/60'}`} />
|
|
239
239
|
<span className="truncate">{isRestarting ? 'Restarting…' : 'Restart Kabmo'}</span>
|
|
240
240
|
</button>
|
|
241
241
|
</div>
|
|
@@ -27,6 +27,9 @@ import { CHANGED_FILES_CHANGED_EVENT } from '@/client/hooks/chat/timeline/change
|
|
|
27
27
|
import { EDITOR_FONT_CHANGED_EVENT } from '@/client/hooks/editor/font';
|
|
28
28
|
import { RIGHT_SIDE_HIDDEN_SCOPE_CHANGED_EVENT } from '@/client/hooks/workspace/right-side';
|
|
29
29
|
import type { SettingsState } from '@/shared/types';
|
|
30
|
+
import type { ThemePalette } from '@kabmo-labs/kabmo-app-contracts/theme';
|
|
31
|
+
import { registerCustomThemes } from '@/shared/lib/theme/catalog';
|
|
32
|
+
import { CUSTOM_THEME_STYLE_ELEMENT_ID } from '@/shared/lib/theme/css';
|
|
30
33
|
|
|
31
34
|
const originalWindow = globalThis.window;
|
|
32
35
|
const originalDocument = globalThis.document;
|
|
@@ -175,3 +178,46 @@ describe('applySettingsSideEffects', () => {
|
|
|
175
178
|
expect(seen).toEqual(['JetBrains Mono']);
|
|
176
179
|
});
|
|
177
180
|
});
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
describe('custom palette side effects', () => {
|
|
184
|
+
const custom: ThemePalette = {
|
|
185
|
+
id: 'custom-side-effect-test',
|
|
186
|
+
name: 'Side effect test',
|
|
187
|
+
family: 'custom',
|
|
188
|
+
variant: 'dark',
|
|
189
|
+
canvas: '#101418',
|
|
190
|
+
paper: '#14181e',
|
|
191
|
+
ink: '#e6e8eb',
|
|
192
|
+
error: '#ff6b6b',
|
|
193
|
+
success: '#4ade80',
|
|
194
|
+
info: '#60a5fa',
|
|
195
|
+
warning: '#fbbf24',
|
|
196
|
+
meta: '#a78bfa',
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
test('registers a saved palette before the theme is written, and injects its block', () => {
|
|
200
|
+
installDom();
|
|
201
|
+
applySettingsSideEffects(
|
|
202
|
+
state({ theme: 'paper', customThemes: [] }),
|
|
203
|
+
state({ theme: custom.id as SettingsState['theme'], customThemes: [custom] }),
|
|
204
|
+
);
|
|
205
|
+
expect(globalThis.document.documentElement.dataset.theme).toBe(custom.id);
|
|
206
|
+
const style = globalThis.document.getElementById(CUSTOM_THEME_STYLE_ELEMENT_ID);
|
|
207
|
+
expect(style?.textContent).toContain('--theme-canvas: #101418');
|
|
208
|
+
expect(style?.textContent).toContain(`html[data-theme="${custom.id}"]`);
|
|
209
|
+
// Reset the module table so a later test does not resolve this palette.
|
|
210
|
+
registerCustomThemes([]);
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
test('switching to a built-in removes the custom block', () => {
|
|
214
|
+
installDom();
|
|
215
|
+
applySettingsSideEffects(
|
|
216
|
+
state({ theme: custom.id as SettingsState['theme'], customThemes: [custom] }),
|
|
217
|
+
state({ theme: 'paper', customThemes: [custom] }),
|
|
218
|
+
);
|
|
219
|
+
expect(globalThis.document.documentElement.dataset.theme).toBe('paper');
|
|
220
|
+
expect(globalThis.document.getElementById(CUSTOM_THEME_STYLE_ELEMENT_ID)).toBeNull();
|
|
221
|
+
registerCustomThemes([]);
|
|
222
|
+
});
|
|
223
|
+
});
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
import type { SettingsState } from '@/shared/types';
|
|
31
31
|
import { applyDocumentTheme } from '@/client/hooks/ui/theme';
|
|
32
|
+
import { registerCustomThemes } from '@/shared/lib/theme/catalog';
|
|
33
|
+
import { sanitizeCustomThemes } from '@/shared/lib/theme/custom';
|
|
32
34
|
import { applyChatWidthMode } from '@/client/hooks/chat/timeline/width-mode';
|
|
33
35
|
import { applyToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
|
|
34
36
|
import { applyShowChangedFiles } from '@/client/hooks/chat/timeline/changed-files-setting';
|
|
@@ -53,6 +55,12 @@ import { applyDictationConfig } from '@/client/hooks/chat/composer/dictation-set
|
|
|
53
55
|
* unrelated toggle free.
|
|
54
56
|
*/
|
|
55
57
|
export function applySettingsSideEffects(previous: SettingsState, next: SettingsState): void {
|
|
58
|
+
// The table the resolver reads moves before the theme is applied: saving a
|
|
59
|
+
// custom palette and selecting it in one update must resolve the new colours,
|
|
60
|
+
// not the previous version (or the default).
|
|
61
|
+
if (next.customThemes !== previous.customThemes) {
|
|
62
|
+
registerCustomThemes(sanitizeCustomThemes(next.customThemes));
|
|
63
|
+
}
|
|
56
64
|
if (typeof document !== 'undefined' && next.theme) {
|
|
57
65
|
applyDocumentTheme(next.theme);
|
|
58
66
|
}
|
|
@@ -47,7 +47,7 @@ export const BehaviorSettings: FunctionComponent = () => {
|
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
{active.error && (
|
|
50
|
-
<div className="mx-6 md:mx-8 mt-3 px-3 py-2 text-xs font-mono text-error bg-error/5 border border-error/30 rounded-lg">
|
|
50
|
+
<div className="mx-6 md:mx-8 mt-3 px-3 py-2 text-xs font-mono text-error-text bg-error/5 border border-error/30 rounded-lg">
|
|
51
51
|
Failed to load {active.filePath ?? activeTab.label}: {active.error}
|
|
52
52
|
</div>
|
|
53
53
|
)}
|
|
@@ -184,7 +184,7 @@ export function OmpSettings(_props: OmpSettingsProps) {
|
|
|
184
184
|
/>
|
|
185
185
|
|
|
186
186
|
{loadError && (
|
|
187
|
-
<div className="flex items-start gap-2 rounded-lg border border-error/30 bg-error/5 px-3 py-2 text-[11px] text-error">
|
|
187
|
+
<div className="flex items-start gap-2 rounded-lg border border-error/30 bg-error/5 px-3 py-2 text-[11px] text-error-text">
|
|
188
188
|
<AlertCircle size={13} className="mt-px flex-shrink-0" />
|
|
189
189
|
<span className="flex-1">
|
|
190
190
|
omp’s config could not be read: {loadError}. The rows below cannot show what config.yml holds until this
|
|
@@ -201,14 +201,14 @@ export function OmpSettings(_props: OmpSettingsProps) {
|
|
|
201
201
|
)}
|
|
202
202
|
|
|
203
203
|
{problem && (
|
|
204
|
-
<div className="flex items-start gap-2 rounded-lg border border-error/30 bg-error/5 px-3 py-2 text-[11px] text-error">
|
|
204
|
+
<div className="flex items-start gap-2 rounded-lg border border-error/30 bg-error/5 px-3 py-2 text-[11px] text-error-text">
|
|
205
205
|
<AlertCircle size={13} className="mt-px flex-shrink-0" />
|
|
206
206
|
<span className="flex-1 break-words">{problem.message}</span>
|
|
207
207
|
<button
|
|
208
208
|
type="button"
|
|
209
209
|
onClick={() => setProblem(null)}
|
|
210
210
|
aria-label="Dismiss error"
|
|
211
|
-
className="text-error
|
|
211
|
+
className="text-error-text hover:text-error-text cursor-pointer"
|
|
212
212
|
>
|
|
213
213
|
<X size={12} />
|
|
214
214
|
</button>
|
|
@@ -28,8 +28,8 @@ export function UsageSettings() {
|
|
|
28
28
|
if (error && !report) {
|
|
29
29
|
return (
|
|
30
30
|
<div className="flex h-full w-full flex-col items-center justify-center gap-2 p-8 text-center text-xs">
|
|
31
|
-
<AlertCircle size={16} className="text-error" />
|
|
32
|
-
<p className="text-error text-xs">{error}</p>
|
|
31
|
+
<AlertCircle size={16} className="text-error-text" />
|
|
32
|
+
<p className="text-error-text text-xs">{error}</p>
|
|
33
33
|
<button
|
|
34
34
|
type="button"
|
|
35
35
|
onClick={() => reload()}
|
|
@@ -90,7 +90,7 @@ export function UsageSettings() {
|
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
92
|
<div className="flex-1 overflow-y-auto scrollbar-overlay-container p-3.5 space-y-4">
|
|
93
|
-
{error && <p className="text-error text-xs">{error}</p>}
|
|
93
|
+
{error && <p className="text-error-text text-xs">{error}</p>}
|
|
94
94
|
|
|
95
95
|
{selected ? (
|
|
96
96
|
<ProviderDetail summary={selected.summary} />
|
|
@@ -256,10 +256,10 @@ export const AgentDetailPane: FunctionComponent<AgentDetailPaneProps> = ({
|
|
|
256
256
|
</div>
|
|
257
257
|
|
|
258
258
|
{feedback.error && (
|
|
259
|
-
<div className="flex items-start gap-1.5 rounded-lg border border-error/30 bg-error/5 px-3 py-2 text-[11px] text-error">
|
|
259
|
+
<div className="flex items-start gap-1.5 rounded-lg border border-error/30 bg-error/5 px-3 py-2 text-[11px] text-error-text">
|
|
260
260
|
<AlertCircle className="mt-px h-3.5 w-3.5 flex-shrink-0" />
|
|
261
261
|
<span className="flex-1 break-words">{feedback.error}</span>
|
|
262
|
-
<button type="button" onClick={feedback.dismissError} className="cursor-pointer text-error
|
|
262
|
+
<button type="button" onClick={feedback.dismissError} className="cursor-pointer text-error-text hover:text-error-text" aria-label="Dismiss error">
|
|
263
263
|
×
|
|
264
264
|
</button>
|
|
265
265
|
</div>
|
|
@@ -275,7 +275,7 @@ export const AgentDetailPane: FunctionComponent<AgentDetailPaneProps> = ({
|
|
|
275
275
|
type="button"
|
|
276
276
|
onClick={handleDelete}
|
|
277
277
|
disabled={feedback.saving}
|
|
278
|
-
className="rounded-lg border border-error/40 px-2.5 py-1 text-xs font-medium text-error transition-colors hover:bg-error/10 cursor-pointer disabled:opacity-50"
|
|
278
|
+
className="rounded-lg border border-error/40 px-2.5 py-1 text-xs font-medium text-error-text transition-colors hover:bg-error/10 cursor-pointer disabled:opacity-50"
|
|
279
279
|
>
|
|
280
280
|
Delete
|
|
281
281
|
</button>
|
|
@@ -291,7 +291,7 @@ export const AgentDetailPane: FunctionComponent<AgentDetailPaneProps> = ({
|
|
|
291
291
|
<button
|
|
292
292
|
type="button"
|
|
293
293
|
onClick={() => setConfirmDelete(true)}
|
|
294
|
-
className="flex items-center gap-1.5 rounded-lg border border-ink/20 px-3.5 py-2 text-xs font-medium text-ink/70 transition-colors hover:border-error hover:text-error cursor-pointer"
|
|
294
|
+
className="flex items-center gap-1.5 rounded-lg border border-ink/20 px-3.5 py-2 text-xs font-medium text-ink/70 transition-colors hover:border-error hover:text-error-text cursor-pointer"
|
|
295
295
|
>
|
|
296
296
|
<Trash2 className="h-3.5 w-3.5" />
|
|
297
297
|
Delete agent
|
|
@@ -307,7 +307,7 @@ export const AgentDetailPane: FunctionComponent<AgentDetailPaneProps> = ({
|
|
|
307
307
|
</span>
|
|
308
308
|
)}
|
|
309
309
|
{validationError && !feedback.saved && (
|
|
310
|
-
<span className="max-w-[16rem] text-right text-[11px] leading-snug text-error">{validationError}</span>
|
|
310
|
+
<span className="max-w-[16rem] text-right text-[11px] leading-snug text-error-text">{validationError}</span>
|
|
311
311
|
)}
|
|
312
312
|
{!readOnly && (
|
|
313
313
|
<button
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The form for one user-defined palette.
|
|
8
|
+
*
|
|
9
|
+
* Validation lives in `shared/lib/theme/custom.ts` (the same function the
|
|
10
|
+
* settings route uses), so the editor cannot save a palette the server would
|
|
11
|
+
* refuse. The form is inline rather than a dialog: the palette pane is already
|
|
12
|
+
* a scrolling detail view, and a modal over the settings sheet would be a
|
|
13
|
+
* second focus trap inside the first.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { useState } from 'preact/hooks';
|
|
17
|
+
import type { ThemePalette, ThemeVariant } from '@kabmo-labs/kabmo-app-contracts/theme';
|
|
18
|
+
import { ThemePreview } from '@/client/components/settings/categories/appearance-settings/ThemePreview';
|
|
19
|
+
import {
|
|
20
|
+
CUSTOM_THEME_NAME_MAX,
|
|
21
|
+
CUSTOM_THEME_SLOTS,
|
|
22
|
+
CUSTOM_THEME_SLOT_LABELS,
|
|
23
|
+
normalizeHexColor,
|
|
24
|
+
validateCustomThemeDraft,
|
|
25
|
+
type CustomThemeDraft,
|
|
26
|
+
type CustomThemeIssue,
|
|
27
|
+
type CustomThemeSlot,
|
|
28
|
+
} from '@/shared/lib/theme/custom';
|
|
29
|
+
|
|
30
|
+
interface CustomThemeEditorProps {
|
|
31
|
+
id?: string;
|
|
32
|
+
draft: CustomThemeDraft;
|
|
33
|
+
onSave: (palette: ThemePalette) => void;
|
|
34
|
+
onCancel: () => void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const VARIANTS: ReadonlyArray<{ id: ThemeVariant; label: string }> = [
|
|
38
|
+
{ id: 'light', label: 'Light' },
|
|
39
|
+
{ id: 'dark', label: 'Dark' },
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
function ColorField({
|
|
43
|
+
slot,
|
|
44
|
+
value,
|
|
45
|
+
onChange,
|
|
46
|
+
}: {
|
|
47
|
+
slot: CustomThemeSlot;
|
|
48
|
+
value: string;
|
|
49
|
+
onChange: (slot: CustomThemeSlot, value: string) => void;
|
|
50
|
+
}) {
|
|
51
|
+
const label = CUSTOM_THEME_SLOT_LABELS[slot];
|
|
52
|
+
const pickerValue = normalizeHexColor(value) ?? '#000000';
|
|
53
|
+
return (
|
|
54
|
+
<div className="flex items-center gap-2 rounded border border-ink/15 bg-paper px-2 py-1.5">
|
|
55
|
+
<input
|
|
56
|
+
type="color"
|
|
57
|
+
aria-label={`${label} colour`}
|
|
58
|
+
value={pickerValue}
|
|
59
|
+
onInput={(event) => onChange(slot, event.currentTarget.value)}
|
|
60
|
+
className="h-6 w-6 shrink-0 cursor-pointer rounded border border-ink/20 bg-transparent p-0"
|
|
61
|
+
/>
|
|
62
|
+
<span className="min-w-[52px] shrink-0 text-[11px] font-medium text-ink/70">{label}</span>
|
|
63
|
+
<input
|
|
64
|
+
type="text"
|
|
65
|
+
aria-label={`${label} hex`}
|
|
66
|
+
value={value}
|
|
67
|
+
spellcheck={false}
|
|
68
|
+
onInput={(event) => onChange(slot, event.currentTarget.value)}
|
|
69
|
+
className="min-w-0 flex-1 rounded border border-ink/15 bg-canvas px-1.5 py-0.5 font-mono text-[11px] text-ink"
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CustomThemeEditor({ id, draft: initialDraft, onSave, onCancel }: CustomThemeEditorProps) {
|
|
76
|
+
const [draft, setDraft] = useState<CustomThemeDraft>(initialDraft);
|
|
77
|
+
const result = validateCustomThemeDraft(draft, id);
|
|
78
|
+
const issues: CustomThemeIssue[] = result.ok ? [] : result.issues;
|
|
79
|
+
// An invalid field keeps the colour the editor opened with, so the preview
|
|
80
|
+
// stays a layout rather than flashing black while the user is mid-typing.
|
|
81
|
+
const previewColors = Object.fromEntries(
|
|
82
|
+
CUSTOM_THEME_SLOTS.map((slot) => [
|
|
83
|
+
slot,
|
|
84
|
+
normalizeHexColor(draft[slot]) ?? normalizeHexColor(initialDraft[slot]) ?? '#808080',
|
|
85
|
+
]),
|
|
86
|
+
) as Record<CustomThemeSlot, string>;
|
|
87
|
+
const previewPalette: ThemePalette = {
|
|
88
|
+
id: 'custom-preview',
|
|
89
|
+
name: draft.name.trim() || 'Preview',
|
|
90
|
+
family: 'custom',
|
|
91
|
+
variant: draft.variant,
|
|
92
|
+
...previewColors,
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const set = (key: keyof CustomThemeDraft, value: string) => {
|
|
96
|
+
setDraft((previous) => ({ ...previous, [key]: value }));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
return (
|
|
100
|
+
<div className="@container space-y-2.5 rounded-lg border border-ink/20 bg-paper p-3">
|
|
101
|
+
<div className="flex flex-wrap items-center justify-between gap-2">
|
|
102
|
+
<h5 className="text-xs font-semibold text-ink">{id ? 'Edit custom theme' : 'New custom theme'}</h5>
|
|
103
|
+
<div className="flex items-center gap-1">
|
|
104
|
+
{VARIANTS.map((variant) => (
|
|
105
|
+
<button
|
|
106
|
+
key={variant.id}
|
|
107
|
+
type="button"
|
|
108
|
+
aria-pressed={draft.variant === variant.id}
|
|
109
|
+
onClick={() => set('variant', variant.id)}
|
|
110
|
+
className={`rounded-full border px-2.5 py-1 text-[11px] font-medium cursor-pointer ${
|
|
111
|
+
draft.variant === variant.id
|
|
112
|
+
? 'border-ink bg-ink text-paper'
|
|
113
|
+
: 'border-ink/20 text-ink/70 hover:border-ink/40 hover:text-ink'
|
|
114
|
+
}`}
|
|
115
|
+
>
|
|
116
|
+
{variant.label}
|
|
117
|
+
</button>
|
|
118
|
+
))}
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<label className="block">
|
|
123
|
+
<span className="text-[11px] font-medium text-ink/70">Name</span>
|
|
124
|
+
<input
|
|
125
|
+
type="text"
|
|
126
|
+
value={draft.name}
|
|
127
|
+
maxLength={CUSTOM_THEME_NAME_MAX}
|
|
128
|
+
onInput={(event) => set('name', event.currentTarget.value)}
|
|
129
|
+
className="mt-0.5 w-full rounded border border-ink/20 bg-canvas px-2 py-1 text-xs text-ink"
|
|
130
|
+
/>
|
|
131
|
+
</label>
|
|
132
|
+
|
|
133
|
+
<ThemePreview palette={previewPalette} />
|
|
134
|
+
|
|
135
|
+
<div className="grid grid-cols-1 gap-1.5 @[460px]:grid-cols-2">
|
|
136
|
+
{CUSTOM_THEME_SLOTS.map((slot) => (
|
|
137
|
+
<ColorField
|
|
138
|
+
key={slot}
|
|
139
|
+
slot={slot}
|
|
140
|
+
value={draft[slot]}
|
|
141
|
+
onChange={(changed, value) => set(changed, value)}
|
|
142
|
+
/>
|
|
143
|
+
))}
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
{issues.length > 0 && (
|
|
147
|
+
<div role="alert" className="space-y-0.5 rounded border border-error/30 bg-error/5 px-2 py-1.5">
|
|
148
|
+
{issues.map((issue) => (
|
|
149
|
+
<p key={`${issue.field}:${issue.message}`} className="text-[11px] text-error-text">
|
|
150
|
+
{issue.message}
|
|
151
|
+
</p>
|
|
152
|
+
))}
|
|
153
|
+
</div>
|
|
154
|
+
)}
|
|
155
|
+
|
|
156
|
+
<div className="flex items-center justify-end gap-2">
|
|
157
|
+
<button
|
|
158
|
+
type="button"
|
|
159
|
+
onClick={onCancel}
|
|
160
|
+
className="rounded border border-ink/20 px-2.5 py-1 text-[11px] font-medium text-ink/70 hover:border-ink/40 hover:text-ink cursor-pointer"
|
|
161
|
+
>
|
|
162
|
+
Cancel
|
|
163
|
+
</button>
|
|
164
|
+
<button
|
|
165
|
+
type="button"
|
|
166
|
+
disabled={!result.ok}
|
|
167
|
+
onClick={() => {
|
|
168
|
+
if (result.ok) onSave(result.palette);
|
|
169
|
+
}}
|
|
170
|
+
className="rounded bg-ink px-2.5 py-1 text-[11px] font-semibold text-paper hover:bg-ink/90 disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer"
|
|
171
|
+
>
|
|
172
|
+
{id ? 'Save theme' : 'Create theme'}
|
|
173
|
+
</button>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
);
|
|
177
|
+
}
|