@kabmo-labs/kabmo 0.44.0 → 0.45.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 +1 -1
- package/dist/client/static/js/{CsvGrid-1t2q46rg.js → CsvGrid-z74weshk.js} +2 -2
- package/dist/client/static/js/{DocxView-301hxnwk.js → DocxView-dpe5x9ab.js} +5 -5
- package/dist/client/static/js/{DrawioView-47bwea5t.js → DrawioView-ftzwjf8v.js} +2 -2
- package/dist/client/static/js/{ImageView-68zdx5ex.js → ImageView-vchn6wyq.js} +1 -1
- package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +2 -0
- package/dist/client/static/js/{Modal-fb9b4gq6.js → Modal-tteg7vtb.js} +18 -18
- package/dist/client/static/js/{PdfView-m64ksepp.js → PdfView-vjec8z3z.js} +1 -1
- package/dist/client/static/js/{SessionsView-zyjwhpzm.js → SessionsView-g7z3fxbp.js} +1 -1
- package/dist/client/static/js/{SheetView-e88sqprx.js → SheetView-hhtfkdhe.js} +25 -25
- package/dist/client/static/js/{SvgPreview-hs9a713t.js → SvgPreview-48n3ex6p.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-fnr5kyqk.js → abnfDiagram-O67JEVCF-bpvzdara.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7v003363.js → architectureDiagram-NJMV4G6O-xw62cr7j.js} +3 -3
- package/dist/client/static/js/{astro-t9vjc0mc.js → astro-56b0as3q.js} +1 -1
- package/dist/client/static/js/bash-mevzaywf.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-k4mwbw3d.js → blockDiagram-BEXU5L5S-x3a6cgar.js} +4 -4
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-688zq6f4.js → c4Diagram-YGBWAQC7-katvaxbj.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-h0s16pxr.js → classDiagram-v2-NBCMYWYE-bjz4mqqh.js} +3 -3
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-qb2t8qq5.js → cose-bilkent-JH36ORCC-fsn80psf.js} +1 -1
- package/dist/client/static/js/cpp-wk9z0c5g.js +1 -0
- package/dist/client/static/js/css-3w3p9s67.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-syhtcr7b.js → cynefinDiagram-VND7K2PF-cfhbsnkm.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-7wgbx6cm.js → dagre-6A5THRUB-j2wt7ns6.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-951cmp5h.js → diagram-22UHCM2B-abrdj714.js} +8 -8
- package/dist/client/static/js/{diagram-3UASUU5V-mvdbqt7b.js → diagram-3UASUU5V-dbn15bxn.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-hkvdtgdm.js → diagram-ATOU4E4O-y79pwf7w.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-bkkz35ca.js → diagram-CDSNMT55-f8ryt86n.js} +2 -2
- package/dist/client/static/js/{diagram-MLGK6HIB-z6pcrkc3.js → diagram-MLGK6HIB-ws7wn3q9.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-mkwf8j4m.js → diagram-MPIPVDR6-zmznrg13.js} +2 -2
- package/dist/client/static/js/{dockerfile-7gd570bm.js → dockerfile-qgc921kw.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-trym26ts.js → ebnfDiagram-ZINNZB2B-y5q7hy1v.js} +1 -1
- package/dist/client/static/js/{elixir-z77c7tfn.js → elixir-12pgbgtq.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-gkhz67v6.js → elk-276RUBZZ-vddwbn6q.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-gkyr5cqs.js → erDiagram-OPXOYQCR-qdqcx4g4.js} +6 -6
- package/dist/client/static/js/{erlang-6vrvh2m6.js → erlang-811btv6p.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-nh2tb65b.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1qpme6ks.js → ganttDiagram-FUAMR5RP-763hk9rm.js} +1 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-wbg3kqak.js → gitGraphDiagram-X574FWY7-bgx1q5nw.js} +4 -4
- package/dist/client/static/js/graphql-027z8sc0.js +1 -0
- package/dist/client/static/js/html-fqda6wxx.js +1 -0
- package/dist/client/static/js/{index-ks23y2cd.js → index-03j5j1j0.js} +2 -2
- package/dist/client/static/js/{index-czedkbmb.js → index-05hx4ftf.js} +2 -2
- package/dist/client/static/js/index-0vk6v4y4.js +2 -0
- package/dist/client/static/js/{index-83pwa9c0.js → index-1nwwvv29.js} +1 -1
- package/dist/client/static/js/{index-31hntzse.js → index-228yzebd.js} +5 -5
- package/dist/client/static/js/{index-xf36nmbm.js → index-2b1wnvez.js} +2 -2
- package/dist/client/static/js/{index-6t21c6jt.js → index-34ff2vq6.js} +2 -2
- package/dist/client/static/js/{index-1923aj4g.js → index-3d21hpk7.js} +2 -2
- package/dist/client/static/js/{index-hfsvwfgw.js → index-3h2mr90j.js} +2 -2
- package/dist/client/static/js/{index-svmzgtcx.js → index-3sqndc9n.js} +2 -2
- package/dist/client/static/js/{index-6gyk52ff.js → index-47wn2gjx.js} +1 -1
- package/dist/client/static/js/{index-6ah5sj5y.js → index-4b5b6g0k.js} +1 -1
- package/dist/client/static/js/{index-53ysgsd2.js → index-5b2vsbcf.js} +1 -1
- package/dist/client/static/js/{index-qm92sf9w.js → index-5mrqfs82.js} +12 -12
- package/dist/client/static/js/{index-62ng8tkj.js → index-61j9qkck.js} +3 -3
- package/dist/client/static/js/index-6bm4pw90.css +1 -0
- package/dist/client/static/js/{index-fj4k07zt.js → index-6sqmhdyv.js} +2 -2
- package/dist/client/static/js/{index-gtkhz0hj.js → index-8dtp7mt0.js} +2 -2
- package/dist/client/static/js/index-a11ptyzf.js +1 -0
- package/dist/client/static/js/{index-nvevymac.js → index-acphtw1r.js} +2 -2
- package/dist/client/static/js/{index-pxm44qfd.js → index-cj39b26c.js} +1 -1
- package/dist/client/static/js/{index-wytdbvax.js → index-dgjerk4w.js} +3 -3
- package/dist/client/static/js/{index-ad4x44d6.js → index-dn6pqym4.js} +6 -6
- package/dist/client/static/js/{index-nr8s5xm9.js → index-ehg2ftnp.js} +2 -2
- package/dist/client/static/js/{index-jbkkwa2q.js → index-f51jxezc.js} +2 -2
- package/dist/client/static/js/index-f7paep2f.js +2 -0
- package/dist/client/static/js/{index-qkjx6521.js → index-f98dhbt4.js} +4 -4
- package/dist/client/static/js/{index-92n96mgd.js → index-fbct0jcf.js} +2 -2
- package/dist/client/static/js/{index-bjqz7swa.js → index-fqatn0vh.js} +1 -1
- package/dist/client/static/js/{index-tzdm1y3z.js → index-gcwmpfr4.js} +2 -2
- package/dist/client/static/js/{index-v5npdwy2.js → index-gmq5pbcv.js} +51 -51
- package/dist/client/static/js/{index-fbpc1wx6.js → index-gzafyqsr.js} +21 -21
- package/dist/client/static/js/{index-4y4hshcx.js → index-gzp4j2h5.js} +2 -2
- package/dist/client/static/js/{index-nqjd3hh5.js → index-h0rmkz9n.js} +2 -2
- package/dist/client/static/js/{index-8trggh1z.js → index-jpp0zm7t.js} +7 -7
- package/dist/client/static/js/{index-qf9x7yet.js → index-kg2sk8cf.js} +1 -1
- package/dist/client/static/js/{index-rpzxrr2d.js → index-mrw7qweg.js} +1 -1
- package/dist/client/static/js/{index-s8bktzpg.js → index-mwm8aptp.js} +1 -1
- package/dist/client/static/js/{index-c3v62nvt.js → index-n1ga63de.js} +2 -2
- package/dist/client/static/js/{index-22whvfdw.js → index-nzhwd6t3.js} +2 -2
- package/dist/client/static/js/{index-tr2pkfs6.js → index-p21mvqc2.js} +2 -2
- package/dist/client/static/js/{index-qsw5edtk.js → index-pfj3sd1n.js} +5 -5
- package/dist/client/static/js/{index-pysqpc5n.js → index-pxq4v81r.js} +2 -2
- package/dist/client/static/js/{index-07yh7qx0.js → index-q76jfb54.js} +1 -1
- package/dist/client/static/js/{index-6s4mrdew.js → index-qt9jc4ck.js} +2 -2
- package/dist/client/static/js/{index-ehacfgwm.js → index-r6e44vkx.js} +1 -1
- package/dist/client/static/js/{index-232nsp2c.js → index-szk3vk8h.js} +1 -1
- package/dist/client/static/js/{index-e6rm5xzj.js → index-t0yv1375.js} +1 -1
- package/dist/client/static/js/{index-n0matkz9.js → index-vgcm2g0g.js} +2 -2
- package/dist/client/static/js/{index-kwpaz891.js → index-vkerrwpa.js} +2 -2
- package/dist/client/static/js/{index-v7bcgh77.js → index-w57zbym7.js} +2 -2
- package/dist/client/static/js/{index-yfjvx4yf.js → index-wqrdgt1g.js} +2 -2
- package/dist/client/static/js/{index-barbpakv.js → index-x2wvq4ae.js} +2 -2
- package/dist/client/static/js/{index-3w845q50.js → index-x7rfmwg8.js} +2 -2
- package/dist/client/static/js/{index-cq98p2rb.js → index-xkwybnf3.js} +179 -179
- package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-yebngg8c.js → infoDiagram-VRGFBTTK-e66pw8d9.js} +1 -1
- package/dist/client/static/js/ini-3cx6tmv4.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-kh4nqj6q.js → ishikawaDiagram-OU5B5YK6-ehc0q24d.js} +1 -1
- package/dist/client/static/js/java-zs6qh1dm.js +1 -0
- package/dist/client/static/js/javascript-b9mkygak.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-4khnf8x1.js → journeyDiagram-ZHPQQLJL-hye05qtd.js} +2 -2
- package/dist/client/static/js/jsx-gahhfczw.js +1 -0
- package/dist/client/static/js/{julia-svwxx41e.js → julia-mgsev9df.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-snmq3wq4.js → kanban-definition-PNTS6WVX-vce614m8.js} +6 -6
- package/dist/client/static/js/lua-d8enp14s.js +1 -0
- package/dist/client/static/js/markdown-qetaj4vp.js +1 -0
- package/dist/client/static/js/{mermaid.core-yctw30sk.js → mermaid.core-gc79re5p.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-atfv66wq.js → mindmap-definition-NLK3R4M7-ft1whaf5.js} +3 -3
- package/dist/client/static/js/one-dark-pro-rvg5xm1a.js +1 -0
- package/dist/client/static/js/one-light-2b5w3ksh.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-hpbtxjht.js → pegDiagram-GJSIUBJH-2s4ykhaa.js} +1 -1
- package/dist/client/static/js/{perl-mr0ds2ex.js → perl-6n93vjsa.js} +1 -1
- package/dist/client/static/js/{php-5h3wt6tv.js → php-w23nmbtc.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-9zrtkdr2.js → pieDiagram-5QR66LMP-7h8dp0z3.js} +2 -2
- package/dist/client/static/js/properties-g6tpq003.js +1 -0
- package/dist/client/static/js/python-cy06fzhg.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-xq970vx1.js → quadrantDiagram-O4NWA36T-pteyxjxr.js} +2 -2
- package/dist/client/static/js/r-vw8berfv.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-1g9jchbk.js → railroadDiagram-XR7U4H2S-68z9wdt0.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-ntt088y4.js → requirementDiagram-PLB6GJNP-c08nmey6.js} +3 -3
- package/dist/client/static/js/{ruby-nn836rtq.js → ruby-ag3b3t9t.js} +1 -1
- package/dist/client/static/js/{rust-eygk56y5.js → rust-ke5ec0w5.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-95k8c5v6.js → sankeyDiagram-IPEJSGJF-2r3kvjs5.js} +3 -3
- package/dist/client/static/js/{sass-c2bk03e4.js → sass-x0eez0kp.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-qfvxrwfa.js → sequenceDiagram-PO4LG4MO-ctjycd88.js} +6 -6
- package/dist/client/static/js/{sizeCapture-INFHLROL-0m7dc5nd.js → sizeCapture-INFHLROL-97ndea95.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-femwcn7n.js → stateDiagram-v2-GCMORJYK-aqnmsb96.js} +3 -3
- package/dist/client/static/js/{svelte-bfy1rq5g.js → svelte-tg19by0f.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-5n1qq48r.js → swimlanes-2SLR337P-v50cx1nx.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-e227mz39.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-vdsj18be.js → timeline-definition-EJHVYXUP-1ggrtdcj.js} +4 -4
- package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +1 -0
- package/dist/client/static/js/tsx-3dzv8h6k.js +1 -0
- package/dist/client/static/js/typescript-44vs0wn4.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-psjbrprk.js → usecaseDiagram-POWQR4AR-ybcwhpzs.js} +19 -19
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-4yn9kac9.js → vennDiagram-UO4OBE2U-p9ggrt07.js} +4 -4
- package/dist/client/static/js/{vue-0fwtgwj4.js → vue-mhj4sme0.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-js0tbpca.js → wardleyDiagram-VNRHLVJA-v79nb9kx.js} +2 -2
- package/dist/client/static/js/xml-yvv5fn3k.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-svr38ygh.js → xychartDiagram-PMCCYNJV-43thqscz.js} +2 -2
- package/dist/client/static/js/yaml-avewh7n5.js +1 -0
- package/marketplace/marketplace.json +7 -0
- package/marketplace/plugins/github-actions/README.md +142 -0
- package/marketplace/plugins/github-actions/icon.svg +12 -0
- package/marketplace/plugins/github-actions/package.json +30 -0
- package/marketplace/plugins/github-actions/settings-schema.json +27 -0
- package/marketplace/plugins/github-actions/src/app.tsx +32 -0
- package/marketplace/plugins/github-actions/src/panel/Actions.tsx +105 -0
- package/marketplace/plugins/github-actions/src/panel/LogView.tsx +76 -0
- package/marketplace/plugins/github-actions/src/panel/Row.tsx +59 -0
- package/marketplace/plugins/github-actions/src/panel/RunView.tsx +197 -0
- package/marketplace/plugins/github-actions/src/panel/format.ts +74 -0
- package/marketplace/plugins/github-actions/src/panel/index.test.tsx +86 -0
- package/marketplace/plugins/github-actions/src/panel/index.tsx +256 -0
- package/marketplace/plugins/github-actions/src/panel/picker.test.tsx +68 -0
- package/marketplace/plugins/github-actions/src/panel/test-fixtures.ts +98 -0
- package/marketplace/plugins/github-actions/src/panel/test-harness.tsx +175 -0
- package/marketplace/plugins/github-actions/src/protocol.ts +156 -0
- package/marketplace/plugins/github-actions/src/server/github.test.ts +264 -0
- package/marketplace/plugins/github-actions/src/server/github.ts +309 -0
- package/marketplace/plugins/github-actions/src/server/http.test.ts +150 -0
- package/marketplace/plugins/github-actions/src/server/http.ts +202 -0
- package/marketplace/plugins/github-actions/src/server/json.ts +44 -0
- package/marketplace/plugins/github-actions/src/server/logtext.test.ts +84 -0
- package/marketplace/plugins/github-actions/src/server/logtext.ts +59 -0
- package/marketplace/plugins/github-actions/src/server/progress.test.ts +96 -0
- package/marketplace/plugins/github-actions/src/server/progress.ts +62 -0
- package/marketplace/plugins/github-actions/src/server/remote.ts +84 -0
- package/marketplace/plugins/github-actions/src/server/scope.ts +51 -0
- package/marketplace/plugins/github-actions/src/server/token.ts +84 -0
- package/marketplace/plugins/github-actions/src/server.ts +163 -0
- package/marketplace/plugins/github-actions/src/state.test.ts +55 -0
- package/marketplace/plugins/github-actions/src/state.ts +63 -0
- package/marketplace/plugins/github-actions/tsconfig.json +16 -0
- package/package.json +1 -1
- package/src/client/components/mobile/RightSidebar.tsx +164 -66
- package/src/client/components/mobile/header-titlebar.test.tsx +92 -0
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +179 -0
- package/src/client/components/mobile/panel-chips.test.tsx +12 -0
- package/src/client/components/mobile/panel-chips.tsx +5 -1
- package/src/client/components/mobile/right-drawer-nav.test.tsx +258 -0
- package/src/client/components/settings/apply-side-effects.ts +6 -0
- package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +123 -2
- package/src/client/components/workspace/panel-tabs/Home.tsx +14 -2
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +173 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +118 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +89 -102
- package/src/client/components/workspace/panel-tabs/index.tsx +9 -1
- package/src/client/hooks/workspace/mobile-right-panel-nav.ts +63 -0
- package/src/client/hooks/workspace/panel-nav.test.ts +39 -1
- package/src/client/lib/ui/control-plate.ts +33 -0
- package/src/server/lib/bundler/titlebar-css.test.ts +5 -3
- package/src/shared/lib/settings/defaults.ts +2 -1
- package/src/shared/lib/workspace/panel-nav.test.ts +36 -0
- package/src/shared/lib/workspace/panel-nav.ts +43 -0
- package/src/shared/types/settings/state.ts +9 -1
- package/dist/client/static/js/LayoutWrapper-vw54s8ra.js +0 -2
- package/dist/client/static/js/architecture-7GRP2DOG-mq93vqx9.js +0 -1
- package/dist/client/static/js/bash-fjzhxy10.js +0 -1
- package/dist/client/static/js/cpp-9f6zkdd4.js +0 -1
- package/dist/client/static/js/css-y4y3qtsb.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-qyg5rjr5.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-15yz245z.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-n1sapfye.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-xtjwv160.js +0 -1
- package/dist/client/static/js/graphql-amk52c95.js +0 -1
- package/dist/client/static/js/html-2y935m7r.js +0 -1
- package/dist/client/static/js/index-19ffgf9a.js +0 -2
- package/dist/client/static/js/index-204ae4vs.js +0 -2
- package/dist/client/static/js/index-n6fbd265.js +0 -1
- package/dist/client/static/js/index-sc7r305t.css +0 -1
- package/dist/client/static/js/info-A6RAGUB7-e31s2xvj.js +0 -1
- package/dist/client/static/js/ini-kemnmt16.js +0 -1
- package/dist/client/static/js/java-caqpfm88.js +0 -1
- package/dist/client/static/js/javascript-zegm06a1.js +0 -1
- package/dist/client/static/js/jsx-bvterpm5.js +0 -1
- package/dist/client/static/js/lua-1hcfm8ya.js +0 -1
- package/dist/client/static/js/markdown-n6na4ykv.js +0 -1
- package/dist/client/static/js/one-dark-pro-c1vnxka7.js +0 -1
- package/dist/client/static/js/one-light-mbxx52p5.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-mtzmsrk4.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-85nwadmj.js +0 -1
- package/dist/client/static/js/properties-nxcks67c.js +0 -1
- package/dist/client/static/js/python-58p0gqn0.js +0 -1
- package/dist/client/static/js/r-eyn8en0g.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-ae3jdajx.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-3m0s7cse.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-pz22c3eb.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-cgqgqq15.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-ts0nmcxb.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-n85hawg8.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-fvpt3hm8.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-4z9s24je.js +0 -1
- package/dist/client/static/js/tsx-fnzxsv25.js +0 -1
- package/dist/client/static/js/typescript-0ppbqrb6.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-73mrhkmy.js +0 -1
- package/dist/client/static/js/xml-v1ytr8qz.js +0 -1
- package/dist/client/static/js/yaml-txrqz62t.js +0 -1
|
@@ -32,11 +32,18 @@
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
import { useCallback, useEffect, useRef } from 'preact/hooks';
|
|
35
|
-
import type { ReactNode } from 'preact/compat';
|
|
36
|
-
import { Plus
|
|
35
|
+
import type { CSSProperties, ReactNode } from 'preact/compat';
|
|
36
|
+
import { Plus } from 'lucide-preact';
|
|
37
37
|
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
38
|
+
import { TabChip } from '@/client/components/workspace/panel-tabs/TabChip';
|
|
39
|
+
import {
|
|
40
|
+
CONTROL_BOX,
|
|
41
|
+
CONTROL_GLYPH_PX,
|
|
42
|
+
CONTROL_ROW_GAP,
|
|
43
|
+
CONTROL_ROW_HEIGHT,
|
|
44
|
+
CONTROL_ROW_INSET,
|
|
45
|
+
type ControlLayout,
|
|
46
|
+
} from '@/client/lib/ui/control-plate';
|
|
40
47
|
import { scrollLeftForReveal } from '@/shared/lib/ui/scroll-reveal';
|
|
41
48
|
import { usePanelReorder } from '@/client/hooks/workspace/panel-reorder';
|
|
42
49
|
import type { PanelTabs } from '@/shared/lib/workspace/panel-tabs';
|
|
@@ -44,7 +51,7 @@ import type { PanelTabs } from '@/shared/lib/workspace/panel-tabs';
|
|
|
44
51
|
/** Breathing room left between a revealed chip and the strip's edge. */
|
|
45
52
|
const REVEAL_PAD_PX = 8;
|
|
46
53
|
|
|
47
|
-
interface PanelTabStripProps {
|
|
54
|
+
export interface PanelTabStripProps {
|
|
48
55
|
/** The panels to draw, in strip order — already filtered to drawable ones. */
|
|
49
56
|
tabs: PanelTabs;
|
|
50
57
|
/** The panel each id resolves to; an id with no entry is skipped. */
|
|
@@ -71,6 +78,34 @@ interface PanelTabStripProps {
|
|
|
71
78
|
* chip is a drag source.
|
|
72
79
|
*/
|
|
73
80
|
onReorder?: (ids: readonly string[]) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Which chrome density the row draws at.
|
|
83
|
+
*
|
|
84
|
+
* NOT derivable from `dragRegion`: a desktop shell window narrowed past the
|
|
85
|
+
* layout breakpoint can be a drag region while still being the desktop
|
|
86
|
+
* layout. The phone's right drawer passes `mobile`; every desktop column
|
|
87
|
+
* leaves the default.
|
|
88
|
+
*/
|
|
89
|
+
layout?: ControlLayout;
|
|
90
|
+
/**
|
|
91
|
+
* Make the strip the window's drag handle.
|
|
92
|
+
*
|
|
93
|
+
* A phone-width shell window (all three shells allow 720px) renders this
|
|
94
|
+
* layout, and when the right drawer is the mounted screen its strip is the
|
|
95
|
+
* only horizontal chrome left — without a drag region the window cannot be
|
|
96
|
+
* moved at all. The CHIPS are drag SOURCES (`draggable`), which a drag region
|
|
97
|
+
* would eat, so they carry `titlebar-no-drag` themselves; the strip's
|
|
98
|
+
* background between them is the handle.
|
|
99
|
+
*/
|
|
100
|
+
dragRegion?: boolean;
|
|
101
|
+
/** Style for the strip's own row (the phone passes its titlebar insets). */
|
|
102
|
+
style?: CSSProperties;
|
|
103
|
+
/**
|
|
104
|
+
* Extra attributes for the row — the phone's drawer spreads its long-press
|
|
105
|
+
* menu handlers here, because under the tab style this row replaced the
|
|
106
|
+
* header that used to own them.
|
|
107
|
+
*/
|
|
108
|
+
rootProps?: Record<string, unknown>;
|
|
74
109
|
}
|
|
75
110
|
|
|
76
111
|
export function PanelTabStrip({
|
|
@@ -84,6 +119,10 @@ export function PanelTabStrip({
|
|
|
84
119
|
onClose,
|
|
85
120
|
actions,
|
|
86
121
|
onReorder,
|
|
122
|
+
dragRegion = false,
|
|
123
|
+
layout = 'desktop',
|
|
124
|
+
style,
|
|
125
|
+
rootProps,
|
|
87
126
|
}: PanelTabStripProps) {
|
|
88
127
|
const stripRef = useRef<HTMLDivElement | null>(null);
|
|
89
128
|
const chipRefs = useRef(new Map<string, HTMLElement>());
|
|
@@ -188,19 +227,34 @@ export function PanelTabStrip({
|
|
|
188
227
|
|
|
189
228
|
return (
|
|
190
229
|
<div
|
|
191
|
-
|
|
230
|
+
// The ROW is the top navbar's, stated once in `control-plate.ts`:
|
|
231
|
+
// `h-10` beside a desktop column, the phone header's 56px plus the notch
|
|
232
|
+
// when this strip IS the title bar. Height, inset and control box come
|
|
233
|
+
// from that one module so the strip cannot drift to a third density —
|
|
234
|
+
// measured misalignment before this: strip 40px against a 56px phone
|
|
235
|
+
// header, controls 28px against 36px, `+` centre 26 against 30.
|
|
236
|
+
className={`flex flex-none items-center ${CONTROL_ROW_GAP} border-b border-ink/10 bg-canvas/60 select-none ${
|
|
237
|
+
CONTROL_ROW_HEIGHT[layout]
|
|
238
|
+
} ${CONTROL_ROW_INSET[layout]} ${dragRegion ? 'titlebar-drag-region' : ''}`}
|
|
239
|
+
style={style}
|
|
192
240
|
role="tablist"
|
|
193
241
|
aria-label="Panel views"
|
|
194
242
|
onKeyDown={onKeyDown}
|
|
243
|
+
{...rootProps}
|
|
195
244
|
>
|
|
245
|
+
{/* The add control and the trailing actions are OUTSIDE the scroller, so
|
|
246
|
+
a strip full of chips can never scroll them away: the row is
|
|
247
|
+
`[+] [ chips … → ] [actions]` and only the middle flexes. */}
|
|
196
248
|
<button
|
|
197
249
|
type="button"
|
|
198
250
|
onClick={onAdd}
|
|
199
251
|
title="Tambah tab"
|
|
200
252
|
aria-label="Tambah tab"
|
|
201
|
-
className=
|
|
253
|
+
className={`${CONTROL_BOX[layout]} flex-none cursor-pointer rounded-md text-ink/50 transition-colors hover:bg-ink/5 hover:text-ink ${
|
|
254
|
+
dragRegion ? 'titlebar-no-drag' : ''
|
|
255
|
+
}`}
|
|
202
256
|
>
|
|
203
|
-
<Plus size={
|
|
257
|
+
<Plus size={CONTROL_GLYPH_PX[layout]} />
|
|
204
258
|
</button>
|
|
205
259
|
|
|
206
260
|
<div
|
|
@@ -211,105 +265,38 @@ export function PanelTabStrip({
|
|
|
211
265
|
const panel = panels.get(id);
|
|
212
266
|
if (!panel) return null;
|
|
213
267
|
const isActive = !home && id === active;
|
|
214
|
-
const closable = id !== pinned;
|
|
215
|
-
const label = panel.label || panel.title;
|
|
216
268
|
return (
|
|
217
|
-
<
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
onDragOver={(event) => {
|
|
240
|
-
if (!reorderable || !closable) return;
|
|
241
|
-
reorder.onDragOver(event, id);
|
|
242
|
-
}}
|
|
243
|
-
onDrop={(event) => {
|
|
244
|
-
if (!reorderable) return;
|
|
245
|
-
reorder.onDrop(event);
|
|
246
|
-
}}
|
|
247
|
-
onDragEnd={() => {
|
|
248
|
-
if (!reorderable) return;
|
|
249
|
-
reorder.onDragEnd();
|
|
250
|
-
}}
|
|
251
|
-
className={`group relative flex h-7 min-w-[80px] max-w-[170px] flex-none items-center rounded-md transition-colors ${
|
|
252
|
-
isActive ? 'bg-ink/[0.08] text-ink' : 'text-ink/60 hover:bg-ink/5 hover:text-ink'
|
|
253
|
-
} ${reorderable && closable ? 'cursor-grab active:cursor-grabbing' : ''} ${
|
|
254
|
-
reorder.draggingId === id ? 'opacity-40' : ''
|
|
255
|
-
}`}
|
|
256
|
-
>
|
|
257
|
-
<button
|
|
258
|
-
type="button"
|
|
259
|
-
tabIndex={-1}
|
|
260
|
-
onClick={() => onSelect(id)}
|
|
261
|
-
title={panel.title}
|
|
262
|
-
aria-label={panel.title}
|
|
263
|
-
className="flex h-full min-w-0 flex-1 cursor-pointer items-center gap-1.5 py-1 pr-6 pl-2 text-left"
|
|
264
|
-
>
|
|
265
|
-
<PanelMark
|
|
266
|
-
className="inline-flex flex-none"
|
|
267
|
-
panelId={panel.id}
|
|
268
|
-
builtin={panel.builtin}
|
|
269
|
-
icon={panel.builtin ? panel.icon : undefined}
|
|
270
|
-
name={panel.builtin ? panel.label : panel.name}
|
|
271
|
-
{...(panel.iconUrl ? { iconUrl: panel.iconUrl } : {})}
|
|
272
|
-
{...(panel.color ? { color: panel.color } : {})}
|
|
273
|
-
size={PANEL_MARK_SIZE}
|
|
274
|
-
/>
|
|
275
|
-
<span className="truncate text-[11px] font-medium">{label}</span>
|
|
276
|
-
</button>
|
|
277
|
-
{closable ? (
|
|
278
|
-
<button
|
|
279
|
-
type="button"
|
|
280
|
-
tabIndex={-1}
|
|
281
|
-
onClick={() => onClose(id)}
|
|
282
|
-
title={`Tutup ${label}`}
|
|
283
|
-
aria-label={`Tutup tab ${label}`}
|
|
284
|
-
/* Always visible, on every chip. A close control revealed only
|
|
285
|
-
on hover is a control that does not exist on a touch
|
|
286
|
-
screen and cannot be found by a reader scanning the strip;
|
|
287
|
-
it also made the ACTIVE chip look like the only closable
|
|
288
|
-
one, which is the report this fixes. The tint still dims
|
|
289
|
-
a background tab so the strip reads in one pass. */
|
|
290
|
-
className={`absolute top-1 right-1 flex h-5 w-5 cursor-pointer items-center justify-center rounded transition-colors hover:bg-ink/10 hover:text-ink ${
|
|
291
|
-
isActive ? 'text-ink/45' : 'text-ink/30'
|
|
292
|
-
}`}
|
|
293
|
-
>
|
|
294
|
-
<X size={11} />
|
|
295
|
-
</button>
|
|
296
|
-
) : null}
|
|
297
|
-
</div>
|
|
298
|
-
{/* The separator belongs to the gap, not the chip: a chip that
|
|
299
|
-
painted its own border would shrink its label by 1px on hover
|
|
300
|
-
and its neighbour's by another. */}
|
|
301
|
-
<span
|
|
302
|
-
aria-hidden="true"
|
|
303
|
-
className={`mx-0.5 h-3.5 w-px bg-ink/15 ${
|
|
304
|
-
isActive || (!home && tabs[tabs.indexOf(id) + 1] === active) ? 'opacity-0' : 'opacity-100'
|
|
305
|
-
}`}
|
|
306
|
-
/>
|
|
307
|
-
</div>
|
|
269
|
+
<TabChip
|
|
270
|
+
key={id}
|
|
271
|
+
panel={panel}
|
|
272
|
+
isActive={isActive}
|
|
273
|
+
parentHome={home}
|
|
274
|
+
nextIsActive={!home && tabs[tabs.indexOf(id) + 1] === active}
|
|
275
|
+
closable={id !== pinned}
|
|
276
|
+
reorderable={reorderable}
|
|
277
|
+
dragging={reorder.draggingId === id}
|
|
278
|
+
noDrag={dragRegion}
|
|
279
|
+
layout={layout}
|
|
280
|
+
chipRef={(element) => {
|
|
281
|
+
if (element) chipRefs.current.set(id, element);
|
|
282
|
+
else chipRefs.current.delete(id);
|
|
283
|
+
}}
|
|
284
|
+
onSelect={() => onSelect(id)}
|
|
285
|
+
onClose={() => onClose(id)}
|
|
286
|
+
onDragStart={(event) => reorder.onDragStart(event, id)}
|
|
287
|
+
onDragOver={(event) => reorder.onDragOver(event, id)}
|
|
288
|
+
onDrop={(event) => reorder.onDrop(event)}
|
|
289
|
+
onDragEnd={() => reorder.onDragEnd()}
|
|
290
|
+
/>
|
|
308
291
|
);
|
|
309
292
|
})}
|
|
310
293
|
</div>
|
|
311
294
|
|
|
312
|
-
{actions ?
|
|
295
|
+
{actions ? (
|
|
296
|
+
<div className={`flex flex-none items-center gap-0.5 pl-1 ${dragRegion ? 'titlebar-no-drag' : ''}`}>
|
|
297
|
+
{actions}
|
|
298
|
+
</div>
|
|
299
|
+
) : null}
|
|
313
300
|
</div>
|
|
314
301
|
);
|
|
315
302
|
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
import type { ReactNode } from 'preact/compat';
|
|
30
30
|
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
31
31
|
import type { PanelTabsHandle } from '@/client/hooks/workspace/panel-tabs';
|
|
32
|
-
import { PanelTabStrip } from '@/client/components/workspace/panel-tabs/TabStrip';
|
|
32
|
+
import { PanelTabStrip, type PanelTabStripProps } from '@/client/components/workspace/panel-tabs/TabStrip';
|
|
33
33
|
import { PanelHome } from '@/client/components/workspace/panel-tabs/Home';
|
|
34
34
|
|
|
35
35
|
interface PanelTabsColumnProps {
|
|
@@ -48,6 +48,12 @@ interface PanelTabsColumnProps {
|
|
|
48
48
|
children: ReactNode;
|
|
49
49
|
/** Column actions in the strip's trailing edge (refresh, collapse). */
|
|
50
50
|
actions?: ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Strip chrome the CALLER owns, because only it knows whether the strip is the
|
|
53
|
+
* window's own title bar. The phone's right drawer passes its insets and the
|
|
54
|
+
* drag region here; a desktop column passes nothing and keeps its defaults.
|
|
55
|
+
*/
|
|
56
|
+
stripProps?: Pick<PanelTabStripProps, 'dragRegion' | 'layout' | 'style' | 'rootProps'>;
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
export function PanelTabsColumn({
|
|
@@ -57,6 +63,7 @@ export function PanelTabsColumn({
|
|
|
57
63
|
homeTitle,
|
|
58
64
|
children,
|
|
59
65
|
actions,
|
|
66
|
+
stripProps,
|
|
60
67
|
}: PanelTabsColumnProps) {
|
|
61
68
|
const byId = new Map(catalog.map((panel) => [panel.id, panel]));
|
|
62
69
|
const openIds = new Set(tabs.tabs);
|
|
@@ -75,6 +82,7 @@ export function PanelTabsColumn({
|
|
|
75
82
|
onClose={tabs.close}
|
|
76
83
|
onReorder={tabs.setOrder}
|
|
77
84
|
{...(actions !== undefined ? { actions } : {})}
|
|
85
|
+
{...stripProps}
|
|
78
86
|
/>
|
|
79
87
|
<div className="relative min-h-0 flex-1">
|
|
80
88
|
<div
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The one reader/writer of the PHONE's right-drawer navigation style.
|
|
8
|
+
*
|
|
9
|
+
* The drawer is mounted only while it is a screen, so the value has to survive
|
|
10
|
+
* its own unmount — `appSettings` is a boot-time prop and would only show a new
|
|
11
|
+
* style after a reload. The settings modal calls `applyMobileRightPanelNav` when
|
|
12
|
+
* the value moves, which announces the event; `useMobileRightPanelNav` is the
|
|
13
|
+
* one subscriber, in the drawer.
|
|
14
|
+
*
|
|
15
|
+
* Deliberately NOT folded into `applyPanelNav(side, style)`: that event carries
|
|
16
|
+
* a desktop SIDE, and a phone change must not repaint a desktop column into a
|
|
17
|
+
* tree it was not asked for.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { useState } from 'preact/hooks';
|
|
21
|
+
import { readKabmoSetting } from '@/shared/lib/settings/client';
|
|
22
|
+
import { useKabmoEvent } from '@/client/hooks/ui/window-event';
|
|
23
|
+
import type { SettingsState } from '@/shared/types';
|
|
24
|
+
import {
|
|
25
|
+
MOBILE_RIGHT_PANEL_NAV_KEY,
|
|
26
|
+
resolveMobileRightPanelNav,
|
|
27
|
+
type MobileRightPanelNav,
|
|
28
|
+
} from '@/shared/lib/workspace/panel-nav';
|
|
29
|
+
|
|
30
|
+
/** The key, checked against the settings field it must match to persist at all. */
|
|
31
|
+
export const MOBILE_RIGHT_PANEL_NAV_SETTING_KEY =
|
|
32
|
+
MOBILE_RIGHT_PANEL_NAV_KEY satisfies keyof SettingsState;
|
|
33
|
+
|
|
34
|
+
/** Window event carrying the resolved style as `detail`. */
|
|
35
|
+
export const MOBILE_RIGHT_PANEL_NAV_CHANGED_EVENT = 'omp:mobile-right-panel-nav-changed';
|
|
36
|
+
|
|
37
|
+
/** The stored style, resolved against what this build can draw. */
|
|
38
|
+
export function currentMobileRightPanelNav(
|
|
39
|
+
appSettings?: Record<string, any>,
|
|
40
|
+
): MobileRightPanelNav {
|
|
41
|
+
return resolveMobileRightPanelNav(
|
|
42
|
+
readKabmoSetting<unknown>(MOBILE_RIGHT_PANEL_NAV_SETTING_KEY, appSettings),
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Announce a change; the persisted copy is the settings modal's own write. */
|
|
47
|
+
export function applyMobileRightPanelNav(style: unknown): void {
|
|
48
|
+
if (typeof window === 'undefined') return;
|
|
49
|
+
window.dispatchEvent(
|
|
50
|
+
new CustomEvent(MOBILE_RIGHT_PANEL_NAV_CHANGED_EVENT, {
|
|
51
|
+
detail: resolveMobileRightPanelNav(style),
|
|
52
|
+
}),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The style the drawer should draw, kept live across settings edits. */
|
|
57
|
+
export function useMobileRightPanelNav(): MobileRightPanelNav {
|
|
58
|
+
const [style, setStyle] = useState<MobileRightPanelNav>(() => currentMobileRightPanelNav());
|
|
59
|
+
useKabmoEvent(MOBILE_RIGHT_PANEL_NAV_CHANGED_EVENT, (event) => {
|
|
60
|
+
setStyle(resolveMobileRightPanelNav((event as CustomEvent<unknown>).detail));
|
|
61
|
+
});
|
|
62
|
+
return style;
|
|
63
|
+
}
|
|
@@ -28,9 +28,15 @@ import {
|
|
|
28
28
|
applyPanelNav,
|
|
29
29
|
currentPanelNav,
|
|
30
30
|
} from '@/client/hooks/workspace/panel-nav';
|
|
31
|
+
import {
|
|
32
|
+
MOBILE_RIGHT_PANEL_NAV_CHANGED_EVENT,
|
|
33
|
+
MOBILE_RIGHT_PANEL_NAV_SETTING_KEY,
|
|
34
|
+
applyMobileRightPanelNav,
|
|
35
|
+
currentMobileRightPanelNav,
|
|
36
|
+
} from '@/client/hooks/workspace/mobile-right-panel-nav';
|
|
31
37
|
|
|
32
38
|
/** The events dispatched while the current test ran; `detail` may be absent. */
|
|
33
|
-
const dispatched:
|
|
39
|
+
const dispatched: unknown[] = [];
|
|
34
40
|
|
|
35
41
|
// `applyPanelNav` bails out in a process with no window; give this file one so
|
|
36
42
|
// the dispatch path is the real one, and stand in for the settings write.
|
|
@@ -100,3 +106,35 @@ describe('applyPanelNav', () => {
|
|
|
100
106
|
]);
|
|
101
107
|
});
|
|
102
108
|
});
|
|
109
|
+
|
|
110
|
+
describe('the phone drawer setting', () => {
|
|
111
|
+
afterEach(() => dispatched.length = 0);
|
|
112
|
+
|
|
113
|
+
test('reads its own key, so a desktop column cannot answer for it', () => {
|
|
114
|
+
primeKabmoSettings({ leftPanelNav: 'tabs', rightPanelNav: 'tabs', mobileRightPanelNav: 'classic' });
|
|
115
|
+
expect(currentMobileRightPanelNav()).toBe('classic');
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
test('an unset or unreadable value is the shipped default', () => {
|
|
119
|
+
primeKabmoSettings({ mobileRightPanelNav: 'from-a-newer-build' });
|
|
120
|
+
expect(currentMobileRightPanelNav()).toBe('classic');
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
test('the key matches the settings field it persists under', () => {
|
|
124
|
+
expect(MOBILE_RIGHT_PANEL_NAV_SETTING_KEY).toBe('mobileRightPanelNav');
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
test('it announces on its OWN event, not the desktop one', () => {
|
|
128
|
+
applyMobileRightPanelNav('tabs');
|
|
129
|
+
// Its detail is the resolved STYLE, not `{side, style}`: the phone has one
|
|
130
|
+
// drawer, so there is no side for the listener to compare.
|
|
131
|
+
expect(dispatched).toEqual(['tabs']);
|
|
132
|
+
expect(MOBILE_RIGHT_PANEL_NAV_CHANGED_EVENT).toBe('omp:mobile-right-panel-nav-changed');
|
|
133
|
+
expect(MOBILE_RIGHT_PANEL_NAV_CHANGED_EVENT).not.toBe(PANEL_NAV_CHANGED_EVENT);
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
test('an unreadable value is announced as the default, never as itself', () => {
|
|
137
|
+
applyMobileRightPanelNav('whatever');
|
|
138
|
+
expect(dispatched).toEqual(['classic']);
|
|
139
|
+
});
|
|
140
|
+
});
|
|
@@ -78,6 +78,39 @@ export const ACTIVITY_BAR_WIDTH_PX = 44;
|
|
|
78
78
|
/** The control box's width in px — the `w-7`/`w-9` in `CONTROL_BOX`. */
|
|
79
79
|
export const CONTROL_BOX_PX: Record<ControlLayout, number> = { desktop: 28, mobile: 36 };
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The height of a chrome row, per layout — the TOP NAVBAR's own row.
|
|
83
|
+
*
|
|
84
|
+
* A panel column's tab strip is that navbar's PEER, not a second band beside
|
|
85
|
+
* it: on the desktop it sits under the navbar at `h-10`, and on the phone the
|
|
86
|
+
* strip IS the title bar, so it takes the header's 56px plus the notch. Stating
|
|
87
|
+
* both here is what stops the strip inventing a third height — it has been 38px,
|
|
88
|
+
* then 40px on a phone whose own header was 56px, which is exactly the "not
|
|
89
|
+
* aligned with the top navbar" that a reader sees as a broken edge.
|
|
90
|
+
*
|
|
91
|
+
* The notch is height AND padding on the phone, because `box-sizing` is
|
|
92
|
+
* border-box globally: height alone leaves the content pinned to y=0 (chips
|
|
93
|
+
* under the status bar), padding alone collapses the content box.
|
|
94
|
+
*/
|
|
95
|
+
export const CONTROL_ROW_HEIGHT: Record<ControlLayout, string> = {
|
|
96
|
+
desktop: 'h-10',
|
|
97
|
+
mobile: 'h-[calc(3.5rem+env(safe-area-inset-top,0px))] pt-[env(safe-area-inset-top,0px)]',
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The horizontal inset of that row.
|
|
102
|
+
*
|
|
103
|
+
* A phone header is `px-3` and its controls are 36px boxes, so the outermost
|
|
104
|
+
* control's centre is 30px from the edge. A strip that insets 6px instead puts
|
|
105
|
+
* its own control's centre at 26px — the 4px misalignment measured between the
|
|
106
|
+
* chat header's hamburger and the drawer's add control. The desktop columns are
|
|
107
|
+
* interior edges with no shared alignment target, so they keep the dense 6px.
|
|
108
|
+
*/
|
|
109
|
+
export const CONTROL_ROW_INSET: Record<ControlLayout, string> = {
|
|
110
|
+
desktop: 'px-1.5',
|
|
111
|
+
mobile: 'px-3',
|
|
112
|
+
};
|
|
113
|
+
|
|
81
114
|
/**
|
|
82
115
|
* The right padding that centres a `lastControlPx`-wide control on the activity
|
|
83
116
|
* rail below it: `(rail - control) / 2`.
|
|
@@ -64,7 +64,9 @@ describe('window-drag contract', () => {
|
|
|
64
64
|
'src/client/components/layout/session-sidebar/Header.tsx',
|
|
65
65
|
'src/client/components/mobile/mobile-main-view/Header.tsx',
|
|
66
66
|
'src/client/components/mobile/mobile-session-sidebar/Header.tsx',
|
|
67
|
-
'
|
|
67
|
+
// The right drawer's chrome moved out of `RightSidebar` when that file
|
|
68
|
+
// crossed the line ceiling; the window contract lives with the chrome.
|
|
69
|
+
'src/client/components/mobile/mobile-right-sidebar/Chrome.tsx',
|
|
68
70
|
]) {
|
|
69
71
|
const file = source(path);
|
|
70
72
|
expect(file).toContain('dragRegionProps()');
|
|
@@ -85,7 +87,7 @@ describe('window-drag contract', () => {
|
|
|
85
87
|
for (const path of [
|
|
86
88
|
'src/client/components/mobile/mobile-main-view/Header.tsx',
|
|
87
89
|
'src/client/components/mobile/mobile-session-sidebar/Header.tsx',
|
|
88
|
-
'src/client/components/mobile/
|
|
90
|
+
'src/client/components/mobile/mobile-right-sidebar/Chrome.tsx',
|
|
89
91
|
]) {
|
|
90
92
|
expect(source(path)).toContain('titlebarInsetLeft(');
|
|
91
93
|
}
|
|
@@ -98,7 +100,7 @@ describe('window-drag contract', () => {
|
|
|
98
100
|
*/
|
|
99
101
|
test('a drag-region header marks its controls no-drag', () => {
|
|
100
102
|
const pairs: Array<[string, string]> = [
|
|
101
|
-
['src/client/components/mobile/
|
|
103
|
+
['src/client/components/mobile/mobile-right-sidebar/Chrome.tsx', 'titlebar-no-drag'],
|
|
102
104
|
['src/client/components/common/header-controls/index.tsx', 'titlebar-no-drag'],
|
|
103
105
|
];
|
|
104
106
|
for (const [path, marker] of pairs) expect(source(path)).toContain(marker);
|
|
@@ -23,7 +23,7 @@ import { DEFAULT_THEME_ID } from '@/shared/lib/theme/catalog';
|
|
|
23
23
|
import { DEFAULT_CHAT_WIDTH_MODE, DEFAULT_CUSTOM_CHAT_COLUMN_WIDTH } from '@/shared/lib/chat/timeline/width-mode';
|
|
24
24
|
import { DEFAULT_TOOL_RENDER_MODE } from '@/shared/lib/chat/timeline/tool-render-mode';
|
|
25
25
|
import { DEFAULT_SIDEBAR_STYLE } from '@/shared/lib/workspace/sidebar-style';
|
|
26
|
-
import { DEFAULT_PANEL_NAV } from '@/shared/lib/workspace/panel-nav';
|
|
26
|
+
import { DEFAULT_MOBILE_RIGHT_PANEL_NAV, DEFAULT_PANEL_NAV } from '@/shared/lib/workspace/panel-nav';
|
|
27
27
|
import { DEFAULT_COMPOSER_STYLE } from '@/shared/lib/chat/composer/style';
|
|
28
28
|
import { DEFAULT_SURFACE_STYLE } from '@/shared/lib/theme/surface-style';
|
|
29
29
|
import { DEFAULT_BORDER_STYLE } from '@/shared/lib/theme/border-style';
|
|
@@ -59,6 +59,7 @@ export const DEFAULT_SETTINGS = {
|
|
|
59
59
|
sidebarStyle: DEFAULT_SIDEBAR_STYLE,
|
|
60
60
|
leftPanelNav: DEFAULT_PANEL_NAV,
|
|
61
61
|
rightPanelNav: DEFAULT_PANEL_NAV,
|
|
62
|
+
mobileRightPanelNav: DEFAULT_MOBILE_RIGHT_PANEL_NAV,
|
|
62
63
|
composerStyle: DEFAULT_COMPOSER_STYLE,
|
|
63
64
|
surfaceStyle: DEFAULT_SURFACE_STYLE,
|
|
64
65
|
borderStyle: DEFAULT_BORDER_STYLE,
|
|
@@ -22,12 +22,17 @@
|
|
|
22
22
|
|
|
23
23
|
import { describe, expect, test } from 'bun:test';
|
|
24
24
|
import {
|
|
25
|
+
DEFAULT_MOBILE_RIGHT_PANEL_NAV,
|
|
25
26
|
DEFAULT_PANEL_NAV,
|
|
27
|
+
MOBILE_RIGHT_PANEL_NAVS,
|
|
28
|
+
MOBILE_RIGHT_PANEL_NAV_KEY,
|
|
26
29
|
PANEL_NAV_COPY,
|
|
27
30
|
PANEL_NAV_SETTING_KEYS,
|
|
28
31
|
PANEL_NAV_STYLES,
|
|
29
32
|
isPanelNavSide,
|
|
30
33
|
isPanelNavStyle,
|
|
34
|
+
isMobileRightPanelNav,
|
|
35
|
+
resolveMobileRightPanelNav,
|
|
31
36
|
resolvePanelNav,
|
|
32
37
|
} from '@/shared/lib/workspace/panel-nav';
|
|
33
38
|
import {
|
|
@@ -160,3 +165,34 @@ describe('withPinnedTab', () => {
|
|
|
160
165
|
expect(withPinnedTab(['git', 'sessions'], 'sessions')).toEqual(['sessions', 'git']);
|
|
161
166
|
});
|
|
162
167
|
});
|
|
168
|
+
|
|
169
|
+
describe('the phone drawer is its own axis', () => {
|
|
170
|
+
test('the shipped default is classic, so an upgrade rearranges nothing', () => {
|
|
171
|
+
expect(DEFAULT_MOBILE_RIGHT_PANEL_NAV).toBe('classic');
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
test('both styles resolve to themselves', () => {
|
|
175
|
+
for (const style of MOBILE_RIGHT_PANEL_NAVS) {
|
|
176
|
+
expect(resolveMobileRightPanelNav(style)).toBe(style);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
test('an unknown value falls back to classic, not to a renderer that is missing', () => {
|
|
181
|
+
for (const value of ['rail', '', 'Classic', null, undefined, 0, {}, []]) {
|
|
182
|
+
expect(resolveMobileRightPanelNav(value)).toBe(DEFAULT_MOBILE_RIGHT_PANEL_NAV);
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
test('the guard agrees with the resolver and refuses the desktop-only value', () => {
|
|
187
|
+
expect(isMobileRightPanelNav('classic')).toBe(true);
|
|
188
|
+
expect(isMobileRightPanelNav('tabs')).toBe(true);
|
|
189
|
+
// `rail` is the desktop's word; a phone has no rail to draw.
|
|
190
|
+
expect(isMobileRightPanelNav('rail')).toBe(false);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
test('the key is its own, so the phone cannot overwrite a desktop column', () => {
|
|
194
|
+
expect(MOBILE_RIGHT_PANEL_NAV_KEY).toBe('mobileRightPanelNav');
|
|
195
|
+
expect(PANEL_NAV_SETTING_KEYS.left).not.toBe(MOBILE_RIGHT_PANEL_NAV_KEY);
|
|
196
|
+
expect(PANEL_NAV_SETTING_KEYS.right).not.toBe(MOBILE_RIGHT_PANEL_NAV_KEY);
|
|
197
|
+
});
|
|
198
|
+
});
|
|
@@ -103,3 +103,46 @@ export const PANEL_NAV_SETTING_KEYS: Record<PanelNavSide, 'leftPanelNav' | 'righ
|
|
|
103
103
|
left: 'leftPanelNav',
|
|
104
104
|
right: 'rightPanelNav',
|
|
105
105
|
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* How the PHONE's right drawer navigates its panel views.
|
|
109
|
+
*
|
|
110
|
+
* A separate axis from the desktop columns because a phone has no rail: there
|
|
111
|
+
* is nowhere to put a 44px strip of marks beside a drawer that already IS the
|
|
112
|
+
* screen. The two answers are therefore about the DRAWER's own chrome:
|
|
113
|
+
*
|
|
114
|
+
* - `classic` — the chip strip the drawer ships today: every view is a chip
|
|
115
|
+
* and tapping one swaps the body. It has no memory of what is open, so the
|
|
116
|
+
* strip is the whole catalog every time.
|
|
117
|
+
* - `tabs` — the desktop's working set on a phone: the strip holds only the
|
|
118
|
+
* views the user opened, a home page draws the catalog as cards, and the
|
|
119
|
+
* drawer reopens on what was open rather than on the whole list.
|
|
120
|
+
*
|
|
121
|
+
* **`classic` is the default**, like the desktop's `rail`: an upgrade
|
|
122
|
+
* rearranges nothing, and a user who wants the drawer to behave like the
|
|
123
|
+
* desktop column opts in.
|
|
124
|
+
*/
|
|
125
|
+
export type MobileRightPanelNav = 'classic' | 'tabs';
|
|
126
|
+
|
|
127
|
+
/** Every mobile style, in the order the settings control lists them. */
|
|
128
|
+
export const MOBILE_RIGHT_PANEL_NAVS = ['classic', 'tabs'] as const;
|
|
129
|
+
|
|
130
|
+
export const DEFAULT_MOBILE_RIGHT_PANEL_NAV: MobileRightPanelNav = 'classic';
|
|
131
|
+
|
|
132
|
+
export function isMobileRightPanelNav(value: unknown): value is MobileRightPanelNav {
|
|
133
|
+
return value === 'classic' || value === 'tabs';
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** A stored value this build cannot draw resolves to the default. */
|
|
137
|
+
export function resolveMobileRightPanelNav(value: unknown): MobileRightPanelNav {
|
|
138
|
+
return isMobileRightPanelNav(value) ? value : DEFAULT_MOBILE_RIGHT_PANEL_NAV;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The `app_settings` key the phone's choice lives under.
|
|
143
|
+
*
|
|
144
|
+
* `satisfies keyof SettingsState` at the reader, like every other key module:
|
|
145
|
+
* the key and the field name must be the same string or the setting silently
|
|
146
|
+
* never persists.
|
|
147
|
+
*/
|
|
148
|
+
export const MOBILE_RIGHT_PANEL_NAV_KEY = 'mobileRightPanelNav' as const;
|
|
@@ -2,7 +2,7 @@ import type { ThemeId } from '@/shared/lib/theme/catalog';
|
|
|
2
2
|
import type { ChatWidthMode } from '@/shared/lib/chat/timeline/width-mode';
|
|
3
3
|
import type { ToolRenderMode } from '@/shared/lib/chat/timeline/tool-render-mode';
|
|
4
4
|
import type { SidebarStyle } from '@/shared/lib/workspace/sidebar-style';
|
|
5
|
-
import type { PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
5
|
+
import type { MobileRightPanelNav, PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
6
6
|
import type { ComposerStyle } from '@/shared/lib/chat/composer/style';
|
|
7
7
|
import type { SurfaceStyle } from '@/shared/lib/theme/surface-style';
|
|
8
8
|
import type { BorderStyle } from '@/shared/lib/theme/border-style';
|
|
@@ -208,6 +208,14 @@ export interface SettingsState {
|
|
|
208
208
|
* the other. Desktop-only, like its left counterpart.
|
|
209
209
|
*/
|
|
210
210
|
rightPanelNav: PanelNavStyle;
|
|
211
|
+
/**
|
|
212
|
+
* How the PHONE's right drawer navigates its views (`classic` | `tabs`).
|
|
213
|
+
*
|
|
214
|
+
* Its own axis, not a reuse of the desktop values: a phone has no rail to put
|
|
215
|
+
* beside a drawer that already is the screen, so the choice is between "every
|
|
216
|
+
* view is a chip" and "the strip holds what is open, over a home page".
|
|
217
|
+
*/
|
|
218
|
+
mobileRightPanelNav: MobileRightPanelNav;
|
|
211
219
|
/**
|
|
212
220
|
* How the chat composer is drawn (`classic` | `calm` | `console` | `stage`).
|
|
213
221
|
* A PRESENTATION choice over one composer: every style renders the same
|