heyquilt 0.3.182 → 0.3.183
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 +101 -97
- package/RELEASES.md +8 -0
- package/bin/quilt.js +32 -32
- package/desktop/main.js +1 -1
- package/package.json +1 -1
- package/src/account.js +2 -2
- package/src/admit-policy.js +2 -2
- package/src/agent-join.js +3 -3
- package/src/agent-task-workflow.js +14 -14
- package/src/ai-vm.js +1 -1
- package/src/api/agent-placement.js +2 -2
- package/src/api/audit.js +1 -1
- package/src/api/file-paths.js +1 -1
- package/src/api/file-store.js +1 -1
- package/src/api/invite-email.js +4 -4
- package/src/api/join-text.js +5 -5
- package/src/api/notify.js +7 -7
- package/src/api/permissions.js +1 -1
- package/src/api/routes/agent-wake.js +1 -1
- package/src/api/routes/agents.js +2 -2
- package/src/api/routes/ai-vm.js +5 -5
- package/src/api/routes/connections.js +13 -13
- package/src/api/routes/grants.js +2 -2
- package/src/api/routes/mail.js +10 -10
- package/src/api/routes/relay.js +1 -1
- package/src/api/routes/secrets.js +11 -11
- package/src/api/routes/session-invites.js +5 -5
- package/src/api/routes/sessions.js +3 -3
- package/src/api/routes/workspace-agents.js +14 -14
- package/src/api/routes/workspace-files.js +12 -12
- package/src/api/routes/workspace-invites.js +5 -5
- package/src/api/routes/workspaces.js +11 -11
- package/src/api/secrets-access.js +1 -1
- package/src/api/server.js +3 -3
- package/src/api/team-access.js +1 -1
- package/src/api/workspace-access.js +1 -1
- package/src/api/workspace-reach.js +3 -3
- package/src/app-tools.js +10 -10
- package/src/autowork.js +4 -4
- package/src/branch-view.js +1 -1
- package/src/catchup.js +5 -5
- package/src/chat-links.js +18 -18
- package/src/connection.js +11 -11
- package/src/control.js +5 -5
- package/src/conversation.js +1 -1
- package/src/doctor.js +2 -2
- package/src/duties.js +1 -1
- package/src/fsutil.js +1 -1
- package/src/held.js +4 -4
- package/src/hooks.js +3 -3
- package/src/hosted-client.js +2 -2
- package/src/identity.js +1 -1
- package/src/inbox.js +1 -1
- package/src/key-cli.js +1 -1
- package/src/mail-tools.js +11 -11
- package/src/mcp-proxy.js +1 -1
- package/src/mcp.js +59 -59
- package/src/new-session.js +6 -6
- package/src/project-rules.js +2 -2
- package/src/relay-ask.js +2 -2
- package/src/relay-cluster.js +3 -3
- package/src/relay-live-write.js +3 -3
- package/src/relay-mcp.js +56 -56
- package/src/relay-prune.js +1 -1
- package/src/relay-turn-sync.js +1 -1
- package/src/secret-import.js +1 -1
- package/src/secret-names.js +6 -6
- package/src/secret-run.js +3 -3
- package/src/server.js +41 -41
- package/src/session-access.js +3 -3
- package/src/session-name.js +1 -1
- package/src/session.js +50 -50
- package/src/setup.js +7 -7
- package/src/status.js +2 -2
- package/src/tasks.js +1 -1
- package/src/turn-sync.js +4 -4
- package/src/ui/account-sessions.js +2 -2
- package/src/ui/agent-env-key.js +1 -1
- package/src/ui/agent-guide.js +35 -35
- package/src/ui/agent-kinds.js +8 -8
- package/src/ui/agent-place.js +16 -16
- package/src/ui/agents-table.js +6 -6
- package/src/ui/app.css +331 -0
- package/src/ui/app.js +28 -13
- package/src/ui/board.js +2 -2
- package/src/ui/catchup.js +5 -5
- package/src/ui/changes-seen.js +2 -2
- package/src/ui/changes.js +3 -3
- package/src/ui/cloud-ai.js +12 -12
- package/src/ui/common.js +1 -1
- package/src/ui/connections.js +1 -1
- package/src/ui/diffview.js +2 -2
- package/src/ui/feed.js +1 -1
- package/src/ui/feedback.js +4 -4
- package/src/ui/files.js +120 -14
- package/src/ui/fileview.js +3 -3
- package/src/ui/git-rule.js +3 -3
- package/src/ui/home.js +92 -47
- package/src/ui/index.html +1 -1
- package/src/ui/invite.js +8 -8
- package/src/ui/invites.js +3 -3
- package/src/ui/new-session.js +3 -3
- package/src/ui/prail-model.js +22 -0
- package/src/ui/prail.js +43 -0
- package/src/ui/project-board.js +359 -0
- package/src/ui/project-model.js +197 -0
- package/src/ui/project-pop.js +451 -0
- package/src/ui/projects.js +406 -0
- package/src/ui/sandbox-keys.js +3 -3
- package/src/ui/secrets-view.js +5 -5
- package/src/ui/session-words.js +2 -2
- package/src/ui/session.js +156 -43
- package/src/ui/tree.js +3 -3
- package/src/ui/voice.js +6 -6
- package/src/ui/workspaces.js +23 -23
- package/src/ui-server.js +78 -24
- package/src/update-check.js +2 -2
- package/src/voice.js +7 -7
- package/src/wake-tool.js +1 -1
- package/src/webhooks.js +1 -1
- package/src/workspace-cli.js +12 -12
- package/src/workspace-tools.js +33 -33
package/src/ui/app.css
CHANGED
|
@@ -1583,6 +1583,331 @@ body.has-update #app { padding-top: var(--update-bar); } /* padding, not margin:
|
|
|
1583
1583
|
.quilt-patch::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: var(--mark-accent); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
|
|
1584
1584
|
.quilt-stitch { position: absolute; inset: 12px; border: 2px dashed rgba(247, 243, 236, .45); border-radius: 12px; pointer-events: none; }
|
|
1585
1585
|
|
|
1586
|
+
/* ---- the strip of projects on the far left (prail.js), on every page once projects are on ---- */
|
|
1587
|
+
#frame { display: flex; height: 100%; }
|
|
1588
|
+
#frame > #app { flex: 1; min-width: 0; }
|
|
1589
|
+
.prail { width: 60px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 9px 0 14px; background: var(--panel-2); border-right: 1px solid var(--border); overflow-y: auto; scrollbar-width: none; }
|
|
1590
|
+
.prail[hidden] { display: none; }
|
|
1591
|
+
.prail > button { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 0; display: grid; place-items: center; font: 600 15px var(--sans); color: #1d1b2e; cursor: pointer; }
|
|
1592
|
+
.prail > button svg { width: 18px; height: 18px; }
|
|
1593
|
+
.prail .rail-home { background: var(--panel); color: var(--text); box-shadow: var(--card); }
|
|
1594
|
+
.prail .rail-tile { box-shadow: inset 0 0 0 1px rgba(29, 27, 46, .08); }
|
|
1595
|
+
.prail > .on { outline: 2px solid var(--text); outline-offset: 2px; }
|
|
1596
|
+
.prail > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1597
|
+
.prail .add { background: none; border: 1.5px dashed var(--border-strong); color: var(--muted); }
|
|
1598
|
+
.prail .add:hover { color: var(--text); border-color: var(--text); }
|
|
1599
|
+
.prail hr { width: 26px; flex: none; border: 0; border-top: 1px solid var(--border-strong); margin: 0; }
|
|
1600
|
+
.prail .rail-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
|
|
1601
|
+
.prail .rail-foot .fb-dock { position: static; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; background: none; border: 0; }
|
|
1602
|
+
.prail .rail-gear:hover, .prail .rail-gear:focus-visible { color: var(--text); }
|
|
1603
|
+
body.has-rail #app .fb-dock { display: none; } /* the bug and idea buttons live on the strip */
|
|
1604
|
+
body.has-update .prail { margin-top: var(--update-bar); }
|
|
1605
|
+
body.has-asks .prail { margin-top: calc(var(--update-bar, 0px) + var(--asks-bar)); }
|
|
1606
|
+
|
|
1607
|
+
/* ---- Home and a project's page, with projects on (projects.js): a header, then the page ---- */
|
|
1608
|
+
.pj-tile { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 600; font-size: 15px; color: #1d1b2e; box-shadow: inset 0 0 0 1px rgba(29, 27, 46, .08); }
|
|
1609
|
+
.pj-tile.xs { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
|
|
1610
|
+
.pj-tile.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
|
|
1611
|
+
.pj-crumb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 8px; border: 0; border-radius: 4px; background: none; color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
|
|
1612
|
+
.pj-crumb > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1613
|
+
.pj-crumb:hover { background: var(--panel-2); }
|
|
1614
|
+
#pj-side-btn { flex: none; margin-left: 6px; }
|
|
1615
|
+
#pj-side-btn[aria-pressed="true"] { color: var(--text); }
|
|
1616
|
+
.pj-home .ws-top .spacer { flex: 1; }
|
|
1617
|
+
.pj-home .ws-top .brand .qm-word { transform: translateY(11%); }
|
|
1618
|
+
.pj-home .page { flex: 1; min-height: 0; padding: 16px 24px 32px; overflow-y: auto; }
|
|
1619
|
+
/* The content is as wide as the page: no cap and no centring. */
|
|
1620
|
+
.pj-home .page.pj-look > section { margin-bottom: 28px; }
|
|
1621
|
+
.pj-home .sec-head .spacer { flex: 1; }
|
|
1622
|
+
.pj-home .sec-head > .hint { margin-left: 4px; }
|
|
1623
|
+
.pj-new { position: relative; }
|
|
1624
|
+
.ws-top .pj-new { margin: 0; }
|
|
1625
|
+
.popover.menu.pj-new-menu { left: auto; right: 0; width: 340px; }
|
|
1626
|
+
.pj-new-menu .pop-item { align-items: flex-start; padding: 10px; }
|
|
1627
|
+
.pj-new-menu .pop-item svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
|
|
1628
|
+
.pj-new-menu b { display: block; font-weight: 600; }
|
|
1629
|
+
.pj-new-menu small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.45; margin-top: 1px; }
|
|
1630
|
+
#pj-new-btn .caret { display: grid; transform: rotate(90deg); opacity: .7; }
|
|
1631
|
+
#pj-new-btn .caret svg { width: 12px; height: 12px; }
|
|
1632
|
+
.pj-faces { display: flex; }
|
|
1633
|
+
.pj-faces .avatar { width: 22px; height: 22px; font-size: 10.5px; margin-right: -6px; box-shadow: 0 0 0 2px var(--panel); }
|
|
1634
|
+
.pj-faces.sm { flex: none; margin-right: 10px; }
|
|
1635
|
+
.pj-faces.sm .avatar { width: 16px; height: 16px; font-size: 8.5px; margin-right: -4px; box-shadow: 0 0 0 1.5px var(--panel); }
|
|
1636
|
+
/* a quilt block: one vermilion corner, as in Quilt's own mark */
|
|
1637
|
+
.pj-block { display: block; flex: none; width: 32px; height: 32px; border-radius: 8px; }
|
|
1638
|
+
.pj-block .q1 { fill: var(--text); }
|
|
1639
|
+
.pj-block .q2 { fill: color-mix(in srgb, var(--text) 14%, var(--panel)); }
|
|
1640
|
+
.pj-block .q3 { fill: color-mix(in srgb, var(--text) 40%, var(--panel)); }
|
|
1641
|
+
.pj-block .qs { fill: #ff4f2b; }
|
|
1642
|
+
/* codebases: what you came for is the dark thing on the page */
|
|
1643
|
+
.pj-s-dark .ws-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
|
|
1644
|
+
.pj-s-dark .ws-chip { padding: 16px; gap: 12px; background: var(--text); color: var(--panel); border: 0; border-radius: 12px; }
|
|
1645
|
+
.pj-s-dark .ws-chip .t { flex: 1; min-width: 0; }
|
|
1646
|
+
.pj-s-dark .ws-chip .t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1647
|
+
.pj-s-dark .ws-chip .t span { color: color-mix(in srgb, var(--panel) 68%, transparent); }
|
|
1648
|
+
.pj-s-dark .ws-chip .who { display: flex; align-items: center; }
|
|
1649
|
+
.pj-s-dark .pj-block { width: 40px; height: 40px; border-radius: 10px; }
|
|
1650
|
+
.pj-s-dark .pj-block .q1 { fill: color-mix(in srgb, var(--panel) 92%, var(--text)); }
|
|
1651
|
+
.pj-s-dark .pj-block .q2 { fill: color-mix(in srgb, var(--panel) 22%, var(--text)); }
|
|
1652
|
+
.pj-s-dark .pj-block .q3 { fill: color-mix(in srgb, var(--panel) 50%, var(--text)); }
|
|
1653
|
+
.pj-s-dark .pj-faces.sm .avatar { box-shadow: 0 0 0 1.5px var(--text); }
|
|
1654
|
+
.pj-s-dark .ws-chip .btn.primary { background: #ff4f2b; color: #1d1b2e; }
|
|
1655
|
+
.pj-s-dark .ws-chip .btn.primary:hover { background: #ff6a4d; }
|
|
1656
|
+
.pj-s-dark .ws-chip .btn.ghost { color: var(--panel); }
|
|
1657
|
+
.pj-s-dark .ws-chip .btn.ghost:hover { background: color-mix(in srgb, var(--panel) 16%, transparent); }
|
|
1658
|
+
/* a codebase that isn't on this computer yet: Join, drawn on the dark card */
|
|
1659
|
+
.pj-s-dark .ws-chip .btn:not(.primary):not(.ghost) { background: none; color: var(--panel); border-color: color-mix(in srgb, var(--panel) 45%, transparent); }
|
|
1660
|
+
.pj-s-dark .ws-chip .btn:not(.primary):not(.ghost):hover { background: color-mix(in srgb, var(--panel) 14%, transparent); }
|
|
1661
|
+
|
|
1662
|
+
/* agents and connections: each a grid of its own kind of card */
|
|
1663
|
+
.pj-item .toggle { margin: 0; padding: 0; border: 0; }
|
|
1664
|
+
.pj-item .toggle:has(input:disabled) { cursor: default; opacity: .6; }
|
|
1665
|
+
/* the mark of an agent or an app: on white in both themes; a letter if its logo can't load */
|
|
1666
|
+
.pj-face { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #fff; color: #1d1b2e; box-shadow: inset 0 0 0 1px rgba(29, 27, 46, .12); transition: filter .15s, opacity .15s; }
|
|
1667
|
+
.pj-face img, .pj-face > svg { width: 56%; height: 56%; }
|
|
1668
|
+
.pj-face img { object-fit: contain; border-radius: 3px; }
|
|
1669
|
+
.pj-face i { font-style: normal; font-weight: 600; }
|
|
1670
|
+
.pj-face.md { width: 40px; height: 40px; }
|
|
1671
|
+
.pj-face.md.sq { border-radius: 11px; }
|
|
1672
|
+
.pj-face.ink { background: var(--text); color: var(--panel); box-shadow: none; }
|
|
1673
|
+
.pj-tool { display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; margin-right: 6px; border-radius: 3px; overflow: hidden; }
|
|
1674
|
+
.pj-tool img, .pj-tool svg { display: block; width: 100%; height: 100%; }
|
|
1675
|
+
.pj-toolchip { display: inline-flex; align-items: center; flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
|
|
1676
|
+
/* one that is turned off goes grey */
|
|
1677
|
+
.pj-item:has(.toggle input:not(:checked)) .pj-face { filter: grayscale(1); opacity: .45; }
|
|
1678
|
+
.pj-item:has(.toggle input:not(:checked)) b { color: var(--muted); }
|
|
1679
|
+
.pill.pj-scope { height: 19px; padding: 0 8px; font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--panel-2); }
|
|
1680
|
+
.pill.pj-scope.own { color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--panel)); border-color: color-mix(in srgb, var(--violet) 25%, var(--border)); }
|
|
1681
|
+
/* agents: a grid of small cards, as many across as fit. There could be hundreds. */
|
|
1682
|
+
.pj-crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
|
|
1683
|
+
.pj-mate { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px 11px 12px; background: var(--panel); border-radius: 10px; box-shadow: 0 0 0 1px light-dark(rgba(29, 27, 46, .08), var(--border)); }
|
|
1684
|
+
.pj-mate .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
|
|
1685
|
+
.pj-mate .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
1686
|
+
.pj-mate b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1687
|
+
.pj-mate .does { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12.5px; color: var(--muted); overflow: hidden; }
|
|
1688
|
+
.pj-mate .does::first-letter { text-transform: uppercase; }
|
|
1689
|
+
.pj-mate .pill.pj-scope { align-self: flex-start; margin-top: 5px; }
|
|
1690
|
+
/* connections: a square tile each, and a dashed one the shape of its neighbours to connect another */
|
|
1691
|
+
.pj-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
|
|
1692
|
+
.pj-app { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto auto; min-width: 0; min-height: 124px; padding: 14px; background: var(--panel); border-radius: 12px; box-shadow: 0 0 0 1px light-dark(rgba(29, 27, 46, .08), var(--border)); text-align: left; }
|
|
1693
|
+
.pj-app .pj-face { grid-area: 1 / 1; }
|
|
1694
|
+
.pj-app .toggle { grid-area: 1 / 2; align-self: start; }
|
|
1695
|
+
.pj-app b { grid-area: 3 / 1 / 4 / 3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1696
|
+
.pj-app .hint { grid-area: 4 / 1 / 5 / 3; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1697
|
+
.pj-app .pill.pj-scope { grid-area: 5 / 1 / 6 / 3; justify-self: start; margin-top: 8px; }
|
|
1698
|
+
.pj-slot { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--border-strong); background: none; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
|
|
1699
|
+
.pj-slot:hover { color: var(--text); border-color: var(--muted); }
|
|
1700
|
+
.pj-slot svg { width: 15px; height: 15px; }
|
|
1701
|
+
.pj-app.pj-slot { flex-direction: column; box-shadow: none; }
|
|
1702
|
+
.pj-plus { display: grid; place-items: center; }
|
|
1703
|
+
|
|
1704
|
+
/* A project: a sidebar of its own just right of the strip of projects, then the page. The sidebar's
|
|
1705
|
+
rows are the app's own (.side-nav, .side-label, .side-sessions, .side-foot), drawn short. */
|
|
1706
|
+
.pj-home .page.pj-proj { display: grid; grid-template-columns: 244px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding: 0; overflow: hidden; }
|
|
1707
|
+
.pj-home[data-side="shut"] .pj-side { display: none; }
|
|
1708
|
+
.pj-home[data-side="shut"] .page.pj-proj { grid-template-columns: minmax(0, 1fr); }
|
|
1709
|
+
.pj-side { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; padding: 14px 10px 10px; background: var(--panel); border-right: 1px solid var(--border); }
|
|
1710
|
+
.pj-side .side-nav, .pj-side .side-sessions { display: flex; flex-direction: column; gap: 1px; }
|
|
1711
|
+
.pj-side .side-nav button, .pj-side .side-sessions button { height: 28px; }
|
|
1712
|
+
.pj-side .side-nav svg { flex: none; color: var(--muted); }
|
|
1713
|
+
.pj-side .side-nav button.on svg { color: var(--text); }
|
|
1714
|
+
.pj-side .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1715
|
+
.pj-side .ct { flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 0 7px; line-height: 18px; }
|
|
1716
|
+
.pj-side .side-nav button.on .ct, .pj-side .side-nav button:hover .ct { background: var(--panel); }
|
|
1717
|
+
.pj-side-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 2px 2px 10px; }
|
|
1718
|
+
.pj-side-label .btn.sm.icon { width: 24px; height: 24px; }
|
|
1719
|
+
.pj-side-label .btn svg { width: 14px; height: 14px; }
|
|
1720
|
+
.pj-side-label .ct { margin-right: 4px; }
|
|
1721
|
+
.pj-side .side-sessions .pj-block { width: 16px; height: 16px; border-radius: 4px; }
|
|
1722
|
+
.pj-side .side-sessions .away .nm { color: var(--muted); }
|
|
1723
|
+
.pj-side .pj-faces.sm { margin-right: 4px; }
|
|
1724
|
+
.pj-side .side-foot { padding-top: 6px; }
|
|
1725
|
+
.pj-side .side-foot .pj-faces.sm { margin-right: 2px; }
|
|
1726
|
+
.pj-code { display: flex; align-items: center; border-radius: 4px; }
|
|
1727
|
+
.pj-code:hover { background: var(--panel-2); }
|
|
1728
|
+
.pj-side .side-sessions .pj-code > button { flex: 1; min-width: 0; }
|
|
1729
|
+
.pj-side .side-sessions .pj-code > button:hover { background: none; }
|
|
1730
|
+
/* a section folds: its heading is the button, and folded it carries the count */
|
|
1731
|
+
.pj-fold { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 24px; margin: 0 0 0 -6px; padding: 0 6px; border: 0; border-radius: 6px; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: left; cursor: pointer; }
|
|
1732
|
+
.pj-fold:hover { color: var(--text); }
|
|
1733
|
+
.pj-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
1734
|
+
.pj-fold svg { flex: none; width: 12px; height: 12px; opacity: 0; transition: transform .15s, opacity .15s; }
|
|
1735
|
+
.pj-side-label:hover .pj-fold svg, .pj-fold:focus-visible svg, .pj-fold[aria-expanded="false"] svg { opacity: 1; }
|
|
1736
|
+
.pj-fold[aria-expanded="false"] svg { transform: rotate(-90deg); }
|
|
1737
|
+
.pj-pmain { min-width: 0; min-height: 0; overflow-y: auto; padding: 16px 24px 32px; }
|
|
1738
|
+
.pj-pmain > section { margin-bottom: 28px; }
|
|
1739
|
+
.pj-pmain .files-head { margin-bottom: 14px; }
|
|
1740
|
+
.pj-pmain .files-head .crumbs { font-size: 17px; }
|
|
1741
|
+
@media (max-width: 760px) {
|
|
1742
|
+
.pj-home .page.pj-proj { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
|
|
1743
|
+
.pj-side { border-right: 0; border-bottom: 1px solid var(--border); max-height: 40vh; }
|
|
1744
|
+
.pj-home .page, .pj-pmain { padding: 14px 14px 24px; }
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
/* ---- A codebase's page with the sidebar (projects on): the People and chat columns go, and chat
|
|
1748
|
+
is a page from the sidebar. session.js marks the page that is over the middle in data-side-page. ---- */
|
|
1749
|
+
.code-crumb { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
|
|
1750
|
+
.pj-crumb-sep { color: var(--faint); margin: 0 2px 0 0; }
|
|
1751
|
+
.pj-side-code { padding-top: 10px; }
|
|
1752
|
+
.pj-hash { flex: none; display: inline-grid; place-items: center; width: 16px; font-weight: 600; font-size: 15px; color: var(--muted); }
|
|
1753
|
+
.pj-side .side-sessions.pj-rooms button.on { background: var(--panel-2); font-weight: 600; }
|
|
1754
|
+
.pj-side .pj-rooms button.on .pj-hash { color: var(--text); }
|
|
1755
|
+
.pj-side .ct.new, .pj-side .side-nav button.on .ct.new, .pj-side .side-nav button:hover .ct.new { background: var(--accent); color: light-dark(#fff, #1d1b2e); }
|
|
1756
|
+
.ws.pj-cb .ws-body { grid-template-columns: 244px minmax(0, 1fr); transition: none; }
|
|
1757
|
+
.ws.pj-cb[data-side="shut"] .ws-body { grid-template-columns: minmax(0, 1fr); }
|
|
1758
|
+
.ws.pj-cb[data-side="shut"] .pj-side { display: none; }
|
|
1759
|
+
.ws.pj-cb .ws-people, .ws.pj-cb #tasks-btn, .ws.pj-cb #toggle-chat, .ws.pj-cb #toggle-tree, .ws.pj-cb #connections-btn { display: none !important; }
|
|
1760
|
+
.ws.pj-cb .ws-chat { display: none; position: relative; width: auto; border-left: 0; box-shadow: none; }
|
|
1761
|
+
.ws.pj-cb .chat-resize, .ws.pj-cb .chat-rail, .ws.pj-cb #collapse-chat { display: none; }
|
|
1762
|
+
.ws.pj-cb[data-side-page="chat"] .ws-main { display: none; }
|
|
1763
|
+
.ws.pj-cb[data-side-page="chat"] .ws-chat { display: flex; }
|
|
1764
|
+
.ws.pj-cb:is([data-side-page="connections"], [data-side-page="artifacts"]) :is(#main, #mainbar) { display: none; }
|
|
1765
|
+
.ws.pj-cb .ws-main > .pj-pmain { flex: 1; }
|
|
1766
|
+
/* a call keeps the chat, with the call in it, beside the page */
|
|
1767
|
+
.ws.pj-cb:not([data-side-page="chat"]) .ws-body:has(#call-pin:not([hidden])) { grid-template-columns: 244px minmax(0, 1fr) 380px; }
|
|
1768
|
+
.ws.pj-cb[data-side="shut"]:not([data-side-page="chat"]) .ws-body:has(#call-pin:not([hidden])) { grid-template-columns: minmax(0, 1fr) 380px; }
|
|
1769
|
+
.ws.pj-cb:not([data-side-page="chat"]) .ws-body:has(#call-pin:not([hidden])) .ws-chat { display: flex; border-left: 1px solid var(--border); }
|
|
1770
|
+
@media (max-width: 900px) {
|
|
1771
|
+
.ws.pj-cb .ws-body, .ws.pj-cb:not([data-side-page="chat"]) .ws-body:has(#call-pin:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
|
|
1772
|
+
.ws.pj-cb .pj-side { position: absolute; top: 0; bottom: 0; left: 0; z-index: 5; width: min(244px, 80vw); max-height: none; border-right: 1px solid var(--border); border-bottom: 0; box-shadow: var(--shadow-pop); }
|
|
1773
|
+
.ws.pj-cb:not([data-side-page="chat"]) .ws-body:has(#call-pin:not([hidden])) .ws-chat { position: absolute; top: 0; bottom: 0; right: 0; z-index: 5; width: min(340px, 88vw); box-shadow: var(--shadow-pop); }
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/* ---- Artifacts (files.js artifactsHtml): tiles across the page; an open artifact takes the page
|
|
1777
|
+
and is shown as what it is. The narrow preview panel's rules (.file-preview, .fp-*) are undone here. ---- */
|
|
1778
|
+
.pj-pmain.pj-files { display: flex; flex-direction: column; }
|
|
1779
|
+
/* ---- The pop-ups of a project (New project, a project's settings): the Settings pop-up's shell, with lists in cards ---- */
|
|
1780
|
+
.pj-pop .ss-nav h3 { display: flex; align-items: center; gap: 8px; }
|
|
1781
|
+
.pj-pop .ss-nav h3 > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1782
|
+
.pj-pop .ss-main { display: flex; flex-direction: column; min-height: 0; }
|
|
1783
|
+
.pj-pop .settings-body { flex: 1; min-height: 0; }
|
|
1784
|
+
.pj-pop .ss-tabs + .nc-label, .settings-nav .pj-nav-label:not(:first-child) { padding-top: 12px; }
|
|
1785
|
+
.pj-pop .field:last-child { margin-bottom: 0; }
|
|
1786
|
+
.pj-pop .field > .label { display: block; margin-bottom: 6px; }
|
|
1787
|
+
.pj-pop .sec-actions.pj-flat { margin-top: 0; padding-top: 0; border-top: 0; justify-content: flex-start; }
|
|
1788
|
+
.pj-g-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
|
|
1789
|
+
.pj-g-row:first-child { border-top: 0; }
|
|
1790
|
+
.pj-g-row.pj-g-empty { grid-template-columns: minmax(0, 1fr); }
|
|
1791
|
+
.pj-g-row .t b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
|
|
1792
|
+
.pj-g-row .t .hint { display: flex; align-items: center; gap: 5px; min-width: 0; }
|
|
1793
|
+
.pj-g-row .t .hint .pj-tool { width: 13px; height: 13px; flex: none; }
|
|
1794
|
+
.pj-g-row > .toggle, .pj-g-row .toggle { margin: 0; padding: 0; }
|
|
1795
|
+
.pj-g-act { display: flex; align-items: center; gap: 10px; }
|
|
1796
|
+
.pj-g-row .pj-face { width: 32px; height: 32px; }
|
|
1797
|
+
.pj-g-flat { margin: -16px -24px -22px; }
|
|
1798
|
+
.pj-g-flat .pj-g-row, .pj-g-flat .pj-g-add { padding-left: 24px; padding-right: 24px; }
|
|
1799
|
+
.pj-g-add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--border); background: none; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; text-align: left; }
|
|
1800
|
+
.pj-g-add:hover { color: var(--text); }
|
|
1801
|
+
.pj-g-add svg { width: 14px; height: 14px; }
|
|
1802
|
+
.pj-g + .pj-add-row, .pj-g + .pj-add-form { margin-top: 12px; }
|
|
1803
|
+
.pj-add-row { display: flex; gap: 8px; }
|
|
1804
|
+
.pj-add-row .btn { flex: 1; justify-content: center; }
|
|
1805
|
+
.pj-add-form { display: flex; gap: 8px; }
|
|
1806
|
+
.pj-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; height: auto; min-height: 40px; padding: 5px 8px; cursor: text; }
|
|
1807
|
+
.pj-chips > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--panel-2); font-size: 13px; }
|
|
1808
|
+
.pj-chips > span button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
|
|
1809
|
+
.pj-chips > span button:hover { color: var(--text); background: var(--border); }
|
|
1810
|
+
.pj-chips > span button svg { width: 11px; height: 11px; }
|
|
1811
|
+
.pj-chips input { flex: 1; min-width: 160px; height: 28px; padding: 0 4px; border: 0; outline: 0; background: none; font: inherit; color: var(--text); }
|
|
1812
|
+
.pj-chips:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
|
|
1813
|
+
.pj-note { margin: 10px 0 0; }
|
|
1814
|
+
.pj-known { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
|
|
1815
|
+
.pj-waiting { display: block; margin: 18px 0 2px; }
|
|
1816
|
+
.pj-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
|
|
1817
|
+
.pj-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
|
|
1818
|
+
.pj-person b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1819
|
+
.pj-person .hint { display: block; }
|
|
1820
|
+
.pj-person select.input.sm, .pj-person .dd-btn { height: 26px; margin-top: 3px; width: 100%; }
|
|
1821
|
+
.pj-preview { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: start; gap: 28px; align-items: start; }
|
|
1822
|
+
.pj-preview .label { display: block; margin-bottom: 8px; }
|
|
1823
|
+
.pj-preview-rail { width: 60px; padding: 14px 0; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; }
|
|
1824
|
+
.pj-preview .pj-tile.on { width: 36px; height: 36px; border-radius: 9px; font-size: 15px; outline: 2px solid var(--text); outline-offset: 2px; }
|
|
1825
|
+
.pj-preview-top { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; width: fit-content; max-width: 100%; }
|
|
1826
|
+
.pj-preview-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1827
|
+
.pj-preview .hint { margin: 8px 0 0; }
|
|
1828
|
+
@media (max-width: 760px) { .pj-add-row { flex-direction: column; } .pj-preview { grid-template-columns: minmax(0, 1fr); } }
|
|
1829
|
+
|
|
1830
|
+
/* A project's task board: the board a codebase has, with a row of chips to narrow it to one codebase and each card wearing its codebase. */
|
|
1831
|
+
.pj-pmain.pj-tasks { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 24px; }
|
|
1832
|
+
.pj-board { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
|
|
1833
|
+
.pj-board-none { padding: 20px 16px; }
|
|
1834
|
+
.pj-tagbar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--border); }
|
|
1835
|
+
.pj-tagbar .hint { font-size: 12.5px; }
|
|
1836
|
+
.pj-tagbar .spacer { flex: 1; }
|
|
1837
|
+
.pj-tagbar-sep { width: 1px; height: 18px; background: var(--border-strong); margin: 0 4px; }
|
|
1838
|
+
.pj-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 0; border-radius: 999px; cursor: pointer; }
|
|
1839
|
+
.pj-chip:hover { color: var(--text); }
|
|
1840
|
+
.pj-chip svg { width: 13px; height: 13px; }
|
|
1841
|
+
.pj-chip .n { font-weight: 700; font-size: 11px; color: var(--faint); }
|
|
1842
|
+
.pj-chip.on { color: var(--text); background: var(--panel); box-shadow: 0 0 0 2px var(--text); }
|
|
1843
|
+
.pj-chip.on .n { color: var(--muted); }
|
|
1844
|
+
.pj-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1845
|
+
.pj-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 2px; }
|
|
1846
|
+
.tag.pj-tag { display: inline-flex; align-items: center; gap: 4px; border: 0; font-family: inherit; color: var(--text); cursor: pointer; }
|
|
1847
|
+
.tag.pj-tag:hover { background: var(--border); }
|
|
1848
|
+
.tag.pj-tag svg { width: 11px; height: 11px; }
|
|
1849
|
+
.pj-board .task[hidden] { display: none; }
|
|
1850
|
+
.pj-add-in select { max-width: 160px; }
|
|
1851
|
+
.pj-board .task.pj-stale { opacity: .62; }
|
|
1852
|
+
.pj-tagbar .pj-seen { margin-left: 8px; }
|
|
1853
|
+
@media (max-width: 760px) { /* the sidebar is above the page here: the board keeps a height worth using, and the page scrolls */
|
|
1854
|
+
.pj-pmain.pj-tasks { overflow-y: auto; }
|
|
1855
|
+
.pj-board { flex: 1 0 480px; }
|
|
1856
|
+
}
|
|
1857
|
+
.pj-pmain .files-mode { width: auto; }
|
|
1858
|
+
.art-list { flex: 1; min-height: 0; border-radius: 10px; outline: 2px dashed transparent; outline-offset: 6px; transition: outline-color .12s; }
|
|
1859
|
+
.art-list.files-dragging { outline-color: var(--accent); }
|
|
1860
|
+
.art-tiles { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
|
|
1861
|
+
.art-tiles .tile .thumb { height: 104px; }
|
|
1862
|
+
.art-tiles .tile.add { min-height: 156px; }
|
|
1863
|
+
.art-drop { width: 100%; height: 56px; margin-top: 10px; border-radius: 8px; }
|
|
1864
|
+
.pj-pmain.pj-files:has(> .art-view) { padding: 0; overflow: hidden; }
|
|
1865
|
+
.art-view.file-preview { position: static; flex: 1; min-height: 0; gap: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--canvas); }
|
|
1866
|
+
.art-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 10px; border-bottom: 1px solid var(--border); background: var(--panel); }
|
|
1867
|
+
.art-bar .badge { flex: none; font-size: 9.5px; font-weight: 700; color: #fff; padding: 1px 5px; border-radius: 3px; letter-spacing: .02em; }
|
|
1868
|
+
.art-bar .fp-name { flex: 0 1 auto; min-width: 80px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1869
|
+
.art-bar .art-meta { flex: none; white-space: nowrap; }
|
|
1870
|
+
.art-bar .spacer { flex: 1; }
|
|
1871
|
+
.art-bar .segmented { flex: none; width: auto; }
|
|
1872
|
+
.art-bar .btn { flex: none; }
|
|
1873
|
+
.art-bar a.btn { text-decoration: none; }
|
|
1874
|
+
.art-bar .btn svg { width: 14px; height: 14px; }
|
|
1875
|
+
.art-note { flex: none; margin: 12px 24px 0; }
|
|
1876
|
+
.art-view .art-body.fp-media { flex: 1; min-height: 0; overflow: auto; border-radius: 0; background: var(--canvas); }
|
|
1877
|
+
.art-view .art-body.art-html { display: flex; overflow: hidden; background: #fff; }
|
|
1878
|
+
.art-frame { flex: 1; display: block; width: 100%; height: 100%; border: 0; background: #fff; }
|
|
1879
|
+
.art-view .art-body > img, .art-view .art-body > video { width: auto; max-width: calc(100% - 48px); max-height: calc(100% - 48px); margin: 24px auto; object-fit: contain; border-radius: 8px; background: none; }
|
|
1880
|
+
.art-view .art-body > audio { width: min(560px, calc(100% - 48px)); margin: 24px; }
|
|
1881
|
+
.art-view .art-body.art-pdf { display: flex; }
|
|
1882
|
+
.art-view .art-body > iframe { flex: 1; height: 100%; }
|
|
1883
|
+
.art-view .art-body > .fp-md, .art-view .art-body > .pv-sheet-box, .art-view .art-body > .pv-docx-box, .art-view .art-body > [data-pv-load] { max-height: none; overflow: visible; }
|
|
1884
|
+
.art-view .art-body .fp-md .pv-bar { padding: 10px 24px; background: none; }
|
|
1885
|
+
.art-view .art-body .fp-md .md-body, .art-view .art-body .pv-doc { padding: 4px 24px 32px; font-size: 14.5px; line-height: 1.65; }
|
|
1886
|
+
/* prose reads at a line's length, from the left; tables, code and pictures use the width they need */
|
|
1887
|
+
.art-view .art-body .md-body > :is(p, ul, ol, blockquote, h1, h2, h3, h4, h5, h6), .art-view .art-body .pv-doc > :is(p, ul, ol, blockquote, h1, h2, h3, h4, h5, h6) { max-width: 84ch; }
|
|
1888
|
+
.art-view .art-body .fp-pre { max-height: none; overflow: visible; padding: 16px 24px 32px; font-size: 12.5px; line-height: 1.6; }
|
|
1889
|
+
.art-view .art-body .fp-table { max-height: none; overflow: visible; padding: 0 0 24px; }
|
|
1890
|
+
.art-view .art-body .fp-table table { min-width: 100%; font-size: 12.5px; }
|
|
1891
|
+
.art-view .art-body .fp-table th, .art-view .art-body .fp-table td { padding: 7px 14px; }
|
|
1892
|
+
.art-view .art-body .fp-table th { top: 0; background: var(--panel); box-shadow: inset 0 -1px 0 var(--border-strong); }
|
|
1893
|
+
.art-view .art-body .fp-table tr:nth-child(even) td { background: color-mix(in srgb, var(--panel) 55%, transparent); }
|
|
1894
|
+
.art-view .art-body > .hint, .art-view .art-body .fp-text > .hint { padding: 48px 24px; }
|
|
1895
|
+
.art-view .art-body .pv-none { margin: 48px auto; }
|
|
1896
|
+
/* a spreadsheet: its sheets as tabs, each a table with room around it */
|
|
1897
|
+
.art-view .art-body .pv-sheets.segmented { margin: 16px 24px 0; width: auto; }
|
|
1898
|
+
.art-view .art-body .pv-sheet { padding: 12px 24px 32px; }
|
|
1899
|
+
.art-view .art-body .pv-table table { font-size: 13px; background: var(--panel); }
|
|
1900
|
+
.art-view .art-body .pv-table th, .art-view .art-body .pv-table td { padding: 7px 14px; }
|
|
1901
|
+
/* code: each line numbered by the stylesheet, so copying takes only the text */
|
|
1902
|
+
.art-code { counter-reset: line; white-space: pre; overflow-wrap: normal; }
|
|
1903
|
+
.art-code .cl { counter-increment: line; }
|
|
1904
|
+
.art-code .cl::before { content: counter(line); display: inline-block; width: 4ch; margin-right: 2ch; text-align: right; color: var(--faint); user-select: none; }
|
|
1905
|
+
.art-versions { flex: none; margin: 0; padding: 8px 16px; border-top: 1px solid var(--border); background: var(--panel); }
|
|
1906
|
+
@media (max-width: 900px) {
|
|
1907
|
+
.art-bar { flex-wrap: wrap; }
|
|
1908
|
+
.art-bar .art-meta { display: none; }
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1586
1911
|
/* settings in a pop-up (from inside a session): the Settings cards on a scrolling sheet */
|
|
1587
1912
|
.settings-back { z-index: 30; }
|
|
1588
1913
|
.ask-back { z-index: 40; } /* confirm dialogs (Shut down, sign out…) sit on top of the Settings pop-up */
|
|
@@ -1999,6 +2324,12 @@ body.has-update #app { padding-top: var(--update-bar); } /* padding, not margin:
|
|
|
1999
2324
|
.board-add-assign { flex: 1; min-width: 0; padding-left: 8px; border-left: 0; }
|
|
2000
2325
|
.board-add .dd-btn.task-add-assign { flex: 1; min-width: 0; width: auto; }
|
|
2001
2326
|
}
|
|
2327
|
+
/* A project's board has one more choice in its add form (the codebase): the form takes a row of its own sooner. */
|
|
2328
|
+
@container board (max-width: 820px) {
|
|
2329
|
+
.pj-board .board-head { flex-wrap: wrap; row-gap: 8px; }
|
|
2330
|
+
.pj-board .board-filter { margin-left: auto; }
|
|
2331
|
+
.pj-board .board-add { order: 1; flex-basis: 100%; }
|
|
2332
|
+
}
|
|
2002
2333
|
/* access types: the invite panel, the people menu's Access section, and a chat you can't post to */
|
|
2003
2334
|
.inv-sub { margin: 14px 0 6px; }
|
|
2004
2335
|
.inv-section #inv-type { width: 100%; }
|
package/src/ui/app.js
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
// The session workspace lives in session.js. Plain ES modules, no build step.
|
|
3
3
|
import { authorOf } from './chat.js'
|
|
4
4
|
import { TOKEN, I, state, $, esc, basename, ago, toast, api, ask, decodeInvite, remember, recall, startDropdowns, avatar, loadAccessTypes, typeOptions, loadingHtml, loadingNote } from './common.js'
|
|
5
|
-
import { renderShell, joinSessionDialog } from './home.js'
|
|
5
|
+
import { renderShell, joinSessionDialog, openProjectSettings } from './home.js'
|
|
6
6
|
import { mountSession, sessionUpdated, sessionMessage, sessionFeed, sessionFileChanged, sessionLog, sessionUnmount } from './session.js'
|
|
7
7
|
import { quiltMark } from './mark.js'
|
|
8
8
|
import { renderSignIn } from './signin.js'
|
|
9
9
|
import { checkRelease, openReleaseNotes } from './releases.js'
|
|
10
10
|
import { loadWorkspaces, openWorkspace, wsIdOf } from './workspaces.js'
|
|
11
|
+
import { renderRail } from './prail.js'
|
|
12
|
+
import { openNewProject } from './project-pop.js'
|
|
11
13
|
import { previewBusy } from './files.js'
|
|
12
14
|
import { agentPaste, NO_LINK_YET } from './invite.js'
|
|
13
15
|
import { openKindMenu, kindLineHtml } from './agent-kinds.js'
|
|
@@ -89,6 +91,7 @@ export function signedOutNow (message = '') {
|
|
|
89
91
|
state.addingWorkspace = false
|
|
90
92
|
for (const m of [state.sessions, state.messages, state.feeds, state.trees, state.files]) m.clear()
|
|
91
93
|
document.querySelectorAll('.modal-back').forEach((m) => m.remove())
|
|
94
|
+
drawRail()
|
|
92
95
|
renderSignIn(message, boot)
|
|
93
96
|
}
|
|
94
97
|
|
|
@@ -251,6 +254,8 @@ export async function go (view) {
|
|
|
251
254
|
state.pending = []
|
|
252
255
|
state.to = ''
|
|
253
256
|
if (view !== 'home') state.addingWorkspace = false
|
|
257
|
+
if (!isWorkspace(view) || wsIdOf(view) !== state.workspace?.workspace?.id) state.projectPage = '' // another project opens on its overview
|
|
258
|
+
drawRail() // where you are going shows on the strip at once, while its page loads
|
|
254
259
|
if (isWorkspace(view)) {
|
|
255
260
|
if (state.workspace?.workspace?.id !== wsIdOf(view)) {
|
|
256
261
|
// Another workspace: its loading screen right away, not a wait on the last page.
|
|
@@ -272,7 +277,7 @@ export async function go (view) {
|
|
|
272
277
|
// session view keeps it up until the files and the AI feeds are in too (mountSession).
|
|
273
278
|
sessionUnmount()
|
|
274
279
|
const sum = state.sessions.get(view)
|
|
275
|
-
$('#app').innerHTML = loadingHtml({ label: 'Loading
|
|
280
|
+
$('#app').innerHTML = loadingHtml({ label: 'Loading codebase', name: sum?.status?.sessionName || basename(sum?.dir || ''), full: true })
|
|
276
281
|
await loadMessages(view).catch(() => {})
|
|
277
282
|
if (state.view !== view) return
|
|
278
283
|
}
|
|
@@ -287,7 +292,7 @@ export async function shutdown () {
|
|
|
287
292
|
if (shuttingDown) return
|
|
288
293
|
shuttingDown = true
|
|
289
294
|
try {
|
|
290
|
-
if (!await ask({ title: 'Shut down Quilt?', message: 'This
|
|
295
|
+
if (!await ask({ title: 'Shut down Quilt?', message: 'This closes every codebase and this app. Your files stay where they are.', ok: 'Shut down', danger: true })) return
|
|
291
296
|
$('#settings-back')?.remove()
|
|
292
297
|
await api('POST', '/api/shutdown')
|
|
293
298
|
state.events?.close() // don't re-render or reconnect as sessions stop
|
|
@@ -319,6 +324,16 @@ export function render () {
|
|
|
319
324
|
mountSession(state.view)
|
|
320
325
|
bindTopbar()
|
|
321
326
|
}
|
|
327
|
+
drawRail()
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/** The strip of projects on the far left (prail.js), for the page that is open. */
|
|
331
|
+
export function drawRail () {
|
|
332
|
+
renderRail({
|
|
333
|
+
go,
|
|
334
|
+
addProject: () => openNewProject(),
|
|
335
|
+
projectSettings: (id) => openProjectSettings(id)
|
|
336
|
+
})
|
|
322
337
|
}
|
|
323
338
|
|
|
324
339
|
export function renderLocked (msg) {
|
|
@@ -338,7 +353,7 @@ export function renderTabs () {
|
|
|
338
353
|
const dirs = new Set(open.map((s) => s.dir))
|
|
339
354
|
const earlier = (state.recent || []).filter((r) => !r.unsupported && !dirs.has(r.dir))
|
|
340
355
|
el.hidden = false
|
|
341
|
-
el.innerHTML = '<div class="pop-label">Your
|
|
356
|
+
el.innerHTML = '<div class="pop-label">Your codebases</div>' + open.map((s) => {
|
|
342
357
|
const unread = s.status.unread
|
|
343
358
|
const on = state.view === s.id
|
|
344
359
|
return `<button class="pop-item tab${on ? ' on' : ''}" role="menuitem" data-go="${s.id}"${on ? ' aria-current="true"' : ''}>
|
|
@@ -357,7 +372,7 @@ export function renderTabs () {
|
|
|
357
372
|
const ok = here.status.connected
|
|
358
373
|
dot.className = `sess-dot ${ok ? 'ok' : 'bad'}`
|
|
359
374
|
dot.title = ok ? 'Connected' : (here.status.problem || 'Not connected. Quilt keeps retrying.')
|
|
360
|
-
$('#sess-btn').setAttribute('aria-label', `${here.status.sessionName || basename(here.dir)}, ${ok ? 'connected' : 'not connected'}:
|
|
375
|
+
$('#sess-btn').setAttribute('aria-label', `${here.status.sessionName || basename(here.dir)}, ${ok ? 'connected' : 'not connected'}: codebases and codebase menu`)
|
|
361
376
|
}
|
|
362
377
|
const badge = $('#sess-badge')
|
|
363
378
|
if (badge) {
|
|
@@ -426,7 +441,7 @@ export async function pickFolder (input) {
|
|
|
426
441
|
back.className = 'modal-back pick-back'
|
|
427
442
|
back.innerHTML = `<div class="card modal" role="dialog" aria-modal="true" aria-labelledby="pick-title">
|
|
428
443
|
<h3 id="pick-title">Choose a folder</h3>
|
|
429
|
-
<p class="lead">Pick the
|
|
444
|
+
<p class="lead">Pick the folder, or type a path. New folders are created for you.</p>
|
|
430
445
|
<div class="row"><button class="btn icon" id="pick-up" title="Up" aria-label="Up">${I.up}</button><input class="input grow mono" id="pick-path"><button class="btn" id="pick-go">Go</button></div>
|
|
431
446
|
<div class="dirlist" id="pick-list"></div>
|
|
432
447
|
<div class="hint" id="pick-note"></div>
|
|
@@ -478,13 +493,13 @@ export function openInvite (id) {
|
|
|
478
493
|
back.className = 'modal-back'
|
|
479
494
|
back.innerHTML = `<div class="card modal" role="dialog" aria-modal="true" aria-labelledby="inv-title">
|
|
480
495
|
<h3 id="inv-title">Invite someone</h3>
|
|
481
|
-
<p class="lead">Send them a link. Clicking it opens the
|
|
496
|
+
<p class="lead">Send them a link. Clicking it opens the codebase in Quilt (after signing in). It also works with <code>quilt join <link></code>.</p>
|
|
482
497
|
<div class="label" style="margin-bottom:6px">${s.viewInvite ? 'Can edit' : 'Invite link'}</div>
|
|
483
498
|
${s.invite ? `<div class="codebox"><code id="inv-code">${esc(s.invite)}</code><button class="btn icon" data-copy="inv-code" title="Copy" aria-label="Copy invite link">${I.copy}</button></div>` : `<p class="hint">${esc(NO_LINK_YET)}</p>`}
|
|
484
499
|
${s.viewInvite ? `<div class="label" style="margin-bottom:6px">View only</div>
|
|
485
500
|
<div class="codebox"><code id="inv-view">${esc(s.viewInvite)}</code><button class="btn icon" data-copy="inv-view" title="Copy" aria-label="Copy view-only link">${I.copy}</button></div>` : ''}
|
|
486
501
|
${d ? `<p class="hint">Room <code>${esc(d.room)}</code> via <code>${esc(d.server)}</code></p>` : ''}
|
|
487
|
-
<p class="hint">${s.viewInvite ? 'Everyone who uses a link waits until you let them in, and you can change what they may do later in
|
|
502
|
+
<p class="hint">${s.viewInvite ? 'Everyone who uses a link waits until you let them in, and you can change what they may do later in Codebase settings.' : 'Anyone with this link can edit the codebase. Only share it with people you trust.'}</p>
|
|
488
503
|
${owner ? `<div class="inv-section" id="inv-access">
|
|
489
504
|
<div class="label inv-agent-label">Invite as</div>
|
|
490
505
|
<select class="input" id="inv-type" aria-label="Invite as"></select>
|
|
@@ -502,13 +517,13 @@ export function openInvite (id) {
|
|
|
502
517
|
</div>` : ''}
|
|
503
518
|
<div class="label inv-agent-label">Your AI</div>
|
|
504
519
|
<div id="inv-agent" class="inv-agent">
|
|
505
|
-
<p class="hint">An AI that already has the Quilt command just needs the link above: tell it "Join my Quilt
|
|
520
|
+
<p class="hint">An AI that already has the Quilt command just needs the link above: tell it "Join my Quilt codebase: <link>". To add an AI that isn't registered with Quilt yet, make it an agent invite and paste the text into it: it carries the link above too. It joins as your own agent, listed in Settings.</p>
|
|
506
521
|
<button class="btn" type="button" id="inv-agent-make"${state.workspacesOn ? ' aria-haspopup="menu" aria-expanded="false"' : ''}>${I.bot}<span>Invite an AI agent</span></button>
|
|
507
522
|
<p class="error" id="inv-agent-error"></p>
|
|
508
523
|
</div>
|
|
509
524
|
${s.status.access?.owner || s.status.access?.canAdmit ? `<div class="label inv-agent-label">A chat AI</div>
|
|
510
525
|
<div id="inv-chat" class="inv-agent">
|
|
511
|
-
<p class="hint">For ChatGPT, claude.ai, Grok and other AIs you use in a chat window: make a chat link and paste it into the chat. It can read and send messages, add, assign, move and comment on tasks, read files, and add pictures, documents and notes. It can't change existing files. It shows up in the
|
|
526
|
+
<p class="hint">For ChatGPT, claude.ai, Grok and other AIs you use in a chat window: make a chat link and paste it into the chat. It can read and send messages, add, assign, move and comment on tasks, read files, and add pictures, documents and notes. It can't change existing files. It shows up in the codebase as its own member and works for 10 minutes: extend it in Codebase settings while it works, or make a new one after.</p>
|
|
512
527
|
<button class="btn" type="button" id="inv-chat-make">${I.link}<span>Make a chat link</span></button>
|
|
513
528
|
<p class="error" id="inv-chat-error"></p>
|
|
514
529
|
</div>` : ''}
|
|
@@ -551,8 +566,8 @@ export function openInvite (id) {
|
|
|
551
566
|
try {
|
|
552
567
|
const r = await api('POST', `/api/sessions/${id}/chat-link`, {})
|
|
553
568
|
const until = new Date(r.expiresAt).toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' })
|
|
554
|
-
$('#inv-chat', back).innerHTML = `<p class="hint">Paste this into the chat. It works until ${esc(until)} (extend it in
|
|
555
|
-
<div class="codebox"><code id="inv-chat-text">${esc(`Open this link and follow it to join our Quilt
|
|
569
|
+
$('#inv-chat', back).innerHTML = `<p class="hint">Paste this into the chat. It works until ${esc(until)} (extend it in Codebase settings) and shows in the codebase as <b>${esc(r.name)}</b>. Anyone with it can act as ${esc(r.name)}, so only paste it there.</p>
|
|
570
|
+
<div class="codebox"><code id="inv-chat-text">${esc(`Open this link and follow it to join our Quilt codebase: ${r.url}`)}</code><button class="btn icon" data-copy="inv-chat-text" title="Copy" aria-label="Copy chat link">${I.copy}</button></div>`
|
|
556
571
|
} catch (err) {
|
|
557
572
|
chatMake.disabled = false
|
|
558
573
|
$('#inv-chat-error', back).textContent = err.message
|
|
@@ -591,7 +606,7 @@ function bindInviteAs (id, back) {
|
|
|
591
606
|
const list = (await api('GET', '/api/collaborators')).collaborators
|
|
592
607
|
el.innerHTML = list.length
|
|
593
608
|
? list.map((c) => `<div class="inv-row">${avatar(c.name, null)}<span class="grow">${esc(c.name)}${c.kind === 'agent' ? `<span class="tag bot">${I.bot}agent</span>` : ''}</span><button class="btn sm" type="button" data-invite-account="${esc(c.account)}" data-name="${esc(c.name)}">Invite</button></div>`).join('')
|
|
594
|
-
: "<p class=\"hint\">Nobody yet. People and agents you've been in a
|
|
609
|
+
: "<p class=\"hint\">Nobody yet. People and agents you've been in a codebase with show up here.</p>"
|
|
595
610
|
} catch (err) { el.innerHTML = `<p class="hint">${esc(err.message)}</p>` }
|
|
596
611
|
}
|
|
597
612
|
;(state.accessTypes ? Promise.resolve(state.accessTypes) : loadAccessTypes()).then((types) => {
|
package/src/ui/board.js
CHANGED
|
@@ -53,7 +53,7 @@ export function renderBoard (tasks, me, people = [], assignTo = '', { archived =
|
|
|
53
53
|
${SEARCH}
|
|
54
54
|
<input id="archive-filter" type="search" maxlength="200" placeholder="Filter archived tasks" aria-label="Filter archived tasks" autocomplete="off">
|
|
55
55
|
</label>`
|
|
56
|
-
: `<h2 class="board-title" title="Shared with everyone in this
|
|
56
|
+
: `<h2 class="board-title" title="Shared with everyone in this codebase. Assign a task to a person or their AI.">Tasks</h2>
|
|
57
57
|
<form id="task-add-form" class="board-add">
|
|
58
58
|
<label class="board-add-task">
|
|
59
59
|
${I.plus}
|
|
@@ -460,7 +460,7 @@ export function ticketHtml (t, git) {
|
|
|
460
460
|
return `<div class="task-ticket${here ? ' here' : ''}" title="${esc(tip)}">
|
|
461
461
|
${who ? `<span class="task-ticket-who">${I.branch}<span>${esc(who)}</span></span>` : ''}
|
|
462
462
|
${here
|
|
463
|
-
? `<button type="button" class="task-ticket-btn" data-task-leave title="Take your folder back to the
|
|
463
|
+
? `<button type="button" class="task-ticket-btn" data-task-leave title="Take your folder back to the codebase's main branch. What you have not committed stays on this ticket.">Leave</button>`
|
|
464
464
|
: `<button type="button" class="task-ticket-btn" data-task-open title="Move your folder onto this ticket's branch. Everyone who has the ticket open works there together.">${I.branch}<span>Open ticket</span></button>`}
|
|
465
465
|
</div>`
|
|
466
466
|
}
|
package/src/ui/catchup.js
CHANGED
|
@@ -20,7 +20,7 @@ function fileRow (f) {
|
|
|
20
20
|
export function catchUpHtml (c, { colors = new Map(), open = new Set() } = {}) {
|
|
21
21
|
if (!c) return ''
|
|
22
22
|
const rows = []
|
|
23
|
-
if (c.first && c.pulled) rows.push(`<div class="cu-line">${I.down}<span>The
|
|
23
|
+
if (c.first && c.pulled) rows.push(`<div class="cu-line">${I.down}<span>The codebase put ${plural(c.pulled, 'file')} in this folder when you joined.</span></div>`)
|
|
24
24
|
for (const p of c.people) {
|
|
25
25
|
const n = Math.max(p.fileCount || 0, p.files.length)
|
|
26
26
|
const more = n > p.files.length ? `<li class="hint">and ${n - p.files.length} more (see Changes)</li>` : ''
|
|
@@ -31,11 +31,11 @@ export function catchUpHtml (c, { colors = new Map(), open = new Set() } = {}) {
|
|
|
31
31
|
}
|
|
32
32
|
if (c.partial) rows.push('<div class="cu-line hint">Older changes from while you were away are no longer in the history.</div>')
|
|
33
33
|
const m = c.mine || {}
|
|
34
|
-
if (m.shared) rows.push(`<div class="cu-line">${I.check}<span>${plural(m.shared, 'change')} you made while away went into the
|
|
35
|
-
if (m.merged?.length) rows.push(`<div class="cu-line">${I.check}<span>Your changes were combined with the
|
|
36
|
-
if (m.conflicts?.length) rows.push(`<div class="cu-line warn">${I.branch}<span>Your changes clashed with the
|
|
34
|
+
if (m.shared) rows.push(`<div class="cu-line">${I.check}<span>${plural(m.shared, 'change')} you made while away went into the codebase.</span></div>`)
|
|
35
|
+
if (m.merged?.length) rows.push(`<div class="cu-line">${I.check}<span>Your changes were combined with the codebase's in ${m.merged.map(fileBtn).join(', ')}.</span></div>`)
|
|
36
|
+
if (m.conflicts?.length) rows.push(`<div class="cu-line warn">${I.branch}<span>Your changes clashed with the codebase's in ${m.conflicts.map(fileBtn).join(', ')}. The codebase's version is in the file; yours is in the merge below.</span></div>`)
|
|
37
37
|
if (c.backups?.length) {
|
|
38
|
-
rows.push(`<div class="cu-line warn">${I.branch}<span>Your copies of ${plural(c.backups.length, 'file')} differed from the
|
|
38
|
+
rows.push(`<div class="cu-line warn">${I.branch}<span>Your copies of ${plural(c.backups.length, 'file')} differed from the codebase's and were replaced. Yours are kept:</span></div>
|
|
39
39
|
<ul class="cu-backups">${c.backups.map((b) => `<li>${fileBtn(b.path)}<span class="hint">→</span><code title="${esc(b.copy)}">${esc(b.copy)}</code></li>`).join('')}</ul>`)
|
|
40
40
|
}
|
|
41
41
|
if (!rows.length) return ''
|
package/src/ui/changes-seen.js
CHANGED
|
@@ -37,9 +37,9 @@ const files = (k) => `${k} file${k === 1 ? '' : 's'}`
|
|
|
37
37
|
export function chipCounts ({ own = null, total = 0, fresh = 0 } = {}) {
|
|
38
38
|
const n = own === null ? total : own
|
|
39
39
|
const lines = [
|
|
40
|
-
own ? `${files(own)} of yours not committed.` : own === null && total ? `${files(total)} changed in this
|
|
40
|
+
own ? `${files(own)} of yours not committed.` : own === null && total ? `${files(total)} changed in this codebase.` : '',
|
|
41
41
|
fresh ? `${files(fresh)} changed by others since you last looked.` : '',
|
|
42
|
-
own !== null && total ? `${files(total)} changed in this
|
|
42
|
+
own !== null && total ? `${files(total)} changed in this codebase in all.` : ''
|
|
43
43
|
].filter(Boolean)
|
|
44
44
|
return { n, lines }
|
|
45
45
|
}
|
package/src/ui/changes.js
CHANGED
|
@@ -14,8 +14,8 @@ let closePanel = () => {}
|
|
|
14
14
|
let counted = () => {}
|
|
15
15
|
|
|
16
16
|
export const changesMarkup = () => `
|
|
17
|
-
<section class="git-sec chg-panel" id="chg-panel" aria-label="Changes in this
|
|
18
|
-
<div class="chg-head"><h4>Changes in this
|
|
17
|
+
<section class="git-sec chg-panel" id="chg-panel" aria-label="Changes in this codebase">
|
|
18
|
+
<div class="chg-head"><h4>Changes in this codebase</h4><span class="hint" id="chg-sum"></span></div>
|
|
19
19
|
<div class="segmented chg-seg" role="tablist" id="chg-view">
|
|
20
20
|
<button type="button" role="tab" data-view="people" class="on" aria-selected="true">By person</button>
|
|
21
21
|
<button type="button" role="tab" data-view="files" aria-selected="false">By file</button>
|
|
@@ -142,7 +142,7 @@ function paint () {
|
|
|
142
142
|
}
|
|
143
143
|
if (!n) {
|
|
144
144
|
sum.textContent = ''
|
|
145
|
-
list.innerHTML = '<p class="hint">Nothing has changed yet. Edits made in this
|
|
145
|
+
list.innerHTML = '<p class="hint">Nothing has changed yet. Edits made in this codebase show up here, with who made them.</p>'
|
|
146
146
|
return
|
|
147
147
|
}
|
|
148
148
|
const added = data.files.reduce((a, f) => a + f.added, 0)
|