@kabmo-labs/kabmo 0.60.0 → 0.62.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/README.md +53 -49
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +1157 -825
- package/dist/client/static/js/{Body-p82s28sj.js → Body-z6kstvk6.js} +3 -3
- package/dist/client/static/js/{CsvGrid-erc5mcvc.js → CsvGrid-f73c0s4e.js} +2 -2
- package/dist/client/static/js/{DocxView-x3faj0jv.js → DocxView-a1pb7nsb.js} +3 -3
- package/dist/client/static/js/{DrawioView-t7fh3ens.js → DrawioView-r61gcg24.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-zy7x7jmm.js → HtmlPreview-vt7j0b05.js} +1 -1
- package/dist/client/static/js/ImageView-4nhr5dtm.js +1 -0
- package/dist/client/static/js/LayoutWrapper-vwhy0vhj.js +2 -0
- package/dist/client/static/js/MergeDiffView-f4h9ss71.js +1 -0
- package/dist/client/static/js/Modal-cadmjkak.js +60 -0
- package/dist/client/static/js/{PdfView-kqx472q7.js → PdfView-mppt2gkd.js} +1 -1
- package/dist/client/static/js/SessionsView-vvsaw9f0.js +1 -0
- package/dist/client/static/js/{SheetView-0n9fze50.js → SheetView-5s9zfx9g.js} +9 -9
- package/dist/client/static/js/{SvgPreview-6xc6ts46.js → SvgPreview-ff78xn3e.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-2xdkkqwg.js → abnfDiagram-O67JEVCF-p29sh3w2.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-83w3kytq.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-ja8cx19z.js → architectureDiagram-NJMV4G6O-nbpdyea3.js} +3 -3
- package/dist/client/static/js/{astro-yphdvdty.js → astro-qtfmc8x7.js} +1 -1
- package/dist/client/static/js/bash-wcy12qjx.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-ytf7s99c.js → blockDiagram-BEXU5L5S-t8xbexa6.js} +6 -6
- package/dist/client/static/js/c-vvantfth.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-5a0kdx0z.js → c4Diagram-YGBWAQC7-9fwf2zxk.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-hd98dvjw.js → classDiagram-v2-NBCMYWYE-nbapgqbs.js} +4 -4
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-man3fqcj.js → cose-bilkent-JH36ORCC-k54mmydp.js} +1 -1
- package/dist/client/static/js/cpp-5x63r6g0.js +1 -0
- package/dist/client/static/js/css-j2j6f03w.js +1 -0
- package/dist/client/static/js/css-qk59j6rj.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-80z02zrj.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-2f0kbbv2.js → cynefinDiagram-VND7K2PF-qdg32wah.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-k7pyhgzn.js → dagre-6A5THRUB-qzshg1vs.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-qx0afa2m.js → diagram-22UHCM2B-197hemfa.js} +11 -11
- package/dist/client/static/js/{diagram-3UASUU5V-ydpe77sv.js → diagram-3UASUU5V-236gnjr6.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-e63v984n.js → diagram-ATOU4E4O-vjgpyaaq.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-8c765h3a.js → diagram-CDSNMT55-ywvzcx7z.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-3pq0n7v8.js → diagram-MLGK6HIB-9ey7ev7j.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-638atzxz.js → diagram-MPIPVDR6-vrqbb6r7.js} +2 -2
- package/dist/client/static/js/{dockerfile-yehc914q.js → dockerfile-4nked309.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-3gv43zvm.js → ebnfDiagram-ZINNZB2B-hvnkevqy.js} +1 -1
- package/dist/client/static/js/{elixir-3nwnd9yw.js → elixir-3jvh6v4k.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-6s5pggfc.js → elk-276RUBZZ-nej6yy1c.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-x7cqyb89.js → erDiagram-OPXOYQCR-ww453xcy.js} +5 -5
- package/dist/client/static/js/{erlang-p5c4n3t0.js → erlang-4fz73a1q.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-y9pq2709.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-e6v7513q.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-g97te4v1.js → ganttDiagram-FUAMR5RP-abc5wy70.js} +3 -3
- package/dist/client/static/js/gitGraph-4MIJSDKK-fzaf9azs.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-sw4f94tc.js → gitGraphDiagram-X574FWY7-4acqzj2h.js} +7 -7
- package/dist/client/static/js/graphql-hpkvdvk7.js +1 -0
- package/dist/client/static/js/html-x12gb1wk.js +1 -0
- package/dist/client/static/js/{index-v88m5sva.js → index-0g82ph6h.js} +2 -2
- package/dist/client/static/js/{index-vejz38qt.js → index-0w1jzang.js} +5 -5
- package/dist/client/static/js/{index-bpcg34jp.js → index-1svt0cdw.js} +2 -2
- package/dist/client/static/js/{index-hgfyx8dt.js → index-1tb4py5v.js} +2 -2
- package/dist/client/static/js/index-2gt9krtj.js +4 -0
- package/dist/client/static/js/index-2x9m7s1a.js +1 -0
- package/dist/client/static/js/index-3fvqmz3m.js +4 -0
- package/dist/client/static/js/{index-pdz6j2g2.js → index-42wvbkm5.js} +2 -2
- package/dist/client/static/js/index-477vtt51.js +2 -0
- package/dist/client/static/js/{index-ca6tmamh.js → index-4px56qaz.js} +2 -2
- package/dist/client/static/js/{index-excgtjhx.js → index-5anvw7xg.js} +36 -36
- package/dist/client/static/js/index-5nb9k2ph.js +1 -0
- package/dist/client/static/js/{index-97sw4d9n.js → index-615je3km.js} +2 -2
- package/dist/client/static/js/{index-111bq6rs.js → index-66qxrh5n.js} +1 -1
- package/dist/client/static/js/{index-a145x0w2.js → index-7kct1sz1.js} +2 -2
- package/dist/client/static/js/{index-hwv7bfxc.js → index-8e0d8y30.js} +2 -2
- package/dist/client/static/js/{index-s4j2ghmx.js → index-90bq56xw.js} +2 -2
- package/dist/client/static/js/{index-wsy6y5em.js → index-b1gzh60t.js} +11 -11
- package/dist/client/static/js/{index-10vzyga1.js → index-bypkmjrz.js} +2 -2
- package/dist/client/static/js/{index-n8r7r86r.js → index-c1vd63yd.js} +2 -2
- package/dist/client/static/js/index-c9f0hejv.js +3 -0
- package/dist/client/static/js/{index-2dmew334.js → index-cgqj15g0.js} +2 -2
- package/dist/client/static/js/{index-mtav0rpf.js → index-cts5re1t.js} +2 -2
- package/dist/client/static/js/index-dxc14kmm.js +1 -0
- package/dist/client/static/js/{index-hwdkxe4n.js → index-dxyjxhm1.js} +2 -2
- package/dist/client/static/js/{index-43gmn7yb.js → index-edpyqz9f.js} +1 -1
- package/dist/client/static/js/{index-pdgc9ccr.js → index-eesepb70.js} +2 -2
- package/dist/client/static/js/{index-vec7m1yd.js → index-evh437bz.js} +2 -2
- package/dist/client/static/js/index-ey6v4t5b.js +1 -0
- package/dist/client/static/js/{index-025s3fp8.js → index-fsd7n336.js} +2 -2
- package/dist/client/static/js/{index-yfcy4cf6.js → index-h7a7fqag.js} +2 -2
- package/dist/client/static/js/{index-11qn05g9.js → index-hffgwnvz.js} +2 -2
- package/dist/client/static/js/index-j734ev6q.js +482 -0
- package/dist/client/static/js/{index-vcq6zfxx.js → index-jcbp1d9d.js} +6 -6
- package/dist/client/static/js/index-jg5h18sm.js +2 -0
- package/dist/client/static/js/{index-6qn9kygb.js → index-jtdve6xw.js} +7 -7
- package/dist/client/static/js/{index-4xbc0j7t.js → index-k0bqrb1y.js} +1 -1
- package/dist/client/static/js/{index-bdtftrym.js → index-kegevd10.js} +2 -2
- package/dist/client/static/js/{index-fr6wsqk8.js → index-kqcfxkch.js} +2 -2
- package/dist/client/static/js/{index-2n2evsg0.js → index-kv1xnem9.js} +2 -2
- package/dist/client/static/js/{index-8zct30zd.js → index-m54ctmxr.js} +1 -1
- package/dist/client/static/js/index-mgzbypt5.js +314 -0
- package/dist/client/static/js/{index-cf69bhjx.js → index-mh52531j.js} +2 -2
- package/dist/client/static/js/{index-0ze5bwvw.js → index-mhz5ywa4.js} +5 -5
- package/dist/client/static/js/{index-3j2he86h.js → index-nnwdbg3t.js} +2 -2
- package/dist/client/static/js/{index-9rz6kzsv.js → index-nxd6z7f9.js} +2 -2
- package/dist/client/static/js/{index-jfqd838j.js → index-pjrbt77c.js} +2 -2
- package/dist/client/static/js/index-r7h4pm42.js +2 -0
- package/dist/client/static/js/index-ratrdgc9.js +2 -0
- package/dist/client/static/js/{index-cfvc1zpk.js → index-rhmvh9w5.js} +2 -2
- package/dist/client/static/js/{index-twwsn91p.js → index-sqzjwy9h.js} +2 -2
- package/dist/client/static/js/{index-37apvxgj.js → index-tckzkw0f.js} +2 -2
- package/dist/client/static/js/index-tza9h3q6.css +1 -0
- package/dist/client/static/js/{index-qccydkze.js → index-vhjfr093.js} +2 -2
- package/dist/client/static/js/{index-z8k42dwz.js → index-w0j96eyy.js} +8 -8
- package/dist/client/static/js/{index-qkqkygrf.js → index-ws04kxy9.js} +1 -1
- package/dist/client/static/js/{index-a3bpmw2r.js → index-x1yqmzpr.js} +2 -2
- package/dist/client/static/js/{index-fb2fjndj.js → index-x2f7wykb.js} +6 -6
- package/dist/client/static/js/index-y8405hdg.js +10 -0
- package/dist/client/static/js/{index-sx83ans2.js → index-yxk7dgnb.js} +2 -2
- package/dist/client/static/js/{index-bkn6jtn1.js → index-zavecxak.js} +2 -2
- package/dist/client/static/js/{index-dv01prse.js → index-zg7q3kcb.js} +2 -2
- package/dist/client/static/js/{index-enm77k5z.js → index-zhn9vv3z.js} +2 -2
- package/dist/client/static/js/{index-ywp0sd1e.js → index-zy963qbh.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-t7pbg7rt.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-pw2qaa27.js → infoDiagram-VRGFBTTK-9pe7w3r5.js} +2 -2
- package/dist/client/static/js/ini-522adp5a.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-d13jhvxy.js → ishikawaDiagram-OU5B5YK6-38arfrx5.js} +2 -2
- package/dist/client/static/js/java-z0rgs7v6.js +1 -0
- package/dist/client/static/js/javascript-fv87f565.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-20gb8a04.js → journeyDiagram-ZHPQQLJL-kcwzjgtz.js} +4 -4
- package/dist/client/static/js/json-1czq1ped.js +1 -0
- package/dist/client/static/js/jsx-1fch2jyr.js +1 -0
- package/dist/client/static/js/{julia-rpd1y9vh.js → julia-pzzxbptm.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-s78e158c.js → kanban-definition-PNTS6WVX-nmegwy9w.js} +15 -15
- package/dist/client/static/js/lua-nn8bpjev.js +1 -0
- package/dist/client/static/js/markdown-38tqrgkn.js +1 -0
- package/dist/client/static/js/{mermaid.core-xbm27k28.js → mermaid.core-3aae27b9.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-6y7xe2zm.js → mindmap-definition-NLK3R4M7-zsaq4e65.js} +12 -12
- package/dist/client/static/js/one-dark-pro-trnff03z.js +1 -0
- package/dist/client/static/js/one-light-ck31ptqs.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-rwac7scq.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-dmvewetf.js → pegDiagram-GJSIUBJH-2b6whj1p.js} +1 -1
- package/dist/client/static/js/{perl-kmtz9dnv.js → perl-zdkbbjd2.js} +1 -1
- package/dist/client/static/js/{php-bttrsbxy.js → php-ktaxff6g.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-gjz20apz.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-1q9e7rcm.js → pieDiagram-5QR66LMP-y09ar7vz.js} +3 -3
- package/dist/client/static/js/properties-kncqeqhn.js +1 -0
- package/dist/client/static/js/python-gx8ggmyh.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-mvrem3n6.js → quadrantDiagram-O4NWA36T-mapfzs06.js} +3 -3
- package/dist/client/static/js/r-x8rftkm3.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-akwdknab.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-m5v4rfhx.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-k2gmqcjb.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zdsfjf4.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-e98evqb6.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-axttcfhw.js → railroadDiagram-XR7U4H2S-70qy7qdh.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-5qx7erta.js → requirementDiagram-PLB6GJNP-2vb2gp3e.js} +3 -3
- package/dist/client/static/js/{ruby-dve3y59w.js → ruby-ytqv3pqz.js} +1 -1
- package/dist/client/static/js/{rust-b3ckax3e.js → rust-6sddyxnt.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-es87a3j6.js → sankeyDiagram-IPEJSGJF-9jd8ebrn.js} +3 -3
- package/dist/client/static/js/{sass-emxqt5p2.js → sass-dvbra5b6.js} +1 -1
- package/dist/client/static/js/{scss-4j4t3r6y.js → scss-sy7w8916.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-dgpnjrtk.js → sequenceDiagram-PO4LG4MO-w7z84f80.js} +7 -7
- package/dist/client/static/js/{sizeCapture-INFHLROL-kyw0p86n.js → sizeCapture-INFHLROL-q8w7ehgx.js} +1 -1
- package/dist/client/static/js/sql-99y0qnag.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-vnsbw8y9.js → stateDiagram-v2-GCMORJYK-4978hapr.js} +3 -3
- package/dist/client/static/js/{svelte-dbsx1ehx.js → svelte-xvs3fkza.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-060q1rep.js → swimlanes-2SLR337P-eshg5fjy.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-914e28hd.js +8 -0
- package/dist/client/static/js/timeline-definition-EJHVYXUP-5h5q357k.js +120 -0
- package/dist/client/static/js/treeView-Q6P3EWNA-fkm3a7gx.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-hm4ktxjf.js +1 -0
- package/dist/client/static/js/tsx-phngprp0.js +1 -0
- package/dist/client/static/js/typescript-m62a7zr2.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-18sp73v7.js → usecaseDiagram-POWQR4AR-4j69y3zx.js} +20 -20
- package/dist/client/static/js/vennDiagram-UO4OBE2U-pa9p5jpw.js +34 -0
- package/dist/client/static/js/{vue-hyr58df9.js → vue-p4g4avm3.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-3y2rvdmy.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-q0kwmbzh.js → wardleyDiagram-VNRHLVJA-hjddd656.js} +3 -3
- package/dist/client/static/js/xml-59n0cjn6.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-y0gpmg6m.js → xychartDiagram-PMCCYNJV-8ng5m849.js} +4 -4
- package/dist/client/static/js/yaml-9fw908s4.js +1 -0
- package/dist/client/tailwindcss-oxide.linux-x64-gnu-c0fa36dv.node +0 -0
- package/dist/client/tailwindcss-oxide.linux-x64-musl-kr04sh0e.node +0 -0
- package/marketplace/plugins/command-runner/package.json +2 -2
- package/marketplace/plugins/command-runner/src/app.tsx +2 -5
- package/marketplace/plugins/command-runner/src/panel/CustomForm.tsx +35 -52
- package/marketplace/plugins/command-runner/src/panel/Groups.tsx +6 -5
- package/marketplace/plugins/command-runner/src/panel/Header.tsx +18 -54
- package/marketplace/plugins/command-runner/src/panel/Output.tsx +3 -7
- package/marketplace/plugins/command-runner/src/panel/Row.tsx +19 -38
- package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -4
- package/marketplace/plugins/git-forge/package.json +2 -2
- package/marketplace/plugins/git-forge/src/app.tsx +2 -0
- package/marketplace/plugins/git-forge/src/panel/Credential.tsx +8 -15
- package/marketplace/plugins/git-forge/src/panel/Header.tsx +35 -66
- package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +7 -13
- package/marketplace/plugins/git-forge/src/panel/List.tsx +28 -56
- package/marketplace/plugins/git-forge/src/panel/Row.tsx +7 -9
- package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +21 -31
- package/marketplace/plugins/git-forge/src/panel/Write.tsx +26 -40
- package/marketplace/plugins/git-forge/src/panel/index.tsx +0 -1
- package/marketplace/plugins/github-actions/package.json +2 -2
- package/marketplace/plugins/github-actions/src/app.tsx +2 -0
- package/marketplace/plugins/github-actions/src/panel/Actions.tsx +9 -17
- package/marketplace/plugins/github-actions/src/panel/LogView.tsx +4 -13
- package/marketplace/plugins/github-actions/src/panel/Row.tsx +4 -5
- package/marketplace/plugins/github-actions/src/panel/RunView.tsx +8 -15
- package/marketplace/plugins/github-actions/src/panel/index.test.tsx +3 -2
- package/marketplace/plugins/github-actions/src/panel/index.tsx +31 -37
- package/marketplace/plugins/kanban/package.json +2 -2
- package/marketplace/plugins/kanban/src/app.tsx +2 -0
- package/marketplace/plugins/kanban/src/panel/CardSheet.tsx +88 -98
- package/marketplace/plugins/kanban/src/panel/CardTile.tsx +6 -10
- package/marketplace/plugins/kanban/src/panel/StageColumn.tsx +22 -18
- package/marketplace/plugins/kanban/src/panel/StageSheet.tsx +59 -70
- package/marketplace/plugins/kanban/src/panel/index.tsx +37 -52
- package/marketplace/plugins/kanban/src/panel/use-board.ts +2 -0
- package/marketplace/plugins/session-info/package.json +2 -2
- package/marketplace/plugins/session-info/src/app.tsx +6 -3
- package/marketplace/plugins/stats/package.json +2 -2
- package/marketplace/plugins/stats/src/KillConfirm.test.tsx +6 -4
- package/marketplace/plugins/stats/src/KillConfirm.tsx +26 -76
- package/marketplace/plugins/stats/src/ProcessTable.tsx +8 -6
- package/marketplace/plugins/stats/src/RefreshButton.tsx +7 -5
- package/marketplace/plugins/stats/src/app.tsx +11 -9
- package/package.json +10 -10
- package/src/cli/lib/commands/plugin.js +8 -5
- package/src/client/bootstrap.d.ts +5 -0
- package/src/client/chat-title-overlay.test.ts +53 -0
- package/src/client/components/auth/login-screen/index.tsx +31 -3
- package/src/client/components/common/SignOutButton.tsx +4 -5
- package/src/client/components/common/account-badge/index.tsx +31 -0
- package/src/client/components/common/footer-version/index.tsx +40 -0
- package/src/client/components/common/fullscreen-viewer/fullscreen-viewer.test.tsx +24 -0
- package/src/client/components/common/fullscreen-viewer/index.tsx +22 -31
- package/src/client/components/common/header-controls/MoreMenu.tsx +5 -56
- package/src/client/components/common/header-controls/index.test.tsx +2 -6
- package/src/client/components/common/header-controls/index.tsx +9 -25
- package/src/client/components/common/header-controls/phone-row.test.tsx +3 -16
- package/src/client/components/common/shell-update-button/index.tsx +2 -2
- package/src/client/components/common/zoom-pan-stage/index.tsx +54 -50
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +4 -5
- package/src/client/components/layout/desktop-layout/index.tsx +2 -4
- package/src/client/components/layout/left-bar/index.tsx +25 -3
- package/src/client/components/layout/rail-toggle.test.tsx +112 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.accent.test.tsx +81 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +11 -3
- package/src/client/components/layout/session-sidebar/Footer.test.tsx +36 -0
- package/src/client/components/layout/session-sidebar/Footer.tsx +42 -61
- package/src/client/components/layout/session-sidebar/FooterHost.tsx +5 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +30 -10
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +4 -0
- package/src/client/components/layout/session-sidebar/modern/index.tsx +8 -1
- package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +25 -4
- package/src/client/components/layout/session-title-bar/index.tsx +13 -5
- package/src/client/components/layout/top-bars.test.tsx +4 -2
- package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
- package/src/client/components/mobile/RightSidebar.tsx +12 -3
- package/src/client/components/mobile/SessionSidebar.tsx +6 -2
- package/src/client/components/mobile/drawer-layout.test.tsx +7 -3
- package/src/client/components/mobile/drawer-strip.tsx +9 -2
- package/src/client/components/mobile/mobile-main-view/Header.test.tsx +29 -9
- package/src/client/components/mobile/mobile-main-view/Header.tsx +43 -12
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +12 -1
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
- package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +1 -0
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +9 -1
- package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +4 -2
- package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Footer.tsx +48 -46
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +18 -1
- package/src/client/components/mobile/mobile-session-sidebar/Item.test.tsx +4 -0
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +4 -6
- package/src/client/components/mobile/right-drawer-nav.test.tsx +53 -1
- package/src/client/components/settings/Band.tsx +5 -2
- package/src/client/components/settings/Modal.tsx +8 -5
- package/src/client/components/settings/Sidebar.tsx +5 -3
- package/src/client/components/settings/apply-side-effects.ts +5 -0
- package/src/client/components/settings/categories/AccountSettings.tsx +266 -0
- package/src/client/components/settings/categories/ProjectSettings.tsx +2 -0
- package/src/client/components/settings/categories/account-settings/Dialogs.tsx +223 -0
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +3 -4
- package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +66 -39
- package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +7 -4
- package/src/client/components/settings/categories/project-settings/DetailsForm.tsx +14 -1
- package/src/client/components/settings/categories/project-settings/ProjectSharing.tsx +130 -0
- package/src/client/components/settings/categories/project-settings/SidebarList.tsx +5 -0
- package/src/client/components/settings/category-content.tsx +3 -0
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/ComposerDockFrame.tsx +2 -1
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/SessionSkeleton.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +9 -2
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +2 -1
- package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +34 -0
- package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +9 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/styles.test.tsx +4 -1
- package/src/client/components/workspace/editor/Tab.tsx +19 -26
- package/src/client/components/workspace/editor/Tabs.test.ts +13 -7
- package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +1 -0
- package/src/client/components/workspace/git-panel/commit-modal/floating.test.ts +46 -0
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -0
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +4 -5
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +40 -37
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +76 -49
- package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +9 -9
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +14 -1
- package/src/client/components/workspace/panel-tabs/index.tsx +1 -1
- package/src/client/components/workspace/plugin-panel/catalog.tsx +22 -5
- package/src/client/components/workspace/plugin-panel/chrome.test.tsx +89 -0
- package/src/client/components/workspace/plugin-panel/chrome.tsx +62 -0
- package/src/client/data/settings/omp-schema.json +40 -4
- package/src/client/floating-phone.test.ts +189 -0
- package/src/client/floating.css +205 -2
- package/src/client/floating.test.ts +43 -0
- package/src/client/glass.css +47 -0
- package/src/client/hooks/chat/omp/index.ts +6 -5
- package/src/client/hooks/chat/omp/prompt-send.test.ts +18 -0
- package/src/client/hooks/chat/omp/prompt-send.ts +26 -8
- package/src/client/hooks/chat/omp/session-list.tsx +20 -8
- package/src/client/hooks/chat/timeline/deferred-model.ts +13 -5
- package/src/client/hooks/chat/timeline/index.ts +2 -0
- package/src/client/hooks/chat/timeline/send-props.ts +14 -0
- package/src/client/hooks/chat/timeline/send-steer.test.ts +11 -2
- package/src/client/hooks/chat/timeline/send-switch.test.ts +92 -0
- package/src/client/hooks/chat/timeline/send.test-util.ts +37 -7
- package/src/client/hooks/chat/timeline/send.test.ts +11 -2
- package/src/client/hooks/chat/timeline/send.ts +62 -42
- package/src/client/hooks/editor/image-generation.ts +24 -0
- package/src/client/hooks/editor/resolve-viewer.test.ts +26 -20
- package/src/client/hooks/editor/resolve-viewer.ts +14 -5
- package/src/client/hooks/editor/use-file-editor.test.ts +34 -0
- package/src/client/hooks/editor/use-file-editor.ts +6 -2
- package/src/client/hooks/settings/accounts.ts +162 -0
- package/src/client/hooks/ui/auth.ts +58 -3
- package/src/client/hooks/ui/border-style.test.ts +5 -4
- package/src/client/hooks/ui/border-style.ts +3 -2
- package/src/client/hooks/ui/mobile-chrome-style.ts +68 -0
- package/src/client/hooks/ui/navbar-controls.test.ts +1 -2
- package/src/client/hooks/ui/navbar-controls.ts +0 -3
- package/src/client/hooks/ui/zoom-gesture.ts +104 -0
- package/src/client/lib/desktop/titlebar.test.ts +21 -0
- package/src/client/lib/desktop/titlebar.ts +34 -0
- package/src/client/lib/plugins/bootstrap.test.ts +20 -0
- package/src/client/lib/plugins/bootstrap.tsx +10 -15
- package/src/client/lib/plugins/kit-components.test.tsx +119 -0
- package/src/client/lib/plugins/kit-components.tsx +79 -0
- package/src/client/lib/plugins/kit.ts +8 -0
- package/src/client/lib/plugins/slots.test.ts +34 -0
- package/src/client/lib/plugins/slots.ts +31 -4
- package/src/client/lib/plugins/stylesheets.ts +10 -11
- package/src/client/lib/ui/pinch.test.ts +74 -0
- package/src/client/lib/ui/pinch.ts +104 -0
- package/src/client/lib/ui/safe-area.test.ts +25 -0
- package/src/client/lib/ui/safe-area.ts +23 -0
- package/src/client/main.tsx +8 -1
- package/src/client/tailwind.css +54 -1
- package/src/server/index.ts +2 -0
- package/src/server/lib/assets/shell-attributes.server.ts +12 -4
- package/src/server/lib/assets/shell-attributes.test.ts +19 -18
- package/src/server/lib/auth/client-address.test.ts +2 -2
- package/src/server/lib/auth/guard.test.ts +2 -2
- package/src/server/lib/auth/guard.ts +81 -97
- package/src/server/lib/auth/handover-guard.test.ts +1 -1
- package/src/server/lib/auth/rate-limit.test.ts +2 -2
- package/src/server/lib/auth/token.test.ts +1 -1
- package/src/server/lib/auth/workspace-gate.server.ts +34 -0
- package/src/server/lib/bundler/css.test.ts +16 -0
- package/src/server/lib/connect/devices.server.test.ts +12 -0
- package/src/server/lib/connect/devices.server.ts +63 -19
- package/src/server/lib/connect/pairing.server.ts +5 -3
- package/src/server/lib/connect/status.server.ts +2 -2
- package/src/server/lib/db/schema.test.ts +3 -3
- package/src/server/lib/db/schema.ts +6 -0
- package/src/server/lib/harness/update-spawn.server.test.ts +97 -0
- package/src/server/lib/harness/update-spawn.server.ts +10 -0
- package/src/server/lib/models/provider-icon-override.server.test.ts +140 -0
- package/src/server/lib/models/provider-icon-override.server.ts +197 -0
- package/src/server/lib/models/provider-icon-store.server.ts +8 -0
- package/src/server/lib/models/provider-icon.server.ts +31 -6
- package/src/server/lib/omp/session/artifacts.server.test.ts +11 -7
- package/src/server/lib/omp/session/artifacts.server.ts +21 -17
- package/src/server/lib/panels/build.server.ts +19 -2
- package/src/server/lib/panels/css.server.test.ts +141 -0
- package/src/server/lib/panels/css.server.ts +255 -0
- package/src/server/lib/panels/plugin-ui-contract.test.ts +64 -0
- package/src/server/lib/panels/registry-stylesheet.server.test.ts +69 -0
- package/src/server/lib/panels/scan.server.ts +13 -7
- package/src/server/lib/panels/source-warnings.server.test.ts +65 -0
- package/src/server/lib/panels/source-warnings.server.ts +71 -0
- package/src/server/lib/realtime/topics/catalog.server.ts +3 -0
- package/src/server/lib/realtime/topics.server.ts +14 -0
- package/src/server/lib/sessions/last-opened-client.server.ts +1 -1
- package/src/server/lib/workspace/access.server.ts +108 -0
- package/src/server/lib/workspace/project-patch.server.ts +4 -2
- package/src/server/lib/workspace/register-folder.server.ts +19 -5
- package/src/server/lib/workspace/session-access.server.ts +55 -0
- package/src/server/lib/workspace/tenancy-schema.server.ts +40 -0
- package/src/server/plugins/ssr.ts +19 -3
- package/src/server/routes/accounts/index.ts +8 -0
- package/src/server/routes/accounts/management.test.ts +174 -0
- package/src/server/routes/accounts/management.ts +166 -0
- package/src/server/routes/auth/login.ts +22 -8
- package/src/server/routes/auth/logout.ts +1 -1
- package/src/server/routes/auth/password.ts +40 -33
- package/src/server/routes/auth/revoke.test.ts +1 -1
- package/src/server/routes/auth/revoke.ts +26 -8
- package/src/server/routes/auth/routes.test.ts +3 -3
- package/src/server/routes/auth/state.ts +14 -7
- package/src/server/routes/connect/devices.ts +7 -4
- package/src/server/routes/connect/pair.ts +4 -3
- package/src/server/routes/connect/status.ts +4 -2
- package/src/server/routes/connect/tunnels.ts +2 -1
- package/src/server/routes/folders/batch-delete.ts +12 -0
- package/src/server/routes/folders/clone.ts +7 -2
- package/src/server/routes/folders/create.ts +3 -1
- package/src/server/routes/folders/folder.ts +44 -4
- package/src/server/routes/folders/index.ts +3 -0
- package/src/server/routes/folders/shares.ts +62 -0
- package/src/server/routes/index.ts +2 -0
- package/src/server/routes/panels/build.ts +1 -1
- package/src/server/routes/panels/css.test.ts +22 -0
- package/src/server/routes/panels/css.ts +5 -7
- package/src/server/routes/realtime/ws.ts +16 -1
- package/src/server/routes/sessions/list.ts +3 -2
- package/src/server/routes/settings/projects.ts +46 -7
- package/src/server/routes/settings/provider-icon.ts +18 -0
- package/src/shared/lib/chat/timeline/tool-render-mode.test.ts +2 -2
- package/src/shared/lib/chat/timeline/tool-render-mode.ts +6 -3
- package/src/shared/lib/icons/tint-hues.generated.ts +38 -37
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +27 -1
- package/src/shared/lib/omp/session/prewarm-misc.test.ts +1 -1
- package/src/shared/lib/realtime/protocol.ts +16 -0
- package/src/shared/lib/settings/defaults.ts +2 -1
- package/src/shared/lib/settings/sections.ts +1 -1
- package/src/shared/lib/theme/border-style.test.ts +11 -9
- package/src/shared/lib/theme/border-style.ts +7 -7
- package/src/shared/lib/theme/chrome-style.test.ts +15 -0
- package/src/shared/lib/theme/chrome-style.ts +16 -1
- package/src/shared/types/index.ts +1 -0
- package/src/shared/types/settings/state.ts +6 -5
- package/src/test-support/file-editor.test-util.ts +25 -6
- package/tsconfig.json +21 -0
- package/dist/client/static/js/ImageView-xc90jc1c.js +0 -1
- package/dist/client/static/js/LayoutWrapper-wyqe98kf.js +0 -2
- package/dist/client/static/js/MergeDiffView-bng34cpr.js +0 -1
- package/dist/client/static/js/Modal-89jk7wff.js +0 -60
- package/dist/client/static/js/SessionsView-6bpz1faj.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +0 -1
- package/dist/client/static/js/bash-bcbct9gc.js +0 -1
- package/dist/client/static/js/c-fn9jz26e.js +0 -1
- package/dist/client/static/js/cpp-a1q64mke.js +0 -1
- package/dist/client/static/js/css-b92azee8.js +0 -1
- package/dist/client/static/js/css-sn00sq6v.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7sn6nwjv.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +0 -1
- package/dist/client/static/js/graphql-8d8bn59j.js +0 -1
- package/dist/client/static/js/html-6hdrwtz2.js +0 -1
- package/dist/client/static/js/index-4h2zkrk1.js +0 -2
- package/dist/client/static/js/index-5nm8hm4k.js +0 -2
- package/dist/client/static/js/index-95jfphx5.js +0 -481
- package/dist/client/static/js/index-9pw441wc.js +0 -4
- package/dist/client/static/js/index-bjz54ht6.js +0 -1
- package/dist/client/static/js/index-bqapt2e8.js +0 -2
- package/dist/client/static/js/index-ddkjgv5h.js +0 -2
- package/dist/client/static/js/index-dekvtt2a.js +0 -314
- package/dist/client/static/js/index-fnwaxc6r.js +0 -1
- package/dist/client/static/js/index-h65zrhva.js +0 -1
- package/dist/client/static/js/index-hxsqw7sz.js +0 -4
- package/dist/client/static/js/index-hxy1sadd.js +0 -2
- package/dist/client/static/js/index-ja0ajnvq.js +0 -10
- package/dist/client/static/js/index-qkyy563e.js +0 -1
- package/dist/client/static/js/index-t6nqy2n5.css +0 -1
- package/dist/client/static/js/index-wrk99kks.js +0 -3
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +0 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +0 -1
- package/dist/client/static/js/java-n596am4c.js +0 -1
- package/dist/client/static/js/javascript-zc1qnyyp.js +0 -1
- package/dist/client/static/js/json-7k70qbkj.js +0 -1
- package/dist/client/static/js/jsx-sndenqrc.js +0 -1
- package/dist/client/static/js/lua-djd3g9q5.js +0 -1
- package/dist/client/static/js/markdown-r2tpvxpn.js +0 -1
- package/dist/client/static/js/one-dark-pro-7bgqnyhm.js +0 -1
- package/dist/client/static/js/one-light-47y6etng.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +0 -1
- package/dist/client/static/js/properties-brn72zdk.js +0 -1
- package/dist/client/static/js/python-g9mghwgm.js +0 -1
- package/dist/client/static/js/r-e247x4mw.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +0 -1
- package/dist/client/static/js/sql-0kar81jy.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y77g9dq0.js +0 -8
- package/dist/client/static/js/timeline-definition-EJHVYXUP-8a3yqmx0.js +0 -120
- package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +0 -1
- package/dist/client/static/js/tsx-gjxfjnbk.js +0 -1
- package/dist/client/static/js/typescript-bm89v3gk.js +0 -1
- package/dist/client/static/js/vennDiagram-UO4OBE2U-gf4y1r3s.js +0 -34
- package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +0 -1
- package/dist/client/static/js/xml-b7824nx0.js +0 -1
- package/dist/client/static/js/yaml-kqqktdv1.js +0 -1
- package/src/server/lib/auth/client-address.ts +0 -89
- package/src/server/lib/auth/config.ts +0 -133
- package/src/server/lib/auth/rate-limit.ts +0 -146
- package/src/server/lib/auth/token.ts +0 -220
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Info, Keyboard, Settings, Smartphone } from 'lucide-preact';
|
|
2
|
-
import
|
|
2
|
+
import { FooterVersionInfo } from '@/client/components/common/footer-version';
|
|
3
3
|
import type { ShellDownload } from '@/client/hooks/ui/updates/shell-download';
|
|
4
4
|
import { ShellUpdateButton } from '@/client/components/common/shell-update-button';
|
|
5
|
+
import { AccountBadge } from '@/client/components/common/account-badge';
|
|
6
|
+
import { SignOutButton } from '@/client/components/common/SignOutButton';
|
|
7
|
+
import { useAccountCount } from '@/client/hooks/ui/auth';
|
|
5
8
|
|
|
6
9
|
export interface SessionSidebarFooterProps {
|
|
7
10
|
onSettings: () => void;
|
|
@@ -10,36 +13,33 @@ export interface SessionSidebarFooterProps {
|
|
|
10
13
|
onInfo: () => void;
|
|
11
14
|
updateAvailable?: boolean;
|
|
12
15
|
onUpdateClick?: () => void;
|
|
13
|
-
/** The native-shell artifact to offer, or null.
|
|
16
|
+
/** The native-shell artifact to offer, or null. */
|
|
14
17
|
shellDownload?: ShellDownload | null;
|
|
15
|
-
/**
|
|
16
|
-
* Switch the app to the phone layout for this page session only.
|
|
17
|
-
*
|
|
18
|
-
* It lives here, not in the top navbar, because the phone's own footer draws
|
|
19
|
-
* the mirror control ("Desktop") in the same slot: one switch, one position on
|
|
20
|
-
* both layouts. Dev-only — `App` passes it only outside a production build.
|
|
21
|
-
*/
|
|
22
18
|
onMobileToggle?: () => void;
|
|
23
|
-
/**
|
|
24
|
-
* The collapsed FOOTER DOCK's face: only the Settings mark, so the strip fits
|
|
25
|
-
* the rail's 44px card. Hovering (or focusing) that dock expands it to the
|
|
26
|
-
* full strip. The row is the same component either way, so the controls can
|
|
27
|
-
* never drift between the dock and the open column.
|
|
28
|
-
*/
|
|
19
|
+
/** The collapsed FOOTER DOCK's face: only the Settings mark. */
|
|
29
20
|
compact?: boolean;
|
|
30
21
|
}
|
|
31
22
|
|
|
32
23
|
/**
|
|
33
|
-
* The sidebar's bottom strip
|
|
24
|
+
* The sidebar's bottom strip: Kabmo-wide actions, the signed-in account, and
|
|
25
|
+
* the version. Sign out lives here rather than in the top navbar.
|
|
34
26
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* editor and diff toolbars already follow (AGENTS.md: "a bare `<svg onClick>`
|
|
39
|
-
* is unreachable by keyboard"). It is also what lets a browser spec address
|
|
40
|
-
* these controls by role and name instead of by their position in the DOM.
|
|
27
|
+
* Version and the update pill sit beside About while more than one account can
|
|
28
|
+
* sign in. With only the root account they stay on the right, which is the
|
|
29
|
+
* layout this strip shipped with.
|
|
41
30
|
*/
|
|
42
|
-
export function SessionSidebarFooter({
|
|
31
|
+
export function SessionSidebarFooter({
|
|
32
|
+
onSettings,
|
|
33
|
+
onKeyBindings,
|
|
34
|
+
onInfo,
|
|
35
|
+
onMobileToggle,
|
|
36
|
+
updateAvailable,
|
|
37
|
+
onUpdateClick,
|
|
38
|
+
shellDownload,
|
|
39
|
+
compact = false,
|
|
40
|
+
}: SessionSidebarFooterProps) {
|
|
41
|
+
const multiAccount = useAccountCount() > 1;
|
|
42
|
+
|
|
43
43
|
const settingsButton = (
|
|
44
44
|
<button
|
|
45
45
|
type="button"
|
|
@@ -53,14 +53,14 @@ export function SessionSidebarFooter({ onSettings, onKeyBindings, onInfo, onMobi
|
|
|
53
53
|
);
|
|
54
54
|
|
|
55
55
|
if (compact) {
|
|
56
|
-
// The dock's 44px face. It is the SAME Settings button, not a second copy:
|
|
57
|
-
// the collapsed dock's mark and the open strip's first control must agree.
|
|
58
56
|
return <div className="flex h-full items-center justify-center text-ink/60">{settingsButton}</div>;
|
|
59
57
|
}
|
|
60
58
|
|
|
59
|
+
|
|
60
|
+
|
|
61
61
|
return (
|
|
62
|
-
<div className="h-10 px-3 border-t border-ink/10 flex items-center justify-between text-ink/60 shrink-0">
|
|
63
|
-
<div className="flex
|
|
62
|
+
<div className="@container min-h-10 px-3 py-1.5 border-t border-ink/10 flex flex-nowrap items-center justify-between gap-1 text-ink/60 shrink-0">
|
|
63
|
+
<div className="flex min-w-0 items-center gap-1">
|
|
64
64
|
{settingsButton}
|
|
65
65
|
<button
|
|
66
66
|
type="button"
|
|
@@ -71,30 +71,8 @@ export function SessionSidebarFooter({ onSettings, onKeyBindings, onInfo, onMobi
|
|
|
71
71
|
>
|
|
72
72
|
<Keyboard size={16} />
|
|
73
73
|
</button>
|
|
74
|
-
<
|
|
75
|
-
type="button"
|
|
76
|
-
onClick={onInfo}
|
|
77
|
-
title="About Kabmo"
|
|
78
|
-
aria-label="About Kabmo"
|
|
79
|
-
className="p-1 rounded hover:text-ink hover:bg-ink/5 cursor-pointer transition-colors"
|
|
80
|
-
>
|
|
81
|
-
<Info size={16} />
|
|
82
|
-
</button>
|
|
83
|
-
{shellDownload && (
|
|
84
|
-
// Next to About. Two reasons to be here, and the label says which:
|
|
85
|
-
// an installed shell that is behind (an update), or an Android browser
|
|
86
|
-
// whose reader may not know the shell exists (an install). A desktop
|
|
87
|
-
// browser and an iOS browser get neither — see `useShellDownload`.
|
|
88
|
-
//
|
|
89
|
-
// A desktop shell that reported its architecture gets a BUTTON: the
|
|
90
|
-
// shell installs the artifact itself, and a link there would be a file
|
|
91
|
-
// in Downloads instead of an updated app.
|
|
92
|
-
<ShellUpdateButton download={shellDownload} variant="icon" />
|
|
93
|
-
)}
|
|
74
|
+
{shellDownload && <ShellUpdateButton download={shellDownload} variant="icon" />}
|
|
94
75
|
{onMobileToggle && (
|
|
95
|
-
// After the shell offer, which is the phone footer's own order
|
|
96
|
-
// (About · shell · Desktop): one strip, one sequence, so the layout
|
|
97
|
-
// switch keeps its place when the layout changes under it.
|
|
98
76
|
<button
|
|
99
77
|
type="button"
|
|
100
78
|
onClick={onMobileToggle}
|
|
@@ -105,18 +83,21 @@ export function SessionSidebarFooter({ onSettings, onKeyBindings, onInfo, onMobi
|
|
|
105
83
|
<Smartphone size={16} />
|
|
106
84
|
</button>
|
|
107
85
|
)}
|
|
86
|
+
<button
|
|
87
|
+
type="button"
|
|
88
|
+
onClick={onInfo}
|
|
89
|
+
title="About Kabmo"
|
|
90
|
+
aria-label="About Kabmo"
|
|
91
|
+
className="p-1 rounded hover:text-ink hover:bg-ink/5 cursor-pointer transition-colors"
|
|
92
|
+
>
|
|
93
|
+
<Info size={16} />
|
|
94
|
+
</button>
|
|
95
|
+
{multiAccount && <FooterVersionInfo updateAvailable={updateAvailable} onUpdateClick={onUpdateClick} />}
|
|
108
96
|
</div>
|
|
109
|
-
<div className="flex items-center gap-2">
|
|
110
|
-
<
|
|
111
|
-
{
|
|
112
|
-
|
|
113
|
-
type="button"
|
|
114
|
-
onClick={onUpdateClick}
|
|
115
|
-
className="px-2 py-0.5 rounded-full border border-ink/20 text-[10px] font-semibold text-ink hover:border-ink/40"
|
|
116
|
-
>
|
|
117
|
-
update
|
|
118
|
-
</button>
|
|
119
|
-
)}
|
|
97
|
+
<div className="flex min-w-0 shrink-0 items-center gap-2">
|
|
98
|
+
<AccountBadge labelClassName="hidden @[420px]:inline" />
|
|
99
|
+
<SignOutButton size={16} className="p-1 rounded hover:text-ink hover:bg-ink/5 cursor-pointer transition-colors" />
|
|
100
|
+
{!multiAccount && <FooterVersionInfo updateAvailable={updateAvailable} onUpdateClick={onUpdateClick} />}
|
|
120
101
|
</div>
|
|
121
102
|
</div>
|
|
122
103
|
);
|
|
@@ -146,7 +146,11 @@ export function FooterHost({ mode, width, ...footerProps }: FooterHostProps) {
|
|
|
146
146
|
left: inset,
|
|
147
147
|
bottom: inset,
|
|
148
148
|
width: expanded ? unfoldedWidth : collapsedWidth,
|
|
149
|
-
|
|
149
|
+
// The strip may wrap to a second row at a narrow width. An expanded
|
|
150
|
+
// dock lets its content set the height; the collapsed face stays the
|
|
151
|
+
// 40px rail card this spacer reserves.
|
|
152
|
+
height: expanded ? 'auto' : DOCK_HEIGHT_PX,
|
|
153
|
+
minHeight: DOCK_HEIGHT_PX,
|
|
150
154
|
margin: 0,
|
|
151
155
|
transition: 'width 160ms cubic-bezier(0.22, 1, 0.36, 1)',
|
|
152
156
|
}}
|
|
@@ -48,16 +48,18 @@
|
|
|
48
48
|
*
|
|
49
49
|
* The header must be opaque — rows scroll underneath it — and the colour it
|
|
50
50
|
* paints has to be the one the list sits on, or every folder draws a band.
|
|
51
|
-
* `--theme-paper` is the desktop column's
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
51
|
+
* `--theme-paper` is the desktop column's and the phone tabs panel's surface;
|
|
52
|
+
* `--theme-canvas` is the phone's classic drawer (see `shared/lib/theme/chrome.ts`
|
|
53
|
+
* and `workspace/panel-tabs`). `touch` alone cannot tell those apart — the tabs
|
|
54
|
+
* body is paper while the classic drawer is canvas — so the caller states the
|
|
55
|
+
* surface and a single `bg-canvas` for every phone header painted a lighter
|
|
56
|
+
* stripe behind each folder inside the tabs panel.
|
|
55
57
|
*/
|
|
56
58
|
|
|
57
59
|
import { useRef, useState } from 'preact/hooks';
|
|
58
60
|
import { useStuckHeader } from '@/client/hooks/ui/stuck-header';
|
|
59
61
|
import type { ReactNode } from 'preact/compat';
|
|
60
|
-
import { ChevronRight, FolderOpen, MoreHorizontal, Pin, Plus } from 'lucide-preact';
|
|
62
|
+
import { ChevronRight, FolderOpen, MoreHorizontal, Pin, Plus, Users } from 'lucide-preact';
|
|
61
63
|
import { AnchoredMenu } from '@/client/components/common/anchored-menu';
|
|
62
64
|
import { anchorRectOf, type AnchorRect } from '@/shared/lib/ui/menu-anchor';
|
|
63
65
|
import { SelectionCheckbox } from '@/client/components/common/batch-selection/SelectionCheckbox';
|
|
@@ -88,6 +90,11 @@ export interface WorkspaceHeaderProps {
|
|
|
88
90
|
menu?: ReactNode;
|
|
89
91
|
/** Taller row and larger tap targets for the phone drawer. */
|
|
90
92
|
touch?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* The surface the list sits on. The phone has two: the tabs panel is paper,
|
|
95
|
+
* the classic drawer is canvas. `touch` sets density only.
|
|
96
|
+
*/
|
|
97
|
+
surface?: 'paper' | 'canvas';
|
|
91
98
|
}
|
|
92
99
|
|
|
93
100
|
export function WorkspaceHeader({
|
|
@@ -105,9 +112,11 @@ export function WorkspaceHeader({
|
|
|
105
112
|
workspaceActive = false,
|
|
106
113
|
menu,
|
|
107
114
|
touch = false,
|
|
115
|
+
surface = 'paper',
|
|
108
116
|
}: WorkspaceHeaderProps) {
|
|
109
117
|
const ProjectIcon = getProjectIcon(folder.icon);
|
|
110
118
|
const accent = folder.accentColor || undefined;
|
|
119
|
+
const accentStyle = projectAccentStyle(accent) as unknown as Record<string, string>;
|
|
111
120
|
const triggerRef = useRef<HTMLButtonElement>(null);
|
|
112
121
|
// Captured when the menu OPENS, not while it is open: the list scrolls under
|
|
113
122
|
// it, so a rectangle read on every render would drag the panel along with the
|
|
@@ -123,9 +132,9 @@ export function WorkspaceHeader({
|
|
|
123
132
|
<div
|
|
124
133
|
ref={headerRef}
|
|
125
134
|
data-stuck={stuck ? '' : undefined}
|
|
126
|
-
className={`group/ws sticky top-0 z-10 -mx-1 flex items-center gap-1 rounded-md px-1 text-xs font-semibold text-ink ${
|
|
127
|
-
touch ? 'h-8
|
|
128
|
-
}`}
|
|
135
|
+
className={`group/ws sticky top-0 z-10 -mx-1 flex items-center gap-1 rounded-md px-1 text-xs font-semibold text-ink glass-sticky ${
|
|
136
|
+
touch ? 'h-8' : 'h-[26px]'
|
|
137
|
+
} ${surface === 'canvas' ? 'bg-canvas' : 'bg-paper'}`}
|
|
129
138
|
>
|
|
130
139
|
<button
|
|
131
140
|
type="button"
|
|
@@ -152,12 +161,19 @@ export function WorkspaceHeader({
|
|
|
152
161
|
referrerPolicy="no-referrer"
|
|
153
162
|
/>
|
|
154
163
|
) : (
|
|
155
|
-
<ProjectIcon size={15} className="project-accent-mark text-ink/70" style={
|
|
164
|
+
<ProjectIcon size={15} className="project-accent-mark text-ink/70" style={accentStyle} />
|
|
156
165
|
)}
|
|
157
166
|
</span>
|
|
158
167
|
)}
|
|
159
168
|
|
|
160
169
|
<span className="glass-sticky-label truncate text-[13px] font-semibold tracking-tight">{folder.name}</span>
|
|
170
|
+
{folder.isShared && (
|
|
171
|
+
<Users
|
|
172
|
+
size={10}
|
|
173
|
+
className="shrink-0 text-ink/40"
|
|
174
|
+
aria-label={`Shared by ${folder.ownerName ?? 'another account'}`}
|
|
175
|
+
/>
|
|
176
|
+
)}
|
|
161
177
|
{folder.isPinned && <Pin size={10} className="shrink-0 text-ink/45" />}
|
|
162
178
|
|
|
163
179
|
{/* The accent as a dot: the icon column keeps the chevron's slot, so the
|
|
@@ -211,7 +227,11 @@ export function WorkspaceHeader({
|
|
|
211
227
|
workspaceActive ? PRESSED_TOGGLE_CLASS : 'text-ink/40 hover:bg-ink/10 hover:text-ink'
|
|
212
228
|
} ${touch ? 'h-7 w-7' : 'h-[22px] w-[22px]'}`}
|
|
213
229
|
>
|
|
214
|
-
|
|
230
|
+
{/* The folder action names THIS workspace, so it carries the
|
|
231
|
+
workspace's own accent like the mark does. The generated hue
|
|
232
|
+
(330, pink) made it read as an unrelated folder — reported as
|
|
233
|
+
"folder workspace warnanya pink". */}
|
|
234
|
+
<FolderOpen size={touch ? 15 : 12} className="project-accent-mark" style={accentStyle} />
|
|
215
235
|
</button>
|
|
216
236
|
|
|
217
237
|
<button
|
|
@@ -59,6 +59,8 @@ export interface WorkspaceSectionProps {
|
|
|
59
59
|
forceExpanded?: boolean;
|
|
60
60
|
/** Row density: `touch` on the phone drawer, `compact` on the desktop dock. */
|
|
61
61
|
density?: SessionRowDensity;
|
|
62
|
+
/** The surface the rows sit on; the sticky header must paint the same one. */
|
|
63
|
+
surface?: 'paper' | 'canvas';
|
|
62
64
|
batch?: BatchBinding;
|
|
63
65
|
onSelectSession: (id: number | string) => void;
|
|
64
66
|
onNewSessionForFolder: (folderId: number) => void;
|
|
@@ -77,6 +79,7 @@ export function WorkspaceSection({
|
|
|
77
79
|
showArchived,
|
|
78
80
|
forceExpanded = false,
|
|
79
81
|
density = 'compact',
|
|
82
|
+
surface = 'paper',
|
|
80
83
|
batch,
|
|
81
84
|
onSelectSession,
|
|
82
85
|
onNewSessionForFolder,
|
|
@@ -230,6 +233,7 @@ export function WorkspaceSection({
|
|
|
230
233
|
onOpenWorkspacePanels={() => onOpenWorkspacePanels(folder.id)}
|
|
231
234
|
workspaceActive={String(activeSessionId) === workspaceSessionId(folder.id)}
|
|
232
235
|
touch={density === 'touch'}
|
|
236
|
+
surface={surface}
|
|
233
237
|
menu={
|
|
234
238
|
<WorkspaceOptionsMenu
|
|
235
239
|
variant="desktop"
|
|
@@ -70,7 +70,13 @@ export function ModernSidebarView({
|
|
|
70
70
|
onSelectWorkspaces,
|
|
71
71
|
onStartSessionSelection,
|
|
72
72
|
touch = false,
|
|
73
|
-
|
|
73
|
+
surface = 'paper',
|
|
74
|
+
}: SessionSidebarVariantProps & {
|
|
75
|
+
/** Phone drawer: taller targets and rows. */
|
|
76
|
+
touch?: boolean;
|
|
77
|
+
/** The surface this chrome is drawn on; the sticky header paints the same. */
|
|
78
|
+
surface?: 'paper' | 'canvas';
|
|
79
|
+
}) {
|
|
74
80
|
const [focus, setFocus] = useState<SessionFocus>('all');
|
|
75
81
|
const runningCount = useMemo(
|
|
76
82
|
() => runningSessionCount(folders, (id) => sessionStatus[id]),
|
|
@@ -144,6 +150,7 @@ export function ModernSidebarView({
|
|
|
144
150
|
showArchived={showArchived}
|
|
145
151
|
forceExpanded={searchQuery.trim().length > 0}
|
|
146
152
|
density={touch ? 'touch' : 'compact'}
|
|
153
|
+
surface={surface}
|
|
147
154
|
batch={batch}
|
|
148
155
|
onSelectSession={onSelectSession}
|
|
149
156
|
onNewSessionForFolder={onNewSessionForFolder}
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
*
|
|
9
9
|
* The header is opaque because rows scroll under it, so the colour it paints is
|
|
10
10
|
* visible as a band behind every folder. It must be the surface the list sits
|
|
11
|
-
* on: `--theme-paper` in the desktop column
|
|
12
|
-
* drawer (`shared/lib/theme/chrome.ts`).
|
|
13
|
-
*
|
|
11
|
+
* on: `--theme-paper` in the desktop column and the phone tabs panel,
|
|
12
|
+
* `--theme-canvas` in the phone classic drawer (`shared/lib/theme/chrome.ts`).
|
|
13
|
+
* Shipping one `bg-canvas` for every phone header put a lighter stripe behind
|
|
14
|
+
* each folder inside the tabs panel — the reported "belang" list.
|
|
14
15
|
*
|
|
15
16
|
* Rendered with `h()` against happy-dom, following
|
|
16
17
|
* `common/session-row/session-row.test.tsx`.
|
|
@@ -94,8 +95,14 @@ describe('modern workspace header', () => {
|
|
|
94
95
|
expect(header.className).not.toContain('bg-canvas');
|
|
95
96
|
});
|
|
96
97
|
|
|
97
|
-
test('the phone
|
|
98
|
+
test('the phone tabs panel paints paper, the surface its rows sit on', () => {
|
|
98
99
|
const header = mount({ touch: true });
|
|
100
|
+
expect(header.className).toContain('bg-paper');
|
|
101
|
+
expect(header.className).not.toContain('bg-canvas');
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
test('the phone classic drawer paints canvas, the surface its rows sit on', () => {
|
|
105
|
+
const header = mount({ touch: true, surface: 'canvas' });
|
|
99
106
|
expect(header.className).toContain('bg-canvas');
|
|
100
107
|
expect(header.className).not.toContain('bg-paper');
|
|
101
108
|
});
|
|
@@ -137,6 +144,20 @@ describe('modern workspace header', () => {
|
|
|
137
144
|
expect(workspace.className).toContain('shadow-inner');
|
|
138
145
|
});
|
|
139
146
|
|
|
147
|
+
/**
|
|
148
|
+
* The folder action names THIS workspace, so it must carry the workspace's
|
|
149
|
+
* accent — not the generated hue for the `FolderOpen` glyph (330, pink). The
|
|
150
|
+
* accent is the custom property pair `projectAccentStyle` derives; the inline
|
|
151
|
+
* `--project-accent` is what `project-accent-mark` paints.
|
|
152
|
+
*/
|
|
153
|
+
test('the folder action carries the workspace accent', () => {
|
|
154
|
+
const header = mount({ folder: { ...FOLDER, accentColor: '#38bdf8' } });
|
|
155
|
+
const workspace = (header.lastElementChild as HTMLElement).children[1] as HTMLElement;
|
|
156
|
+
const svg = workspace.querySelector('svg') as SVGElement;
|
|
157
|
+
expect(svg.getAttribute('class')).toContain('project-accent-mark');
|
|
158
|
+
expect(svg.getAttribute('style')).toContain('--project-accent');
|
|
159
|
+
});
|
|
160
|
+
|
|
140
161
|
test('the workspace button is its own control, not the disclosure', () => {
|
|
141
162
|
let opened = 0;
|
|
142
163
|
const header = mount({ onOpenWorkspacePanels: () => { opened += 1; } });
|
|
@@ -20,7 +20,7 @@ import { WorkspaceMark } from '@/client/components/common/workspace-mark';
|
|
|
20
20
|
import { StreamStatusDot } from '@/client/components/common/StreamStatusDot';
|
|
21
21
|
import { useInlineRename } from '@/client/hooks/ui/inline-rename';
|
|
22
22
|
import { useSessionRenaming } from '@/client/hooks/workspace/renaming-sessions';
|
|
23
|
-
import { dragRegionProps, titlebarInsetLeft } from '@/client/lib/desktop/titlebar';
|
|
23
|
+
import { dragRegionProps, railToggleBelongsToTitle, titlebarInsetLeft } from '@/client/lib/desktop/titlebar';
|
|
24
24
|
import { titlebarPaddingLeft } from '@/shared/lib/ui/titlebar';
|
|
25
25
|
import { CONTROL_BOX, CONTROL_BOX_PX, railAlignedInset } from '@/client/lib/ui/control-plate';
|
|
26
26
|
import { withChord } from '@/client/lib/ui/with-chord';
|
|
@@ -79,14 +79,22 @@ export function SessionTitleBar({
|
|
|
79
79
|
const hasSessionActions = Boolean(
|
|
80
80
|
sessionActions && (sessionActions.onRename || sessionActions.onRenameWithAi || sessionActions.onArchive || sessionActions.onDelete),
|
|
81
81
|
);
|
|
82
|
-
// The left bar normally carries the toggle.
|
|
83
|
-
// (no rail, width 0) hides that bar, and
|
|
82
|
+
// The left bar normally carries the toggle. This row owns it in two states:
|
|
83
|
+
// a fully collapsed column (no rail, width 0) hides that bar, and a rail
|
|
84
|
+
// closed under a native shell's own window controls has no room past them
|
|
85
|
+
// (`LeftBar` renders a slot then). Only the first case pads by the shell
|
|
86
|
+
// inset; the second keeps the row's `pl-6` — the app-name position — because
|
|
87
|
+
// the row itself already starts after the rail. When the chat is hidden this
|
|
88
|
+
// row is collapsed with it (CSS removes it from the tab order) and the bar
|
|
89
|
+
// keeps its own toggle.
|
|
84
90
|
const leftToggleInTitle = !sidebarOpen && !leftBarVisible;
|
|
91
|
+
const railToggleInTitle = floatingChrome && railToggleBelongsToTitle(!sidebarOpen && leftBarVisible);
|
|
92
|
+
const expandToggleInTitle = leftToggleInTitle || railToggleInTitle;
|
|
85
93
|
|
|
86
94
|
return (
|
|
87
95
|
<div
|
|
88
96
|
data-session-title=""
|
|
89
|
-
className={`relative flex
|
|
97
|
+
className={`relative flex items-center gap-2 pl-6 ${toggleInTitle ? 'pr-10' : 'pr-4'} titlebar-drag-region select-none`}
|
|
90
98
|
style={leftToggleInTitle ? { paddingLeft: titlebarInsetLeft(titlebarPaddingLeft('0.75rem')) } : undefined}
|
|
91
99
|
{...dragRegionProps()}
|
|
92
100
|
>
|
|
@@ -104,7 +112,7 @@ export function SessionTitleBar({
|
|
|
104
112
|
<PanelRight size={16} />
|
|
105
113
|
</button>
|
|
106
114
|
) : null}
|
|
107
|
-
{
|
|
115
|
+
{expandToggleInTitle ? (
|
|
108
116
|
<button
|
|
109
117
|
type="button"
|
|
110
118
|
onClick={onExpandSidebar}
|
|
@@ -94,7 +94,7 @@ describe('top bars', () => {
|
|
|
94
94
|
test('the left bar carries the sidebar toggle', async () => {
|
|
95
95
|
let toggles = 0;
|
|
96
96
|
const el = await mount(
|
|
97
|
-
h(LeftBar, { showLeftPanel: true, onToggleLeftPanel: () => { toggles += 1; } }),
|
|
97
|
+
h(LeftBar, { showLeftPanel: true, chatHidden: false, onToggleLeftPanel: () => { toggles += 1; } }),
|
|
98
98
|
);
|
|
99
99
|
const bar = el.querySelector('[data-float-bar="app"]');
|
|
100
100
|
// Open, the app name leads this bar above the dock — and marks the bar, so
|
|
@@ -112,12 +112,14 @@ describe('top bars', () => {
|
|
|
112
112
|
test('a collapsed left bar keeps the toggle but drops the app name', async () => {
|
|
113
113
|
let toggles = 0;
|
|
114
114
|
const el = await mount(
|
|
115
|
-
h(LeftBar, { showLeftPanel: false, onToggleLeftPanel: () => { toggles += 1; } }),
|
|
115
|
+
h(LeftBar, { showLeftPanel: false, chatHidden: false, onToggleLeftPanel: () => { toggles += 1; } }),
|
|
116
116
|
);
|
|
117
117
|
const bar = el.querySelector('[data-float-bar="app"]');
|
|
118
118
|
expect(bar?.textContent).not.toContain('Kabmo');
|
|
119
119
|
// No name, no card offset: this bar is narrower than the shell's controls.
|
|
120
120
|
expect(bar?.hasAttribute('data-app-name')).toBe(false);
|
|
121
|
+
// No name, no card offset: this bar is narrower than the shell's controls.
|
|
122
|
+
expect(bar?.hasAttribute('data-app-name')).toBe(false);
|
|
121
123
|
const toggle = [...(bar?.querySelectorAll('button') ?? [])].find((button) =>
|
|
122
124
|
/Expand Sidebar/.test(button.getAttribute('aria-label') ?? ''),
|
|
123
125
|
);
|
|
@@ -226,6 +226,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
226
226
|
return (
|
|
227
227
|
<div
|
|
228
228
|
data-testid="app-root"
|
|
229
|
+
data-mobile=""
|
|
229
230
|
className="app-window flex flex-col h-dvh w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas relative"
|
|
230
231
|
>
|
|
231
232
|
<WindowAura />
|
|
@@ -259,7 +260,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
259
260
|
/>
|
|
260
261
|
</div>
|
|
261
262
|
|
|
262
|
-
<div className={`flex-1 min-h-0 w-full ${currentScreen === 'session' ? 'block' : 'hidden'}`}>
|
|
263
|
+
<div data-mobile-screen="drawer" className={`flex-1 min-h-0 w-full ${currentScreen === 'session' ? 'block' : 'hidden'}`}>
|
|
263
264
|
<MobileSessionSidebar
|
|
264
265
|
activeSessionId={sessionId}
|
|
265
266
|
onSelectSession={handleSelectSession}
|
|
@@ -286,6 +287,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
|
|
|
286
287
|
already inert when nothing is running. */}
|
|
287
288
|
{rightScreen.mounted && (
|
|
288
289
|
<div
|
|
290
|
+
data-mobile-screen="drawer"
|
|
289
291
|
className={`flex-1 min-h-0 w-full ${rightScreen.leaving ? 'presence-leaving pointer-events-none' : 'presence-fade'}`}
|
|
290
292
|
data-presence={rightScreen.leaving ? 'leaving' : 'open'}
|
|
291
293
|
inert={rightScreen.leaving}
|
|
@@ -20,8 +20,10 @@ import { DrawerCloseAction, drawerStripProps } from '@/client/components/mobile/
|
|
|
20
20
|
import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
|
|
21
21
|
import { useRevealPanelTab, useRevealSignal } from '@/client/hooks/workspace/panel-tabs-reveal';
|
|
22
22
|
import { useMobilePanelNav } from '@/client/hooks/workspace/mobile-panel-nav';
|
|
23
|
+
import { useMobileChromeStyle } from '@/client/hooks/ui/mobile-chrome-style';
|
|
23
24
|
import { VisibilityMenu } from '@/client/components/layout/VisibilityMenu';
|
|
24
25
|
import { usePanelVisibilityMenu } from '@/client/hooks/workspace/panel-visibility-menu';
|
|
26
|
+
import { SAFE_BOTTOM } from '@/client/lib/ui/safe-area';
|
|
25
27
|
|
|
26
28
|
interface MobileRightSidebarProps {
|
|
27
29
|
enabled?: boolean;
|
|
@@ -97,6 +99,10 @@ export function MobileRightSidebar({
|
|
|
97
99
|
*/
|
|
98
100
|
const navStyle = useMobilePanelNav('right');
|
|
99
101
|
const tabsMode = navStyle === 'tabs';
|
|
102
|
+
// The right drawer draws the connected tab only on the FLOATING phone chrome;
|
|
103
|
+
// its classic title bar keeps the 36px chip. The left drawer is always
|
|
104
|
+
// connected (it is an interior row under the wordmark header).
|
|
105
|
+
const mobileChromeStyle = useMobileChromeStyle();
|
|
100
106
|
const known = useMemo(() => new Set(catalog.map((panel) => panel.id)), [catalog]);
|
|
101
107
|
const tabsState = usePanelTabs('right', known, null);
|
|
102
108
|
// Whether the session's blob actually holds a right-drawer view. Read through
|
|
@@ -264,7 +270,7 @@ export function MobileRightSidebar({
|
|
|
264
270
|
* top) and the close control, which moves into the strip's trailing actions.
|
|
265
271
|
*/
|
|
266
272
|
return (
|
|
267
|
-
<div className="flex flex-col h-full w-full bg-paper text-ink relative select-none">
|
|
273
|
+
<div data-mobile-float="drawer" className="flex flex-col h-full w-full bg-paper text-ink relative select-none">
|
|
268
274
|
{tabsMode ? null : (
|
|
269
275
|
<DrawerHeader
|
|
270
276
|
catalog={catalog}
|
|
@@ -282,7 +288,10 @@ export function MobileRightSidebar({
|
|
|
282
288
|
catalog={catalog}
|
|
283
289
|
tabs={tabHandle}
|
|
284
290
|
homeTitle="Panel kanan"
|
|
285
|
-
stripProps={
|
|
291
|
+
stripProps={{
|
|
292
|
+
...drawerStripProps(panelMenu.surfaceProps),
|
|
293
|
+
connected: mobileChromeStyle === 'floating',
|
|
294
|
+
}}
|
|
286
295
|
actions={<DrawerCloseAction side="right" onClose={onClose} />}
|
|
287
296
|
>
|
|
288
297
|
<div className="h-full w-full">
|
|
@@ -315,7 +324,7 @@ export function MobileRightSidebar({
|
|
|
315
324
|
{tabsMode ? null : (
|
|
316
325
|
<div
|
|
317
326
|
className="flex-1 min-h-0 overflow-hidden relative"
|
|
318
|
-
style={{ paddingBottom:
|
|
327
|
+
style={{ paddingBottom: SAFE_BOTTOM }}
|
|
319
328
|
>
|
|
320
329
|
<DrawerBody panel={activePanel} body={mobileBody} />
|
|
321
330
|
</div>
|
|
@@ -203,7 +203,7 @@ export function MobileSessionSidebar({
|
|
|
203
203
|
);
|
|
204
204
|
|
|
205
205
|
return (
|
|
206
|
-
<div className="flex flex-col h-full w-full bg-canvas text-ink relative select-none">
|
|
206
|
+
<div data-mobile-drawer="left" className="flex flex-col h-full w-full bg-canvas text-ink relative select-none">
|
|
207
207
|
|
|
208
208
|
{/* The title bar is drawn in BOTH chromes, because the LEFT column's is
|
|
209
209
|
not the strip: it carries the wordmark, the server chip and the close
|
|
@@ -219,6 +219,7 @@ export function MobileSessionSidebar({
|
|
|
219
219
|
menuProps={panelMenu.surfaceProps}
|
|
220
220
|
/>
|
|
221
221
|
|
|
222
|
+
<div data-mobile-drawer-card="panel" className="flex flex-1 min-h-0 flex-col">
|
|
222
223
|
{/* Under `tabs` the strip is the drawer's whole chrome (`PanelTabsColumn`
|
|
223
224
|
below), so the classic chip row is not drawn on top of it. Under
|
|
224
225
|
`classic` the strip is the phone's RAIL and follows the switch: with the
|
|
@@ -284,8 +285,10 @@ export function MobileSessionSidebar({
|
|
|
284
285
|
|
|
285
286
|
{/* The `classic` chrome: the chip row above is the rail, so the stack is
|
|
286
287
|
the whole remaining screen. */}
|
|
287
|
-
{dock.tabsMode ? null : <div className="
|
|
288
|
+
{dock.tabsMode ? null : <div className="flex h-full w-full min-h-0 flex-col">{drawerBody}</div>}
|
|
289
|
+
</div>
|
|
288
290
|
|
|
291
|
+
<div data-mobile-drawer-card="footer" className="shrink-0">
|
|
289
292
|
<MobileSessionFooter
|
|
290
293
|
onSettings={() => window.dispatchEvent(new CustomEvent('omp:open-settings', { detail: {} }))}
|
|
291
294
|
onKeyBindings={openKeyBindingHelp}
|
|
@@ -298,6 +301,7 @@ export function MobileSessionSidebar({
|
|
|
298
301
|
void updates.check();
|
|
299
302
|
}}
|
|
300
303
|
/>
|
|
304
|
+
</div>
|
|
301
305
|
|
|
302
306
|
<MobileDrawerDialogs
|
|
303
307
|
activeSessionId={activeSessionId}
|
|
@@ -59,9 +59,13 @@ describe('the tabs chrome is bounded', () => {
|
|
|
59
59
|
// down and cost another 56px — the reported "tabs too far from the top".
|
|
60
60
|
expect(strip.style.height).toBe('2.5rem');
|
|
61
61
|
expect(strip.style.paddingTop).toBe('0px');
|
|
62
|
-
// The
|
|
63
|
-
//
|
|
62
|
+
// The active tab now uses the connected row: full-height paper, 8px top
|
|
63
|
+
// corners, open bottom — the same language as a desktop column. Only the
|
|
64
|
+
// ROW loses the title bar.
|
|
64
65
|
const chip = container.querySelector('[role="tab"]') as HTMLElement;
|
|
65
|
-
expect(chip.className).toContain('h-
|
|
66
|
+
expect(chip.className).toContain('h-full');
|
|
67
|
+
expect(chip.className).toContain('rounded-t-md');
|
|
68
|
+
expect(chip.className).toContain('border-ink/20');
|
|
69
|
+
expect(chip.style.borderTopLeftRadius).toBe('8px');
|
|
66
70
|
});
|
|
67
71
|
});
|
|
@@ -47,6 +47,7 @@ export function drawerStripProps(
|
|
|
47
47
|
): {
|
|
48
48
|
dragRegion: boolean;
|
|
49
49
|
layout: ControlLayout;
|
|
50
|
+
connected: boolean;
|
|
50
51
|
rootProps: Record<string, unknown>;
|
|
51
52
|
style: CSSProperties;
|
|
52
53
|
} {
|
|
@@ -59,8 +60,12 @@ export function drawerStripProps(
|
|
|
59
60
|
dragRegion: false,
|
|
60
61
|
// Touch-sized chips; the row, not the chip, is what loses the title bar.
|
|
61
62
|
layout: 'mobile',
|
|
63
|
+
// The LEFT drawer is the only phone strip that draws the connected tab:
|
|
64
|
+
// it is an interior 40px row under the wordmark header, exactly a
|
|
65
|
+
// desktop column's row. The right drawer is the title bar and keeps chips.
|
|
66
|
+
connected: true,
|
|
62
67
|
// Only the long-press menu: the header above is the drag handle.
|
|
63
|
-
rootProps: { ...menuProps } as unknown as Record<string, unknown>,
|
|
68
|
+
rootProps: { 'data-mobile-drawer-strip': '', ...menuProps } as unknown as Record<string, unknown>,
|
|
64
69
|
// `CONTROL_ROW_HEIGHT.mobile` is the 56px title-bar row plus the notch;
|
|
65
70
|
// an interior row is the desktop column's 40px, stated inline because the
|
|
66
71
|
// strip's class list is shared with the drawer that IS a title bar.
|
|
@@ -70,10 +75,12 @@ export function drawerStripProps(
|
|
|
70
75
|
return {
|
|
71
76
|
dragRegion: true,
|
|
72
77
|
layout: 'mobile',
|
|
78
|
+
// The right drawer IS the title bar; its tabs stay the 36px chips.
|
|
79
|
+
connected: false,
|
|
73
80
|
// The ATTRIBUTE the shells hit-test, plus the drawer's long-press menu
|
|
74
81
|
// handlers. `dragRegionProps` is empty in a browser tab, where nothing may
|
|
75
82
|
// be dragged.
|
|
76
|
-
rootProps: { ...dragRegionProps(), ...menuProps } as unknown as Record<string, unknown>,
|
|
83
|
+
rootProps: { ...dragRegionProps(), 'data-mobile-drawer-strip': '', ...menuProps } as unknown as Record<string, unknown>,
|
|
77
84
|
// The row's height and the notch live in the strip's own classes
|
|
78
85
|
// (`TabStrip`): a `padding-top: env()` written here is dropped by
|
|
79
86
|
// happy-dom, and the two values belong together with the height they
|