@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
package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx
CHANGED
|
@@ -51,54 +51,81 @@ const MINIATURES: Record<ChromeStyle, ComponentType> = {
|
|
|
51
51
|
floating: () => <Miniature floating />,
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
function StyleChoices({
|
|
55
|
+
selected,
|
|
56
|
+
label,
|
|
57
|
+
onPick,
|
|
58
|
+
}: {
|
|
59
|
+
selected: ChromeStyle;
|
|
60
|
+
label: string;
|
|
61
|
+
onPick: (style: ChromeStyle) => void;
|
|
62
|
+
}) {
|
|
63
|
+
return (
|
|
64
|
+
<div className="grid grid-cols-1 gap-2.5 sm:grid-cols-2" role="group" aria-label={label}>
|
|
65
|
+
{CHROME_STYLES.map((style) => {
|
|
66
|
+
const copy = CHROME_STYLE_COPY[style];
|
|
67
|
+
const isSelected = style === selected;
|
|
68
|
+
const Mini = MINIATURES[style];
|
|
69
|
+
return (
|
|
70
|
+
<button
|
|
71
|
+
key={style}
|
|
72
|
+
type="button"
|
|
73
|
+
onClick={() => onPick(style)}
|
|
74
|
+
aria-pressed={isSelected}
|
|
75
|
+
aria-label={`${label} — ${copy.label}: ${copy.description}`}
|
|
76
|
+
className={`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${
|
|
77
|
+
isSelected
|
|
78
|
+
? 'border-ink/40 bg-ink/5'
|
|
79
|
+
: 'border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5'
|
|
80
|
+
}`}
|
|
81
|
+
>
|
|
82
|
+
<span className="block h-[62px]">
|
|
83
|
+
<Mini />
|
|
84
|
+
</span>
|
|
85
|
+
<span className="flex items-center gap-1.5">
|
|
86
|
+
<span className="text-xs font-semibold text-ink">{copy.label}</span>
|
|
87
|
+
<span className="font-mono text-[10px] text-ink/40">{copy.caption}</span>
|
|
88
|
+
{isSelected && (
|
|
89
|
+
<span className="ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper">
|
|
90
|
+
active
|
|
91
|
+
</span>
|
|
92
|
+
)}
|
|
93
|
+
</span>
|
|
94
|
+
<span className="text-[11px] leading-relaxed text-ink/60">{copy.description}</span>
|
|
95
|
+
</button>
|
|
96
|
+
);
|
|
97
|
+
})}
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
56
101
|
|
|
102
|
+
export function ChromeStyleSection({ settings, onUpdate }: ChromeStyleSectionProps) {
|
|
57
103
|
return (
|
|
58
104
|
<section className="space-y-3">
|
|
59
105
|
<div>
|
|
60
106
|
<h4 className="text-sm font-semibold text-ink">Chrome</h4>
|
|
61
107
|
<p className="mt-0.5 text-[11px] text-ink/60">
|
|
62
|
-
Whether the
|
|
63
|
-
|
|
64
|
-
the sidebar footer.
|
|
108
|
+
Whether the chrome is one flat frame or a set of floating cards. The two layouts are
|
|
109
|
+
independent: the phone can keep floating drawers while the desktop stays flat.
|
|
65
110
|
</p>
|
|
66
111
|
</div>
|
|
67
112
|
|
|
68
|
-
<div className="
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}`}
|
|
85
|
-
>
|
|
86
|
-
<span className="block h-[62px]">
|
|
87
|
-
<Mini />
|
|
88
|
-
</span>
|
|
89
|
-
<span className="flex items-center gap-1.5">
|
|
90
|
-
<span className="text-xs font-semibold text-ink">{copy.label}</span>
|
|
91
|
-
<span className="font-mono text-[10px] text-ink/40">{copy.caption}</span>
|
|
92
|
-
{isSelected && (
|
|
93
|
-
<span className="ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper">
|
|
94
|
-
active
|
|
95
|
-
</span>
|
|
96
|
-
)}
|
|
97
|
-
</span>
|
|
98
|
-
<span className="text-[11px] leading-relaxed text-ink/60">{copy.description}</span>
|
|
99
|
-
</button>
|
|
100
|
-
);
|
|
101
|
-
})}
|
|
113
|
+
<div className="space-y-2">
|
|
114
|
+
<p className="text-[11px] font-semibold text-ink/70">Desktop chrome</p>
|
|
115
|
+
<StyleChoices
|
|
116
|
+
selected={resolveChromeStyle(settings.chromeStyle)}
|
|
117
|
+
label="Desktop chrome style"
|
|
118
|
+
onPick={(style) => onUpdate({ chromeStyle: style })}
|
|
119
|
+
/>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div className="space-y-2">
|
|
123
|
+
<p className="text-[11px] font-semibold text-ink/70">Mobile chrome</p>
|
|
124
|
+
<StyleChoices
|
|
125
|
+
selected={resolveChromeStyle(settings.mobileChromeStyle)}
|
|
126
|
+
label="Mobile chrome style"
|
|
127
|
+
onPick={(style) => onUpdate({ mobileChromeStyle: style })}
|
|
128
|
+
/>
|
|
102
129
|
</div>
|
|
103
130
|
</section>
|
|
104
131
|
);
|
|
@@ -67,7 +67,10 @@ export function DeviceTable({ devices, busy, onRevoke, onAdd }: DeviceTableProps
|
|
|
67
67
|
return (
|
|
68
68
|
<section className="rounded-xl border border-ink/10 bg-paper">
|
|
69
69
|
<header className="flex items-center justify-between gap-2 border-b border-ink/10 px-4 py-3">
|
|
70
|
-
<
|
|
70
|
+
<div>
|
|
71
|
+
<h4 className="text-sm font-semibold text-ink">Paired devices</h4>
|
|
72
|
+
<p className="text-[10.5px] text-ink/45">Only devices paired while signed in as this account.</p>
|
|
73
|
+
</div>
|
|
71
74
|
<button
|
|
72
75
|
type="button"
|
|
73
76
|
onClick={onAdd}
|
|
@@ -80,8 +83,8 @@ export function DeviceTable({ devices, busy, onRevoke, onAdd }: DeviceTableProps
|
|
|
80
83
|
{devices.length === 0 ? (
|
|
81
84
|
<div className="px-4 py-6">
|
|
82
85
|
<p className="text-[11px] leading-relaxed text-ink/60">
|
|
83
|
-
No device has been paired yet. Add one to reach this server from your phone
|
|
84
|
-
address or a password.
|
|
86
|
+
No device has been paired to this account yet. Add one to reach this server from your phone
|
|
87
|
+
without typing an address or a password.
|
|
85
88
|
</p>
|
|
86
89
|
</div>
|
|
87
90
|
) : (
|
|
@@ -157,7 +160,7 @@ export function DeviceTable({ devices, busy, onRevoke, onAdd }: DeviceTableProps
|
|
|
157
160
|
)}
|
|
158
161
|
|
|
159
162
|
<p className="border-t border-ink/10 px-4 py-2.5 text-[11px] leading-relaxed text-ink/55">
|
|
160
|
-
Each device
|
|
163
|
+
Each device belongs to the account that paired it. Revoking cuts it off immediately; pair it again with a new code.
|
|
161
164
|
</p>
|
|
162
165
|
</section>
|
|
163
166
|
);
|
|
@@ -6,6 +6,7 @@ import { ProjectPathField } from '@/client/components/settings/categories/projec
|
|
|
6
6
|
import { ProjectModelDropdown } from '@/client/components/settings/categories/project-settings/ModelDropdown';
|
|
7
7
|
import { ProjectAccentPalette } from '@/client/components/settings/categories/project-settings/AccentPalette';
|
|
8
8
|
import { ProjectIconGrid } from '@/client/components/settings/categories/project-settings/IconGrid';
|
|
9
|
+
import { ProjectSharing } from '@/client/components/settings/categories/project-settings/ProjectSharing';
|
|
9
10
|
|
|
10
11
|
interface ProjectDetailsFormProps {
|
|
11
12
|
project: ProjectConfigItem;
|
|
@@ -19,6 +20,8 @@ interface ProjectDetailsFormProps {
|
|
|
19
20
|
onUpdateFields: (fields: Partial<ProjectConfigItem>) => void;
|
|
20
21
|
onReveal: () => void;
|
|
21
22
|
onDeleteProject: () => void;
|
|
23
|
+
onSharingChanged: () => Promise<void> | void;
|
|
24
|
+
onError: (message: string) => void;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
/** The right-hand pane of Settings → Projects: identity, defaults, appearance.
|
|
@@ -35,23 +38,28 @@ export function ProjectDetailsForm({
|
|
|
35
38
|
onUpdateFields,
|
|
36
39
|
onReveal,
|
|
37
40
|
onDeleteProject,
|
|
41
|
+
onSharingChanged,
|
|
42
|
+
onError,
|
|
38
43
|
}: ProjectDetailsFormProps) {
|
|
44
|
+
const canManage = project.canManage !== false;
|
|
39
45
|
return (
|
|
40
46
|
<div className="p-6 md:p-8 space-y-7">
|
|
41
47
|
<ProjectDetailsHeader
|
|
42
48
|
project={project}
|
|
43
|
-
canDelete={canDelete}
|
|
49
|
+
canDelete={canDelete && canManage}
|
|
44
50
|
isDeleting={isDeleting}
|
|
45
51
|
onDelete={onDeleteProject}
|
|
46
52
|
/>
|
|
47
53
|
|
|
48
54
|
<ProjectNameInput
|
|
49
55
|
name={project.name}
|
|
56
|
+
disabled={!canManage}
|
|
50
57
|
onCommit={(name) => onUpdateField('name', name)}
|
|
51
58
|
/>
|
|
52
59
|
|
|
53
60
|
<ProjectPathField
|
|
54
61
|
path={project.path}
|
|
62
|
+
disabled={!canManage}
|
|
55
63
|
onCommit={(path) => onUpdateField('path', path)}
|
|
56
64
|
onReveal={onReveal}
|
|
57
65
|
isRevealing={isRevealing}
|
|
@@ -60,11 +68,13 @@ export function ProjectDetailsForm({
|
|
|
60
68
|
<ProjectModelDropdown
|
|
61
69
|
model={project.model}
|
|
62
70
|
models={models}
|
|
71
|
+
disabled={!canManage}
|
|
63
72
|
onSelectModel={(value) => onUpdateField('model', value)}
|
|
64
73
|
/>
|
|
65
74
|
|
|
66
75
|
<ProjectAccentPalette
|
|
67
76
|
accentColor={project.accentColor}
|
|
77
|
+
disabled={!canManage}
|
|
68
78
|
onSelectColor={(color) => onUpdateField('accentColor', color)}
|
|
69
79
|
{...(accentColorOptions && accentColorOptions.length > 0 ? { options: accentColorOptions } : {})}
|
|
70
80
|
/>
|
|
@@ -76,12 +86,15 @@ export function ProjectDetailsForm({
|
|
|
76
86
|
currentIcon={project.icon}
|
|
77
87
|
customIconUrl={project.customIconUrl}
|
|
78
88
|
projectName={project.name}
|
|
89
|
+
disabled={!canManage}
|
|
79
90
|
onSelectIcon={(iconId) => onUpdateFields({ icon: iconId, customIconUrl: undefined })}
|
|
80
91
|
onSetCustomIcon={(url) => onUpdateFields({
|
|
81
92
|
customIconUrl: url,
|
|
82
93
|
icon: url === undefined ? 'default' : 'custom',
|
|
83
94
|
})}
|
|
84
95
|
/>
|
|
96
|
+
|
|
97
|
+
<ProjectSharing project={project} onChanged={onSharingChanged} onError={onError} />
|
|
85
98
|
</div>
|
|
86
99
|
);
|
|
87
100
|
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The project detail's sharing section.
|
|
8
|
+
*
|
|
9
|
+
* A collaborator reads the same directory and chats as the owner; there is no
|
|
10
|
+
* copy. Owner-only, because sharing is a permission change rather than a
|
|
11
|
+
* workspace preference.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { useEffect, useState } from 'preact/hooks';
|
|
15
|
+
import { Loader2, Users, X } from 'lucide-preact';
|
|
16
|
+
import type { AccountListItem, ProjectConfigItem } from '@/shared/types';
|
|
17
|
+
import { SearchSelect } from '@/client/components/common/search-select';
|
|
18
|
+
|
|
19
|
+
interface ProjectSharingProps {
|
|
20
|
+
project: ProjectConfigItem;
|
|
21
|
+
onChanged: () => Promise<void> | void;
|
|
22
|
+
onError: (message: string) => void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function ProjectSharing({ project, onChanged, onError }: ProjectSharingProps) {
|
|
26
|
+
const [accounts, setAccounts] = useState<AccountListItem[]>([]);
|
|
27
|
+
const [selected, setSelected] = useState('');
|
|
28
|
+
const [busy, setBusy] = useState(false);
|
|
29
|
+
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
let active = true;
|
|
32
|
+
fetch('/api/accounts')
|
|
33
|
+
.then((response) => response.json())
|
|
34
|
+
.then((data: { accounts?: AccountListItem[] }) => {
|
|
35
|
+
if (active) setAccounts(Array.isArray(data.accounts) ? data.accounts : []);
|
|
36
|
+
})
|
|
37
|
+
.catch(() => {});
|
|
38
|
+
return () => { active = false; };
|
|
39
|
+
}, []);
|
|
40
|
+
|
|
41
|
+
if (project.canManage !== true) {
|
|
42
|
+
return (
|
|
43
|
+
<div className="space-y-2">
|
|
44
|
+
<h3 className="text-xs font-semibold text-ink">Sharing</h3>
|
|
45
|
+
<p className="text-[11.5px] text-ink/55">
|
|
46
|
+
Shared by {project.ownerName ?? 'another account'}. Only the owner can change access.
|
|
47
|
+
</p>
|
|
48
|
+
</div>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const shares = project.shares ?? [];
|
|
53
|
+
const candidates = accounts.filter((account) => (
|
|
54
|
+
account.id !== project.ownerAccountId && !shares.some((share) => share.accountId === account.id)
|
|
55
|
+
));
|
|
56
|
+
|
|
57
|
+
const request = async (url: string, init: RequestInit) => {
|
|
58
|
+
setBusy(true);
|
|
59
|
+
try {
|
|
60
|
+
const response = await fetch(url, init);
|
|
61
|
+
const data = (await response.json().catch(() => null)) as { error?: string } | null;
|
|
62
|
+
if (!response.ok) throw new Error(data?.error ?? `HTTP ${response.status}`);
|
|
63
|
+
await onChanged();
|
|
64
|
+
} catch (error) {
|
|
65
|
+
onError(error instanceof Error ? error.message : String(error));
|
|
66
|
+
} finally {
|
|
67
|
+
setBusy(false);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const share = () => {
|
|
72
|
+
if (!selected || project.folderId === undefined) return;
|
|
73
|
+
void request(`/api/folders/${project.folderId}/shares`, {
|
|
74
|
+
method: 'POST',
|
|
75
|
+
headers: { 'Content-Type': 'application/json' },
|
|
76
|
+
body: JSON.stringify({ accountId: selected }),
|
|
77
|
+
}).then(() => setSelected(''));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const remove = (accountId: string) => {
|
|
81
|
+
if (project.folderId === undefined) return;
|
|
82
|
+
void request(`/api/folders/${project.folderId}/shares/${encodeURIComponent(accountId)}`, { method: 'DELETE' });
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<div className="space-y-3 border-t border-ink/10 pt-5">
|
|
87
|
+
<div className="flex items-center gap-2">
|
|
88
|
+
<Users size={14} className="text-ink/50" />
|
|
89
|
+
<h3 className="text-xs font-semibold text-ink">Sharing</h3>
|
|
90
|
+
</div>
|
|
91
|
+
<p className="text-[11px] text-ink/50">
|
|
92
|
+
Shared accounts can open chats, edit files and run agents here. Only the owner can rename, rebind, share or delete this workspace.
|
|
93
|
+
</p>
|
|
94
|
+
<div className="space-y-1.5">
|
|
95
|
+
{shares.length === 0 ? (
|
|
96
|
+
<p className="text-[11.5px] text-ink/45">Not shared with anyone.</p>
|
|
97
|
+
) : shares.map((share) => (
|
|
98
|
+
<div key={share.accountId} className="flex items-center justify-between rounded-md border border-ink/10 px-2.5 py-1.5">
|
|
99
|
+
<span className="text-[11.5px] text-ink/75">{share.name}</span>
|
|
100
|
+
<button type="button" onClick={() => remove(share.accountId)} disabled={busy} className="p-0.5 rounded text-ink/40 hover:text-error-text hover:bg-error/10 disabled:opacity-40" aria-label={`Stop sharing with ${share.name}`}>
|
|
101
|
+
<X size={12} />
|
|
102
|
+
</button>
|
|
103
|
+
</div>
|
|
104
|
+
))}
|
|
105
|
+
</div>
|
|
106
|
+
{candidates.length > 0 && (
|
|
107
|
+
<div className="flex items-center gap-2">
|
|
108
|
+
<div className="min-w-0 flex-1">
|
|
109
|
+
<SearchSelect
|
|
110
|
+
value={selected}
|
|
111
|
+
options={candidates.map((account) => ({ value: account.id, label: account.name }))}
|
|
112
|
+
triggerLabel={candidates.find((account) => account.id === selected)?.name ?? 'Choose an account'}
|
|
113
|
+
placeholder="Choose an account"
|
|
114
|
+
ariaLabel="Share with account"
|
|
115
|
+
onChange={setSelected}
|
|
116
|
+
allowEmpty
|
|
117
|
+
searchable={candidates.length > 10}
|
|
118
|
+
heading="Share with"
|
|
119
|
+
icon={() => <Users size={13} className="text-ink/50" />}
|
|
120
|
+
/>
|
|
121
|
+
</div>
|
|
122
|
+
<button type="button" onClick={share} disabled={!selected || busy} className="shrink-0 rounded-md border border-ink/20 px-2.5 py-1.5 text-[11px] font-medium text-ink hover:border-ink/40 disabled:opacity-40 inline-flex items-center gap-1.5">
|
|
123
|
+
{busy && <Loader2 size={11} className="animate-spin" />}
|
|
124
|
+
Share
|
|
125
|
+
</button>
|
|
126
|
+
</div>
|
|
127
|
+
)}
|
|
128
|
+
</div>
|
|
129
|
+
);
|
|
130
|
+
}
|
|
@@ -114,6 +114,11 @@ export function ProjectSidebarList({
|
|
|
114
114
|
)}
|
|
115
115
|
<span className={`text-[11.5px] truncate flex-1 ${isSelected ? 'font-medium text-ink' : 'text-ink/80'}`}>
|
|
116
116
|
{proj.name}
|
|
117
|
+
{proj.isShared && (
|
|
118
|
+
<span className="ml-1.5 font-normal text-[10px] text-ink/45" title={`Shared by ${proj.ownerName ?? 'another account'}`}>
|
|
119
|
+
shared
|
|
120
|
+
</span>
|
|
121
|
+
)}
|
|
117
122
|
</span>
|
|
118
123
|
{typeof count === 'number' && count > 0 && (
|
|
119
124
|
<span className="shrink-0 font-mono text-[10px] text-ink/40">{count}</span>
|
|
@@ -39,6 +39,7 @@ import { TokenUsageSettings } from '@/client/components/settings/categories/Toke
|
|
|
39
39
|
import { UsageSettings } from '@/client/components/settings/categories/UsageSettings';
|
|
40
40
|
import { NotificationSettings } from '@/client/components/settings/categories/NotificationSettings';
|
|
41
41
|
import { ConnectSettings } from '@/client/components/settings/categories/ConnectSettings';
|
|
42
|
+
import { AccountSettings } from '@/client/components/settings/categories/AccountSettings';
|
|
42
43
|
|
|
43
44
|
export interface CategoryContentProps {
|
|
44
45
|
category: SettingsCategoryId;
|
|
@@ -70,6 +71,8 @@ export function CategoryContent({
|
|
|
70
71
|
return <VoiceSettings settings={settings} onUpdate={onUpdate} />;
|
|
71
72
|
case 'keyboard':
|
|
72
73
|
return <KeyboardSettings settings={settings} onUpdate={onUpdate} />;
|
|
74
|
+
case 'accounts':
|
|
75
|
+
return <AccountSettings />;
|
|
73
76
|
case 'projects':
|
|
74
77
|
return <ProjectSettings />;
|
|
75
78
|
case 'git':
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import { Clock3, Coins, GitFork, Hourglass, MessageSquarePlus, RotateCcw, X } from 'lucide-preact';
|
|
15
15
|
import { CopyButton } from '@/client/components/common/CopyButton';
|
|
16
|
+
import { safeBottom } from '@/client/lib/ui/safe-area';
|
|
16
17
|
import { PluginMessageActions } from '@/client/components/workspace/chat-timeline/PluginMessageActions';
|
|
17
18
|
import { SpeechButton } from '@/client/components/workspace/chat-timeline/SpeechButton';
|
|
18
19
|
|
|
@@ -57,7 +58,8 @@ export function AiMessageFooterSheet({
|
|
|
57
58
|
onClick={onClose}
|
|
58
59
|
>
|
|
59
60
|
<div
|
|
60
|
-
className="glass-overlay w-full max-h-[80vh] overflow-y-auto rounded-t-2xl border border-ink/15 bg-paper
|
|
61
|
+
className="glass-overlay w-full max-h-[80vh] overflow-y-auto rounded-t-2xl border border-ink/15 bg-paper shadow-2xl presence-enter"
|
|
62
|
+
style={{ paddingBottom: safeBottom('0.75rem') }}
|
|
61
63
|
role="dialog"
|
|
62
64
|
aria-modal="true"
|
|
63
65
|
aria-labelledby={`message-actions-${msgId}`}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ComponentChildren } from 'preact';
|
|
2
2
|
import { ColumnResizeHandle } from '@/client/components/workspace/chat-timeline/ColumnResizeHandle';
|
|
3
|
+
import { safeBottom } from '@/client/lib/ui/safe-area';
|
|
3
4
|
|
|
4
5
|
interface ComposerDockFrameProps {
|
|
5
6
|
isMobile: boolean;
|
|
@@ -32,7 +33,7 @@ export function ComposerDockFrame({ isMobile, children }: ComposerDockFrameProps
|
|
|
32
33
|
<div
|
|
33
34
|
data-composer-dock=""
|
|
34
35
|
className={`relative border-t-0 bg-transparent flex-shrink-0 ${isMobile ? 'px-3 pt-1' : 'p-4 pt-1'}`}
|
|
35
|
-
style={isMobile ? { paddingBottom: '
|
|
36
|
+
style={isMobile ? { paddingBottom: safeBottom('0.75rem') } : undefined}
|
|
36
37
|
>
|
|
37
38
|
<ColumnResizeHandle isMobile={isMobile} />
|
|
38
39
|
<div className="chat-column relative">{children}</div>
|
|
@@ -4,6 +4,7 @@ import type { Attachment, ChatMessageData, WorkspaceFolderData } from '@/shared/
|
|
|
4
4
|
import { ChatInput } from '@/client/components/workspace/chat-timeline/chat-input/index';
|
|
5
5
|
import { PendingTranscript } from '@/client/components/workspace/chat-timeline/PendingTranscript';
|
|
6
6
|
import { ComposerDockFrame } from '@/client/components/workspace/chat-timeline/ComposerDockFrame';
|
|
7
|
+
import { safeBottom } from '@/client/lib/ui/safe-area';
|
|
7
8
|
import { ColumnResizeHandle } from '@/client/components/workspace/chat-timeline/ColumnResizeHandle';
|
|
8
9
|
import { GeneratingIndicator } from '@/client/components/workspace/chat-timeline/GeneratingIndicator';
|
|
9
10
|
import type { ApprovalMode } from '@kabmo-labs/kabmo-omp/access-mode';
|
|
@@ -247,7 +248,7 @@ export function EmptyWorkspacePrompt({
|
|
|
247
248
|
<div
|
|
248
249
|
data-chat-timeline=""
|
|
249
250
|
className={`relative flex flex-col h-full bg-canvas ${docked ? '' : isMobile ? 'px-3 py-4' : 'p-8'} ${className}`}
|
|
250
|
-
style={!docked && isMobile ? { paddingBottom: '
|
|
251
|
+
style={!docked && isMobile ? { paddingBottom: safeBottom('1rem') } : undefined}
|
|
251
252
|
>
|
|
252
253
|
{docked ? (
|
|
253
254
|
<>
|
|
@@ -255,6 +256,7 @@ export function EmptyWorkspacePrompt({
|
|
|
255
256
|
scroller does (`TimelineBody`), so adoption moves no text either. */}
|
|
256
257
|
<div
|
|
257
258
|
ref={timelineRef}
|
|
259
|
+
data-chat-scroller=""
|
|
258
260
|
className={`flex-1 min-h-0 overflow-y-auto scroll-smooth overscroll-contain ${
|
|
259
261
|
isMobile ? 'pl-4 pr-3 py-3 pb-8' : 'p-4 pb-10'
|
|
260
262
|
}`}
|
|
@@ -50,7 +50,7 @@ export function SessionSkeleton() {
|
|
|
50
50
|
return (
|
|
51
51
|
<div aria-hidden className="flex flex-col h-full min-h-0 overflow-hidden">
|
|
52
52
|
{/* Timeline body — mirrors the real container's padding in both variants. */}
|
|
53
|
-
<div className="flex-1 min-h-0 overflow-hidden pl-4 pr-3 py-3 pb-8 sm:p-4 sm:pb-10">
|
|
53
|
+
<div data-chat-scroller="" className="flex-1 min-h-0 overflow-hidden pl-4 pr-3 py-3 pb-8 sm:p-4 sm:pb-10">
|
|
54
54
|
<div className="chat-column">
|
|
55
55
|
{rows.map((row, i) => (
|
|
56
56
|
<SkeletonBubble key={i} row={row} index={i} />
|
|
@@ -108,6 +108,7 @@ export function TimelineBody({
|
|
|
108
108
|
{/* Timeline Body */}
|
|
109
109
|
<div
|
|
110
110
|
ref={scrollNodeRef}
|
|
111
|
+
data-chat-scroller=""
|
|
111
112
|
onScroll={handleScroll}
|
|
112
113
|
className={`flex-1 scrollbar-overlay-container overscroll-contain scroll-smooth overflow-x-hidden ${
|
|
113
114
|
isMobile ? 'pl-4 pr-3 py-3 pb-8' : 'p-4 pb-10'
|
|
@@ -173,7 +173,14 @@ export function composerRows({
|
|
|
173
173
|
// The phone's mic lives HERE, at the right of the textarea and above Send,
|
|
174
174
|
// so it never competes with the model/access cluster in the toolbar row.
|
|
175
175
|
draft: input.compact ? null : input.isMobile ? (
|
|
176
|
-
|
|
176
|
+
// `items-stretch` (the flex default) is load-bearing: the draft's wrapper
|
|
177
|
+
// is the flex member that owns the leftover height of a STRETCHED card,
|
|
178
|
+
// and `items-end` sized it to its content instead — so the textarea's
|
|
179
|
+
// `h-full` resolved against an auto-height parent and the full-screen
|
|
180
|
+
// phone composer kept its docked 68px box at the top. The mic opts out
|
|
181
|
+
// with its own `self-end`, which keeps it on Send's column at the bottom
|
|
182
|
+
// without stretching its 32px touch target to the row's height.
|
|
183
|
+
<div className="flex flex-1 min-h-0">
|
|
177
184
|
{draft}
|
|
178
185
|
<VoiceButton
|
|
179
186
|
supported={input.voiceSupported}
|
|
@@ -184,7 +191,7 @@ export function composerRows({
|
|
|
184
191
|
isMobile
|
|
185
192
|
// `mr-3` is the toolbar's own `px-3`: the mic's right edge then sits
|
|
186
193
|
// on Send's, one column down, instead of 4px past it.
|
|
187
|
-
className="mb-2 mr-3"
|
|
194
|
+
className="mb-2 mr-3 self-end"
|
|
188
195
|
/>
|
|
189
196
|
</div>
|
|
190
197
|
) : draft,
|
|
@@ -170,7 +170,7 @@ describe('composerExpansion stretched', () => {
|
|
|
170
170
|
expect(phone.style?.paddingBottom).toBe('336px');
|
|
171
171
|
// No keyboard: the home indicator's inset is the floor.
|
|
172
172
|
const idle = composerExpansion({ ...base, expanded: true, variant: 'mobile' });
|
|
173
|
-
expect(idle.style?.paddingBottom).toBe('
|
|
173
|
+
expect(idle.style?.paddingBottom).toBe('var(--kabmo-safe-bottom)');
|
|
174
174
|
|
|
175
175
|
const desktop = composerExpansion({ ...base, expanded: true, variant: 'desktop', keyboardInset: 336 });
|
|
176
176
|
expect(desktop.style).toBeUndefined();
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
52
|
import type { CSSProperties } from 'preact';
|
|
53
|
+
import { SAFE_BOTTOM } from '@/client/lib/ui/safe-area';
|
|
53
54
|
import type { ComposerPickerPlacement } from '@/client/components/common/ComposerPicker';
|
|
54
55
|
|
|
55
56
|
export type ComposerVariant = 'desktop' | 'mobile';
|
|
@@ -161,7 +162,7 @@ export function composerExpansion({
|
|
|
161
162
|
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
162
163
|
// The keyboard's overlap is measured, so it is exact; the indicator's
|
|
163
164
|
// inset is only a fallback for the no-keyboard state.
|
|
164
|
-
paddingBottom: keyboardInset > 0 ? `${keyboardInset}px` :
|
|
165
|
+
paddingBottom: keyboardInset > 0 ? `${keyboardInset}px` : SAFE_BOTTOM,
|
|
165
166
|
},
|
|
166
167
|
};
|
|
167
168
|
}
|
|
@@ -214,6 +214,40 @@ describe('composer narrow mode', () => {
|
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
+
test('the stretched draft fills the card and the mic keeps its own bottom edge', async () => {
|
|
218
|
+
const media = Object.getOwnPropertyDescriptor(navigator, 'mediaDevices');
|
|
219
|
+
Object.defineProperty(navigator, 'mediaDevices', {
|
|
220
|
+
configurable: true,
|
|
221
|
+
value: { getUserMedia: async () => { throw new Error('unused'); } },
|
|
222
|
+
});
|
|
223
|
+
try {
|
|
224
|
+
const host = await mountPhone();
|
|
225
|
+
await act(async () => {
|
|
226
|
+
(host.querySelector('button[aria-label="Maximize composer"]') as HTMLButtonElement).click();
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
const draft = host.querySelector('[data-testid="composer-input"]') as HTMLTextAreaElement;
|
|
230
|
+
const wrapper = draft.parentElement as HTMLElement;
|
|
231
|
+
const row = wrapper.parentElement as HTMLElement;
|
|
232
|
+
// The stretched card's leftover height arrives through this row. Aligning
|
|
233
|
+
// its members to the END sized the wrapper to its content instead, and
|
|
234
|
+
// `h-full` on the textarea then resolved against an auto-height parent —
|
|
235
|
+
// the full-screen phone composer kept the docked 68px box (measured on a
|
|
236
|
+
// Pixel 7: 68px draft inside a 915px card).
|
|
237
|
+
expect(row.classList.contains('items-end')).toBe(false);
|
|
238
|
+
expect(wrapper.classList.contains('flex-1')).toBe(true);
|
|
239
|
+
expect(wrapper.classList.contains('min-h-0')).toBe(true);
|
|
240
|
+
expect(draft.classList.contains('h-full')).toBe(true);
|
|
241
|
+
// What keeps the mic at the bottom now that the row stretches: its own
|
|
242
|
+
// alignment, not the row's.
|
|
243
|
+
const mic = host.querySelector('button[title^="Voice input"]') as HTMLElement;
|
|
244
|
+
expect(mic.classList.contains('self-end')).toBe(true);
|
|
245
|
+
} finally {
|
|
246
|
+
if (media) Object.defineProperty(navigator, 'mediaDevices', media);
|
|
247
|
+
else delete (navigator as unknown as Record<string, unknown>).mediaDevices;
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
|
|
217
251
|
test('the stretch, send and mic controls share one box', async () => {
|
|
218
252
|
const media = Object.getOwnPropertyDescriptor(navigator, 'mediaDevices');
|
|
219
253
|
Object.defineProperty(navigator, 'mediaDevices', {
|
|
@@ -153,6 +153,15 @@ describe('pending chat dock frame', () => {
|
|
|
153
153
|
expect(timeline!.querySelector('[data-composer-dock]')).not.toBeNull();
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
+
test('the docked transcript reserves the title bar it scrolls under', async () => {
|
|
157
|
+
const el = mount({ messages: [USER_ROW], isGenerating: false });
|
|
158
|
+
await settle();
|
|
159
|
+
// The desktop title bar is an OVERLAY, so the scroller carries the marker
|
|
160
|
+
// the stylesheet pads by `--chat-title-height`; without it a new session's
|
|
161
|
+
// first user message opens underneath the title.
|
|
162
|
+
expect(el.querySelector('[data-chat-timeline] [data-chat-scroller]')).not.toBeNull();
|
|
163
|
+
});
|
|
164
|
+
|
|
156
165
|
test('the landing page keeps the centred column and draws no dock', async () => {
|
|
157
166
|
const el = mount({ messages: [], isGenerating: false });
|
|
158
167
|
await settle();
|
|
@@ -30,6 +30,7 @@ import { ToolCallingSection } from '@/client/components/workspace/chat-timeline/
|
|
|
30
30
|
import { SessionStateProvider } from '@/client/components/common/session-state-provider';
|
|
31
31
|
import { primeKabmoSettings } from '@/shared/lib/settings/client';
|
|
32
32
|
import { applyToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
|
|
33
|
+
import { DEFAULT_TOOL_RENDER_MODE } from '@/shared/lib/chat/timeline/tool-render-mode';
|
|
33
34
|
import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
|
|
34
35
|
import type { ToolCallData } from '@kabmo-labs/kabmo-chat/contracts/chat';
|
|
35
36
|
|
|
@@ -148,6 +149,8 @@ describe('a style change reaches a mounted section', () => {
|
|
|
148
149
|
});
|
|
149
150
|
// A value this build cannot draw falls back to the default, never to a
|
|
150
151
|
// style that has no renderer.
|
|
151
|
-
expect(el.querySelector('[data-tool-style]')?.getAttribute('data-tool-style')).toBe(
|
|
152
|
+
expect(el.querySelector('[data-tool-style]')?.getAttribute('data-tool-style')).toBe(
|
|
153
|
+
DEFAULT_TOOL_RENDER_MODE,
|
|
154
|
+
);
|
|
152
155
|
});
|
|
153
156
|
});
|