@kabmo-labs/kabmo 0.38.2 → 0.39.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 +565 -537
- package/dist/client/static/js/{CsvGrid-4dpsfdrf.js → CsvGrid-kfcp4sd6.js} +2 -2
- package/dist/client/static/js/{DocxView-crdgc0jd.js → DocxView-atff5w38.js} +4 -4
- package/dist/client/static/js/DrawioView-yfnq4c99.js +5 -0
- package/dist/client/static/js/ImageView-nreh25s0.js +1 -0
- package/dist/client/static/js/LayoutWrapper-0x1q1q5z.js +2 -0
- package/dist/client/static/js/Modal-2xqd3sss.js +38 -0
- package/dist/client/static/js/{PdfView-72c123a9.js → PdfView-mk8paxt1.js} +1 -1
- package/dist/client/static/js/SessionsView-ner25qxn.js +1 -0
- package/dist/client/static/js/{SheetView-8xh69wgk.js → SheetView-s6n3fawm.js} +31 -31
- package/dist/client/static/js/{SvgPreview-z3fm87h6.js → SvgPreview-8bxvz3ez.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-25r2p3vh.js → abnfDiagram-O67JEVCF-tvvz9fha.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-y0zb4vqa.js +1 -0
- package/dist/client/static/js/architectureDiagram-NJMV4G6O-bybv3wg4.js +36 -0
- package/dist/client/static/js/{astro-p3f5p9p2.js → astro-4ybhkc9b.js} +1 -1
- package/dist/client/static/js/bash-k6p3y3pr.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-vzamgz9s.js → blockDiagram-BEXU5L5S-h3fs79x6.js} +8 -8
- package/dist/client/static/js/c-ve09y19q.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-jejafgn0.js → c4Diagram-YGBWAQC7-h8p3h54v.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-qfa6mj0q.js → classDiagram-v2-NBCMYWYE-q645r4q6.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-9vzdgmk1.js → cose-bilkent-JH36ORCC-p4mm1zcv.js} +1 -1
- package/dist/client/static/js/cpp-vhqp7bcy.js +1 -0
- package/dist/client/static/js/css-77mvf0ca.js +1 -0
- package/dist/client/static/js/css-tys2rrny.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-nt1ed192.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-a3k3w1t5.js → cynefinDiagram-VND7K2PF-v2hbc3aq.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-gf04dvxj.js → dagre-6A5THRUB-4edpda33.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-a9e0a684.js → diagram-22UHCM2B-b6gp813w.js} +19 -19
- package/dist/client/static/js/{diagram-3UASUU5V-fb73gfjd.js → diagram-3UASUU5V-s1f3b0ng.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-yb9n3t30.js → diagram-ATOU4E4O-ga06kjp5.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-adhbhw28.js → diagram-CDSNMT55-wdbmv4td.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-v4yxyb8r.js → diagram-MLGK6HIB-fkntefcq.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-94ttsqy2.js → diagram-MPIPVDR6-k2zh7edp.js} +3 -3
- package/dist/client/static/js/{dockerfile-mrranatf.js → dockerfile-srcym0bs.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-jj4f3pyq.js → ebnfDiagram-ZINNZB2B-4vc4vz9c.js} +1 -1
- package/dist/client/static/js/{elixir-jwphgp8j.js → elixir-v9bbxsgg.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-mtnkhyte.js → elk-276RUBZZ-g2ppf1by.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-18qdkhm5.js → erDiagram-OPXOYQCR-rmnwkb5q.js} +9 -9
- package/dist/client/static/js/{erlang-6m6tpt72.js → erlang-55r0skxa.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-v4edaxx7.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-jvrvhb9d.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-vz28h061.js → ganttDiagram-FUAMR5RP-ptfvae64.js} +5 -5
- package/dist/client/static/js/gitGraph-4MIJSDKK-adzhec96.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-cgq3r4rz.js → gitGraphDiagram-X574FWY7-ne9n3cyf.js} +14 -14
- package/dist/client/static/js/graphql-g97hycb3.js +1 -0
- package/dist/client/static/js/html-2syect3n.js +1 -0
- package/dist/client/static/js/{index-3az1w5f8.js → index-0j518hqm.js} +2 -2
- package/dist/client/static/js/index-1jeyjqkh.js +2 -0
- package/dist/client/static/js/{index-t5t71dhp.js → index-1sgad84m.js} +2 -2
- package/dist/client/static/js/{index-z72wf7q4.js → index-270y5r9k.js} +2 -2
- package/dist/client/static/js/{index-sa9cp6km.js → index-2rs03vfy.js} +2 -2
- package/dist/client/static/js/index-3fw3sd10.js +474 -0
- package/dist/client/static/js/{index-xya34x4v.js → index-442mbhwb.js} +2 -2
- package/dist/client/static/js/{index-95t1hwr8.js → index-4pehdq5h.js} +2 -2
- package/dist/client/static/js/{index-dt7e1328.js → index-4wtr5wjp.js} +2 -2
- package/dist/client/static/js/{index-gr6jng0x.js → index-4wvtar0v.js} +2 -2
- package/dist/client/static/js/{index-zdbvm01f.js → index-56w8m083.js} +2 -2
- package/dist/client/static/js/index-5a4w58r2.js +1 -0
- package/dist/client/static/js/{index-4hsxaa87.js → index-5kvvb0zm.js} +2 -2
- package/dist/client/static/js/{index-5v9v41ap.js → index-61qjr1k0.js} +98 -98
- package/dist/client/static/js/{index-6k3e5dph.js → index-72289dgx.js} +2 -2
- package/dist/client/static/js/{index-gbdvr4rt.js → index-7h5n5rz4.js} +2 -2
- package/dist/client/static/js/{index-y5y7smet.js → index-7z63xr1s.js} +1 -1
- package/dist/client/static/js/index-878d61js.js +1 -0
- package/dist/client/static/js/{index-fghst0kd.js → index-8egjccbq.js} +34 -34
- package/dist/client/static/js/index-8qgwj6m8.js +1 -0
- package/dist/client/static/js/{index-kf9t3mzv.js → index-8w2tx2k9.js} +2 -2
- package/dist/client/static/js/{index-x07kp3jz.js → index-9d6x1f3t.js} +2 -2
- package/dist/client/static/js/{index-vb6t44dw.js → index-9gepbvdt.js} +2 -2
- package/dist/client/static/js/index-a7qccdq2.js +1 -0
- package/dist/client/static/js/{index-7fdp9c7m.js → index-b08hx4tw.js} +2 -2
- package/dist/client/static/js/{index-nd4p98mc.js → index-c1be3rva.js} +2 -2
- package/dist/client/static/js/{index-3zc1b0dv.js → index-c36pag9y.js} +2 -2
- package/dist/client/static/js/{index-qkscve6n.js → index-cfnxda13.js} +2 -2
- package/dist/client/static/js/index-cst843zs.css +1 -0
- package/dist/client/static/js/{index-6j9h1fa7.js → index-dmd26a1y.js} +1 -1
- package/dist/client/static/js/{index-1y9r4frb.js → index-drjtwfp5.js} +2 -2
- package/dist/client/static/js/index-dt22v9ns.js +2 -0
- package/dist/client/static/js/{index-h7pn9qw6.js → index-enmh3w27.js} +2 -2
- package/dist/client/static/js/{index-ray2czf6.js → index-fjnkzk12.js} +4 -4
- package/dist/client/static/js/index-gvkc9e32.js +1 -0
- package/dist/client/static/js/{index-d146s9g3.js → index-hh05xd1d.js} +2 -2
- package/dist/client/static/js/{index-qxb8k6py.js → index-jkph8wqq.js} +3 -3
- package/dist/client/static/js/index-k3c3n69j.js +12 -0
- package/dist/client/static/js/{index-dr7nhha9.js → index-k5a6r25s.js} +2 -2
- package/dist/client/static/js/{index-we2ezmn7.js → index-k61tdd4a.js} +2 -2
- package/dist/client/static/js/{index-8acv5b77.js → index-k7sdsmgv.js} +2 -2
- package/dist/client/static/js/{index-s16h2nmv.js → index-m3r0j562.js} +6 -6
- package/dist/client/static/js/{index-njqpkcvw.js → index-mdxnhndy.js} +2 -2
- package/dist/client/static/js/index-me7m3516.js +9 -0
- package/dist/client/static/js/index-mmsszqvn.js +1 -0
- package/dist/client/static/js/index-ntx3bbmb.js +1 -0
- package/dist/client/static/js/index-p89z1qmj.js +1 -0
- package/dist/client/static/js/{index-fqhpxzyb.js → index-pr7gk5eq.js} +13 -13
- package/dist/client/static/js/index-pzqsp5jw.js +4 -0
- package/dist/client/static/js/{index-qn4pkjfh.js → index-q0bph5x0.js} +2 -2
- package/dist/client/static/js/{index-gbfg0anm.js → index-qsrw5c67.js} +2 -2
- package/dist/client/static/js/{index-ashpbfqv.js → index-rj81xrvw.js} +2 -2
- package/dist/client/static/js/{index-b9b2nwdd.js → index-t6gznaxm.js} +2 -2
- package/dist/client/static/js/{index-12p63902.js → index-v8vjh5jj.js} +2 -2
- package/dist/client/static/js/{index-naz3px72.js → index-xdqsqhnn.js} +9 -9
- package/dist/client/static/js/{index-9wd9y6m0.js → index-xrp2zv8z.js} +2 -2
- package/dist/client/static/js/{index-ajtd1q1h.js → index-y2prm0xm.js} +2 -2
- package/dist/client/static/js/{index-y3hdv561.js → index-y3qxrs90.js} +2 -2
- package/dist/client/static/js/index-ymp2wqtc.js +3 -0
- package/dist/client/static/js/index-ywpdhntc.js +1 -0
- package/dist/client/static/js/info-A6RAGUB7-2ye26vqn.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-jjwckbr9.js → infoDiagram-VRGFBTTK-ctfwcm3n.js} +2 -2
- package/dist/client/static/js/ini-7ffv28px.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-qzk5gejf.js → ishikawaDiagram-OU5B5YK6-b0b0pn4y.js} +3 -3
- package/dist/client/static/js/java-4x5yky4a.js +1 -0
- package/dist/client/static/js/javascript-4kw2j9t3.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-maccpg3q.js → journeyDiagram-ZHPQQLJL-kdq12drs.js} +5 -5
- package/dist/client/static/js/json-h3kwpty2.js +1 -0
- package/dist/client/static/js/jsx-jk20f0dr.js +1 -0
- package/dist/client/static/js/{julia-237yk557.js → julia-jhe2vd4f.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-xv2azgws.js → kanban-definition-PNTS6WVX-65x6xn2q.js} +6 -6
- package/dist/client/static/js/lua-k02dpxq8.js +1 -0
- package/dist/client/static/js/markdown-fhhg7ms6.js +1 -0
- package/dist/client/static/js/{mermaid.core-e4ys760s.js → mermaid.core-0fq63jpa.js} +8 -8
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-b779wz81.js → mindmap-definition-NLK3R4M7-p86myex3.js} +6 -6
- package/dist/client/static/js/one-dark-pro-c4q810z4.js +1 -0
- package/dist/client/static/js/one-light-czk9dzya.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-b0j3te0q.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-8sgdmhnw.js → pegDiagram-GJSIUBJH-p2hkk9xb.js} +1 -1
- package/dist/client/static/js/{perl-dvz4y1tb.js → perl-qhj6tk7k.js} +1 -1
- package/dist/client/static/js/{php-n6y7dzhm.js → php-arycc4w7.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-28qq62fn.js +1 -0
- package/dist/client/static/js/pieDiagram-5QR66LMP-bza19wkx.js +39 -0
- package/dist/client/static/js/properties-qhvcxc13.js +1 -0
- package/dist/client/static/js/python-3qsrs510.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-47dpygk5.js → quadrantDiagram-O4NWA36T-bxqec9w1.js} +6 -6
- package/dist/client/static/js/r-z2ng7mza.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-fyrcbpyd.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-9s62qncd.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-f7yjmhrk.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-sfrw8gkz.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-4mm4cern.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-wv0bvwve.js → railroadDiagram-XR7U4H2S-1g3hx3sm.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-w3r8r837.js → requirementDiagram-PLB6GJNP-qbjjm48v.js} +13 -13
- package/dist/client/static/js/{ruby-7zye3g0e.js → ruby-fb6zzevm.js} +1 -1
- package/dist/client/static/js/{rust-42c4h7e4.js → rust-jatm47v6.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-t55rjgad.js → sankeyDiagram-IPEJSGJF-t2ythbh7.js} +6 -6
- package/dist/client/static/js/{sass-m0h9yzfb.js → sass-fzs6a0kr.js} +1 -1
- package/dist/client/static/js/{scss-2pwwfkvn.js → scss-gdb52d0c.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-yfwjwy37.js → sequenceDiagram-PO4LG4MO-mqsfek2j.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-nq6hy7ce.js → sizeCapture-INFHLROL-xj67pgds.js} +1 -1
- package/dist/client/static/js/sql-ypk53ntb.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-4xy0atqh.js → stateDiagram-v2-GCMORJYK-gj4fezak.js} +3 -3
- package/dist/client/static/js/{svelte-x8f8c8hq.js → svelte-8s3k6qjd.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-np47cy1q.js → swimlanes-2SLR337P-pgtdd1pk.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-zk37paj9.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-rb0gnm35.js → timeline-definition-EJHVYXUP-q013vdd1.js} +7 -7
- package/dist/client/static/js/treeView-Q6P3EWNA-a5vgg4gz.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-ctqhajgg.js +1 -0
- package/dist/client/static/js/tsx-zy7hb2hw.js +1 -0
- package/dist/client/static/js/typescript-2hr53c8j.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-gatkznan.js → usecaseDiagram-POWQR4AR-7swsbqnq.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-r3f5xjjq.js → vennDiagram-UO4OBE2U-9dygxdxf.js} +5 -5
- package/dist/client/static/js/{vue-myjjd0gd.js → vue-k3f3chre.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-ns7e0fqf.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-tpass65t.js → wardleyDiagram-VNRHLVJA-aaaa9kj3.js} +4 -4
- package/dist/client/static/js/xml-p4742r9b.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-8xkh67cw.js → xychartDiagram-PMCCYNJV-tamf39gx.js} +6 -6
- package/dist/client/static/js/yaml-qbckg671.js +1 -0
- package/marketplace/plugins/command-runner/README.md +5 -0
- package/marketplace/plugins/command-runner/package.json +2 -2
- package/marketplace/plugins/command-runner/src/panel/Output.test.tsx +177 -0
- package/marketplace/plugins/command-runner/src/panel/Output.tsx +53 -2
- package/package.json +3 -1
- package/public/tray-monochrome-dark.png +0 -0
- package/public/tray-monochrome-light.png +0 -0
- package/src/client/App.tsx +4 -0
- package/src/client/components/common/NotificationPermissionDialog.test.tsx +166 -0
- package/src/client/components/common/NotificationPermissionDialog.tsx +167 -0
- package/src/client/components/common/batch-selection/BatchDeleteModal.test.tsx +97 -0
- package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +24 -1
- package/src/client/components/common/context-usage-button/SessionStats.tsx +4 -8
- package/src/client/components/common/context-usage-button/TokenTotals.tsx +51 -0
- package/src/client/components/common/context-usage-button/index.test.tsx +26 -3
- package/src/client/components/common/context-usage-button/index.tsx +2 -0
- package/src/client/components/common/diagram-viewer/index.tsx +11 -235
- package/src/client/components/common/fullscreen-viewer/fullscreen-viewer.test.tsx +108 -0
- package/src/client/components/common/fullscreen-viewer/index.tsx +326 -0
- package/src/client/components/common/header-button/index.test.tsx +97 -0
- package/src/client/components/common/header-button/index.tsx +67 -0
- package/src/client/components/common/header-controls/index.test.tsx +17 -1
- package/src/client/components/common/header-controls/index.tsx +18 -8
- package/src/client/components/common/image-viewer/fullscreen.tsx +64 -0
- package/src/client/components/common/progress-bar/index.tsx +53 -0
- package/src/client/components/common/session-actions-menu/MenuItem.tsx +36 -0
- package/src/client/components/common/session-actions-menu/index.test.tsx +79 -0
- package/src/client/components/common/session-actions-menu/index.tsx +62 -69
- package/src/client/components/common/session-delete-modal/index.tsx +5 -0
- package/src/client/components/common/session-row/TimeCell.tsx +22 -6
- package/src/client/components/common/session-row/TrailingSlot.tsx +3 -3
- package/src/client/components/common/session-row/index.tsx +6 -3
- package/src/client/components/common/session-row/row-state.ts +18 -0
- package/src/client/components/common/session-row/session-row.test.tsx +24 -0
- package/src/client/components/common/session-row/time-cell.test.tsx +110 -0
- package/src/client/components/layout/ActivityBar.test.ts +10 -116
- package/src/client/components/layout/ActivityBar.tsx +138 -134
- package/src/client/components/layout/ActivityBarDrag.test.ts +334 -0
- package/src/client/components/layout/LeftActivityBar.test.ts +30 -5
- package/src/client/components/layout/LeftDock.tsx +19 -1
- package/src/client/components/layout/PanelButton.tsx +93 -0
- package/src/client/components/layout/{PanelVisibilityMenu.tsx → VisibilityMenu.tsx} +37 -18
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +30 -1
- package/src/client/components/layout/desktop-layout/PanelSuspense.tsx +30 -0
- package/src/client/components/layout/desktop-layout/ResizeHandle.tsx +24 -3
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +62 -6
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +28 -19
- package/src/client/components/layout/desktop-layout/index.tsx +7 -5
- package/src/client/components/layout/desktop-layout/resizer/index.tsx +17 -4
- package/src/client/components/layout/session-sidebar/CategoryItem.tsx +4 -2
- package/src/client/components/layout/session-sidebar/Footer.test.tsx +76 -0
- package/src/client/components/layout/session-sidebar/Footer.tsx +13 -9
- package/src/client/components/layout/session-sidebar/SessionItem.batch.test.ts +3 -0
- package/src/client/components/layout/session-sidebar/SessionItem.test.ts +21 -0
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +7 -4
- package/src/client/components/layout/session-sidebar/SessionList.tsx +1 -1
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +1 -0
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +3 -1
- package/src/client/components/layout/session-sidebar/modern/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/search-results.test.tsx +127 -0
- package/src/client/components/mobile/mobile-session-sidebar/Dialogs.tsx +1 -0
- package/src/client/components/mobile/mobile-session-sidebar/SessionRow.test.ts +31 -0
- package/src/client/components/mobile/mobile-session-sidebar/SessionRow.tsx +8 -4
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.test.ts +41 -0
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +4 -1
- package/src/client/components/mobile/mobile-session-sidebar/use-drawer.ts +2 -0
- package/src/client/components/mobile/panel-chips.test.tsx +18 -11
- package/src/client/components/settings/categories/AppearanceSettings.tsx +3 -0
- package/src/client/components/settings/categories/HarnessSettings.tsx +3 -1
- package/src/client/components/settings/categories/NotificationSettings.test.tsx +56 -2
- package/src/client/components/settings/categories/NotificationSettings.tsx +46 -6
- package/src/client/components/settings/categories/appearance-settings/TrayIconSection.test.tsx +81 -0
- package/src/client/components/settings/categories/appearance-settings/TrayIconSection.tsx +118 -0
- package/src/client/components/settings/categories/harness-settings/HarnessCard.import.test.tsx +124 -0
- package/src/client/components/settings/categories/harness-settings/HarnessCard.tsx +21 -2
- package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +143 -0
- package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +50 -0
- package/src/client/components/settings/categories/panel-plugins/GitFreshness.test.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.test.tsx +107 -0
- package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.tsx +49 -24
- package/src/client/components/settings/categories/panel-plugins/Placement.test.tsx +3 -0
- package/src/client/components/settings/categories/panel-plugins/PluginCard.test.tsx +4 -0
- package/src/client/components/settings/categories/panel-plugins/Section.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +6 -10
- package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +45 -38
- package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +20 -18
- package/src/client/components/settings/categories/plugin-settings/PaneHeader.tsx +40 -0
- package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +6 -9
- package/src/client/components/settings/categories/usage-settings/usage-icons.test.tsx +1 -25
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.test.ts +9 -1
- package/src/client/components/workspace/chat-timeline/MessageItem.gutter.test.ts +4 -0
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +22 -2
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +15 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/wait-parts.tsx +6 -11
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.test.tsx +9 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.tsx +9 -18
- package/src/client/components/workspace/context-panel/index.tsx +18 -19
- package/src/client/components/workspace/editor/SplitColumn.tsx +5 -1
- package/src/client/components/workspace/file-explorer/Toolbar.tsx +40 -28
- package/src/client/components/workspace/git-panel/RepoHeader.tsx +27 -25
- package/src/client/components/workspace/git-panel/commit-modal/CommitActions.tsx +28 -77
- package/src/client/components/workspace/git-panel/commit-modal/CommitDiffViewer.tsx +15 -15
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.test.ts +79 -5
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.tsx +66 -45
- package/src/client/components/workspace/git-panel/commit-modal/GraphCanvas.tsx +1 -7
- package/src/client/components/workspace/git-panel/commit-modal/Header.test.tsx +90 -0
- package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +28 -18
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +24 -7
- package/src/client/components/workspace/git-panel/commit-modal.test.ts +16 -0
- package/src/client/components/workspace/panel-header/index.test.tsx +80 -0
- package/src/client/components/workspace/panel-header/index.tsx +46 -0
- package/src/client/components/workspace/plan-panel/index.tsx +24 -22
- package/src/client/components/workspace/plugin-panel/catalog.tsx +21 -13
- package/src/client/components/workspace/search-panel/Body.tsx +42 -37
- package/src/client/components/workspace/terminal-panel/Header.tsx +37 -38
- package/src/client/components/workspace/terminal-panel/fonts.test.ts +40 -0
- package/src/client/components/workspace/terminal-panel/fonts.ts +27 -0
- package/src/client/components/workspace/terminal-panel/mount.ts +2 -5
- package/src/client/components/workspace/todo-panel/index.tsx +28 -26
- package/src/client/components/workspace/usage-panel/index.test.tsx +91 -0
- package/src/client/components/workspace/usage-panel/index.tsx +31 -55
- package/src/client/components/workspace/wiki-panel/index.tsx +47 -46
- package/src/client/data/context-data/index.ts +16 -0
- package/src/client/data/settings/omp-schema.json +201 -151
- package/src/client/hooks/chat/composer/auto-grow.ts +13 -3
- package/src/client/hooks/chat/omp/session-sidebar-controller.folder-open.test.ts +140 -0
- package/src/client/hooks/chat/omp/session-sidebar-controller.test.ts +33 -203
- package/src/client/hooks/chat/omp/session-sidebar-controller.ts +8 -6
- package/src/client/hooks/chat/timeline/jump-landing.ts +27 -9
- package/src/client/hooks/chat/timeline/jump-rail.ts +1 -0
- package/src/client/hooks/chat/timeline/reader-input.ts +39 -0
- package/src/client/hooks/chat/timeline/restore-history.ts +55 -0
- package/src/client/hooks/chat/timeline/row-window.test.ts +36 -3
- package/src/client/hooks/chat/timeline/row-window.ts +12 -3
- package/src/client/hooks/chat/timeline/scroll-geometry.ts +95 -0
- package/src/client/hooks/chat/timeline/scroll-probe.test-util.ts +17 -4
- package/src/client/hooks/chat/timeline/scroll.test.ts +53 -0
- package/src/client/hooks/chat/timeline/scroll.ts +30 -70
- package/src/client/hooks/chat/timeline/session-load.test.ts +25 -0
- package/src/client/hooks/chat/timeline/session-load.ts +8 -1
- package/src/client/hooks/chat/timeline/session-shapes.ts +3 -0
- package/src/client/hooks/models/use-harnesses-controller.ts +8 -1
- package/src/client/hooks/models/use-harnesses.ts +68 -1
- package/src/client/hooks/ui/navbar-controls.test.ts +50 -0
- package/src/client/hooks/ui/navbar-controls.ts +118 -0
- package/src/client/hooks/ui/pointer-hover.test.ts +94 -0
- package/src/client/hooks/ui/pointer-hover.ts +62 -0
- package/src/client/hooks/ui/ui-sounds.test.ts +4 -0
- package/src/client/hooks/workspace/batch-archive.ts +19 -3
- package/src/client/hooks/workspace/batch-delete-run.ts +15 -3
- package/src/client/hooks/workspace/batch-delete.test.ts +112 -0
- package/src/client/hooks/workspace/batch-delete.ts +51 -5
- package/src/client/hooks/workspace/left-dock.ts +14 -0
- package/src/client/hooks/workspace/panel-drop-target.test.tsx +119 -0
- package/src/client/hooks/workspace/panel-drop-target.ts +76 -0
- package/src/client/hooks/workspace/panel-menu-items.ts +57 -0
- package/src/client/hooks/workspace/panel-reorder.ts +5 -2
- package/src/client/lib/browser/download.ts +12 -1
- package/src/client/lib/notifications/active.ts +26 -0
- package/src/client/lib/notifications/native-banner-sound.test.ts +34 -1
- package/src/client/lib/notifications/native-banner-sound.ts +7 -0
- package/src/client/lib/notifications/os.test.ts +53 -0
- package/src/client/lib/notifications/os.ts +129 -5
- package/src/client/lib/session-export.test.ts +72 -0
- package/src/client/lib/session-export.ts +60 -0
- package/src/client/lib/ui/control-plate.test.ts +29 -0
- package/src/client/lib/ui/control-plate.ts +42 -0
- package/src/client/main.tsx +7 -0
- package/src/client/tailwind.css +18 -7
- package/src/server/lib/changes/attach.test.ts +3 -1
- package/src/server/lib/changes/capture-bash.server.ts +15 -1
- package/src/server/lib/changes/capture.server.ts +2 -0
- package/src/server/lib/changes/capture.test.ts +40 -0
- package/src/server/lib/changes/journal-read.server.ts +204 -0
- package/src/server/lib/changes/reader.server.ts +28 -184
- package/src/server/lib/changes/reader.test.ts +40 -0
- package/src/server/lib/changes/scan.server.ts +86 -12
- package/src/server/lib/changes/scan.test.ts +56 -0
- package/src/server/lib/changes/sessions.server.ts +15 -0
- package/src/server/lib/changes/temp-path.test.ts +45 -0
- package/src/server/lib/changes/temp-path.ts +102 -0
- package/src/server/lib/db/schema.ts +9 -0
- package/src/server/lib/harness/acp/client.ts +12 -6
- package/src/server/lib/harness/acp/frames-replay.test.ts +55 -0
- package/src/server/lib/harness/acp/frames.ts +45 -3
- package/src/server/lib/harness/acp/protocol.ts +29 -0
- package/src/server/lib/harness/acp/replay-transcript.test.ts +47 -0
- package/src/server/lib/harness/acp/replay-transcript.ts +55 -0
- package/src/server/lib/harness/acp/replay.ts +78 -0
- package/src/server/lib/harness/acp/session-config.ts +36 -1
- package/src/server/lib/harness/acp/session-handshake.ts +32 -8
- package/src/server/lib/harness/acp/session-observers.test.ts +2 -2
- package/src/server/lib/harness/acp/session-options.ts +9 -0
- package/src/server/lib/harness/acp/session-start.ts +62 -0
- package/src/server/lib/harness/acp/session.test-util.ts +2 -0
- package/src/server/lib/harness/acp/session.ts +33 -37
- package/src/server/lib/harness/acp/v2.test.ts +44 -0
- package/src/server/lib/harness/acp/v2.ts +38 -0
- package/src/server/lib/harness/acp/verbs.test.ts +37 -1
- package/src/server/lib/harness/acp/verbs.ts +52 -6
- package/src/server/lib/harness/auto-import.server.test.ts +92 -0
- package/src/server/lib/harness/auto-import.server.ts +209 -0
- package/src/server/lib/harness/auto-probe.server.ts +9 -3
- package/src/server/lib/harness/codex/transcript.server.test.ts +67 -0
- package/src/server/lib/harness/codex/transcript.server.ts +222 -0
- package/src/server/lib/harness/schema.server.ts +15 -7
- package/src/server/lib/harness/session-delete.server.test.ts +156 -0
- package/src/server/lib/harness/session-delete.server.ts +198 -0
- package/src/server/lib/harness/session-import.server.ts +177 -0
- package/src/server/lib/harness/session-store.server.test.ts +85 -0
- package/src/server/lib/harness/session-store.server.ts +70 -3
- package/src/server/lib/harness/session-transcript.server.test.ts +183 -0
- package/src/server/lib/harness/session-transcript.server.ts +301 -0
- package/src/server/lib/harness/session.ts +4 -2
- package/src/server/lib/harness/spawn.server.ts +9 -0
- package/src/server/lib/lifecycle/after-listen.ts +11 -5
- package/src/server/lib/model-roles/mock.server.test.ts +35 -0
- package/src/server/lib/model-roles/mock.server.ts +1 -1
- package/src/server/lib/omp/rpc/frame-fold-frames.test.ts +15 -4
- package/src/server/lib/omp/session/delete-flow.server.ts +62 -9
- package/src/server/lib/omp/session/delete.server.ts +6 -0
- package/src/server/lib/omp/session/sidebar-data.harness.test.ts +86 -1
- package/src/server/lib/omp/session/sidebar-data.server.ts +41 -70
- package/src/server/lib/omp/session/sidebar-status.server.ts +82 -0
- package/src/server/lib/omp/session/telemetry/compute.ts +18 -0
- package/src/server/lib/omp/session/telemetry.test.ts +21 -0
- package/src/server/lib/realtime/topics/catalog.server.ts +2 -1
- package/src/server/lib/realtime/topics.server.ts +2 -1
- package/src/server/lib/sessions/deleted-sessions.server.test.ts +49 -0
- package/src/server/lib/sessions/deleted-sessions.server.ts +45 -0
- package/src/server/lib/tray/config.ts +19 -4
- package/src/server/lib/tray/host/darwin.js +6 -1
- package/src/server/lib/tray/host/linux.js +2 -1
- package/src/server/lib/tray/host/win32.ps1 +7 -1
- package/src/server/lib/tray/runtime.server.ts +81 -3
- package/src/server/lib/tray/tray.test.ts +20 -0
- package/src/server/routes/agent/command.ts +4 -0
- package/src/server/routes/agent/harness-command.ts +77 -3
- package/src/server/routes/agent/restore.ts +50 -0
- package/src/server/routes/chat/imported.ts +32 -0
- package/src/server/routes/chat/session.ts +33 -21
- package/src/server/routes/chat/window.ts +25 -0
- package/src/server/routes/folders/batch-delete.ts +3 -4
- package/src/server/routes/harness/root.ts +17 -1
- package/src/server/routes/harness/session-actions.ts +60 -0
- package/src/server/routes/harness/session-import.test.ts +81 -0
- package/src/server/routes/sessions/batch-archive.ts +5 -4
- package/src/server/routes/sessions/batch-delete.ts +23 -12
- package/src/server/routes/sessions/delete-acp.test.ts +70 -0
- package/src/server/routes/sessions/export.test.ts +83 -0
- package/src/server/routes/sessions/export.ts +59 -0
- package/src/server/routes/sessions/index.ts +4 -0
- package/src/server/routes/sessions/list.ts +5 -0
- package/src/server/routes/settings/root.ts +13 -0
- package/src/shared/lib/chat/export-markdown.test.ts +110 -0
- package/src/shared/lib/chat/export-markdown.ts +141 -0
- package/src/shared/lib/omp/config/schema-releases.test.ts +193 -0
- package/src/shared/lib/omp/config/schema.test.ts +0 -117
- package/src/shared/lib/realtime/connection.ts +4 -0
- package/src/shared/lib/sessions/batch-limits.test.ts +51 -0
- package/src/shared/lib/sessions/batch-limits.ts +42 -0
- package/src/shared/lib/settings/defaults.ts +2 -0
- package/src/shared/lib/theme/tray-icon-style.test.ts +43 -0
- package/src/shared/lib/theme/tray-icon-style.ts +69 -0
- package/src/shared/lib/workspace/left-dock-width.ts +23 -3
- package/src/shared/lib/workspace/left-dock.test.ts +38 -10
- package/src/shared/lib/workspace/left-dock.ts +39 -14
- package/src/shared/lib/workspace/panel-drag.test.ts +52 -0
- package/src/shared/lib/workspace/panel-drag.ts +34 -0
- package/src/shared/lib/workspace/panel-open.test.ts +7 -1
- package/src/shared/lib/workspace/session-state/store.ts +0 -1
- package/src/shared/types/context.ts +20 -0
- package/src/shared/types/harness.ts +26 -0
- package/src/shared/types/settings/state.ts +9 -0
- package/src/test-support/fake-acp-delete.ts +63 -0
- package/src/test-support/sidebar-controller-harness.test-util.ts +121 -0
- package/dist/client/static/js/DrawioView-1ts9y0yk.js +0 -5
- package/dist/client/static/js/ImageView-w2hyp129.js +0 -1
- package/dist/client/static/js/LayoutWrapper-pdvfkncm.js +0 -2
- package/dist/client/static/js/Modal-2sx1tgqr.js +0 -38
- package/dist/client/static/js/SessionsView-a8921ysr.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-r8sz34h3.js +0 -1
- package/dist/client/static/js/architectureDiagram-NJMV4G6O-z3n19xwk.js +0 -36
- package/dist/client/static/js/bash-b3rwyg5p.js +0 -1
- package/dist/client/static/js/c-jkdstn33.js +0 -1
- package/dist/client/static/js/cpp-9d3xdpe3.js +0 -1
- package/dist/client/static/js/css-r3wja1ze.js +0 -1
- package/dist/client/static/js/css-sebxkh5f.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-w2f2vev7.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-k5n61zzh.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-zmz4grtx.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-2gf053bx.js +0 -1
- package/dist/client/static/js/graphql-p4cskvad.js +0 -1
- package/dist/client/static/js/html-f26r6vv5.js +0 -1
- package/dist/client/static/js/index-1c7294vk.js +0 -1
- package/dist/client/static/js/index-2mx9ej4k.css +0 -1
- package/dist/client/static/js/index-2xb54jt3.js +0 -4
- package/dist/client/static/js/index-6d5qj0kb.js +0 -1
- package/dist/client/static/js/index-6k2x281j.js +0 -12
- package/dist/client/static/js/index-6rt7gs1j.js +0 -1
- package/dist/client/static/js/index-737w2mqf.js +0 -1
- package/dist/client/static/js/index-a5ptb956.js +0 -3
- package/dist/client/static/js/index-aa6qdgmv.js +0 -1
- package/dist/client/static/js/index-arvqarv3.js +0 -7
- package/dist/client/static/js/index-bgcp21ed.js +0 -1
- package/dist/client/static/js/index-d8kjsgpt.js +0 -474
- package/dist/client/static/js/index-enxfdvdq.js +0 -1
- package/dist/client/static/js/index-hp8kfk9z.js +0 -1
- package/dist/client/static/js/index-r83kr4s5.js +0 -2
- package/dist/client/static/js/index-rtd9frp1.js +0 -2
- package/dist/client/static/js/index-s910y31q.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-3tr0y3s6.js +0 -1
- package/dist/client/static/js/ini-cg0a5wm3.js +0 -1
- package/dist/client/static/js/java-vcck089n.js +0 -1
- package/dist/client/static/js/javascript-nyf39d5r.js +0 -1
- package/dist/client/static/js/json-j5q8nt57.js +0 -1
- package/dist/client/static/js/jsx-ht9zyzwa.js +0 -1
- package/dist/client/static/js/lua-86fjqj8v.js +0 -1
- package/dist/client/static/js/markdown-gwmsh53r.js +0 -1
- package/dist/client/static/js/one-dark-pro-kckm8epj.js +0 -1
- package/dist/client/static/js/one-light-0v7rg9a7.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-xbsyjzrh.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-j2tpz0cs.js +0 -1
- package/dist/client/static/js/pieDiagram-5QR66LMP-nz6n95d6.js +0 -39
- package/dist/client/static/js/properties-mzvvbqg5.js +0 -1
- package/dist/client/static/js/python-3w64wsyd.js +0 -1
- package/dist/client/static/js/r-32re2zwb.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-m3tsyfv0.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-5p202a4q.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-hj0y9tgn.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-8c5dct8f.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-3tx8z65q.js +0 -1
- package/dist/client/static/js/sql-0e9mnrda.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-56rk9kxv.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-mf0rb2yv.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-0x5gf06b.js +0 -1
- package/dist/client/static/js/tsx-nm94hed6.js +0 -1
- package/dist/client/static/js/typescript-5nmrzgkj.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-x7ej8dms.js +0 -1
- package/dist/client/static/js/xml-3dd1pter.js +0 -1
- package/dist/client/static/js/yaml-yssayv8a.js +0 -1
- package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +0 -229
|
@@ -21,11 +21,10 @@ import { Window } from 'happy-dom';
|
|
|
21
21
|
import { h, render } from 'preact';
|
|
22
22
|
import { act } from 'preact/test-utils';
|
|
23
23
|
import { ActivityBar } from '@/client/components/layout/ActivityBar';
|
|
24
|
+
import { ACTIVITY_BAR_WIDTH_PX } from '@/client/lib/ui/control-plate';
|
|
24
25
|
import { SessionStateProvider } from '@/client/components/common/session-state-provider/index';
|
|
25
26
|
import { useRepoScope } from '@/client/hooks/workspace/repo-scope';
|
|
26
|
-
import { primeKabmoSettings
|
|
27
|
-
import { PANEL_ORDER_SETTING_KEY } from '@/shared/lib/workspace/panel-order';
|
|
28
|
-
import { RIGHT_PANEL_TYPES } from '@/shared/lib/workspace/right-panels';
|
|
27
|
+
import { primeKabmoSettings } from '@/shared/lib/settings/client';
|
|
29
28
|
import { resetRealtimeClient } from '@/shared/lib/realtime/client';
|
|
30
29
|
import { gitTopic } from '@/shared/lib/realtime/protocol';
|
|
31
30
|
import { startRealtimeTestServer, type RealtimeTestServer } from '@/test-support/realtime-server';
|
|
@@ -152,121 +151,16 @@ describe('ActivityBar git dot', () => {
|
|
|
152
151
|
});
|
|
153
152
|
});
|
|
154
153
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
[...container.querySelectorAll('nav button[aria-label]')].find(
|
|
161
|
-
(el) => el.getAttribute('aria-label') === label,
|
|
162
|
-
) as HTMLElement;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* A drag from one button to another, as the browser delivers it.
|
|
166
|
-
*
|
|
167
|
-
* `dataTransfer` is a minimal stand-in: happy-dom has no `DataTransfer`, and
|
|
168
|
-
* the handlers read only `setData`/`dropEffect`/`effectAllowed`.
|
|
169
|
-
*/
|
|
170
|
-
async function dragOnto(from: string, to: string) {
|
|
171
|
-
const transfer = {
|
|
172
|
-
data: {} as Record<string, string>,
|
|
173
|
-
effectAllowed: '',
|
|
174
|
-
dropEffect: 'move',
|
|
175
|
-
setData(type: string, value: string) {
|
|
176
|
-
this.data[type] = value;
|
|
177
|
-
},
|
|
178
|
-
getData(type: string) {
|
|
179
|
-
return this.data[type] ?? '';
|
|
180
|
-
},
|
|
181
|
-
};
|
|
182
|
-
const fire = (element: HTMLElement, type: string) => {
|
|
183
|
-
const event = new window.Event(type, { bubbles: true, cancelable: true });
|
|
184
|
-
Object.defineProperty(event, 'dataTransfer', { value: transfer });
|
|
185
|
-
element.dispatchEvent(event);
|
|
186
|
-
};
|
|
187
|
-
await act(async () => {
|
|
188
|
-
fire(buttonFor(from), 'dragstart');
|
|
189
|
-
});
|
|
190
|
-
await act(async () => {
|
|
191
|
-
fire(buttonFor(to), 'dragover');
|
|
192
|
-
});
|
|
193
|
-
// The drop is what commits — a `dragend` alone is a cancelled gesture.
|
|
194
|
-
await act(async () => {
|
|
195
|
-
fire(buttonFor(to), 'drop');
|
|
196
|
-
});
|
|
197
|
-
await act(async () => {
|
|
198
|
-
fire(buttonFor(from), 'dragend');
|
|
199
|
-
});
|
|
200
|
-
for (let i = 0; i < 8; i += 1) await act(async () => {});
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
describe('ActivityBar panel order', () => {
|
|
204
|
-
test('a drag reorders the bar and persists the new order', async () => {
|
|
205
|
-
primeKabmoSettings({});
|
|
154
|
+
describe('ActivityBar width', () => {
|
|
155
|
+
test('the rail is the width the navbar aligns its last control to', async () => {
|
|
156
|
+
// The navbar derives its right inset from this constant, so the rail must
|
|
157
|
+
// actually be that wide — a class that drifted from it would put the
|
|
158
|
+
// toggle's centre off the rail's axis with nothing failing.
|
|
206
159
|
await mount();
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
expect(buttonLabels()[0]).toBe('Context & Telemetry');
|
|
210
|
-
|
|
211
|
-
// Todos is drawn below Context; drag it onto Context's slot.
|
|
212
|
-
await dragOnto('Todos', 'Context & Telemetry');
|
|
213
|
-
|
|
214
|
-
const drawn = buttonLabels();
|
|
215
|
-
// Todos was dragged UP onto Context, so it lands just ABOVE it — the
|
|
216
|
-
// insertion point is the target's own index (the same rule `QueueList`
|
|
217
|
-
// uses), and every other button keeps its relative order.
|
|
218
|
-
expect(drawn.slice(0, 3)).toEqual(['Todos', 'Context & Telemetry', 'Files']);
|
|
219
|
-
|
|
220
|
-
// The write is what makes the order survive a reload: it goes to the
|
|
221
|
-
// GLOBAL setting, not to this session's layout state.
|
|
222
|
-
const stored = readKabmoSetting<string[]>(PANEL_ORDER_SETTING_KEY);
|
|
223
|
-
expect(stored?.slice(0, 3)).toEqual(['todo', 'context', 'files']);
|
|
224
|
-
expect(stored).toHaveLength(RIGHT_PANEL_TYPES.length);
|
|
160
|
+
const nav = container.querySelector('nav') as HTMLElement;
|
|
161
|
+
expect(nav.style.width).toBe(`${ACTIVITY_BAR_WIDTH_PX}px`);
|
|
225
162
|
});
|
|
163
|
+
});
|
|
226
164
|
|
|
227
|
-
test('a stored order is drawn on the first render', async () => {
|
|
228
|
-
primeKabmoSettings({});
|
|
229
|
-
writeSetting(PANEL_ORDER_SETTING_KEY, ['plan', ...RIGHT_PANEL_TYPES.filter((id) => id !== 'plan')]);
|
|
230
|
-
await mount();
|
|
231
|
-
|
|
232
|
-
expect(buttonLabels()[0]).toBe('Plan (sesi ini)');
|
|
233
|
-
});
|
|
234
165
|
|
|
235
|
-
test('a cancelled drag writes nothing', async () => {
|
|
236
|
-
primeKabmoSettings({});
|
|
237
|
-
await mount();
|
|
238
|
-
const before = buttonLabels();
|
|
239
166
|
|
|
240
|
-
// `dragstart` + `dragover` with NO drop is what Esc produces: the preview
|
|
241
|
-
// moved while the gesture ran, and the stored order must not follow it.
|
|
242
|
-
const transfer = {
|
|
243
|
-
data: {} as Record<string, string>,
|
|
244
|
-
effectAllowed: '',
|
|
245
|
-
dropEffect: 'none',
|
|
246
|
-
setData(type: string, value: string) {
|
|
247
|
-
this.data[type] = value;
|
|
248
|
-
},
|
|
249
|
-
getData(type: string) {
|
|
250
|
-
return this.data[type] ?? '';
|
|
251
|
-
},
|
|
252
|
-
};
|
|
253
|
-
const fire = (element: HTMLElement, type: string) => {
|
|
254
|
-
const event = new window.Event(type, { bubbles: true, cancelable: true });
|
|
255
|
-
Object.defineProperty(event, 'dataTransfer', { value: transfer });
|
|
256
|
-
element.dispatchEvent(event);
|
|
257
|
-
};
|
|
258
|
-
await act(async () => {
|
|
259
|
-
fire(buttonFor('Todos'), 'dragstart');
|
|
260
|
-
});
|
|
261
|
-
await act(async () => {
|
|
262
|
-
fire(buttonFor('Context & Telemetry'), 'dragover');
|
|
263
|
-
});
|
|
264
|
-
await act(async () => {
|
|
265
|
-
fire(buttonFor('Todos'), 'dragend');
|
|
266
|
-
});
|
|
267
|
-
for (let i = 0; i < 8; i += 1) await act(async () => {});
|
|
268
|
-
|
|
269
|
-
expect(buttonLabels()).toEqual(before);
|
|
270
|
-
expect(readKabmoSetting<string[]>(PANEL_ORDER_SETTING_KEY)).toBeUndefined();
|
|
271
|
-
});
|
|
272
|
-
});
|
|
@@ -17,13 +17,19 @@
|
|
|
17
17
|
*
|
|
18
18
|
* - the CATALOG (`usePanelCatalog(side)`), so the left rail draws the session
|
|
19
19
|
* list plus whatever the user placed there;
|
|
20
|
-
* - the ORDER, which the right column stores in `omp_right_panel_order
|
|
21
|
-
* left column
|
|
22
|
-
*
|
|
20
|
+
* - the ORDER, which the right column stores in `omp_right_panel_order` and the
|
|
21
|
+
* left column in its placement list (`omp_left_panels`). Both rails drag, and
|
|
22
|
+
* the COMMIT goes to the store that owns the order — never to a shared list
|
|
23
|
+
* with a per-side branch in it;
|
|
23
24
|
* - the DOT, which belongs to Source Control and therefore to the right rail.
|
|
25
|
+
*
|
|
26
|
+
* A drag BETWEEN rails is still one gesture: the payload carries the panel id
|
|
27
|
+
* (`PANEL_DRAG_MIME`), and a rail that receives a panel it does not draw asks
|
|
28
|
+
* the placement store to move it here. Dropping a panel on its own rail's
|
|
29
|
+
* background moves it to the end; dropping it on another row reorders it.
|
|
24
30
|
*/
|
|
25
31
|
|
|
26
|
-
import { useRef, useState } from 'preact/hooks';
|
|
32
|
+
import { useCallback, useRef, useState } from 'preact/hooks';
|
|
27
33
|
import type { TargetedDragEvent, TargetedMouseEvent } from 'preact';
|
|
28
34
|
import { useGitStatus } from '@/client/hooks/workspace/git-status';
|
|
29
35
|
import { useResolvedRepo } from '@/client/hooks/workspace/repo-scope';
|
|
@@ -32,15 +38,16 @@ import {
|
|
|
32
38
|
type PanelCatalogSide,
|
|
33
39
|
type ResolvedPanel,
|
|
34
40
|
} from '@/client/components/workspace/plugin-panel/catalog';
|
|
41
|
+
import { PanelButton } from '@/client/components/layout/PanelButton';
|
|
35
42
|
import { usePanelPluginActions, usePanelRegistry } from '@/client/hooks/workspace/panel-registry';
|
|
36
43
|
import { usePanelOrder } from '@/client/hooks/workspace/panel-order';
|
|
37
44
|
import { usePanelReorder } from '@/client/hooks/workspace/panel-reorder';
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
45
|
+
import { useLeftDock } from '@/client/hooks/workspace/left-dock';
|
|
46
|
+
import { useAllPanelItems } from '@/client/hooks/workspace/panel-menu-items';
|
|
47
|
+
import { carriesPanelDrag, droppedPanelId } from '@/shared/lib/workspace/panel-drag';
|
|
48
|
+
import { SESSIONS_VIEW_ID } from '@/shared/lib/workspace/left-dock';
|
|
49
|
+
import { VisibilityMenu } from '@/client/components/layout/VisibilityMenu';
|
|
50
|
+
import { ACTIVITY_BAR_WIDTH_PX } from '@/client/lib/ui/control-plate';
|
|
44
51
|
|
|
45
52
|
interface ActivityBarProps {
|
|
46
53
|
side: PanelCatalogSide;
|
|
@@ -55,9 +62,11 @@ interface ActivityBarProps {
|
|
|
55
62
|
/**
|
|
56
63
|
* One column's rail.
|
|
57
64
|
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
65
|
+
* Both rails reorder by dragging a button onto another. What differs is the
|
|
66
|
+
* commit: the right column writes the global panel order, the left column writes
|
|
67
|
+
* its placement list (`setOrder`), which IS its order. The session list is the
|
|
68
|
+
* one button that is neither draggable nor a reorder target — it is the dock's
|
|
69
|
+
* pinned view.
|
|
61
70
|
*/
|
|
62
71
|
export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, hasActiveContext, activeProjectPath }: ActivityBarProps) {
|
|
63
72
|
// The dot is the Source Control view's, so it follows the repo that view is
|
|
@@ -71,15 +80,35 @@ export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, has
|
|
|
71
80
|
const hasGitChanges = changes.length > 0;
|
|
72
81
|
|
|
73
82
|
const catalog = usePanelCatalog(side);
|
|
74
|
-
|
|
83
|
+
// Both rails are drag surfaces now: a panel is reordered inside its own rail
|
|
84
|
+
// and MOVED to the other one by dropping it there. `all` is not a rail, so it
|
|
85
|
+
// offers no handlers.
|
|
86
|
+
const railSide = side === 'left' || side === 'right' ? side : null;
|
|
87
|
+
const reorderable = railSide !== null;
|
|
75
88
|
const { commitReorder } = usePanelOrder();
|
|
89
|
+
const { setSide, setOrder } = useLeftDock();
|
|
76
90
|
const { disabledPanels } = usePanelRegistry();
|
|
77
91
|
const { setEnabled } = usePanelPluginActions();
|
|
78
92
|
const [anchor, setAnchor] = useState<{ top: number; bottom: number; left: number; right: number } | null>(null);
|
|
93
|
+
const [dropActive, setDropActive] = useState(false);
|
|
79
94
|
const navRef = useRef<HTMLElement>(null);
|
|
80
95
|
|
|
81
96
|
const catalogIds = catalog.map((panel) => panel.id);
|
|
82
|
-
|
|
97
|
+
// The session list is the dock's PINNED view: it never moves and never takes
|
|
98
|
+
// part in a reorder. Everything else the rail draws is draggable, built-in
|
|
99
|
+
// and plugin alike.
|
|
100
|
+
const reorderIds = side === 'left' ? catalogIds.filter((id) => id !== SESSIONS_VIEW_ID) : catalogIds;
|
|
101
|
+
// One commit for both rails, because the destination decides which store owns
|
|
102
|
+
// the order: the dock's placement list on the left, the global panel order on
|
|
103
|
+
// the right.
|
|
104
|
+
const commitOrder = useCallback(
|
|
105
|
+
(visibleIds: readonly string[], nextVisible: readonly string[]) => {
|
|
106
|
+
if (side === 'left') setOrder(nextVisible);
|
|
107
|
+
else commitReorder(visibleIds, nextVisible);
|
|
108
|
+
},
|
|
109
|
+
[side, setOrder, commitReorder],
|
|
110
|
+
);
|
|
111
|
+
const reorder = usePanelReorder(reorderIds, commitOrder);
|
|
83
112
|
|
|
84
113
|
// What the bar draws: the catalog in the order being dragged, which is the
|
|
85
114
|
// stored order until a drag starts. An id in the order that the catalog no
|
|
@@ -87,7 +116,9 @@ export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, has
|
|
|
87
116
|
// simply not drawn — the id stays in the stored order, so switching the panel
|
|
88
117
|
// back on returns it where it was.
|
|
89
118
|
const byId = new Map(catalog.map((panel) => [panel.id, panel]));
|
|
90
|
-
const
|
|
119
|
+
const orderedIds = reorderable ? reorder.order : catalogIds;
|
|
120
|
+
// The pinned view stays first and outside the drag set, on every frame.
|
|
121
|
+
const order = side === 'left' ? [SESSIONS_VIEW_ID, ...orderedIds] : orderedIds;
|
|
91
122
|
const drawn = order
|
|
92
123
|
.map((id) => byId.get(id))
|
|
93
124
|
.filter((panel): panel is ResolvedPanel => panel !== undefined);
|
|
@@ -120,13 +151,95 @@ export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, has
|
|
|
120
151
|
});
|
|
121
152
|
};
|
|
122
153
|
|
|
154
|
+
/**
|
|
155
|
+
* A file or a URL dropped on a rail is not ours, so the rail never claims it
|
|
156
|
+
* and never paints a drop state for it.
|
|
157
|
+
*/
|
|
158
|
+
const handleRailDragOver = (event: TargetedDragEvent<HTMLElement>) => {
|
|
159
|
+
if (!carriesPanelDrag(event.dataTransfer?.types)) return;
|
|
160
|
+
event.preventDefault();
|
|
161
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';
|
|
162
|
+
if (!dropActive) setDropActive(true);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const handleRailDragLeave = (event: TargetedDragEvent<HTMLElement>) => {
|
|
166
|
+
if (navRef.current?.contains(event.relatedTarget as Node)) return;
|
|
167
|
+
setDropActive(false);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* A drop on the rail's own background moves the panel to the END of this
|
|
172
|
+
* rail. A row drop is handled by the row itself and stops propagation, so it
|
|
173
|
+
* never reaches here.
|
|
174
|
+
*/
|
|
175
|
+
const handleRailDrop = (event: TargetedDragEvent<HTMLElement>) => {
|
|
176
|
+
if (!carriesPanelDrag(event.dataTransfer?.types)) return;
|
|
177
|
+
event.preventDefault();
|
|
178
|
+
setDropActive(false);
|
|
179
|
+
const id = droppedPanelId(event.dataTransfer);
|
|
180
|
+
if (!id || !railSide) return;
|
|
181
|
+
if (!reorderIds.includes(id)) {
|
|
182
|
+
// From the OTHER rail: the placement store owns the move and turns the
|
|
183
|
+
// dock's rail on when that is where it landed. On the left the panel is
|
|
184
|
+
// also SELECTED, because a panel dropped on that rail should be the one
|
|
185
|
+
// it shows rather than a new button beside the old view.
|
|
186
|
+
setSide(id, railSide);
|
|
187
|
+
// The left rail's handler is a plain SELECT; the right rail's is a
|
|
188
|
+
// TOGGLE (it collapses the active view), so a panel moved back to the
|
|
189
|
+
// right must not be selected through it — the stored selection can still
|
|
190
|
+
// name this panel from before the move, and the click semantics would
|
|
191
|
+
// collapse the column instead of showing it.
|
|
192
|
+
if (railSide === 'left') onChangePanel(id);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (reorderIds[reorderIds.length - 1] === id) return;
|
|
196
|
+
commitOrder(reorderIds, [...reorderIds.filter((other) => other !== id), id]);
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
const handleRowDragOver = (event: TargetedDragEvent<HTMLElement>, targetId: string) => {
|
|
200
|
+
if (!carriesPanelDrag(event.dataTransfer?.types)) return;
|
|
201
|
+
// The hook first, because its ref — not the rendered state — is the truth
|
|
202
|
+
// for a drag that started in this bar. A `dragover` can arrive before the
|
|
203
|
+
// `dragstart` state has re-rendered, and reading `draggingId` here would
|
|
204
|
+
// classify our own drag as a foreign one and drop the reorder.
|
|
205
|
+
reorder.onDragOver(event, targetId);
|
|
206
|
+
if (!event.defaultPrevented) {
|
|
207
|
+
// A panel from the other rail: this row IS a drop target even though the
|
|
208
|
+
// reorder hook has no drag state for it.
|
|
209
|
+
event.preventDefault();
|
|
210
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
const handleRowDrop = (event: TargetedDragEvent<HTMLElement>) => {
|
|
215
|
+
// Always stop here: the rail's own drop would otherwise append the panel
|
|
216
|
+
// the row just reordered (or a panel dropped on itself).
|
|
217
|
+
event.stopPropagation();
|
|
218
|
+
const id = droppedPanelId(event.dataTransfer);
|
|
219
|
+
if (!id) return;
|
|
220
|
+
if (!reorderIds.includes(id) && railSide) {
|
|
221
|
+
event.preventDefault();
|
|
222
|
+
setSide(id, railSide);
|
|
223
|
+
if (railSide === 'left') onChangePanel(id);
|
|
224
|
+
setDropActive(false);
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
reorder.onDrop(event);
|
|
228
|
+
};
|
|
229
|
+
|
|
123
230
|
return (
|
|
124
231
|
<>
|
|
125
232
|
<nav
|
|
126
233
|
ref={navRef}
|
|
127
234
|
onContextMenu={openMenu}
|
|
235
|
+
onDragOver={handleRailDragOver}
|
|
236
|
+
onDragLeave={handleRailDragLeave}
|
|
237
|
+
onDrop={handleRailDrop}
|
|
128
238
|
aria-label={side === 'left' ? 'Left panel views' : 'Right panel views'}
|
|
129
|
-
className={`glass-chrome
|
|
239
|
+
className={`glass-chrome flex-shrink-0 ${side === 'left' ? 'border-r' : 'border-l'} border-ink/10 bg-paper flex flex-col items-center pb-3 space-y-2 z-10 ${
|
|
240
|
+
dropActive ? 'ring-1 ring-inset ring-ink/40 bg-ink/5' : ''
|
|
241
|
+
}`}
|
|
242
|
+
style={{ width: ACTIVITY_BAR_WIDTH_PX }}
|
|
130
243
|
>
|
|
131
244
|
<div className="flex flex-col items-center space-y-1 w-full">
|
|
132
245
|
{drawn.map((panel, index) => (
|
|
@@ -134,14 +247,17 @@ export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, has
|
|
|
134
247
|
{index === dividerBefore ? <div className="w-6 mx-auto border-t border-ink/10 my-1" /> : null}
|
|
135
248
|
<PanelButton
|
|
136
249
|
panel={panel}
|
|
137
|
-
draggable={reorderable}
|
|
250
|
+
draggable={reorderable && panel.id !== SESSIONS_VIEW_ID}
|
|
138
251
|
isActive={isPanelOpen && activePanel === panel.id}
|
|
139
252
|
isDragging={reorderable && reorder.draggingId === panel.id}
|
|
140
253
|
onClick={() => onChangePanel(panel.id)}
|
|
141
254
|
onDragStart={(event) => reorder.onDragStart(event, panel.id)}
|
|
142
|
-
onDragOver={(event) =>
|
|
143
|
-
onDrop={
|
|
144
|
-
onDragEnd={
|
|
255
|
+
onDragOver={(event) => handleRowDragOver(event, panel.id)}
|
|
256
|
+
onDrop={(event) => handleRowDrop(event)}
|
|
257
|
+
onDragEnd={() => {
|
|
258
|
+
setDropActive(false);
|
|
259
|
+
reorder.onDragEnd();
|
|
260
|
+
}}
|
|
145
261
|
showGitDot={panel.id === 'git' && hasGitChanges}
|
|
146
262
|
/>
|
|
147
263
|
</div>
|
|
@@ -152,7 +268,7 @@ export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, has
|
|
|
152
268
|
</nav>
|
|
153
269
|
|
|
154
270
|
{anchor ? (
|
|
155
|
-
<
|
|
271
|
+
<VisibilityMenu
|
|
156
272
|
anchor={anchor}
|
|
157
273
|
items={allItems}
|
|
158
274
|
hidden={disabledPanels}
|
|
@@ -164,115 +280,3 @@ export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, has
|
|
|
164
280
|
);
|
|
165
281
|
}
|
|
166
282
|
|
|
167
|
-
/**
|
|
168
|
-
* Every panel the menu can offer, including the ones switched off.
|
|
169
|
-
*
|
|
170
|
-
* A switched-off panel is NOT in the catalog (the catalog is what the bar
|
|
171
|
-
* draws), so reading the menu off the catalog alone would make a hidden view
|
|
172
|
-
* unreachable — the one thing the menu exists to prevent. The built-ins are a
|
|
173
|
-
* static list, so they are always listed; a plugin is listed while it is
|
|
174
|
-
* INSTALLED, read from `plugins` rather than from `panels`, because `panels`
|
|
175
|
-
* holds only the enabled ones and a disabled plugin would lose its row.
|
|
176
|
-
*
|
|
177
|
-
* The list is per SIDE: the left rail offering eleven built-in views it cannot
|
|
178
|
-
* draw would be a menu of controls that do nothing.
|
|
179
|
-
*/
|
|
180
|
-
function useAllPanelItems(side: PanelCatalogSide): PanelVisibilityItem[] {
|
|
181
|
-
const { plugins } = usePanelRegistry();
|
|
182
|
-
const items: PanelVisibilityItem[] = [];
|
|
183
|
-
if (side !== 'right') {
|
|
184
|
-
// The session list is the dock's own view and cannot be switched off: it is
|
|
185
|
-
// the only way back to a conversation.
|
|
186
|
-
items.push({ id: SESSIONS_VIEW_ID, title: 'Sessions', removable: false });
|
|
187
|
-
}
|
|
188
|
-
if (side !== 'left') {
|
|
189
|
-
for (const panel of BUILTIN_PANELS) items.push({ id: panel.id, title: panel.title, removable: true });
|
|
190
|
-
}
|
|
191
|
-
for (const plugin of plugins) {
|
|
192
|
-
const id = pluginEnablementKey(plugin.pluginId);
|
|
193
|
-
// A plugin is offered on both rails: its placement decides which one draws
|
|
194
|
-
// it, and the switch is the same switch on either.
|
|
195
|
-
if (side === 'left' && !isLeftDockPanelId(id)) continue;
|
|
196
|
-
items.push({ id, title: plugin.name, removable: true });
|
|
197
|
-
}
|
|
198
|
-
return items;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* One activity-bar button, drawn from the catalog entry it belongs to.
|
|
203
|
-
*
|
|
204
|
-
* It is both a drag SOURCE and a drop TARGET: the drop is what moves the
|
|
205
|
-
* button, and `dragover` is the only moment a target can accept it.
|
|
206
|
-
*/
|
|
207
|
-
function PanelButton({
|
|
208
|
-
panel,
|
|
209
|
-
draggable,
|
|
210
|
-
isActive,
|
|
211
|
-
isDragging,
|
|
212
|
-
onClick,
|
|
213
|
-
onDragStart,
|
|
214
|
-
onDragOver,
|
|
215
|
-
onDrop,
|
|
216
|
-
onDragEnd,
|
|
217
|
-
showGitDot,
|
|
218
|
-
}: {
|
|
219
|
-
panel: ResolvedPanel;
|
|
220
|
-
draggable: boolean;
|
|
221
|
-
isActive: boolean;
|
|
222
|
-
isDragging: boolean;
|
|
223
|
-
onClick: () => void;
|
|
224
|
-
onDragStart: (event: TargetedDragEvent<HTMLElement>) => void;
|
|
225
|
-
onDragOver: (event: TargetedDragEvent<HTMLElement>) => void;
|
|
226
|
-
onDrop: (event: TargetedDragEvent<HTMLElement>) => void;
|
|
227
|
-
onDragEnd: () => void;
|
|
228
|
-
showGitDot: boolean;
|
|
229
|
-
}) {
|
|
230
|
-
return (
|
|
231
|
-
<button
|
|
232
|
-
className={`relative w-full h-10 flex items-center justify-center transition-colors ${
|
|
233
|
-
panel.side === 'left' ? 'border-r-2' : 'border-l-2'
|
|
234
|
-
} ${
|
|
235
|
-
isActive ? 'text-ink border-ink bg-ink/5' : 'text-ink/40 border-transparent hover:text-ink hover:bg-ink/5'
|
|
236
|
-
} ${isDragging ? 'opacity-40 cursor-grabbing' : 'cursor-pointer'}`}
|
|
237
|
-
onClick={onClick}
|
|
238
|
-
draggable={draggable}
|
|
239
|
-
onDragStart={onDragStart}
|
|
240
|
-
onDragOver={onDragOver}
|
|
241
|
-
onDrop={onDrop}
|
|
242
|
-
onDragEnd={onDragEnd}
|
|
243
|
-
title={panel.title}
|
|
244
|
-
aria-label={panel.title}
|
|
245
|
-
// A rail button is a TOGGLE: it says which view the column is showing.
|
|
246
|
-
// Without this the state existed only as a border colour, which assistive
|
|
247
|
-
// tech cannot read and measured as `aria-pressed: null` on all six marks.
|
|
248
|
-
aria-pressed={isActive}
|
|
249
|
-
>
|
|
250
|
-
{/* The mark's wrapper carries the state as OPACITY, not as a text colour:
|
|
251
|
-
a `text-ink/40` here outranks the colour mode's hue rule, which is what
|
|
252
|
-
kept this rail monochrome while the panels behind it were tinted. In
|
|
253
|
-
the monochrome mode nothing dims the ink twice — `[data-idle]` is only
|
|
254
|
-
read under `[data-icon-style="color"]`.
|
|
255
|
-
|
|
256
|
-
The colour itself is NOT decided here: `PanelMark` stamps the same
|
|
257
|
-
`--panel-hue` the phone's chip strip and Settings read, so this button
|
|
258
|
-
cannot disagree with them about what `Files` looks like. */}
|
|
259
|
-
<PanelMark
|
|
260
|
-
className="panel-rail-mark inline-flex"
|
|
261
|
-
panelId={panel.id}
|
|
262
|
-
builtin={panel.builtin}
|
|
263
|
-
icon={panel.builtin ? panel.icon : undefined}
|
|
264
|
-
name={panel.builtin ? panel.label : panel.name}
|
|
265
|
-
{...(panel.iconUrl ? { iconUrl: panel.iconUrl } : {})}
|
|
266
|
-
{...(panel.color ? { color: panel.color } : {})}
|
|
267
|
-
size={PANEL_MARK_SIZE}
|
|
268
|
-
idle={!isActive}
|
|
269
|
-
/>
|
|
270
|
-
{showGitDot ? (
|
|
271
|
-
<span
|
|
272
|
-
className="absolute top-1.5 right-1.5 w-1.5 h-1.5 rounded-full bg-info"
|
|
273
|
-
title="Ada perubahan git"
|
|
274
|
-
/>
|
|
275
|
-
) : null}
|
|
276
|
-
</button>
|
|
277
|
-
);
|
|
278
|
-
}
|