@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
|
@@ -31,9 +31,12 @@
|
|
|
31
31
|
import type { ComponentType } from 'preact/compat';
|
|
32
32
|
import type { SettingsState } from '@/shared/types';
|
|
33
33
|
import {
|
|
34
|
+
MOBILE_RIGHT_PANEL_NAVS,
|
|
34
35
|
PANEL_NAV_COPY,
|
|
35
36
|
PANEL_NAV_STYLES,
|
|
37
|
+
resolveMobileRightPanelNav,
|
|
36
38
|
resolvePanelNav,
|
|
39
|
+
type MobileRightPanelNav,
|
|
37
40
|
type PanelNavStyle,
|
|
38
41
|
} from '@/shared/lib/workspace/panel-nav';
|
|
39
42
|
|
|
@@ -84,6 +87,110 @@ const MINIATURES: Record<PanelNavStyle, ComponentType> = {
|
|
|
84
87
|
tabs: TabsMiniature,
|
|
85
88
|
};
|
|
86
89
|
|
|
90
|
+
/**
|
|
91
|
+
* The phone's copy, kept apart from the desktop table: the words "rail" and
|
|
92
|
+
* "column" would be wrong for a drawer that has neither.
|
|
93
|
+
*/
|
|
94
|
+
const MOBILE_COPY: Record<MobileRightPanelNav, { label: string; description: string; caption: string }> = {
|
|
95
|
+
classic: {
|
|
96
|
+
label: 'Classic',
|
|
97
|
+
description: 'The strip lists every view; tapping one swaps the drawer body.',
|
|
98
|
+
caption: 'All views · one tap',
|
|
99
|
+
},
|
|
100
|
+
tabs: {
|
|
101
|
+
label: 'Tabs',
|
|
102
|
+
description:
|
|
103
|
+
'The strip holds only the views you opened, over a home page that lists them all. The drawer reopens where you left it.',
|
|
104
|
+
caption: 'Opened views · home page',
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/** A drawer of chips over a long list — the phone today. */
|
|
109
|
+
function ClassicDrawerMiniature() {
|
|
110
|
+
return (
|
|
111
|
+
<span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
|
|
112
|
+
<span className="flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1">
|
|
113
|
+
<span className="h-[6px] w-[16%] rounded-sm bg-ink/70" />
|
|
114
|
+
<span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
|
|
115
|
+
<span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
|
|
116
|
+
<span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
|
|
117
|
+
</span>
|
|
118
|
+
<span className="h-[3px] w-[62%] rounded-full bg-ink/25" />
|
|
119
|
+
<span className="h-[3px] w-[54%] rounded-full bg-ink/25" />
|
|
120
|
+
<span className="h-[3px] w-[40%] rounded-full bg-ink/20" />
|
|
121
|
+
</span>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** A short strip over a card grid — the drawer with a home page. */
|
|
126
|
+
function TabsDrawerMiniature() {
|
|
127
|
+
return (
|
|
128
|
+
<span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
|
|
129
|
+
<span className="flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1">
|
|
130
|
+
<span className="h-[6px] w-[6px] rounded-sm border border-ink/20" />
|
|
131
|
+
<span className="h-[6px] w-[24%] rounded-sm bg-ink/70" />
|
|
132
|
+
<span className="h-[6px] w-[20%] rounded-sm border border-ink/20" />
|
|
133
|
+
</span>
|
|
134
|
+
<span className="flex gap-1">
|
|
135
|
+
<span className="h-[16px] w-[24%] rounded border border-ink/15" />
|
|
136
|
+
<span className="h-[16px] w-[24%] rounded border border-ink/15" />
|
|
137
|
+
<span className="h-[16px] w-[24%] rounded border border-ink/15" />
|
|
138
|
+
</span>
|
|
139
|
+
</span>
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const MOBILE_MINIATURES: Record<MobileRightPanelNav, ComponentType> = {
|
|
144
|
+
classic: ClassicDrawerMiniature,
|
|
145
|
+
tabs: TabsDrawerMiniature,
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
function MobileNavChoice({
|
|
149
|
+
current,
|
|
150
|
+
onPick,
|
|
151
|
+
}: {
|
|
152
|
+
current: MobileRightPanelNav;
|
|
153
|
+
onPick: (style: MobileRightPanelNav) => void;
|
|
154
|
+
}) {
|
|
155
|
+
return (
|
|
156
|
+
<div className="grid grid-cols-1 gap-2.5 sm:grid-cols-2" role="group" aria-label="Phone right drawer">
|
|
157
|
+
{MOBILE_RIGHT_PANEL_NAVS.map((style) => {
|
|
158
|
+
const copy = MOBILE_COPY[style];
|
|
159
|
+
const isSelected = style === current;
|
|
160
|
+
const Miniature = MOBILE_MINIATURES[style];
|
|
161
|
+
return (
|
|
162
|
+
<button
|
|
163
|
+
key={style}
|
|
164
|
+
type="button"
|
|
165
|
+
onClick={() => onPick(style)}
|
|
166
|
+
aria-pressed={isSelected}
|
|
167
|
+
aria-label={`${copy.label} — ${copy.description}`}
|
|
168
|
+
className={`flex cursor-pointer flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors ${
|
|
169
|
+
isSelected
|
|
170
|
+
? 'border-ink/40 bg-ink/5'
|
|
171
|
+
: 'border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5'
|
|
172
|
+
}`}
|
|
173
|
+
>
|
|
174
|
+
<span className="block h-[54px]">
|
|
175
|
+
<Miniature />
|
|
176
|
+
</span>
|
|
177
|
+
<span className="flex items-center gap-1.5">
|
|
178
|
+
<span className="text-xs font-semibold text-ink">{copy.label}</span>
|
|
179
|
+
<span className="font-mono text-[10px] text-ink/40">{copy.caption}</span>
|
|
180
|
+
{isSelected && (
|
|
181
|
+
<span className="ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper">
|
|
182
|
+
active
|
|
183
|
+
</span>
|
|
184
|
+
)}
|
|
185
|
+
</span>
|
|
186
|
+
<span className="text-[11px] leading-relaxed text-ink/60">{copy.description}</span>
|
|
187
|
+
</button>
|
|
188
|
+
);
|
|
189
|
+
})}
|
|
190
|
+
</div>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
87
194
|
function PanelNavChoice({
|
|
88
195
|
current,
|
|
89
196
|
onPick,
|
|
@@ -136,8 +243,8 @@ export function PanelNavSection({ settings, onUpdate }: PanelNavSectionProps) {
|
|
|
136
243
|
<div>
|
|
137
244
|
<h4 className="text-sm font-semibold text-ink">Panel navigation</h4>
|
|
138
245
|
<p className="mt-0.5 text-[11px] text-ink/60">
|
|
139
|
-
How each
|
|
140
|
-
|
|
246
|
+
How each panel column is navigated. Everything is chosen independently: the desktop
|
|
247
|
+
columns do not set each other, and the phone's drawer has its own answer.
|
|
141
248
|
</p>
|
|
142
249
|
</div>
|
|
143
250
|
|
|
@@ -161,6 +268,20 @@ export function PanelNavSection({ settings, onUpdate }: PanelNavSectionProps) {
|
|
|
161
268
|
/>
|
|
162
269
|
</div>
|
|
163
270
|
</div>
|
|
271
|
+
|
|
272
|
+
<div>
|
|
273
|
+
<h5 className="text-[11px] font-semibold text-ink/70">Phone · right drawer</h5>
|
|
274
|
+
<p className="mt-0.5 text-[11px] text-ink/50">
|
|
275
|
+
A drawer is one screen, so it has no rail to put beside it. This chooses what its
|
|
276
|
+
strip lists instead.
|
|
277
|
+
</p>
|
|
278
|
+
<div className="mt-1.5">
|
|
279
|
+
<MobileNavChoice
|
|
280
|
+
current={resolveMobileRightPanelNav(settings.mobileRightPanelNav)}
|
|
281
|
+
onPick={(style) => onUpdate({ mobileRightPanelNav: style })}
|
|
282
|
+
/>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
164
285
|
</div>
|
|
165
286
|
</section>
|
|
166
287
|
);
|
|
@@ -87,8 +87,20 @@ export function PanelHome({ panels, openIds, onPick, title }: PanelHomeProps) {
|
|
|
87
87
|
size={PANEL_MARK_SIZE + 4}
|
|
88
88
|
/>
|
|
89
89
|
<span className="line-clamp-1 text-[11px] font-semibold text-ink">{panel.label}</span>
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
{/* The second line earns its place or is dropped: `panel.title`
|
|
91
|
+
REPEATED `panel.label` on ten of the twelve views ("Search" over
|
|
92
|
+
"Search"), which read as a duplicated word. It is printed only
|
|
93
|
+
when it says something the label did not — otherwise the card
|
|
94
|
+
falls back to a fact about the view. The floor keeps a row of
|
|
95
|
+
cards level when one of them has nothing to add. */}
|
|
96
|
+
<span className="line-clamp-2 min-h-[26px] text-[10px] leading-snug text-ink/50">
|
|
97
|
+
{opened
|
|
98
|
+
? 'Sudah terbuka'
|
|
99
|
+
: panel.title !== panel.label
|
|
100
|
+
? panel.title
|
|
101
|
+
: panel.requiresWorkspace
|
|
102
|
+
? 'Butuh folder kerja'
|
|
103
|
+
: ''}
|
|
92
104
|
</span>
|
|
93
105
|
</button>
|
|
94
106
|
);
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* One chip of a panel column's tab strip.
|
|
8
|
+
*
|
|
9
|
+
* Extracted from `TabStrip` so the strip owns the ROW (the add control, the
|
|
10
|
+
* scroller, the trailing actions) and this owns a single tab. The chip is the
|
|
11
|
+
* only element in the strip that is both a control and a drag SOURCE, and both
|
|
12
|
+
* facts carry a platform trap:
|
|
13
|
+
*
|
|
14
|
+
* - `draggable={false}` is indistinguishable from an attribute never written
|
|
15
|
+
* (Preact omits a `false` boolean), so the pinned chip's non-draggability is
|
|
16
|
+
* spelled `undefined` and a test can tell the two apart;
|
|
17
|
+
* - when the strip is the window's drag region, the chip must opt OUT
|
|
18
|
+
* (`titlebar-no-drag`), or Windows turns it into a drag handle and its click
|
|
19
|
+
* never fires.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { X } from 'lucide-preact';
|
|
23
|
+
import type { TargetedDragEvent } from 'preact';
|
|
24
|
+
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
25
|
+
import { PanelMark } from '@/client/components/common/panel-mark';
|
|
26
|
+
import { PANEL_MARK_SIZE } from '@/shared/lib/workspace/right-panels';
|
|
27
|
+
import type { ControlLayout } from '@/client/lib/ui/control-plate';
|
|
28
|
+
|
|
29
|
+
export interface TabChipProps {
|
|
30
|
+
panel: ResolvedPanel;
|
|
31
|
+
isActive: boolean;
|
|
32
|
+
/** The strip is on its home page, where no chip is selected. */
|
|
33
|
+
parentHome: boolean;
|
|
34
|
+
/** The chip AFTER this one is the active one, so this separator fades. */
|
|
35
|
+
nextIsActive: boolean;
|
|
36
|
+
/** The pinned view leads the column and cannot be closed or dragged. */
|
|
37
|
+
closable: boolean;
|
|
38
|
+
/** The strip adopts a new order; omitted means this strip is read-only. */
|
|
39
|
+
reorderable: boolean;
|
|
40
|
+
/** The chip being dragged right now, drawn dimmed. */
|
|
41
|
+
dragging: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The strip is the window's drag region, so this chip must opt out of it.
|
|
44
|
+
* Separate from `layout` on purpose: the drag opt-out is a WINDOW fact and
|
|
45
|
+
* the density is a ROW fact, and one standing in for the other is how a chip
|
|
46
|
+
* ends up 28px in a 56px row.
|
|
47
|
+
*/
|
|
48
|
+
noDrag: boolean;
|
|
49
|
+
/** Which density this chip draws at — the strip's own layout. */
|
|
50
|
+
layout: ControlLayout;
|
|
51
|
+
chipRef: (element: HTMLElement | null) => void;
|
|
52
|
+
onSelect: () => void;
|
|
53
|
+
onClose: () => void;
|
|
54
|
+
onDragStart: (event: TargetedDragEvent<HTMLElement>) => void;
|
|
55
|
+
onDragOver: (event: TargetedDragEvent<HTMLElement>) => void;
|
|
56
|
+
onDrop: (event: TargetedDragEvent<HTMLElement>) => void;
|
|
57
|
+
onDragEnd: () => void;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TabChip({
|
|
61
|
+
panel,
|
|
62
|
+
isActive,
|
|
63
|
+
parentHome,
|
|
64
|
+
nextIsActive,
|
|
65
|
+
closable,
|
|
66
|
+
reorderable,
|
|
67
|
+
dragging,
|
|
68
|
+
noDrag,
|
|
69
|
+
layout,
|
|
70
|
+
chipRef,
|
|
71
|
+
onSelect,
|
|
72
|
+
onClose,
|
|
73
|
+
onDragStart,
|
|
74
|
+
onDragOver,
|
|
75
|
+
onDrop,
|
|
76
|
+
onDragEnd,
|
|
77
|
+
}: TabChipProps) {
|
|
78
|
+
const label = panel.label || panel.title;
|
|
79
|
+
return (
|
|
80
|
+
// The wrapper is the strip's own flex cell AND the drag opt-out for
|
|
81
|
+
// everything inside it: `app-region` inherits, so marking the chip's
|
|
82
|
+
// controls one at a time is how a future control gets forgotten.
|
|
83
|
+
<div className={`flex flex-none items-center${noDrag ? ' titlebar-no-drag' : ''}`}>
|
|
84
|
+
<div
|
|
85
|
+
role="tab"
|
|
86
|
+
aria-selected={isActive}
|
|
87
|
+
tabIndex={isActive ? 0 : -1}
|
|
88
|
+
data-panel-tab={panel.id}
|
|
89
|
+
ref={chipRef}
|
|
90
|
+
/* The pinned view is neither a drag source nor a drop target: it leads
|
|
91
|
+
the strip by construction, so letting a drag land in front of it
|
|
92
|
+
would promise a position the store puts back. */
|
|
93
|
+
draggable={reorderable && closable ? true : undefined}
|
|
94
|
+
onDragStart={(event) => {
|
|
95
|
+
if (!reorderable || !closable) return;
|
|
96
|
+
onDragStart(event);
|
|
97
|
+
}}
|
|
98
|
+
onDragOver={(event) => {
|
|
99
|
+
if (!reorderable || !closable) return;
|
|
100
|
+
onDragOver(event);
|
|
101
|
+
}}
|
|
102
|
+
onDrop={(event) => {
|
|
103
|
+
if (!reorderable) return;
|
|
104
|
+
onDrop(event);
|
|
105
|
+
}}
|
|
106
|
+
onDragEnd={() => {
|
|
107
|
+
if (!reorderable) return;
|
|
108
|
+
onDragEnd();
|
|
109
|
+
}}
|
|
110
|
+
className={`group relative flex min-w-[80px] max-w-[170px] flex-none items-center rounded-md transition-colors ${
|
|
111
|
+
layout === 'mobile' ? 'h-9' : 'h-7'
|
|
112
|
+
} ${
|
|
113
|
+
isActive ? 'bg-ink/[0.08] text-ink' : 'text-ink/60 hover:bg-ink/5 hover:text-ink'
|
|
114
|
+
} ${reorderable && closable ? 'cursor-grab active:cursor-grabbing' : ''} ${
|
|
115
|
+
dragging ? 'opacity-40' : ''
|
|
116
|
+
}`}
|
|
117
|
+
>
|
|
118
|
+
<button
|
|
119
|
+
type="button"
|
|
120
|
+
tabIndex={-1}
|
|
121
|
+
onClick={onSelect}
|
|
122
|
+
title={panel.title}
|
|
123
|
+
aria-label={panel.title}
|
|
124
|
+
className={`flex h-full min-w-0 flex-1 cursor-pointer items-center gap-1.5 py-1 pl-2 text-left ${
|
|
125
|
+
layout === 'mobile' ? 'pr-8' : 'pr-6'
|
|
126
|
+
}`}
|
|
127
|
+
>
|
|
128
|
+
<PanelMark
|
|
129
|
+
className="inline-flex flex-none"
|
|
130
|
+
panelId={panel.id}
|
|
131
|
+
builtin={panel.builtin}
|
|
132
|
+
icon={panel.builtin ? panel.icon : undefined}
|
|
133
|
+
name={panel.builtin ? panel.label : panel.name}
|
|
134
|
+
{...(panel.iconUrl ? { iconUrl: panel.iconUrl } : {})}
|
|
135
|
+
{...(panel.color ? { color: panel.color } : {})}
|
|
136
|
+
size={PANEL_MARK_SIZE}
|
|
137
|
+
/>
|
|
138
|
+
<span className="truncate text-[11px] font-medium">{label}</span>
|
|
139
|
+
</button>
|
|
140
|
+
{closable ? (
|
|
141
|
+
<button
|
|
142
|
+
type="button"
|
|
143
|
+
tabIndex={-1}
|
|
144
|
+
onClick={onClose}
|
|
145
|
+
title={`Tutup ${label}`}
|
|
146
|
+
aria-label={`Tutup tab ${label}`}
|
|
147
|
+
/* Always visible, on every chip. A close control revealed only on
|
|
148
|
+
hover is a control that does not exist on a touch screen and
|
|
149
|
+
cannot be found by a reader scanning the strip; it also made the
|
|
150
|
+
ACTIVE chip look like the only closable one. The tint still dims
|
|
151
|
+
a background tab so the strip reads in one pass. */
|
|
152
|
+
className={`absolute flex cursor-pointer items-center justify-center rounded transition-colors hover:bg-ink/10 hover:text-ink ${
|
|
153
|
+
layout === 'mobile' ? 'top-0.5 right-0.5 h-7 w-7' : 'top-1 right-1 h-5 w-5'
|
|
154
|
+
} ${isActive ? 'text-ink/45' : 'text-ink/30'}`}
|
|
155
|
+
>
|
|
156
|
+
<X size={11} />
|
|
157
|
+
</button>
|
|
158
|
+
) : null}
|
|
159
|
+
</div>
|
|
160
|
+
{/* The separator belongs to the gap, not the chip: a chip that painted its
|
|
161
|
+
own border would shrink its label by 1px on hover and its neighbour's
|
|
162
|
+
by another. It fades beside the active chip so the pair reads as one
|
|
163
|
+
block, and fades entirely on the home page, where no chip is
|
|
164
|
+
selected. */}
|
|
165
|
+
<span
|
|
166
|
+
aria-hidden="true"
|
|
167
|
+
className={`mx-0.5 h-3.5 w-px bg-ink/15 ${
|
|
168
|
+
isActive || (parentHome && nextIsActive) ? 'opacity-0' : 'opacity-100'
|
|
169
|
+
}`}
|
|
170
|
+
/>
|
|
171
|
+
</div>
|
|
172
|
+
);
|
|
173
|
+
}
|
|
@@ -25,6 +25,12 @@ import { h, render } from 'preact';
|
|
|
25
25
|
import { act } from 'preact/test-utils';
|
|
26
26
|
import { PanelTabStrip } from '@/client/components/workspace/panel-tabs/TabStrip';
|
|
27
27
|
import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
|
|
28
|
+
import {
|
|
29
|
+
CONTROL_BOX,
|
|
30
|
+
CONTROL_GLYPH_PX,
|
|
31
|
+
CONTROL_ROW_HEIGHT,
|
|
32
|
+
CONTROL_ROW_INSET,
|
|
33
|
+
} from '@/client/lib/ui/control-plate';
|
|
28
34
|
|
|
29
35
|
const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'Event'] as const;
|
|
30
36
|
const nativeGlobals: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
|
|
@@ -212,10 +218,122 @@ describe('PanelTabStrip', () => {
|
|
|
212
218
|
expect(chips.map((chip) => chip.getAttribute('draggable'))).toEqual([null, null]);
|
|
213
219
|
});
|
|
214
220
|
|
|
221
|
+
test('a TOUCH device gets a bigger chip and close target than a mouse does', () => {
|
|
222
|
+
mount();
|
|
223
|
+
// Measured in Chromium at 390px: the close control was 20x20 inside a 28px
|
|
224
|
+
// chip, both under the 44px touch floor. The coarse variants are the fix, and
|
|
225
|
+
// a DOM test can only pin the CONTRACT — the pixel sizes are the stylesheet's
|
|
226
|
+
// (verified in the built CSS, under `@media (pointer:coarse)`).
|
|
227
|
+
// The DEFAULT strip is the desktop density: the top navbar's 40px row and
|
|
228
|
+
// its 28px control boxes. A phone caller passes `layout="mobile"` instead,
|
|
229
|
+
// which is the case below.
|
|
230
|
+
const strip = container.querySelector('[role="tablist"]') as HTMLElement;
|
|
231
|
+
const chip = container.querySelector('[role="tab"]') as HTMLElement;
|
|
232
|
+
const close = container.querySelector('[aria-label^="Tutup tab"]') as HTMLElement;
|
|
233
|
+
expect(strip.className).toContain(CONTROL_ROW_HEIGHT.desktop);
|
|
234
|
+
expect(strip.className).toContain(CONTROL_ROW_INSET.desktop);
|
|
235
|
+
expect(strip.className).not.toContain('env(safe-area-inset-top');
|
|
236
|
+
expect(chip.className).toContain('h-7');
|
|
237
|
+
expect(close.className).toContain('h-5');
|
|
238
|
+
expect(close.className).toContain('w-5');
|
|
239
|
+
});
|
|
240
|
+
|
|
215
241
|
test('a column action lands outside the scroller, so a narrow strip cannot clip it', () => {
|
|
216
242
|
mount({ actions: h('button', { type: 'button', 'aria-label': 'Muat ulang view' }, 'x') });
|
|
217
243
|
const action = container.querySelector('[aria-label="Muat ulang view"]');
|
|
218
244
|
expect(action).not.toBeNull();
|
|
219
245
|
expect(action?.closest('.no-scrollbar')).toBeNull();
|
|
220
246
|
});
|
|
247
|
+
|
|
248
|
+
test('the add control and the actions never scroll with the chips', () => {
|
|
249
|
+
mount({ actions: h('button', { type: 'button', 'aria-label': 'Tutup panel kanan' }, 'x') });
|
|
250
|
+
const scroller = container.querySelector('.no-scrollbar') as HTMLElement;
|
|
251
|
+
const add = container.querySelector('[aria-label="Tambah tab"]') as HTMLElement;
|
|
252
|
+
const action = container.querySelector('[aria-label="Tutup panel kanan"]') as HTMLElement;
|
|
253
|
+
// Both sit in the row, neither in the horizontal scroller: a strip full of
|
|
254
|
+
// chips scrolls under them and the two controls stay reachable.
|
|
255
|
+
expect(add.closest('.no-scrollbar')).toBeNull();
|
|
256
|
+
expect(action.closest('.no-scrollbar')).toBeNull();
|
|
257
|
+
expect(scroller.contains(add)).toBe(false);
|
|
258
|
+
expect(scroller.contains(action)).toBe(false);
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
test('dragRegion marks the strip as the window handle and its controls as not', () => {
|
|
262
|
+
mount({
|
|
263
|
+
dragRegion: true,
|
|
264
|
+
actions: h('button', { type: 'button', 'aria-label': 'Tutup panel kanan' }, 'x'),
|
|
265
|
+
});
|
|
266
|
+
const strip = container.querySelector('[role="tablist"]') as HTMLElement;
|
|
267
|
+
expect(strip.className).toContain('titlebar-drag-region');
|
|
268
|
+
// `app-region` INHERITS: a control inside a drag region swallows its own
|
|
269
|
+
// click on Windows. Every control must therefore sit under something that
|
|
270
|
+
// opted out — either on itself or on the chip wrapper it lives in, which is
|
|
271
|
+
// why this asks about an ANCESTOR rather than the control's own class list.
|
|
272
|
+
const controls = [...container.querySelectorAll('button')];
|
|
273
|
+
expect(controls.length).toBeGreaterThan(2);
|
|
274
|
+
for (const control of controls) {
|
|
275
|
+
expect(control.closest('.titlebar-no-drag')).not.toBeNull();
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
test('without dragRegion nothing claims the window handle', () => {
|
|
280
|
+
mount();
|
|
281
|
+
const strip = container.querySelector('[role="tablist"]') as HTMLElement;
|
|
282
|
+
expect(strip.className).not.toContain('titlebar-drag-region');
|
|
283
|
+
expect(container.querySelector('.titlebar-no-drag')).toBeNull();
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* The strip is the top navbar's PEER, so it must draw at that row's density —
|
|
289
|
+
* on the phone, at the PHONE header's.
|
|
290
|
+
*
|
|
291
|
+
* Measured on the running app before this was stated once: the drawer's strip
|
|
292
|
+
* was a 40px row with 28px controls while the chat header above it was 56px with
|
|
293
|
+
* 36px controls, so the add control's centre sat at 26px against the header's
|
|
294
|
+
* 30px and the toggle's at 364px against 360px. A 4px step on both edges is
|
|
295
|
+
* what a reader reports as "not aligned with the top navbar".
|
|
296
|
+
*
|
|
297
|
+
* Asserted against the shared constants rather than the literals, so moving the
|
|
298
|
+
* density stays a one-line change in `control-plate.ts` and this test still
|
|
299
|
+
* means "the strip follows the header".
|
|
300
|
+
*/
|
|
301
|
+
describe('strip density follows the top navbar', () => {
|
|
302
|
+
test('the phone strip takes the phone header row, box and inset', () => {
|
|
303
|
+
mount({ layout: 'mobile', dragRegion: true });
|
|
304
|
+
const strip = container.querySelector('[role="tablist"]') as HTMLElement;
|
|
305
|
+
const add = container.querySelector('[aria-label="Tambah tab"]') as HTMLElement;
|
|
306
|
+
const chip = container.querySelector('[role="tab"]') as HTMLElement;
|
|
307
|
+
|
|
308
|
+
expect(strip.className).toContain(CONTROL_ROW_HEIGHT.mobile);
|
|
309
|
+
expect(strip.className).toContain(CONTROL_ROW_INSET.mobile);
|
|
310
|
+
// The add control IS a header control: same box, same glyph.
|
|
311
|
+
expect(add.className).toContain(CONTROL_BOX.mobile);
|
|
312
|
+
expect(add.querySelector('svg')?.getAttribute('width')).toBe(String(CONTROL_GLYPH_PX.mobile));
|
|
313
|
+
// And the chip is the mobile height, not the desktop 28px one.
|
|
314
|
+
expect(chip.className).toContain('h-9');
|
|
315
|
+
expect(chip.className).not.toContain('h-7');
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
test('the desktop strip keeps the navbar row it sits under', () => {
|
|
319
|
+
mount();
|
|
320
|
+
const strip = container.querySelector('[role="tablist"]') as HTMLElement;
|
|
321
|
+
const add = container.querySelector('[aria-label="Tambah tab"]') as HTMLElement;
|
|
322
|
+
const chip = container.querySelector('[role="tab"]') as HTMLElement;
|
|
323
|
+
|
|
324
|
+
expect(strip.className).toContain(CONTROL_ROW_HEIGHT.desktop);
|
|
325
|
+
expect(strip.className).toContain(CONTROL_ROW_INSET.desktop);
|
|
326
|
+
expect(add.className).toContain(CONTROL_BOX.desktop);
|
|
327
|
+
expect(chip.className).toContain('h-7');
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
test('the phone row is the header height plus the notch, as height AND padding', () => {
|
|
331
|
+
// One string, both halves: a row that only grows pins its content to y=0
|
|
332
|
+
// (chips under the status bar); padding alone is eaten by border-box.
|
|
333
|
+
expect(CONTROL_ROW_HEIGHT.mobile).toContain('3.5rem');
|
|
334
|
+
expect(CONTROL_ROW_HEIGHT.mobile).toContain('pt-[env(safe-area-inset-top,0px)]');
|
|
335
|
+
// The desktop row is the plain navbar height and reserves no notch.
|
|
336
|
+
expect(CONTROL_ROW_HEIGHT.desktop).toBe('h-10');
|
|
337
|
+
expect(CONTROL_ROW_HEIGHT.desktop).not.toContain('env(');
|
|
338
|
+
});
|
|
221
339
|
});
|