@kabmo-labs/kabmo 0.61.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-ab8wswhm.js → Body-z6kstvk6.js} +3 -3
- package/dist/client/static/js/{CsvGrid-czssywvz.js → CsvGrid-f73c0s4e.js} +2 -2
- package/dist/client/static/js/{DocxView-ke0dwdmt.js → DocxView-a1pb7nsb.js} +3 -3
- package/dist/client/static/js/{DrawioView-a1whhy84.js → DrawioView-r61gcg24.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-dr32dwjy.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-2kdn91f9.js → PdfView-mppt2gkd.js} +1 -1
- package/dist/client/static/js/SessionsView-vvsaw9f0.js +1 -0
- package/dist/client/static/js/{SheetView-ettr9pdw.js → SheetView-5s9zfx9g.js} +9 -9
- package/dist/client/static/js/{SvgPreview-hzcejjry.js → SvgPreview-ff78xn3e.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-kdmv4y72.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-qyrwaq0x.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-tszxy2g7.js → blockDiagram-BEXU5L5S-t8xbexa6.js} +6 -6
- package/dist/client/static/js/c-vvantfth.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-0ye36hhv.js → c4Diagram-YGBWAQC7-9fwf2zxk.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-szgk1shv.js → classDiagram-v2-NBCMYWYE-nbapgqbs.js} +4 -4
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-0s9s4mmv.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-664g28ze.js → cynefinDiagram-VND7K2PF-qdg32wah.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-ga4rp1jx.js → dagre-6A5THRUB-qzshg1vs.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-aagj46ty.js → diagram-22UHCM2B-197hemfa.js} +11 -11
- package/dist/client/static/js/{diagram-3UASUU5V-20qk6whk.js → diagram-3UASUU5V-236gnjr6.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-1vg1tfca.js → diagram-ATOU4E4O-vjgpyaaq.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-90d6jrqs.js → diagram-CDSNMT55-ywvzcx7z.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-8je4z8m1.js → diagram-MLGK6HIB-9ey7ev7j.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-0kzpexsj.js → diagram-MPIPVDR6-vrqbb6r7.js} +2 -2
- package/dist/client/static/js/{dockerfile-5nrbr0ef.js → dockerfile-4nked309.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-47yg36zx.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-5hqp6r2d.js → elk-276RUBZZ-nej6yy1c.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-bt9te7r0.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-kzc13swm.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-bjf8aa3j.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-1fmjhm2d.js → index-0w1jzang.js} +5 -5
- package/dist/client/static/js/{index-kj70d2q9.js → index-1svt0cdw.js} +2 -2
- package/dist/client/static/js/{index-m24sebb0.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-k9yf2txw.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-jz4012t5.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-krdz5vby.js → index-dxyjxhm1.js} +2 -2
- package/dist/client/static/js/{index-zr3965k9.js → index-edpyqz9f.js} +1 -1
- package/dist/client/static/js/{index-h7agc069.js → index-eesepb70.js} +2 -2
- package/dist/client/static/js/{index-r38e0rya.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-9g2nzgpx.js → index-jcbp1d9d.js} +6 -6
- package/dist/client/static/js/index-jg5h18sm.js +2 -0
- package/dist/client/static/js/{index-bq9f0mxp.js → index-jtdve6xw.js} +7 -7
- package/dist/client/static/js/{index-kyr612aa.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-sr14vwn5.js → index-kv1xnem9.js} +2 -2
- package/dist/client/static/js/{index-xy0m8te9.js → index-m54ctmxr.js} +1 -1
- package/dist/client/static/js/index-mgzbypt5.js +314 -0
- package/dist/client/static/js/{index-85jfn1fz.js → index-mh52531j.js} +2 -2
- package/dist/client/static/js/{index-776n5n29.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-3x7cbxwq.js → index-nxd6z7f9.js} +2 -2
- package/dist/client/static/js/{index-dabnbvbc.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-475dc6h9.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-z5s9tmj8.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-653x8zdq.js → index-w0j96eyy.js} +8 -8
- package/dist/client/static/js/{index-24a40rw8.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-vn59zz0k.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-vgcw01yk.js → index-zy963qbh.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-t7pbg7rt.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-jy5zvvj8.js → infoDiagram-VRGFBTTK-9pe7w3r5.js} +2 -2
- package/dist/client/static/js/ini-522adp5a.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-pfky1nnf.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-mvaf7rfh.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-hw2xwe6e.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-hsw87hmq.js → mermaid.core-3aae27b9.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-wfe4d846.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-cvnmxgst.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-0n3gz7sv.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-9qqh6xvv.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-5f3x3762.js → railroadDiagram-XR7U4H2S-70qy7qdh.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-a68bv6kh.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-qjhdt4b0.js → rust-6sddyxnt.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-ry7xcphh.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-mekzzhet.js → sequenceDiagram-PO4LG4MO-w7z84f80.js} +7 -7
- package/dist/client/static/js/{sizeCapture-INFHLROL-pvc16ame.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-3ytxby83.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-c2zfp416.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-sz6b7bnv.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-xvtyvde9.js → wardleyDiagram-VNRHLVJA-hjddd656.js} +3 -3
- package/dist/client/static/js/xml-59n0cjn6.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-jcs20s84.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 -39
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +76 -58
- 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-zf4kh5wp.js +0 -1
- package/dist/client/static/js/LayoutWrapper-dncbzcea.js +0 -2
- package/dist/client/static/js/MergeDiffView-btdx9yb9.js +0 -1
- package/dist/client/static/js/Modal-5cxfw2rv.js +0 -60
- package/dist/client/static/js/SessionsView-vbn0nvx4.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-500fcx2a.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-0kcnghxn.js +0 -4
- package/dist/client/static/js/index-2zhmmtye.js +0 -2
- package/dist/client/static/js/index-4vtc4xct.js +0 -481
- package/dist/client/static/js/index-5srvxsht.js +0 -2
- package/dist/client/static/js/index-6c1s0v4b.js +0 -1
- package/dist/client/static/js/index-cvm2ha01.js +0 -1
- package/dist/client/static/js/index-d11mbz2q.js +0 -4
- package/dist/client/static/js/index-fen0x3qh.js +0 -1
- package/dist/client/static/js/index-gwgh27h3.js +0 -314
- package/dist/client/static/js/index-hxy1sadd.js +0 -2
- package/dist/client/static/js/index-pg87cgpy.js +0 -2
- package/dist/client/static/js/index-q1a40v20.js +0 -3
- package/dist/client/static/js/index-qmvstmvh.js +0 -1
- package/dist/client/static/js/index-t6nqy2n5.css +0 -1
- package/dist/client/static/js/index-wf5j0009.js +0 -10
- package/dist/client/static/js/index-y6zbkh4p.js +0 -2
- 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-ckq5capv.js +0 -1
- package/dist/client/static/js/one-light-a908z398.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-9gm67sq4.js +0 -8
- package/dist/client/static/js/timeline-definition-EJHVYXUP-xtvv4za2.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-56q0qs51.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
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* One file tab in the editor column's strip.
|
|
8
8
|
*
|
|
9
|
-
* Drawn in the PANEL TABS language: a
|
|
10
|
-
* the active
|
|
11
|
-
* bottom edge, and a
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* Drawn in the PANEL TABS language: a full-height tab inset 2px from the row's
|
|
10
|
+
* top, 8px top corners, the active tab on the body's paper surface with
|
|
11
|
+
* top/side hairlines and no bottom edge, and a single full-height hover plate
|
|
12
|
+
* for the inactive ones. There is no neck: the tab itself reaches the paper
|
|
13
|
+
* toolbar below, so switching tabs does not change the drawn height.
|
|
14
14
|
*
|
|
15
15
|
* Kept out of `Tabs.tsx` (which owns selection, overflow and the context menu):
|
|
16
16
|
* the tab is the one piece with file-specific decoration (diff badge, missing
|
|
@@ -48,29 +48,33 @@ export function EditorTab({
|
|
|
48
48
|
onClick={onSelect}
|
|
49
49
|
onContextMenu={onContextMenu}
|
|
50
50
|
title={missing ? `${file.path} — file no longer exists` : file.path}
|
|
51
|
-
className="group relative flex h-full flex-none items-center"
|
|
51
|
+
className="group relative flex h-full flex-none items-center pt-0.5"
|
|
52
52
|
>
|
|
53
|
-
{/* ONE hover plate, spanning the
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
{/* ONE hover plate, spanning the row (minus the 2px top inset) and drawn
|
|
54
|
+
BEHIND the chip. The old chip tint plus a tail was two boxes, so the
|
|
55
|
+
junction showed a patahan; the old tail also let the strip's hairline
|
|
56
|
+
show through when translucent. */}
|
|
57
57
|
{!isActive ? (
|
|
58
58
|
<span
|
|
59
59
|
aria-hidden="true"
|
|
60
60
|
data-editor-tab-hover=""
|
|
61
61
|
style={{
|
|
62
|
-
top: 6,
|
|
63
|
-
bottom: 0,
|
|
64
62
|
backgroundColor:
|
|
65
63
|
'color-mix(in srgb, var(--theme-ink) 15%, var(--theme-canvas))',
|
|
64
|
+
borderTopLeftRadius: '8px',
|
|
65
|
+
borderTopRightRadius: '8px',
|
|
66
66
|
}}
|
|
67
|
-
className="absolute inset-x-0 rounded-t-md opacity-0 transition-opacity group-hover:opacity-100"
|
|
67
|
+
className="absolute inset-x-0 top-0.5 bottom-0 rounded-t-md opacity-0 transition-opacity group-hover:opacity-100"
|
|
68
68
|
/>
|
|
69
69
|
) : null}
|
|
70
70
|
<div
|
|
71
|
-
|
|
71
|
+
style={{
|
|
72
|
+
borderTopLeftRadius: '8px',
|
|
73
|
+
borderTopRightRadius: '8px',
|
|
74
|
+
}}
|
|
75
|
+
className={`relative flex h-full min-w-[120px] max-w-[210px] flex-none cursor-pointer items-center gap-1.5 px-3 transition-colors ${
|
|
72
76
|
isActive
|
|
73
|
-
? 'rounded-t-md border-x border-t border-ink/
|
|
77
|
+
? 'rounded-t-md border-x border-t border-ink/20 bg-paper text-ink'
|
|
74
78
|
: 'text-ink/60 hover:text-ink'
|
|
75
79
|
}`}
|
|
76
80
|
>
|
|
@@ -94,17 +98,6 @@ export function EditorTab({
|
|
|
94
98
|
)}
|
|
95
99
|
<TabCloseButton dirty={dirty} active={isActive} label={`Close ${file.name}`} onClose={onClose} />
|
|
96
100
|
</div>
|
|
97
|
-
{/* The chip is 28px, centred on the row; the neck is a sibling so it can
|
|
98
|
-
span the tab's full border-box width and land exactly on the row floor
|
|
99
|
-
(32..40), covering the strip's hairline and joining the paper toolbar
|
|
100
|
-
below. No bottom border: the tab opens into the column. */}
|
|
101
|
-
{isActive ? (
|
|
102
|
-
<span
|
|
103
|
-
aria-hidden="true"
|
|
104
|
-
data-editor-tab-neck=""
|
|
105
|
-
className="pointer-events-none absolute inset-x-0 bottom-0 h-2 border-x border-ink/10 bg-paper"
|
|
106
|
-
/>
|
|
107
|
-
) : null}
|
|
108
101
|
</div>
|
|
109
102
|
);
|
|
110
103
|
}
|
|
@@ -128,22 +128,26 @@ describe('EditorTabs missing-file decoration', () => {
|
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
describe('EditorTabs panel-chip style', () => {
|
|
131
|
-
test('the active tab is
|
|
131
|
+
test('the active tab is full-height paper with 8px top corners and no neck', async () => {
|
|
132
132
|
await mount(new Set());
|
|
133
133
|
const chip = nameNode('keep.ts')!.parentElement as HTMLElement;
|
|
134
134
|
expect(chip.className).toContain('bg-paper');
|
|
135
135
|
expect(chip.className).toContain('rounded-t-md');
|
|
136
136
|
expect(chip.className).toContain('border-x');
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
expect(chip.className).toContain('border-ink/20');
|
|
138
|
+
expect(chip.className).toContain('h-full');
|
|
139
|
+
expect(chip.style.borderTopLeftRadius).toBe('8px');
|
|
140
|
+
expect(chip.style.borderTopRightRadius).toBe('8px');
|
|
141
|
+
// The old first-generation tab: a thick top accent and a right separator.
|
|
139
142
|
expect(chip.className).not.toContain('border-t-2');
|
|
140
143
|
expect(chip.className).not.toContain('border-r');
|
|
141
144
|
const wrapper = chip.parentElement as HTMLElement;
|
|
142
|
-
expect(wrapper.
|
|
145
|
+
expect(wrapper.className).toContain('pt-0.5');
|
|
146
|
+
expect(wrapper.querySelector('[data-editor-tab-neck]')).toBeNull();
|
|
143
147
|
expect(wrapper.querySelector('[data-editor-tab-hover]')).toBeNull();
|
|
144
148
|
});
|
|
145
149
|
|
|
146
|
-
test('an inactive tab has no separator and a single hover plate', async () => {
|
|
150
|
+
test('an inactive tab has no separator and a single full-height hover plate', async () => {
|
|
147
151
|
await mount(new Set());
|
|
148
152
|
const chip = nameNode('gone.ts')!.parentElement as HTMLElement;
|
|
149
153
|
expect(chip.className).not.toContain('border-r');
|
|
@@ -154,9 +158,11 @@ describe('EditorTabs panel-chip style', () => {
|
|
|
154
158
|
const hover = wrapper.querySelector('[data-editor-tab-hover]') as HTMLElement;
|
|
155
159
|
expect(hover).not.toBeNull();
|
|
156
160
|
expect(chip.querySelector('[data-editor-tab-hover]')).toBeNull();
|
|
161
|
+
expect(hover.className).toContain('top-0.5');
|
|
162
|
+
expect(hover.className).toContain('bottom-0');
|
|
157
163
|
expect(hover.className).toContain('rounded-t-md');
|
|
158
|
-
expect(hover.style.
|
|
159
|
-
expect(hover.style.
|
|
164
|
+
expect(hover.style.borderTopLeftRadius).toBe('8px');
|
|
165
|
+
expect(hover.style.borderTopRightRadius).toBe('8px');
|
|
160
166
|
});
|
|
161
167
|
|
|
162
168
|
test('the strip rule lives inside the row so the neck can cut it', async () => {
|
|
@@ -44,6 +44,7 @@ export function Header({
|
|
|
44
44
|
});
|
|
45
45
|
return (
|
|
46
46
|
<div
|
|
47
|
+
data-mobile-history-header=""
|
|
47
48
|
className="flex flex-col gap-2 px-3 lg:px-5 py-3 border-b border-ink/10 bg-paper select-none
|
|
48
49
|
pl-[max(0.75rem,env(safe-area-inset-left,0px))] pr-[max(0.75rem,env(safe-area-inset-right,0px))]"
|
|
49
50
|
>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The commit HISTORY and GRAPH view is one floating card on the phone.
|
|
8
|
+
*
|
|
9
|
+
* The modal is full-bleed in the classic chrome (`w-full h-full rounded-none
|
|
10
|
+
* border-0`), so the floating contract is CSS: a gutter, a card surface, and
|
|
11
|
+
* the notch on the scrim instead of inside the card's own padding.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { describe, expect, test } from 'bun:test';
|
|
15
|
+
import { readClientCss, ruleBody } from '@/test-support/glass-css';
|
|
16
|
+
|
|
17
|
+
const PHONE = "html[data-mobile-chrome='floating'] .app-window[data-mobile]";
|
|
18
|
+
|
|
19
|
+
describe('the phone floating commit history', () => {
|
|
20
|
+
test('the history and graph view is one card with the notch on the scrim', async () => {
|
|
21
|
+
const css = await readClientCss('floating.css');
|
|
22
|
+
const scrim = ruleBody(css, `${PHONE} [data-mobile-history]`);
|
|
23
|
+
expect(scrim).toContain(
|
|
24
|
+
'padding-top: calc(var(--float-gutter) + env(safe-area-inset-top, 0px))',
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
const card = ruleBody(css, `${PHONE} [data-mobile-history-card]`);
|
|
28
|
+
expect(card).toContain('border: 1px solid var(--float-hairline)');
|
|
29
|
+
expect(card).toContain('border-radius: var(--float-radius)');
|
|
30
|
+
expect(card).toContain('background-color: var(--float-surface)');
|
|
31
|
+
// The card's own top safe-area inset would reserve the notch twice.
|
|
32
|
+
expect(card).toContain('padding-top: 0');
|
|
33
|
+
|
|
34
|
+
expect(ruleBody(css, `${PHONE} [data-mobile-history-header]`)).toContain(
|
|
35
|
+
'background-color: transparent',
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
const [modal, header] = await Promise.all([
|
|
39
|
+
Bun.file(new URL('./index.tsx', import.meta.url)).text(),
|
|
40
|
+
Bun.file(new URL('./Header.tsx', import.meta.url)).text(),
|
|
41
|
+
]);
|
|
42
|
+
expect(modal).toContain('data-mobile-history=""');
|
|
43
|
+
expect(modal).toContain('data-mobile-history-card=""');
|
|
44
|
+
expect(header).toContain('data-mobile-history-header=""');
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -233,6 +233,7 @@ export function GitCommitModal({
|
|
|
233
233
|
|
|
234
234
|
return (
|
|
235
235
|
<div
|
|
236
|
+
data-mobile-history=""
|
|
236
237
|
className="fixed inset-0 z-50 modal-scrim backdrop-blur-xs flex items-center justify-center p-0 lg:p-5"
|
|
237
238
|
onClick={onClose}
|
|
238
239
|
role="dialog"
|
|
@@ -240,6 +241,7 @@ export function GitCommitModal({
|
|
|
240
241
|
aria-label={output.title}
|
|
241
242
|
>
|
|
242
243
|
<div
|
|
244
|
+
data-mobile-history-card=""
|
|
243
245
|
className="glass-overlay bg-paper border-ink/20 shadow-2xl flex flex-col overflow-hidden
|
|
244
246
|
w-full h-full rounded-none border-0
|
|
245
247
|
lg:w-[min(94vw,1200px)] lg:h-[88vh] lg:rounded-xl lg:border
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
* sized from it runs under the browser chrome. The frame carries the notch and
|
|
33
33
|
* the shell's insets (`phoneFrameStyle`), so the first row's close control is
|
|
34
34
|
* not under a status bar or a traffic light, and the bottom keeps
|
|
35
|
-
*
|
|
36
|
-
* indicator.
|
|
35
|
+
* the shared `--kabmo-safe-bottom` so the last model row is not under the home
|
|
36
|
+
* indicator or the APK's navigation bar.
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
39
|
import { useRef } from 'preact/hooks';
|
|
@@ -41,6 +41,7 @@ import type { ComponentChildren } from 'preact';
|
|
|
41
41
|
import { createPortal } from 'preact/compat';
|
|
42
42
|
import { useKeyboardInset } from '@/client/hooks/ui/keyboard-inset';
|
|
43
43
|
import { phoneFrameStyle } from '@/client/lib/ui/phone-row';
|
|
44
|
+
import { SAFE_BOTTOM } from '@/client/lib/ui/safe-area';
|
|
44
45
|
|
|
45
46
|
interface ModelFullscreenProps {
|
|
46
47
|
open: boolean;
|
|
@@ -70,9 +71,7 @@ export function ModelFullscreen({ open, children }: ModelFullscreenProps) {
|
|
|
70
71
|
<div
|
|
71
72
|
className="flex min-h-0 flex-1 flex-col"
|
|
72
73
|
style={{
|
|
73
|
-
paddingBottom: keyboardInset > 0
|
|
74
|
-
? keyboardInset
|
|
75
|
-
: 'env(safe-area-inset-bottom, 0px)',
|
|
74
|
+
paddingBottom: keyboardInset > 0 ? keyboardInset : SAFE_BOTTOM,
|
|
76
75
|
}}
|
|
77
76
|
>
|
|
78
77
|
{children}
|
|
@@ -44,6 +44,13 @@ export interface TabChipProps {
|
|
|
44
44
|
noDrag: boolean;
|
|
45
45
|
/** Which density this chip draws at — the strip's own layout. */
|
|
46
46
|
layout: ControlLayout;
|
|
47
|
+
/**
|
|
48
|
+
* Draw the connected tab language: full row height, body surface, 8px top
|
|
49
|
+
* corners, one hover plate. The phone's LEFT drawer sets it; its right drawer
|
|
50
|
+
* (the title bar) keeps the 36px chip, so this is a caller fact, not a
|
|
51
|
+
* `layout` fact — both drawers report `mobile`.
|
|
52
|
+
*/
|
|
53
|
+
connected: boolean;
|
|
47
54
|
chipRef: (element: HTMLElement | null) => void;
|
|
48
55
|
onSelect: () => void;
|
|
49
56
|
onClose: () => void;
|
|
@@ -61,6 +68,7 @@ export function TabChip({
|
|
|
61
68
|
dragging,
|
|
62
69
|
noDrag,
|
|
63
70
|
layout,
|
|
71
|
+
connected,
|
|
64
72
|
chipRef,
|
|
65
73
|
onSelect,
|
|
66
74
|
onClose,
|
|
@@ -75,26 +83,26 @@ export function TabChip({
|
|
|
75
83
|
// everything inside it: `app-region` inherits, so marking the chip's
|
|
76
84
|
// controls one at a time is how a future control gets forgotten.
|
|
77
85
|
<div
|
|
78
|
-
className={`group relative flex flex-none items-center${noDrag ? ' titlebar-no-drag' : ''}`}
|
|
86
|
+
className={`group relative flex flex-none ${connected ? 'items-stretch pt-0.5' : 'items-center'}${noDrag ? ' titlebar-no-drag' : ''}`}
|
|
79
87
|
>
|
|
80
88
|
{/* ONE hover plate, not the chip tint plus a tail: the chip and the tail
|
|
81
89
|
used to be two boxes, so their rounded/full-width junction showed a
|
|
82
|
-
patahan on hover. This plate spans the
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
{
|
|
90
|
+
patahan on hover. This plate spans the connected row (minus the 2px
|
|
91
|
+
top inset) and draws BEHIND the chip (the positioned chip comes after
|
|
92
|
+
it). Its fill is opaque — the strip's composite plus the 5% hover tint
|
|
93
|
+
— so it also hides the strip's bottom hairline. A chip strip (the
|
|
94
|
+
phone's right drawer) keeps the chip's own hover tint and no plate. */}
|
|
95
|
+
{connected && !isActive ? (
|
|
88
96
|
<span
|
|
89
97
|
aria-hidden="true"
|
|
90
98
|
data-panel-tab-hover=""
|
|
91
99
|
style={{
|
|
92
|
-
top: 6,
|
|
93
|
-
bottom: 0,
|
|
94
100
|
backgroundColor:
|
|
95
101
|
'color-mix(in srgb, var(--theme-ink) 5%, color-mix(in srgb, var(--theme-canvas) 60%, var(--theme-paper)))',
|
|
102
|
+
borderTopLeftRadius: '8px',
|
|
103
|
+
borderTopRightRadius: '8px',
|
|
96
104
|
}}
|
|
97
|
-
className="absolute inset-x-0 rounded-t-md opacity-0 transition-opacity group-hover:opacity-100"
|
|
105
|
+
className="absolute inset-x-0 top-0.5 bottom-0 rounded-t-md opacity-0 transition-opacity group-hover:opacity-100"
|
|
98
106
|
/>
|
|
99
107
|
) : null}
|
|
100
108
|
<div
|
|
@@ -123,17 +131,26 @@ export function TabChip({
|
|
|
123
131
|
if (!reorderable) return;
|
|
124
132
|
onDragEnd();
|
|
125
133
|
}}
|
|
126
|
-
|
|
127
|
-
|
|
134
|
+
style={
|
|
135
|
+
isActive && connected
|
|
136
|
+
? {
|
|
137
|
+
borderTopLeftRadius: '8px',
|
|
138
|
+
borderTopRightRadius: '8px',
|
|
139
|
+
}
|
|
140
|
+
: undefined
|
|
141
|
+
}
|
|
142
|
+
className={`relative flex max-w-[170px] flex-none items-center transition-colors ${
|
|
143
|
+
closable ? 'min-w-[80px]' : 'min-w-0'
|
|
144
|
+
} ${
|
|
145
|
+
connected ? 'h-full' : 'h-9'
|
|
128
146
|
} ${
|
|
129
147
|
isActive
|
|
130
|
-
?
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
} hover:text-ink`
|
|
148
|
+
? connected
|
|
149
|
+
? 'rounded-t-md border-x border-t border-ink/20 bg-paper text-ink'
|
|
150
|
+
: 'rounded-md bg-ink/[0.08] text-ink'
|
|
151
|
+
: connected
|
|
152
|
+
? 'text-ink/60 hover:text-ink'
|
|
153
|
+
: 'rounded-md text-ink/60 hover:bg-ink/5 hover:text-ink'
|
|
137
154
|
} ${reorderable && closable ? 'cursor-grab active:cursor-grabbing' : ''} ${
|
|
138
155
|
dragging ? 'opacity-40' : ''
|
|
139
156
|
}`}
|
|
@@ -145,7 +162,7 @@ export function TabChip({
|
|
|
145
162
|
title={panel.title}
|
|
146
163
|
aria-label={panel.title}
|
|
147
164
|
className={`flex h-full min-w-0 flex-1 cursor-pointer items-center gap-1.5 py-1 pl-2 text-left ${
|
|
148
|
-
layout === 'mobile' ? 'pr-8' : 'pr-6'
|
|
165
|
+
closable ? (layout === 'mobile' ? 'pr-8' : 'pr-6') : 'pr-2'
|
|
149
166
|
}`}
|
|
150
167
|
>
|
|
151
168
|
<PanelMark
|
|
@@ -173,31 +190,15 @@ export function TabChip({
|
|
|
173
190
|
ACTIVE chip look like the only closable one. The tint still dims
|
|
174
191
|
a background tab so the strip reads in one pass. */
|
|
175
192
|
className={`absolute flex cursor-pointer items-center justify-center rounded transition-colors hover:bg-ink/10 hover:text-ink ${
|
|
176
|
-
|
|
193
|
+
connected
|
|
194
|
+
? `top-1/2 -translate-y-1/2 ${layout === 'mobile' ? 'right-0.5 h-7 w-7' : 'right-1 h-5 w-5'}`
|
|
195
|
+
: 'top-0.5 right-0.5 h-7 w-7'
|
|
177
196
|
} ${isActive ? 'text-ink/45' : 'text-ink/30'}`}
|
|
178
197
|
>
|
|
179
198
|
<X size={11} />
|
|
180
199
|
</button>
|
|
181
200
|
) : null}
|
|
182
201
|
</div>
|
|
183
|
-
{/* The neck is a SIBLING of the chip, spanning the wrapper's full width
|
|
184
|
-
(the chip's border box), so its left/right hairlines continue the
|
|
185
|
-
chip's. Desktop: the wrapper is the 40px row, so `bottom-0 h-2`
|
|
186
|
-
reaches the floor from the chip's last 2px. Mobile: the wrapper is
|
|
187
|
-
only the chip's 36px box, so `top-full h-3` starts at the chip's
|
|
188
|
-
bottom and the strip's scroller clips it at the row floor — the
|
|
189
|
-
visible tail is 10px in the 56px title-bar drawer and 2px in the
|
|
190
|
-
40px interior one, without a per-row height. The paper covers the
|
|
191
|
-
strip's rule either way. No bottom border: the tab opens into view. */}
|
|
192
|
-
{isActive ? (
|
|
193
|
-
<span
|
|
194
|
-
aria-hidden="true"
|
|
195
|
-
data-panel-tab-neck=""
|
|
196
|
-
className={`pointer-events-none absolute inset-x-0 border-x border-ink/10 bg-paper ${
|
|
197
|
-
layout === 'mobile' ? 'top-full h-3' : 'bottom-0 h-2'
|
|
198
|
-
}`}
|
|
199
|
-
/>
|
|
200
|
-
) : null}
|
|
201
202
|
</div>
|
|
202
203
|
);
|
|
203
204
|
}
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* The
|
|
8
|
-
*
|
|
7
|
+
* The connected tab (desktop and the phone's LEFT drawer): full row, 8px top
|
|
8
|
+
* corners; the phone's RIGHT drawer keeps the chip. Also the one hover plate
|
|
9
|
+
* and the pinned tab's name-hugging width.
|
|
9
10
|
*
|
|
10
11
|
* Split from `TabStrip.test.tsx` for the per-file ceiling; the harness is the
|
|
11
12
|
* same pure-props render, because the contract is about classes the DOM can be
|
|
@@ -63,7 +64,10 @@ function panel(id: string, label: string): ResolvedPanel {
|
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
const SESSIONS = panel('sessions', 'Sessions');
|
|
68
|
+
const FILES = panel('files', 'Files');
|
|
69
|
+
|
|
70
|
+
function mount(props: Partial<Parameters<typeof PanelTabStrip>[0]> = {}) {
|
|
67
71
|
container = document.createElement('div');
|
|
68
72
|
document.body.appendChild(container);
|
|
69
73
|
act(() => {
|
|
@@ -75,78 +79,107 @@ function mount(layout: 'desktop' | 'mobile' = 'desktop') {
|
|
|
75
79
|
['git', panel('git', 'GIT')],
|
|
76
80
|
]),
|
|
77
81
|
active: 'files',
|
|
78
|
-
layout,
|
|
79
82
|
onAdd: () => {},
|
|
80
83
|
onSelect: () => {},
|
|
81
84
|
onClose: () => {},
|
|
85
|
+
...props,
|
|
82
86
|
}),
|
|
83
87
|
container,
|
|
84
88
|
);
|
|
85
89
|
});
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
describe('connected
|
|
89
|
-
test('
|
|
92
|
+
describe('connected tabs', () => {
|
|
93
|
+
test('desktop active is full-height paper with 8px top corners and an open bottom', () => {
|
|
90
94
|
mount();
|
|
91
95
|
const [active, inactive] = [...container.querySelectorAll('[role="tab"]')] as HTMLElement[];
|
|
92
|
-
|
|
93
|
-
// bottom, so the rule under the strip stops at the tab and the column reads
|
|
94
|
-
// as one piece instead of a band over a pane.
|
|
95
|
-
expect(active.className).toContain('rounded-t-md');
|
|
96
|
+
expect(active.className).toContain('h-full');
|
|
96
97
|
expect(active.className).toContain('bg-paper');
|
|
97
|
-
expect(active.className).toContain('
|
|
98
|
-
// Side borders continue into the neck, so the tab's shape reaches the
|
|
99
|
-
// body; the bottom stays open.
|
|
98
|
+
expect(active.className).toContain('rounded-t-md');
|
|
100
99
|
expect(active.className).toContain('border-x');
|
|
100
|
+
expect(active.className).toContain('border-t');
|
|
101
|
+
expect(active.className).toContain('border-ink/20');
|
|
101
102
|
expect(active.className).not.toContain('border-b');
|
|
103
|
+
expect(active.style.borderTopLeftRadius).toBe('8px');
|
|
104
|
+
expect(active.style.borderTopRightRadius).toBe('8px');
|
|
105
|
+
expect(active.style.borderBottomLeftRadius).toBe('');
|
|
106
|
+
const wrapper = active.parentElement as HTMLElement;
|
|
107
|
+
expect(wrapper.className).toContain('items-stretch');
|
|
108
|
+
expect(wrapper.className).toContain('pt-0.5');
|
|
109
|
+
expect(wrapper.querySelector('[data-panel-tab-neck]')).toBeNull();
|
|
102
110
|
expect(inactive.className).not.toContain('rounded-t-md');
|
|
103
111
|
});
|
|
104
112
|
|
|
105
|
-
test('the
|
|
106
|
-
mount();
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
expect(
|
|
111
|
-
expect(
|
|
112
|
-
const
|
|
113
|
-
expect(
|
|
114
|
-
expect(
|
|
115
|
-
|
|
116
|
-
expect(
|
|
117
|
-
expect(neck.className).toContain('bg-paper');
|
|
113
|
+
test('the mobile LEFT drawer keeps the connected row', () => {
|
|
114
|
+
mount({ layout: 'mobile' });
|
|
115
|
+
const [active, inactive] = [...container.querySelectorAll('[role="tab"]')] as HTMLElement[];
|
|
116
|
+
expect(active.className).toContain('h-full');
|
|
117
|
+
expect(active.className).toContain('rounded-t-md');
|
|
118
|
+
expect(active.className).toContain('border-ink/20');
|
|
119
|
+
expect(active.style.borderTopLeftRadius).toBe('8px');
|
|
120
|
+
const wrapper = active.parentElement as HTMLElement;
|
|
121
|
+
expect(wrapper.className).toContain('items-stretch');
|
|
122
|
+
expect(inactive.parentElement?.querySelector('[data-panel-tab-hover]')).not.toBeNull();
|
|
123
|
+
const scroller = container.querySelector('.no-scrollbar') as HTMLElement;
|
|
124
|
+
expect(scroller.className).toContain('items-stretch');
|
|
118
125
|
});
|
|
119
126
|
|
|
120
|
-
test('
|
|
121
|
-
mount();
|
|
122
|
-
const
|
|
123
|
-
expect(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
expect(
|
|
127
|
+
test('mobile active is a pill again, with no neck', () => {
|
|
128
|
+
mount({ layout: 'mobile', connected: false });
|
|
129
|
+
const active = container.querySelector('[role="tab"]') as HTMLElement;
|
|
130
|
+
expect(active.className).toContain('h-9');
|
|
131
|
+
expect(active.className).toContain('rounded-md');
|
|
132
|
+
expect(active.className).toContain('bg-ink/[0.08]');
|
|
133
|
+
expect(active.className).not.toContain('border-x');
|
|
134
|
+
expect(active.parentElement?.className).toContain('items-center');
|
|
135
|
+
expect(active.parentElement?.querySelector('[data-panel-tab-neck]')).toBeNull();
|
|
129
136
|
});
|
|
130
137
|
|
|
131
|
-
test('the inactive
|
|
138
|
+
test('the inactive hover plate is one surface, desktop only', () => {
|
|
132
139
|
mount();
|
|
133
140
|
const [active, inactive] = [...container.querySelectorAll('[role="tab"]')] as HTMLElement[];
|
|
134
141
|
const wrapper = inactive.parentElement as HTMLElement;
|
|
135
142
|
const hover = wrapper.querySelector('[data-panel-tab-hover]') as HTMLElement;
|
|
136
143
|
expect(hover).not.toBeNull();
|
|
137
|
-
// A single plate from the chip's top to the row's floor: no chip tint plus
|
|
138
|
-
// a second tail, which is where the junction used to show a patahan.
|
|
139
144
|
expect(inactive.querySelector('[data-panel-tab-hover]')).toBeNull();
|
|
145
|
+
expect(hover.className).toContain('top-0.5');
|
|
146
|
+
expect(hover.className).toContain('bottom-0');
|
|
140
147
|
expect(hover.className).toContain('rounded-t-md');
|
|
141
|
-
expect(hover.style.
|
|
142
|
-
expect(hover.style.
|
|
143
|
-
// The active chip uses its paper
|
|
148
|
+
expect(hover.style.borderTopLeftRadius).toBe('8px');
|
|
149
|
+
expect(hover.style.borderTopRightRadius).toBe('8px');
|
|
150
|
+
// The active chip uses its paper surface, never the tinted hover plate.
|
|
144
151
|
expect(active.parentElement?.querySelector('[data-panel-tab-hover]')).toBeNull();
|
|
152
|
+
render(null, container);
|
|
153
|
+
container.remove();
|
|
154
|
+
mount({ layout: 'mobile', connected: false });
|
|
155
|
+
expect(container.querySelector('[data-panel-tab-hover]')).toBeNull();
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
test('the pinned view hugs its label and reserves no close column', () => {
|
|
159
|
+
mount({
|
|
160
|
+
tabs: ['sessions', 'files'],
|
|
161
|
+
panels: new Map([
|
|
162
|
+
['sessions', SESSIONS],
|
|
163
|
+
['files', FILES],
|
|
164
|
+
]),
|
|
165
|
+
active: 'sessions',
|
|
166
|
+
pinned: 'sessions',
|
|
167
|
+
});
|
|
168
|
+
const pinned = container.querySelector('[data-panel-tab="sessions"]') as HTMLElement;
|
|
169
|
+
const file = container.querySelector('[data-panel-tab="files"]') as HTMLElement;
|
|
170
|
+
expect(pinned.className).toContain('min-w-0');
|
|
171
|
+
expect(pinned.className).not.toContain('min-w-[80px]');
|
|
172
|
+
const pinnedTrigger = pinned.querySelector('button[aria-label]:not([aria-label^="Tutup"])') as HTMLElement;
|
|
173
|
+
expect(pinnedTrigger.className).toContain('pr-2');
|
|
174
|
+
expect(pinned.querySelector('[aria-label^="Tutup tab"]')).toBeNull();
|
|
175
|
+
expect(file.className).toContain('min-w-[80px]');
|
|
176
|
+
const fileTrigger = file.querySelector('button[aria-label]:not([aria-label^="Tutup"])') as HTMLElement;
|
|
177
|
+
expect(fileTrigger.className).toContain('pr-6');
|
|
145
178
|
});
|
|
146
179
|
|
|
147
|
-
test('the strip hairline is an inner layer the
|
|
180
|
+
test('the strip hairline is an inner layer the tab can cover', () => {
|
|
148
181
|
mount();
|
|
149
|
-
// A `border-b` lives outside the content box, so a
|
|
182
|
+
// A `border-b` lives outside the content box, so a tab that reaches the
|
|
150
183
|
// floor could never paint over it.
|
|
151
184
|
const strip = container.querySelector('[role="tablist"]') as HTMLElement;
|
|
152
185
|
const rule = strip.querySelector('[data-panel-strip-rule]') as HTMLElement;
|
|
@@ -154,19 +187,4 @@ describe('connected chip', () => {
|
|
|
154
187
|
expect(rule).not.toBeNull();
|
|
155
188
|
expect(rule.className).toContain('bottom-0');
|
|
156
189
|
});
|
|
157
|
-
|
|
158
|
-
test('the phone chip is connected too, clipped by its row', () => {
|
|
159
|
-
mount('mobile');
|
|
160
|
-
const active = container.querySelector('[role="tab"]') as HTMLElement;
|
|
161
|
-
// Same surface language as the desktop column; only the neck's placement
|
|
162
|
-
// differs, because a phone wrapper is the chip's own box rather than the
|
|
163
|
-
// full 40px row.
|
|
164
|
-
expect(active.className).toContain('rounded-t-md');
|
|
165
|
-
expect(active.className).toContain('bg-paper');
|
|
166
|
-
expect(active.className).not.toContain('bg-ink/[0.08]');
|
|
167
|
-
const neck = active.parentElement?.querySelector('[data-panel-tab-neck]') as HTMLElement;
|
|
168
|
-
expect(neck).not.toBeNull();
|
|
169
|
-
expect(neck.className).toContain('top-full');
|
|
170
|
-
expect(neck.className).toContain('h-3');
|
|
171
|
-
});
|
|
172
190
|
});
|
|
@@ -218,11 +218,11 @@ describe('PanelTabStrip', () => {
|
|
|
218
218
|
expect(chips.map((chip) => chip.getAttribute('draggable'))).toEqual([null, null]);
|
|
219
219
|
});
|
|
220
220
|
|
|
221
|
-
test('
|
|
221
|
+
test('the default strip is the desktop density, with the desktop close box', () => {
|
|
222
222
|
mount();
|
|
223
|
-
// Measured in Chromium at 390px: the close control was 20x20 inside a
|
|
224
|
-
//
|
|
225
|
-
//
|
|
223
|
+
// Measured in Chromium at 390px: the close control was 20x20 inside a chip,
|
|
224
|
+
// both under the 44px touch floor. The coarse variants are the fix, and a
|
|
225
|
+
// DOM test can only pin the CONTRACT — the pixel sizes are the stylesheet's
|
|
226
226
|
// (verified in the built CSS, under `@media (pointer:coarse)`).
|
|
227
227
|
// The DEFAULT strip is the desktop density: the top navbar's 40px row and
|
|
228
228
|
// its 28px control boxes. A phone caller passes `layout="mobile"` instead,
|
|
@@ -233,7 +233,7 @@ describe('PanelTabStrip', () => {
|
|
|
233
233
|
expect(strip.className).toContain(CONTROL_ROW_HEIGHT.desktop);
|
|
234
234
|
expect(strip.className).toContain(CONTROL_ROW_INSET.desktop);
|
|
235
235
|
expect(strip.className).not.toContain('env(safe-area-inset-top');
|
|
236
|
-
expect(chip.className).toContain('h-
|
|
236
|
+
expect(chip.className).toContain('h-full');
|
|
237
237
|
expect(close.className).toContain('h-5');
|
|
238
238
|
expect(close.className).toContain('w-5');
|
|
239
239
|
});
|
|
@@ -300,7 +300,7 @@ describe('PanelTabStrip', () => {
|
|
|
300
300
|
*/
|
|
301
301
|
describe('strip density follows the top navbar', () => {
|
|
302
302
|
test('the phone strip takes the phone header row, box and inset', () => {
|
|
303
|
-
mount({ layout: 'mobile', dragRegion: true });
|
|
303
|
+
mount({ layout: 'mobile', dragRegion: true, connected: false });
|
|
304
304
|
const strip = container.querySelector('[role="tablist"]') as HTMLElement;
|
|
305
305
|
const add = container.querySelector('[aria-label="Tambah tab"]') as HTMLElement;
|
|
306
306
|
const chip = container.querySelector('[role="tab"]') as HTMLElement;
|
|
@@ -310,9 +310,9 @@ describe('strip density follows the top navbar', () => {
|
|
|
310
310
|
// The add control IS a header control: same box, same glyph.
|
|
311
311
|
expect(add.className).toContain(CONTROL_BOX.mobile);
|
|
312
312
|
expect(add.querySelector('svg')?.getAttribute('width')).toBe(String(CONTROL_GLYPH_PX.mobile));
|
|
313
|
-
// And the chip is the mobile
|
|
313
|
+
// And the active chip is the mobile pill, not the desktop full-height tab.
|
|
314
314
|
expect(chip.className).toContain('h-9');
|
|
315
|
-
expect(chip.className).not.toContain('h-
|
|
315
|
+
expect(chip.className).not.toContain('h-full');
|
|
316
316
|
});
|
|
317
317
|
|
|
318
318
|
test('the desktop strip keeps the navbar row it sits under', () => {
|
|
@@ -324,7 +324,7 @@ describe('strip density follows the top navbar', () => {
|
|
|
324
324
|
expect(strip.className).toContain(CONTROL_ROW_HEIGHT.desktop);
|
|
325
325
|
expect(strip.className).toContain(CONTROL_ROW_INSET.desktop);
|
|
326
326
|
expect(add.className).toContain(CONTROL_BOX.desktop);
|
|
327
|
-
expect(chip.className).toContain('h-
|
|
327
|
+
expect(chip.className).toContain('h-full');
|
|
328
328
|
});
|
|
329
329
|
|
|
330
330
|
test('the phone row is the header height plus the notch, as height AND padding', () => {
|