heyquilt 0.3.164 → 0.3.167
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/RELEASES.md +14 -0
- package/package.json +1 -1
- package/src/api/audit.js +0 -1
- package/src/api/composio.js +1 -64
- package/src/api/memory-store.js +0 -7
- package/src/api/routes/connections.js +1 -78
- package/src/api/routes/workspaces.js +3 -43
- package/src/api/supabase-store.js +0 -11
- package/src/control.js +0 -21
- package/src/presence.js +1 -2
- package/src/server.js +1 -15
- package/src/ui/app.css +5 -743
- package/src/ui/app.js +22 -38
- package/src/ui/board.js +7 -17
- package/src/ui/connections.js +41 -235
- package/src/ui/feed.js +8 -23
- package/src/ui/files.js +22 -67
- package/src/ui/home.js +6 -95
- package/src/ui/loom-model.js +8 -11
- package/src/ui/loom.css +2 -183
- package/src/ui/loom.js +55 -132
- package/src/ui/session.js +75 -1065
- package/src/ui/signin.js +6 -4
- package/src/ui/workspaces.js +1 -2
- package/src/ui-server.js +4 -50
- package/src/dev-servers.js +0 -65
- package/src/ui/home-view.js +0 -170
- package/src/ui/palette.js +0 -75
- package/src/ui/people-view.js +0 -116
package/src/ui/feed.js
CHANGED
|
@@ -3,16 +3,7 @@
|
|
|
3
3
|
// session, a Cursor chat, ...) is its own conversation, picked from a strip
|
|
4
4
|
// at the top; the feed follows the newest one until the reader picks another.
|
|
5
5
|
import { esc, clock, avatar, I } from './common.js'
|
|
6
|
-
import { toolLogo
|
|
7
|
-
|
|
8
|
-
// How long ago a thread was last active, as its chip says it (dm06): "2h", "yesterday", "3d".
|
|
9
|
-
const since = (ts) => {
|
|
10
|
-
const m = Math.max(0, Math.round((Date.now() - ts) / 60000))
|
|
11
|
-
if (m < 60) return `${Math.max(1, m)}m`
|
|
12
|
-
if (m < 24 * 60) return `${Math.round(m / 60)}h`
|
|
13
|
-
const d = Math.round(m / (24 * 60))
|
|
14
|
-
return d === 1 ? 'yesterday' : `${d}d`
|
|
15
|
-
}
|
|
6
|
+
import { toolLogo } from './tool-logo.js'
|
|
16
7
|
import { conversations, pickConversation } from './feed-convs.js'
|
|
17
8
|
|
|
18
9
|
/**
|
|
@@ -20,7 +11,7 @@ import { conversations, pickConversation } from './feed-convs.js'
|
|
|
20
11
|
* scroll position unless they were already at the bottom. `convSel` is the
|
|
21
12
|
* pinned conversation id (undefined: follow the newest).
|
|
22
13
|
*/
|
|
23
|
-
export function renderFeed (el, { entries, person, isMe, color, agent, online, convSel
|
|
14
|
+
export function renderFeed (el, { entries, person, isMe, color, agent, online, convSel }) {
|
|
24
15
|
const scroller = el.querySelector('.feed-scroll')
|
|
25
16
|
const atBottom = !scroller || scroller.scrollHeight - scroller.scrollTop - scroller.clientHeight < 60
|
|
26
17
|
const prevCount = scroller ? Number(scroller.dataset.count || 0) : 0
|
|
@@ -60,8 +51,7 @@ export function renderFeed (el, { entries, person, isMe, color, agent, online, c
|
|
|
60
51
|
let actions = []
|
|
61
52
|
const flush = () => {
|
|
62
53
|
if (!actions.length) return
|
|
63
|
-
|
|
64
|
-
parts.push(`<div class="f-actions">${actions.map((a) => { const m = /^(\S+)\s+(.+)$/s.exec(a.text || ''); return `<div class="f-action"><span class="chev">›</span><span>${m ? `${esc(m[1])} <code>${esc(m[2])}</code>` : esc(a.text)}</span></div>` }).join('')}</div>`)
|
|
54
|
+
parts.push(`<div class="f-actions">${actions.map((a) => `<div class="f-action"><span class="chev">›</span><span>${esc(a.text)}</span></div>`).join('')}</div>`)
|
|
65
55
|
actions = []
|
|
66
56
|
}
|
|
67
57
|
for (const e of shown) {
|
|
@@ -77,19 +67,18 @@ export function renderFeed (el, { entries, person, isMe, color, agent, online, c
|
|
|
77
67
|
<div class="head"><b>${esc(who)}</b><span>${esc(clock(e.ts))}</span>${e.summary ? '<span class="tag summary" title="Summarized before sharing">summary</span>' : ''}</div>
|
|
78
68
|
<div class="bubble"><div class="text">${esc(visiblePrompt(e.text))}</div></div></div></div>`)
|
|
79
69
|
} else if (e.kind === 'reply') {
|
|
80
|
-
parts.push(`<div class="f-reply"><div class="head"><span class="ai-badge">${toolLogo(e.tool)}</span><
|
|
70
|
+
parts.push(`<div class="f-reply"><div class="head"><span class="ai-badge">${toolLogo(e.tool)}</span><span>${esc(clock(e.ts))}</span>${e.summary ? '<span class="tag summary" title="Summarized before sharing">summary</span>' : ''}</div>
|
|
81
71
|
<div class="md">${markdown(e.text)}</div></div>`)
|
|
82
72
|
}
|
|
83
73
|
}
|
|
84
74
|
flush()
|
|
85
75
|
if (!sharing) parts.push(`<div class="feed-note">${esc(isMe ? 'You paused sharing' : `${person} paused sharing`)}</div>`)
|
|
86
76
|
body = parts.join('')
|
|
87
|
-
|
|
88
|
-
if (convs.length > 1 || (head && convs.length)) {
|
|
77
|
+
if (convs.length > 1) {
|
|
89
78
|
strip = `<div class="feed-convs" role="tablist" aria-label="Conversations">${convs.map((c, i) => {
|
|
90
79
|
const on = c.conv === conv
|
|
91
80
|
const live = working && i === 0
|
|
92
|
-
return `<button class="conv-chip${on ? ' on' : ''}
|
|
81
|
+
return `<button class="conv-chip${on ? ' on' : ''}" role="tab" aria-selected="${on}" data-conv="${esc(c.conv)}" title="${esc(c.tool || '')}${c.tool ? ' · ' : ''}${esc(clock(c.ts))}">${live ? '<span class="pulse"></span>' : ''}<span class="tool">${toolLogo(c.tool)}</span><span class="nm">${esc(c.label)}</span></button>`
|
|
93
82
|
}).join('')}</div>`
|
|
94
83
|
}
|
|
95
84
|
shownConv = conv
|
|
@@ -97,14 +86,10 @@ export function renderFeed (el, { entries, person, isMe, color, agent, online, c
|
|
|
97
86
|
}
|
|
98
87
|
|
|
99
88
|
const workingHtml = working && liveShown
|
|
100
|
-
? `<div class="f-working"><span class="dots"><i></i><i></i><i></i></span>${esc(
|
|
89
|
+
? `<div class="f-working"><span class="dots"><i></i><i></i><i></i></span>${esc(isMe ? 'Your AI is working…' : `${whose} AI is working…`)}</div>`
|
|
101
90
|
: ''
|
|
102
91
|
|
|
103
|
-
|
|
104
|
-
const top = head
|
|
105
|
-
? `<div class="pv-head" style="--c:${esc(color || '')}"><button type="button" class="pv-back" data-pv-back title="Back to everyone" aria-label="Back to everyone">${I.arrowLeft}</button>${avatar(person, color, online)}<div class="pv-who"><b>${esc(who)}</b><small>${esc(tool || (agent && agent.tool) || '')}</small></div>${strip}<span class="pv-sp"></span>${isMe ? '' : `<button type="button" class="btn sm pv-dm" data-pv-dm="${esc(person)}">${I.chat}<span>Messages with ${esc(person)}</span></button>`}</div>`
|
|
106
|
-
: strip
|
|
107
|
-
el.innerHTML = `${top}<div class="feed-scroll" data-count="${entries.length}" data-conv="${esc(shownConv)}"><div class="feed">${body}${workingHtml}</div></div>
|
|
92
|
+
el.innerHTML = `${strip}<div class="feed-scroll" data-count="${entries.length}" data-conv="${esc(shownConv)}"><div class="feed">${body}${workingHtml}</div></div>
|
|
108
93
|
<button class="btn sm new-activity" hidden>${I.down}<span>New activity</span></button>`
|
|
109
94
|
const s = el.querySelector('.feed-scroll')
|
|
110
95
|
const jump = el.querySelector('.new-activity')
|
package/src/ui/files.js
CHANGED
|
@@ -157,10 +157,9 @@ const folderActsHtml = (f) => `<span class="folder-acts"><button type="button" c
|
|
|
157
157
|
function folderTileHtml (d, f, { acts = false } = {}) {
|
|
158
158
|
const s = folderStats(d, f.path)
|
|
159
159
|
const tile = `
|
|
160
|
-
<button type="button" class="tile folder
|
|
161
|
-
<span class="
|
|
162
|
-
<span class="
|
|
163
|
-
<span class="fv-foot"><span>${esc(plural(s.count, 'file', 'files'))}${s.count ? ` · ${esc(bytes(s.size))}` : ''}</span></span>
|
|
160
|
+
<button type="button" class="tile folder" data-folder="${esc(f.path)}" title="${esc(f.path)}">
|
|
161
|
+
<span class="thumb">${I.folder}</span>
|
|
162
|
+
<span class="nm">${esc(f.name)}</span><span class="mu">${esc(plural(s.count, 'file', 'files'))}${s.count ? ` · ${esc(bytes(s.size))}` : ''}</span>
|
|
164
163
|
</button>`
|
|
165
164
|
return acts ? `<div class="tile-wrap">${tile}${folderActsHtml(f)}</div>` : tile
|
|
166
165
|
}
|
|
@@ -405,7 +404,8 @@ function previewHtml (d, f) {
|
|
|
405
404
|
</aside>`
|
|
406
405
|
}
|
|
407
406
|
|
|
408
|
-
export function allFilesHtml (d
|
|
407
|
+
export function allFilesHtml (d) {
|
|
408
|
+
const id = String(state.view).slice('wsfiles:'.length)
|
|
409
409
|
if (!d || d.workspace.id !== id) return `<p class="hint">${loadingNote()}</p>`
|
|
410
410
|
const fv = state.filesView
|
|
411
411
|
// A folder someone removed (or a stale saved view) falls back to the top.
|
|
@@ -417,28 +417,28 @@ export function allFilesHtml (d, { id = String(state.view).slice('wsfiles:'.leng
|
|
|
417
417
|
const here = filesOf(d).filter((f) => inside(fv.folder, f.path))
|
|
418
418
|
const usage = usageText(d)
|
|
419
419
|
const edit = canEdit(d)
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
: `<div class="tiles fv-grid">
|
|
420
|
+
const grid = !folders.length && !files.length && !edit ? ''
|
|
421
|
+
: fv.mode === 'list' ? (folders.length || files.length ? listHtml(d, folders, files, fv.picked) : '')
|
|
422
|
+
: `<div class="tiles">
|
|
424
423
|
${folders.map((f) => folderTileHtml(d, f, { acts: edit })).join('')}
|
|
425
424
|
${files.map((f) => fileTileHtml(d, f, { on: f.id === fv.picked, meta: [bytes(f.size || 0), whoOf(d, f.uploadedBy)].filter(Boolean).join(' · ') })).join('')}
|
|
425
|
+
${edit ? uploadTileHtml(id, fv.folder ? `Upload to ${fv.folder.split('/').pop()}` : 'Upload or drop files') : ''}
|
|
426
426
|
</div>`
|
|
427
|
-
const title = fv.folder ? crumbsHtml(d, fv.folder) : '<h1>Files</h1>'
|
|
428
|
-
const sub = fv.folder
|
|
429
|
-
? `${plural(here.length, 'file', 'files')} · ${bytes(here.reduce((n, f) => n + (f.size || 0), 0))}`
|
|
430
|
-
: `Shared across ${d.workspace.name}: every session and everyone's AI can use them${usage ? ` · ${usage}` : ''}`
|
|
431
427
|
return `
|
|
432
|
-
|
|
433
|
-
<header class="files-head
|
|
434
|
-
<div class="t">${
|
|
428
|
+
<a class="ws-back" href="#" data-ws-open="${esc(id)}">${I.caret} ${esc(d.workspace.name)}</a>
|
|
429
|
+
<header class="files-head">
|
|
430
|
+
<div class="t">${crumbsHtml(d, fv.folder)}<p class="hint">${esc(`${plural(here.length, 'file', 'files')} · ${bytes(here.reduce((n, f) => n + (f.size || 0), 0))}${usage ? ` · ${usage} in this workspace` : ''}`)}</p></div>
|
|
435
431
|
<span class="spacer"></span>
|
|
436
|
-
|
|
432
|
+
<div class="segmented files-mode" role="tablist" aria-label="Show as">
|
|
433
|
+
<button type="button" role="tab" data-files-mode="tiles" class="${fv.mode !== 'list' ? 'on' : ''}" aria-selected="${fv.mode !== 'list'}">Tiles</button>
|
|
434
|
+
<button type="button" role="tab" data-files-mode="list" class="${fv.mode === 'list' ? 'on' : ''}" aria-selected="${fv.mode === 'list'}">List</button>
|
|
435
|
+
</div>
|
|
436
|
+
${edit ? `<button class="btn sm" data-new-folder>${I.plus}<span>New folder</span></button><button class="btn sm primary" data-upload>${I.upload}<span>Upload</span></button>` : ''}
|
|
437
437
|
</header>
|
|
438
|
-
${edit ? `<p class="hint files-progress" data-progress>${uploadingTo(id) ? esc(progressLabel()) : ''}</p><input type="file" multiple hidden data-upload-input>` : ''}
|
|
439
|
-
<div class="files-body
|
|
440
|
-
<div class="files-main">${grid}</div>
|
|
441
|
-
${picked ? previewHtml(d, picked) : ''}
|
|
438
|
+
${fv.mode === 'list' && edit ? `<p class="hint files-progress" data-progress>${uploadingTo(id) ? esc(progressLabel()) : ''}</p><input type="file" multiple hidden data-upload-input>` : ''}
|
|
439
|
+
<div class="files-body" data-files-drop>
|
|
440
|
+
<div class="files-main">${grid || '<p class="hint">Nothing in this folder yet.</p>'}</div>
|
|
441
|
+
${picked ? previewHtml(d, picked) : '<aside class="file-preview empty" aria-hidden="true"><p class="hint">Pick a file to see it here.</p></aside>'}
|
|
442
442
|
</div>`
|
|
443
443
|
}
|
|
444
444
|
|
|
@@ -447,8 +447,7 @@ export function bindAllFiles (root, { id, reload, go, rerender = () => go(`wsfil
|
|
|
447
447
|
const d = state.workspace
|
|
448
448
|
if (!d || d.workspace.id !== id) return
|
|
449
449
|
const fv = state.filesView
|
|
450
|
-
|
|
451
|
-
if (back) back.onclick = (e) => { e.preventDefault(); go(`ws:${id}`) }
|
|
450
|
+
root.querySelector('[data-ws-open]').onclick = (e) => { e.preventDefault(); go(`ws:${id}`) }
|
|
452
451
|
root.querySelectorAll('[data-folder]').forEach((el) => {
|
|
453
452
|
const open = (e) => { e?.preventDefault(); fv.folder = el.dataset.folder; fv.picked = null; rerender() }
|
|
454
453
|
el.onclick = open
|
|
@@ -563,50 +562,6 @@ export function previewBusy () {
|
|
|
563
562
|
return [...document.querySelectorAll('.file-preview video, .file-preview audio')].some((m) => !m.paused)
|
|
564
563
|
}
|
|
565
564
|
|
|
566
|
-
// ---------------------------------------------------------------- attach menu --
|
|
567
|
-
/**
|
|
568
|
-
* The menu an attach button opens (dm06): "Upload from your computer…", then the workspace's latest files to
|
|
569
|
-
* attach as they are. `onPick` gets { id, name, size }; "All files…" opens the picker for the rest.
|
|
570
|
-
*/
|
|
571
|
-
export async function attachMenu (anchor, { workspace = null, name = '', onUpload, onPick }) {
|
|
572
|
-
document.querySelector('.att-pop')?.remove()
|
|
573
|
-
const pop = document.createElement('div')
|
|
574
|
-
pop.className = 'att-pop'
|
|
575
|
-
pop.setAttribute('role', 'menu')
|
|
576
|
-
const place = () => {
|
|
577
|
-
const r = anchor.getBoundingClientRect()
|
|
578
|
-
pop.style.left = `${Math.max(8, Math.min(r.left, innerWidth - 308))}px`
|
|
579
|
-
if (r.top > innerHeight / 2) { pop.style.bottom = `${innerHeight - r.top + 6}px`; pop.style.top = '' } else { pop.style.top = `${r.bottom + 6}px`; pop.style.bottom = '' }
|
|
580
|
-
}
|
|
581
|
-
const draw = (files) => {
|
|
582
|
-
const shown = (files || []).slice(0, 6)
|
|
583
|
-
pop.innerHTML = `<div class="att-h">Attach</div><button type="button" class="att-i" role="menuitem" data-att-up>${I.upload}Upload from your computer…</button>
|
|
584
|
-
${workspace ? `<div class="att-h">From ${esc(name || 'the workspace')}’s files</div>${files === null ? '<p class="att-none">Loading…</p>' : shown.length ? shown.map((f) => `<button type="button" class="att-i" role="menuitem" data-att-pick="${esc(f.id)}">${I.file}<span>${esc(f.name)}</span></button>`).join('') : '<p class="att-none">No files yet.</p>'}${files && files.length > shown.length ? `<button type="button" class="att-i more" role="menuitem" data-att-all>All files…</button>` : ''}` : ''}`
|
|
585
|
-
place()
|
|
586
|
-
}
|
|
587
|
-
let files = workspace ? null : []
|
|
588
|
-
draw(files)
|
|
589
|
-
document.body.appendChild(pop)
|
|
590
|
-
place()
|
|
591
|
-
const close = () => { pop.remove(); document.removeEventListener('mousedown', out, true); document.removeEventListener('keydown', esc_, true) }
|
|
592
|
-
const out = (e) => { if (!pop.contains(e.target) && !anchor.contains(e.target)) close() }
|
|
593
|
-
const esc_ = (e) => { if (e.key === 'Escape') { e.stopPropagation(); close(); anchor.focus() } }
|
|
594
|
-
document.addEventListener('mousedown', out, true)
|
|
595
|
-
document.addEventListener('keydown', esc_, true)
|
|
596
|
-
pop.onclick = async (e) => {
|
|
597
|
-
if (e.target.closest('[data-att-up]')) { close(); onUpload(); return }
|
|
598
|
-
const b = e.target.closest('[data-att-pick]')
|
|
599
|
-
const f = b && files.find((x) => x.id === b.dataset.attPick)
|
|
600
|
-
if (f) { close(); onPick({ id: f.id, name: f.name, size: f.size || 0 }); return }
|
|
601
|
-
if (e.target.closest('[data-att-all]')) { close(); const p = await workspaceFilePicker(workspace); if (p) onPick({ ...p, size: (files.find((x) => x.id === p.id) || {}).size || 0 }) }
|
|
602
|
-
}
|
|
603
|
-
if (workspace) {
|
|
604
|
-
try { files = (await api('GET', wsUrl(workspace, '/files'))).files.filter((f) => f.kind !== 'folder').sort((a, b) => (b.updatedAt || b.createdAt || 0) - (a.updatedAt || a.createdAt || 0)) } catch { files = [] }
|
|
605
|
-
if (pop.isConnected) draw(files)
|
|
606
|
-
}
|
|
607
|
-
return close
|
|
608
|
-
}
|
|
609
|
-
|
|
610
565
|
// ---------------------------------------------------------------- picker --
|
|
611
566
|
/** A dialog to choose one of the workspace's files. Resolves { id, name }, or null. */
|
|
612
567
|
export async function workspaceFilePicker (id) {
|
package/src/ui/home.js
CHANGED
|
@@ -17,8 +17,6 @@ import { SOUND_EVENTS, playSound } from './sounds.js'
|
|
|
17
17
|
import { thisSessionGitHtml } from './git-rule.js'
|
|
18
18
|
import { cloudAiCardHtml, bindCloudAi, cloudSetupOn, cloudSetupHtml, cloudSetupStep } from './cloud-ai.js'
|
|
19
19
|
import { feedbackDockHtml, bindFeedback } from './feedback.js'
|
|
20
|
-
import { workspaceHomeHtml, bindWorkspaceHome, homeInsights } from './home-view.js'
|
|
21
|
-
import { openPalette } from './palette.js'
|
|
22
20
|
|
|
23
21
|
export const tildify = (p) => state.defaults.home && String(p).startsWith(state.defaults.home) ? `~${String(p).slice(state.defaults.home.length)}` : p
|
|
24
22
|
const hostOf = (url) => { try { return new URL(String(url).replace(/^ws/, 'http')).host } catch { return url } }
|
|
@@ -40,14 +38,11 @@ export function renderShell (view) {
|
|
|
40
38
|
const page = $('#page')
|
|
41
39
|
const scroll = page ? page.scrollTop : 0
|
|
42
40
|
$('#app').innerHTML = `
|
|
43
|
-
<div class="app-shell
|
|
41
|
+
<div class="app-shell${sideCollapsed() ? ' side-collapsed' : ''}">
|
|
44
42
|
${mobileBarHtml(view)}
|
|
45
43
|
<div class="side-scrim" data-side-close></div>
|
|
46
|
-
${
|
|
47
|
-
<
|
|
48
|
-
${wbarHtml(view)}
|
|
49
|
-
<main class="page" id="page">${view === 'settings' ? settingsPageHtml() : view === 'agents' ? agentsPageHtml() : view.startsWith('wsfiles:') ? allFilesHtml(state.workspace) : view.startsWith('ws:') ? wsHomeHtml(view.slice(3)) : homeHtml()}</main>
|
|
50
|
-
</div>
|
|
44
|
+
${sidebarHtml(view)}
|
|
45
|
+
<main class="page" id="page">${view === 'settings' ? settingsPageHtml() : view === 'agents' ? agentsPageHtml() : view.startsWith('wsfiles:') ? allFilesHtml(state.workspace) : view.startsWith('ws:') ? workspacePageHtml() : homeHtml()}</main>
|
|
51
46
|
</div>`
|
|
52
47
|
if (page && view === state.shellView) $('#page').scrollTop = scroll
|
|
53
48
|
state.shellView = view
|
|
@@ -59,31 +54,11 @@ export function renderShell (view) {
|
|
|
59
54
|
const rerender = () => { if (state.view === view) renderShell(view) }
|
|
60
55
|
bindAllFiles($('#page'), { id, go, rerender, reload: async () => { await openWorkspace(id).catch((err) => toast(err.message)); rerender() } })
|
|
61
56
|
} else if (view.startsWith('ws:')) {
|
|
62
|
-
|
|
63
|
-
const rerender = () => { if (state.view === view) renderShell(view) }
|
|
64
|
-
if (state.workspace && state.workspace.workspace.id === id) {
|
|
65
|
-
bindWorkspaceHome($('#page .hm-page'), { id, go, reload: async () => { await openWorkspace(id).catch((err) => toast(err.message)); rerender() }, newSession: () => newSessionDialog(id), invite: () => workspaceInviteDialog(id), setAdding: (on) => { state.homeAdding = on; rerender() } })
|
|
66
|
-
}
|
|
67
|
-
bindWorkspacePage($('#page'), { go, rerender, newSessionDialog, inviteDialog: workspaceInviteDialog, dialog })
|
|
57
|
+
bindWorkspacePage($('#page'), { go, rerender: () => renderShell(view), newSessionDialog, inviteDialog: workspaceInviteDialog, dialog })
|
|
68
58
|
bindSessionActions($('#page'))
|
|
69
59
|
} else bindHome()
|
|
70
60
|
}
|
|
71
61
|
|
|
72
|
-
/**
|
|
73
|
-
* A workspace's page: its home (home-view.js, the same as a session's Home), then what is set up for the
|
|
74
|
-
* whole workspace: its team and settings, its secrets and the apps its agents use.
|
|
75
|
-
*/
|
|
76
|
-
function wsHomeHtml (id) {
|
|
77
|
-
const d = state.workspace
|
|
78
|
-
if (!d || d.workspace.id !== id) return workspacePageHtml() // its loading state
|
|
79
|
-
return `${workspaceHomeHtml(d, homeInsights(id, () => { if (state.view === `ws:${id}`) renderShell(`ws:${id}`) }), { adding: !!state.homeAdding })}
|
|
80
|
-
<div class="hm-page hm-setup">
|
|
81
|
-
<section class="hm-sec"><h3>Workspace</h3><div class="hm-morerow"><button type="button" class="btn" data-team>${I.users}<span>Team</span></button><button type="button" class="btn" data-ws-settings>${I.gear}<span>Settings</span></button></div></section>
|
|
82
|
-
${state.secretsOn ? '<section class="sec ws-secrets" data-ws-secrets></section>' : ''}
|
|
83
|
-
${state.connectionsOn ? '<section class="sec ws-connections"><h3>Connections</h3><div data-ws-connections></div></section>' : ''}
|
|
84
|
-
</div>`
|
|
85
|
-
}
|
|
86
|
-
|
|
87
62
|
/** Narrow windows: a slim bar with the logo, where you are, your avatar and a menu
|
|
88
63
|
* button; the full sidebar slides in from the left as a drawer. Hidden on wide windows. */
|
|
89
64
|
function placeName (view) {
|
|
@@ -106,58 +81,6 @@ function mobileBarHtml (view) {
|
|
|
106
81
|
</header>`
|
|
107
82
|
}
|
|
108
83
|
|
|
109
|
-
/**
|
|
110
|
-
* The rail on the far left (the dm06 layout, as in a session): the mark (Home), a tile per workspace, + (a new
|
|
111
|
-
* workspace, on Home), then Join a session, Agents, Settings, you and the dev buttons at the bottom.
|
|
112
|
-
*/
|
|
113
|
-
function railHtml (view) {
|
|
114
|
-
const p = state.profile
|
|
115
|
-
const on = String(view).replace(/^wsfiles:/, 'ws:')
|
|
116
|
-
const tiles = (state.workspacesOn ? (state.workspaces || []) : []).map((w) => {
|
|
117
|
-
const here = on === `ws:${w.id}`
|
|
118
|
-
const c = COLORS[w.color] || COLORS.lilac
|
|
119
|
-
return `<button type="button" class="rail-ws${here ? ' on' : ''}" data-view="ws:${esc(w.id)}" title="${esc(w.name)}" aria-label="${esc(w.name)}"${here ? ' aria-current="true"' : ''} style="--wc:${esc(c)}">${esc([...String(w.name || '?')][0].toUpperCase())}</button>`
|
|
120
|
-
}).join('')
|
|
121
|
-
return `
|
|
122
|
-
<nav class="side ws-rail" aria-label="Workspaces">
|
|
123
|
-
<button type="button" class="rail-brand" data-view="home" aria-label="Home" title="Home">${quiltMark({ word: false })}</button>
|
|
124
|
-
<div class="rail-tiles">${tiles}${state.workspacesOn ? `<button type="button" class="rail-ws add" data-view="home" title="New workspace" aria-label="New workspace">${I.plus}</button>` : ''}</div>
|
|
125
|
-
<span class="rail-line"></span>
|
|
126
|
-
<button type="button" class="rail-btn" data-pal title="Search (⌘K)" aria-label="Search"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg></button>
|
|
127
|
-
<span class="rail-sp"></span>
|
|
128
|
-
<div class="rail-foot">
|
|
129
|
-
<button type="button" class="rail-btn" data-join-session title="Join a session" aria-label="Join a session">${I.link}</button>
|
|
130
|
-
<button type="button" class="rail-btn${view === 'agents' ? ' on' : ''}" data-view="agents" title="Agents" aria-label="Agents">${I.bot}</button>
|
|
131
|
-
${window.quiltDesktop?.dev ? `<button type="button" class="rail-btn" data-dev-restart title="Quit and start Quilt again (running from source)" aria-label="Restart (dev)">${I.refresh}</button>` : ''}
|
|
132
|
-
<button type="button" class="rail-btn${view === 'settings' ? ' on' : ''}" data-view="settings" title="Account settings: your defaults for new sessions" aria-label="Settings">${I.gear}</button>
|
|
133
|
-
<button type="button" class="rail-me" data-view="settings" title="${esc(p.name)} · your profile and account settings" aria-label="Your profile">${avatar(p.name, p.color)}</button>
|
|
134
|
-
</div>
|
|
135
|
-
${feedbackDockHtml('side')}
|
|
136
|
-
</nav>`
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/** The bar across the top of a workspace's pages (its home and its files): as in a session, without one open. */
|
|
140
|
-
function wbarHtml (view) {
|
|
141
|
-
const id = view.startsWith('wsfiles:') ? view.slice(8) : view.startsWith('ws:') ? view.slice(3) : ''
|
|
142
|
-
if (!id) return ''
|
|
143
|
-
const w = (state.workspaces || []).find((x) => x.id === id)
|
|
144
|
-
const name = w?.name || state.workspace?.workspace?.name || 'Workspace'
|
|
145
|
-
const kind = w?.space?.kind === 'org' ? (w.space.name || 'Team') : 'Personal'
|
|
146
|
-
const running = [...state.sessions.values()].filter((x) => x.workspace === id)
|
|
147
|
-
const rows = running.map((x) => `<button type="button" class="wb-srow" role="menuitem" data-go="${esc(x.id)}">${I.grid}<span class="wb-sname"><b>${esc(x.status.sessionName || basename(x.dir))}</b><small>${x.status.connected ? 'Open here' : 'Not connected'}</small></span></button>`).join('')
|
|
148
|
-
return `
|
|
149
|
-
<header class="wbar" aria-label="Workspace">
|
|
150
|
-
<div class="wb-name"><b>${esc(name)}</b><small>${esc(kind)}</small></div>
|
|
151
|
-
<button type="button" class="wb-btn icon${view.startsWith('ws:') ? ' on' : ''}" data-view="ws:${esc(id)}" title="Workspace home" aria-label="Workspace home">${I.home}</button>
|
|
152
|
-
<div class="wb-sess">
|
|
153
|
-
<button type="button" class="wb-btn wb-sessbtn" data-wb-sess aria-haspopup="true" aria-expanded="false">${I.grid}<b>${running.length ? `${running.length} open here` : 'Sessions'}</b>${I.chevDown}</button>
|
|
154
|
-
<div class="popover wb-sessmenu" role="menu" aria-label="Sessions" hidden><div class="wb-mhead">Sessions<button type="button" class="wb-mplus" data-new-session title="New session" aria-label="New session">${I.plus}</button></div>${rows || '<p class="wb-mempty">None open on this computer: the workspace home lists them all.</p>'}</div>
|
|
155
|
-
</div>
|
|
156
|
-
<span class="spacer"></span>
|
|
157
|
-
<div class="wb-tools"><button type="button" class="wb-btn${view.startsWith('wsfiles:') ? ' on' : ''}" data-view="${view.startsWith('wsfiles:') ? (state.sessions.has(state.filesFrom) ? esc(state.filesFrom) : `ws:${esc(id)}`) : `wsfiles:${esc(id)}`}" title="${view.startsWith('wsfiles:') ? 'Back' : 'The workspace\'s shared files'}">${I.folder}<span>Files</span></button></div>
|
|
158
|
-
</header>`
|
|
159
|
-
}
|
|
160
|
-
|
|
161
84
|
function sidebarHtml (view) {
|
|
162
85
|
const p = state.profile
|
|
163
86
|
const running = [...state.sessions.values()]
|
|
@@ -254,19 +177,7 @@ function bindSidebar () {
|
|
|
254
177
|
if (wrap && !wrap.contains(e.target)) { $('#sessions-menu').hidden = true; $('#sessions-btn').setAttribute('aria-expanded', 'false') }
|
|
255
178
|
})
|
|
256
179
|
}
|
|
257
|
-
document.querySelectorAll('.side [data-go]
|
|
258
|
-
$('.rail-shell [data-pal]')?.addEventListener('click', () => openPalette())
|
|
259
|
-
const sb = $('.wbar [data-wb-sess]')
|
|
260
|
-
if (sb) {
|
|
261
|
-
const pop = sb.nextElementSibling
|
|
262
|
-
const set = (open) => { pop.hidden = !open; sb.setAttribute('aria-expanded', String(open)) }
|
|
263
|
-
sb.onclick = () => set(pop.hidden)
|
|
264
|
-
if (!bindSidebar.wbListening) {
|
|
265
|
-
bindSidebar.wbListening = true
|
|
266
|
-
document.addEventListener('mousedown', (e) => { if (!e.target.closest('.wb-sess')) document.querySelectorAll('.app-shell .wb-sessmenu').forEach((m) => { m.hidden = true }) })
|
|
267
|
-
}
|
|
268
|
-
bindSessionActions(pop)
|
|
269
|
-
}
|
|
180
|
+
document.querySelectorAll('.side [data-go]').forEach((b) => { b.onclick = () => go(b.dataset.go) })
|
|
270
181
|
bindSessionActions(document.querySelector('.side'))
|
|
271
182
|
// Report a bug / Suggest a feature, at the bottom of the sidebar (feedback.js): filed into a session running here.
|
|
272
183
|
bindFeedback(document.querySelector('.side'), { where: () => placeName(state.shellView || 'home') })
|
|
@@ -439,7 +350,7 @@ export function newSessionDialog (workspace = '') {
|
|
|
439
350
|
* workspace, the org's in an org's) are added at once. Agents can also join every session here
|
|
440
351
|
* as it starts, and Invite a new agent makes a link for an agent that joins once it registers.
|
|
441
352
|
*/
|
|
442
|
-
|
|
353
|
+
function workspaceInviteDialog (id) {
|
|
443
354
|
const d = state.workspace
|
|
444
355
|
// An org's workspace offers the org's agents only (never your own: they can't join it).
|
|
445
356
|
const isOrg = !!d?.workspace?.orgId
|
package/src/ui/loom-model.js
CHANGED
|
@@ -391,16 +391,12 @@ export function buildLoom ({ people = [], feeds = new Map(), messages = [], task
|
|
|
391
391
|
|
|
392
392
|
if (show.chat !== false) {
|
|
393
393
|
for (const m of messages || []) {
|
|
394
|
-
|
|
394
|
+
if (!index.has(m.by)) continue
|
|
395
395
|
const text = String(m.text || '')
|
|
396
396
|
items.push({
|
|
397
397
|
type: 'chat',
|
|
398
398
|
key: `chat|${m.id}`,
|
|
399
|
-
lane:
|
|
400
|
-
by: m.by,
|
|
401
|
-
msgId: m.id,
|
|
402
|
-
approval: m.approval || '',
|
|
403
|
-
relay: !index.has(m.by),
|
|
399
|
+
lane: m.by,
|
|
404
400
|
ts: Number(m.ts) || 0,
|
|
405
401
|
text: text.slice(0, PREVIEW),
|
|
406
402
|
to: m.to || '',
|
|
@@ -461,10 +457,8 @@ export function buildLoom ({ people = [], feeds = new Map(), messages = [], task
|
|
|
461
457
|
items.forEach((it, i) => {
|
|
462
458
|
it.id = `k${i}`
|
|
463
459
|
const l = it.lane == null ? null : laneOf(it.lane)
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
it.col = l && !band ? l.col : null
|
|
467
|
-
it.folded = !!l && !band && l.fold !== 'open'
|
|
460
|
+
it.col = l ? l.col : null
|
|
461
|
+
it.folded = !!l && l.fold !== 'open'
|
|
468
462
|
})
|
|
469
463
|
let rows = packRows(items.filter((it) => !it.folded), columns.length)
|
|
470
464
|
|
|
@@ -521,8 +515,11 @@ export function buildLoom ({ people = [], feeds = new Map(), messages = [], task
|
|
|
521
515
|
stitches.sort((x, y) => Number(y.collide) - Number(x.collide))
|
|
522
516
|
if (stitches.length > MAX_STITCHES) stitches.length = MAX_STITCHES
|
|
523
517
|
|
|
524
|
-
// Chat is a band across every lane now: it names who it's for itself, so no thread is drawn to them.
|
|
525
518
|
const mentions = []
|
|
519
|
+
for (const it of items) {
|
|
520
|
+
if (it.type !== 'chat') continue
|
|
521
|
+
for (const n of it.mentions) if (index.has(n)) mentions.push({ from: it.id, lane: n, col: laneOf(n).col })
|
|
522
|
+
}
|
|
526
523
|
|
|
527
524
|
return { lanes, columns, items, knots, rows, stitches, mentions, files }
|
|
528
525
|
}
|
package/src/ui/loom.css
CHANGED
|
@@ -210,8 +210,8 @@
|
|
|
210
210
|
.lc-foot .btn svg { width: 14px; height: 14px; }
|
|
211
211
|
.lc-mark { position: relative; z-index: 2; justify-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--warn); background: var(--bg); border: 1px dashed var(--warn); border-radius: 999px; padding: 1px 10px; }
|
|
212
212
|
|
|
213
|
-
|
|
214
|
-
.loom[data-density="compact"] .lc-text { -webkit-line-clamp:
|
|
213
|
+
.loom[data-density="compact"] .lc { padding: 5px 9px 6px; }
|
|
214
|
+
.loom[data-density="compact"] .lc-prompt, .loom[data-density="compact"] .lc-text { -webkit-line-clamp: 1; }
|
|
215
215
|
.loom[data-density="compact"] .lc.open .lc-prompt { -webkit-line-clamp: unset; }
|
|
216
216
|
.loom[data-density="compact"] .lc-meta { margin-top: 3px; }
|
|
217
217
|
|
|
@@ -378,184 +378,3 @@
|
|
|
378
378
|
.loom.tracing .lc.traced { box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 55%, transparent), var(--card-hover); }
|
|
379
379
|
.loom.focusing .lc.lit { box-shadow: 0 0 0 2px var(--k), var(--card-hover); }
|
|
380
380
|
}
|
|
381
|
-
|
|
382
|
-
/* The dm06 loom (session.js Chat tab): no bar, short lane cards, chat as bands across the lanes */
|
|
383
|
-
.loom-chat .loom-bar { display: none; }
|
|
384
|
-
.loom-heads { padding-top: 12px; padding-bottom: 12px; background: color-mix(in srgb, var(--bg) 94%, transparent); }
|
|
385
|
-
.loom-head.lh-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; row-gap: 2px; padding: 8px 10px 7px; border-radius: 9px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--border), inset 0 3px 0 var(--c); cursor: pointer; }
|
|
386
|
-
.loom-head.lh-card:hover { box-shadow: inset 0 0 0 1px var(--border-strong), inset 0 3px 0 var(--c); }
|
|
387
|
-
.lh-card > .avatar { grid-row: 1 / 3; width: 26px; height: 26px; font-size: 11px; }
|
|
388
|
-
.lh-card .lh-name { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 600; white-space: nowrap; }
|
|
389
|
-
.lh-card .lh-tool { grid-column: 3; grid-row: 1; min-width: 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
390
|
-
.lh-card .lh-cubes { grid-column: 4; grid-row: 1; display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
|
|
391
|
-
.lh-card .lh-cubes:empty { display: none; }
|
|
392
|
-
.lh-cube { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: color-mix(in srgb, var(--c) 10%, var(--panel)); cursor: pointer; }
|
|
393
|
-
.lh-cube .cm { width: 13px; height: 13px; }
|
|
394
|
-
.lh-card .lh-more { display: inline-grid; place-items: center; height: 20px; min-width: 22px; padding: 0 5px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font: 600 11px var(--sans); }
|
|
395
|
-
.lh-dm { grid-column: 5; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 22px; min-width: 24px; padding: 0 6px; border: 0; border-radius: 999px; background: var(--panel); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; font: 700 11px var(--sans); }
|
|
396
|
-
.lh-dm svg { width: 12px; height: 12px; } .lh-dm:hover { color: var(--text); }
|
|
397
|
-
.lh-dm.unread { background: var(--accent); color: var(--on-accent, #fff); box-shadow: none; }
|
|
398
|
-
.lh-card .lh-doing { grid-column: 2 / -1; grid-row: 2; display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
399
|
-
.lh-card .lh-doing.live { color: color-mix(in srgb, var(--c) 70%, var(--text)); font-weight: 600; }
|
|
400
|
-
|
|
401
|
-
.loom-band { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: 40px; padding: 6px 14px 6px 8px; border-radius: 20px; background: var(--panel); border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,.05); font-size: 13.5px; }
|
|
402
|
-
.loom-band > .avatar, .loom-band .lb-relay { width: 26px; height: 26px; font-size: 11px; flex: none; }
|
|
403
|
-
.loom-band .lb-relay { display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--muted); } .loom-band .lb-relay svg { width: 14px; height: 14px; }
|
|
404
|
-
.loom-band > b { font-weight: 600; flex: none; }
|
|
405
|
-
.lb-to { flex: none; font-size: 11.5px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 2px 8px; }
|
|
406
|
-
.lb-to.tome { background: var(--accent); color: var(--on-accent, #fff); font-weight: 600; }
|
|
407
|
-
.lb-text { flex: 1; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
|
|
408
|
-
.lb-text p { margin: 0; display: inline; }
|
|
409
|
-
.loom-band time { flex: none; font-size: 12px; color: var(--faint); }
|
|
410
|
-
.loom-band.tome { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); cursor: pointer; }
|
|
411
|
-
.lb-reply { flex: none; height: 26px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: 999px; background: var(--panel); color: var(--accent); font: 600 12px var(--sans); cursor: pointer; }
|
|
412
|
-
.loom-band .app-approval { flex: 1 0 100%; margin: 4px 0 2px 36px; }
|
|
413
|
-
|
|
414
|
-
/* The Chat tab: the loom fills the main area and the composer sits under it (the chat pane, without its list) */
|
|
415
|
-
.ws-body.chat-in-main.loom-chat .ws-main > #main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
|
|
416
|
-
.ws-body.loom-chat .ws-main > .ws-chat { flex: none; }
|
|
417
|
-
/* The chat panel on the right: its messages and head show; who is working is on the loom's lanes already. */
|
|
418
|
-
.ws-body.loom-chat .ws-chat > .work-strip { display: none; }
|
|
419
|
-
/* The composer's "To": a chip (dm06), tinted for a direct message */
|
|
420
|
-
.ws-body.loom-chat .composer .to select { height: 26px; padding: 0 26px 0 11px; border: 0; border-radius: 999px; background-color: var(--panel-2); color: var(--text); font: 600 12.5px var(--sans); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 13px) 11px, calc(100% - 9px) 11px; background-size: 4px 4px; background-repeat: no-repeat; cursor: pointer; }
|
|
421
|
-
.ws-body.loom-chat .composer .to select:has(option:checked:not([value=""])) { background-color: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--accent); }
|
|
422
|
-
/* A person's view (feed.js head): back, who, their threads, their direct messages */
|
|
423
|
-
.pv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; padding: 10px 24px; border-bottom: 1px solid var(--border); background: var(--bg); box-shadow: inset 0 3px 0 var(--c, transparent); flex: none; }
|
|
424
|
-
.pv-back { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--muted); cursor: pointer; flex: none; }
|
|
425
|
-
.pv-back:hover { color: var(--text); border-color: var(--border-strong); } .pv-back svg { width: 15px; height: 15px; }
|
|
426
|
-
.pv-head > .avatar { width: 32px; height: 32px; font-size: 13px; flex: none; }
|
|
427
|
-
.pv-who { display: flex; flex-direction: column; min-width: 0; } .pv-who b { font-size: 15px; font-weight: 600; } .pv-who small { font-size: 12px; color: var(--muted); }
|
|
428
|
-
.pv-head .feed-convs { margin: 0 0 0 8px; padding: 0; border: 0; background: none; flex-wrap: wrap; }
|
|
429
|
-
.pv-sp { flex: 1; }
|
|
430
|
-
.pv-dm { display: inline-flex; align-items: center; gap: 6px; } .pv-dm svg { width: 14px; height: 14px; }
|
|
431
|
-
/* In the loom and a person's view, the back arrow does what the old tab row did */
|
|
432
|
-
.ws-body.loom-chat #mainbar { display: none; }
|
|
433
|
-
/* The morph into a person's view (session.js morphToPerson), and the cards rising back */
|
|
434
|
-
.loom.falling .loom-head, .loom.falling .lc, .loom.falling .loom-band, .loom.falling .loom-needle, .loom.falling .loom-thread { animation: loom-fall .28s cubic-bezier(.55, 0, .8, .3) var(--d, 0s) forwards; }
|
|
435
|
-
@keyframes loom-fall { to { transform: translateY(70px) rotate(var(--r, 0deg)); opacity: 0; } }
|
|
436
|
-
.pv-morph { pointer-events: none; transition: left .46s cubic-bezier(.45, .05, .2, 1), top .46s cubic-bezier(.45, .05, .2, 1), width .46s cubic-bezier(.45, .05, .2, 1), height .46s cubic-bezier(.45, .05, .2, 1), border-radius .46s; }
|
|
437
|
-
.pv-morph .lh-doing, .pv-morph .lh-cubes, .pv-morph .lh-dm { transition: opacity .2s; }
|
|
438
|
-
.pv-morph.grow { border-radius: 0; } .pv-morph.grow .lh-doing, .pv-morph.grow .lh-cubes, .pv-morph.grow .lh-dm { opacity: 0; }
|
|
439
|
-
.feed-scroll.pv-in { animation: pv-in .3s .18s both; } @keyframes pv-in { from { opacity: 0; transform: translateY(8px); } }
|
|
440
|
-
.loom.rising .loom-head, .loom.rising .lc, .loom.rising .loom-band { animation: loom-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
|
|
441
|
-
@keyframes loom-rise { from { transform: translateY(40px); opacity: 0; } }
|
|
442
|
-
@media (prefers-reduced-motion: reduce) { .loom.rising .loom-head, .loom.rising .lc, .loom.rising .loom-band, .feed-scroll.pv-in { animation: none; } }
|
|
443
|
-
/* A direct message thread (session.js dmThreadHtml): theirs on the left, yours on the right */
|
|
444
|
-
.dm-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
|
|
445
|
-
.dm-scroll { flex: 1; min-height: 0; overflow-y: auto; }
|
|
446
|
-
.dm-list { display: flex; flex-direction: column; gap: 16px; padding: 22px 28px; }
|
|
447
|
-
.dm-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 72%; }
|
|
448
|
-
.dm-msg > .avatar { width: 28px; height: 28px; font-size: 11px; flex: none; }
|
|
449
|
-
.dm-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
|
|
450
|
-
.dm-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
451
|
-
.dm-msg.mine .dm-body { align-items: flex-end; }
|
|
452
|
-
.dm-bubble { padding: 9px 13px; border-radius: 16px 16px 16px 6px; background: var(--panel); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
453
|
-
.dm-msg.mine .dm-bubble { border-radius: 16px 16px 6px 16px; background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--panel)); border-color: color-mix(in srgb, var(--c, var(--accent)) 25%, var(--border)); }
|
|
454
|
-
.dm-bubble .file-card { margin-top: 6px; }
|
|
455
|
-
.dm-msg time { font-size: 11.5px; color: var(--faint); }
|
|
456
|
-
.dm-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 60px auto; text-align: center; }
|
|
457
|
-
|
|
458
|
-
/* The composer in the loom, a person's view and a DM thread (dm06): one rounded box with the To chip,
|
|
459
|
-
the text, and a bar with + and @ on the left and send on the right */
|
|
460
|
-
.ws-body.loom-chat .ws-chat > .composer { margin: 8px 12px 12px; padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
|
|
461
|
-
.ws-body.loom-chat .ws-chat > .composer:focus-within { border-color: var(--border-strong); }
|
|
462
|
-
.ws-body.loom-chat .composer .to { margin: 0; padding: 10px 16px 0; gap: 8px; font-size: 12.5px; color: var(--faint); }
|
|
463
|
-
.ws-body.loom-chat .composer .to .dd-btn { height: 24px; padding: 2px 10px; border: 0; border-radius: 999px; background: var(--panel-2); color: var(--text); font: 600 12.5px var(--sans); }
|
|
464
|
-
.ws-body.loom-chat .composer .to .dd-btn svg { width: 11px; height: 11px; color: var(--muted); }
|
|
465
|
-
.ws-body.loom-chat .composer .to:has(option:checked:not([value=""])) .dd-btn { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent); }
|
|
466
|
-
.ws-body.loom-chat .composer .box { display: grid; grid-template-columns: auto auto auto 1fr auto; grid-template-areas: "ta ta ta ta ta" "plus at ws sp send"; align-items: center; gap: 0 4px; padding: 0 10px 10px; border: 0; border-radius: 0; background: none; }
|
|
467
|
-
.ws-body.loom-chat .composer .box:focus-within { border-color: transparent; }
|
|
468
|
-
.ws-body.loom-chat .composer textarea { grid-area: ta; min-height: 0; padding: 8px 6px 4px; font: 14.5px/1.5 var(--sans); }
|
|
469
|
-
.ws-body.loom-chat .composer #attach-btn { grid-area: plus; } .ws-body.loom-chat .composer #at-btn { grid-area: at; } .ws-body.loom-chat .composer [data-attach-workspace] { grid-area: ws; }
|
|
470
|
-
.ws-body.loom-chat .composer .box > .btn.icon { width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
|
|
471
|
-
.ws-body.loom-chat .composer #send-btn { grid-area: send; background: none; border: 0; box-shadow: none; color: var(--muted); }
|
|
472
|
-
.ws-body.loom-chat .composer #send-btn:not(:disabled):hover { color: var(--text); background: var(--panel-2); }
|
|
473
|
-
.ws-body.loom-chat .composer .box > .btn svg { width: 17px; height: 17px; }
|
|
474
|
-
#at-btn { display: none; } .ws-body.loom-chat #at-btn { display: grid; }
|
|
475
|
-
.ws-body.loom-chat .ws-chat > .typing { padding: 0 28px; }
|
|
476
|
-
|
|
477
|
-
/* A person's AI chat fills the width it has (no centred column) */
|
|
478
|
-
.ws-body.loom-chat .feed { max-width: none; margin: 0; padding: 22px 28px 40px; }
|
|
479
|
-
/* The morph lands in the person's header (.pv-head) exactly: back, avatar, name over tool */
|
|
480
|
-
.pv-morph .pv-mbk { position: absolute; opacity: 0; transition: opacity .3s .12s; }
|
|
481
|
-
.pv-morph.grow { grid-template-columns: 32px 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; align-content: center; padding: 10px 24px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--border), inset 0 3px 0 var(--c); }
|
|
482
|
-
.pv-morph.grow .pv-mbk { position: static; grid-column: 1; grid-row: 1 / 3; opacity: 1; }
|
|
483
|
-
.pv-morph.grow > .avatar { grid-column: 2; grid-row: 1 / 3; width: 32px; height: 32px; font-size: 13px; }
|
|
484
|
-
.pv-morph.grow .lh-name { grid-column: 3; grid-row: 1; font-size: 15px; line-height: 1.35; }
|
|
485
|
-
.pv-morph.grow .lh-tool { grid-column: 3; grid-row: 2; font-size: 12px; line-height: 1.35; }
|
|
486
|
-
.pv-morph.grow .lh-doing, .pv-morph.grow .lh-cubes, .pv-morph.grow .lh-dm { display: none; }
|
|
487
|
-
.pv-head { min-height: 57px; box-sizing: border-box; }
|
|
488
|
-
.pv-who b { line-height: 1.35; } .pv-who small { line-height: 1.35; }
|
|
489
|
-
.pv-who b, .pv-morph.grow .lh-name { display: block; line-height: 20px; }
|
|
490
|
-
.pv-who small, .pv-morph.grow .lh-tool { display: block; line-height: 16px; }
|
|
491
|
-
.pv-who { gap: 0; }
|
|
492
|
-
.pv-morph.grow { row-gap: 0; }
|
|
493
|
-
.pv-morph.grow { box-sizing: border-box; border-bottom: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--c); }
|
|
494
|
-
.ws-body.loom-chat .composer .to:has(option:checked:not([value=""])) .dd-btn { background: color-mix(in srgb, var(--to-c, var(--accent)) 13%, var(--panel)); color: color-mix(in srgb, var(--to-c, var(--accent)) 80%, var(--text)); }
|
|
495
|
-
/* DM thread, as the mockup: the face at the top beside who and when, the bubble under it; yours on the right */
|
|
496
|
-
.dm-msg { align-items: flex-start; }
|
|
497
|
-
.dm-msg.mine { flex-direction: row-reverse; }
|
|
498
|
-
.dm-who { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; } .dm-who b { font-weight: 600; } .dm-who time { font-size: 11.5px; color: var(--faint); }
|
|
499
|
-
.dm-msg.mine .dm-who { flex-direction: row-reverse; }
|
|
500
|
-
.dm-msg > .avatar { margin-top: 1px; }
|
|
501
|
-
.dm-day { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 11.5px; font-weight: 600; } .dm-day::before, .dm-day::after { content: ''; flex: 1; height: 1px; background: var(--border); }
|
|
502
|
-
|
|
503
|
-
/* A quick reply under a band to you (dm06): attach, one line and Send; files above it; what you sent stays under the line */
|
|
504
|
-
.lb-reply:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
|
|
505
|
-
.loom-band.tome:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
|
|
506
|
-
.loom-band.tome.unread > b, .loom-band.tome.unread .lb-text { font-weight: 700; color: var(--text); }
|
|
507
|
-
.loom-band.tome.unread::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
|
|
508
|
-
.lb-qr, .lb-sent { order: 2; flex: 1 0 100%; }
|
|
509
|
-
.lb-qr { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 4px 0 2px 36px; cursor: default; border-radius: 12px; }
|
|
510
|
-
.lb-qr.drop { box-shadow: 0 0 0 2px var(--accent) inset; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
|
|
511
|
-
.lb-qr-row { display: flex; gap: 8px; align-items: center; }
|
|
512
|
-
.lb-qr-files, .lb-sent em { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
513
|
-
.lb-qr-file { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 9px; border: 1px dashed var(--border); border-radius: 7px; background: var(--panel); font-size: 12.5px; }
|
|
514
|
-
.lb-qr-file svg { width: 13px; height: 13px; color: var(--faint); }
|
|
515
|
-
.lb-qr-file b { font-weight: 600; } .lb-qr-file i { font-style: normal; color: var(--faint); font-size: 11.5px; }
|
|
516
|
-
.lb-qr-file button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--faint); cursor: pointer; }
|
|
517
|
-
.lb-qr-file button:hover { background: var(--panel-2); color: var(--text); } .lb-qr-file button svg { width: 12px; height: 12px; }
|
|
518
|
-
.lb-qr-att { display: grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 9px; background: var(--panel); color: var(--accent); cursor: pointer; }
|
|
519
|
-
.lb-qr-att:hover { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); } .lb-qr-att svg { width: 16px; height: 16px; }
|
|
520
|
-
.lb-qr [data-qr-text] { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 9px; background: var(--panel); font: 13.5px var(--sans); color: var(--text); outline: none; }
|
|
521
|
-
.lb-qr [data-qr-text]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
|
|
522
|
-
.lb-qr [data-qr-send] { height: 34px; }
|
|
523
|
-
.lb-sent { padding: 2px 0 2px 36px; font-size: 12.5px; color: var(--muted); cursor: default; }
|
|
524
|
-
.lb-sent b { color: var(--text); } .lb-sent i { font-style: normal; color: var(--faint); margin-left: 4px; }
|
|
525
|
-
.lb-sent em { display: inline-flex; margin-left: 6px; vertical-align: middle; } .lb-sent .lb-qr-file { height: 24px; }
|
|
526
|
-
|
|
527
|
-
/* A thread's cube on a lane card (dm06): the Q in three by three squares */
|
|
528
|
-
.lh-card .lh-cubes { gap: 5px; }
|
|
529
|
-
.lh-cube { display: grid; grid-template-columns: repeat(3, 5px); gap: 1.5px; place-items: stretch; width: auto; height: auto; padding: 3px; border-radius: 6px; background: var(--panel); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
|
|
530
|
-
.lh-cube i { width: 5px; height: 5px; border-radius: 1px; background: color-mix(in srgb, var(--c) 18%, var(--panel-2)); }
|
|
531
|
-
.lh-cube i.on { background: var(--c); }
|
|
532
|
-
.lh-cube i.cnr { background: var(--accent); }
|
|
533
|
-
.lh-cube.live i.on { animation: lh-cube-pulse 1.6s infinite; }
|
|
534
|
-
.lh-cube.live i.on:nth-child(3n) { animation-delay: .3s; } .lh-cube.live i.on:nth-child(3n+2) { animation-delay: .6s; }
|
|
535
|
-
.lh-cube.still i.on { opacity: .45; }
|
|
536
|
-
.lh-cube:hover { box-shadow: 0 0 0 1px var(--border-strong); }
|
|
537
|
-
@keyframes lh-cube-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
|
|
538
|
-
@media (prefers-reduced-motion: reduce) { .lh-cube.live i.on { animation: none; } }
|
|
539
|
-
|
|
540
|
-
/* An AI turn as the dm06 card: a square and "Bob's Cursor" in the lane's colour, the time; what was asked in bold;
|
|
541
|
-
what it did in one line; its files; "still going" while it works */
|
|
542
|
-
.lc { border-radius: 9px; padding: 10px 12px; }
|
|
543
|
-
.lc::before { border-bottom-right-radius: 9px; width: 14px; height: 14px; }
|
|
544
|
-
.lc-turn { display: flex; flex-direction: column; gap: 4px; }
|
|
545
|
-
.lc-turn .lc-head { margin: 0; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--k); }
|
|
546
|
-
.lc-turn .lc-head time { font-weight: 400; color: var(--faint); }
|
|
547
|
-
.lc-sq { width: 8px; height: 8px; border-radius: 2px; background: var(--k); flex: none; }
|
|
548
|
-
.lc-lab { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
549
|
-
.lc-turn .lc-prompt { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; -webkit-line-clamp: 2; }
|
|
550
|
-
.lc-did { font-size: 12px; color: var(--muted); line-height: 1.45; }
|
|
551
|
-
.lc-turn .lc-reply { margin: 0; font-size: 12px; }
|
|
552
|
-
.lc-turn .lc-files { margin-top: 2px; }
|
|
553
|
-
.lc-turn .lc-file { font-size: 11px; padding: 2px 6px; border-radius: 4px; border: 1px dashed var(--border-strong); background: none; color: var(--muted); }
|
|
554
|
-
.lc-turn .lc-file:hover, .lc-turn .lc-file.lit { border-style: solid; color: var(--text); background: color-mix(in srgb, var(--c) 10%, var(--panel)); }
|
|
555
|
-
.lc-turn .lc-meta { margin-top: 2px; }
|
|
556
|
-
.lc-turn.live { border-color: color-mix(in srgb, var(--k) 45%, var(--border)); }
|
|
557
|
-
.lc-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
|
|
558
|
-
.lc.open .lc-prompt { font-weight: 500; }
|
|
559
|
-
.lc-task { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
|
|
560
|
-
.lc-task .lc-head { align-self: stretch; margin: 0; font-weight: 600; color: var(--k); } .lc-task .lc-head time { font-weight: 400; color: var(--faint); }
|
|
561
|
-
.lc-task .lc-tasklink { margin: 0; font-size: 13px; font-weight: 600; text-align: left; }
|