heyquilt 0.3.198 → 0.3.199

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 CHANGED
@@ -11,6 +11,11 @@ Format: `## <version> — <YYYY-MM-DD>`, an optional one-line summary, then bull
11
11
  Lead each bullet with a short bold phrase. Inline `code` and **bold** are rendered;
12
12
  nothing else is.
13
13
 
14
+ ## 0.3.199 — 2026-11-24
15
+
16
+ - **Choosing an artifact looks like the Artifacts page.** Attaching an artifact in chat opens tiles, not a list: folders open, where you are shows across the top to go back, and the search looks in every folder and says where each match is.
17
+ - **Connection tiles in a row are the same height.**
18
+
14
19
  ## 0.3.198 — 2026-11-24
15
20
 
16
21
  - **Calls in a project's channels.** Call in a channel's header starts a voice call there, in the project's own channel and in the ones its people made. It reaches everyone in the project wherever they are: on the project's page with no codebase open, or inside any of its codebases. Who is in it shows in the header with Join, then mute and leave, and the channel's row in the sidebar says how many are in the call. One call at a time: joining a codebase's call leaves a channel's, and the other way round. These calls are not transcribed, and a screen cannot be shared in them yet.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heyquilt",
3
- "version": "0.3.198",
3
+ "version": "0.3.199",
4
4
  "description": "Real-time, tool-agnostic pair vibe coding: sync a project folder live between collaborators using any AI coding tool.",
5
5
  "author": {
6
6
  "name": "Daniel Carmichael",
package/src/ui/app.css CHANGED
@@ -2613,7 +2613,7 @@ iframe.pv-page { flex: 1; min-height: 0; width: 100%; border: 0; background: #ff
2613
2613
  .tile .thumb.vid { background: linear-gradient(135deg, #322d36, #6b5b7e); color: #fff; }
2614
2614
  .tile .thumb .play svg { width: 22px; height: 22px; }
2615
2615
  .tile .thumb .stem { max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2616
- .tile .thumb .badge, .files-list .badge, .fpk-row .badge { font-family: var(--sans); font-size: 9.5px; font-weight: 700; color: #fff; padding: 1px 5px; border-radius: 3px; letter-spacing: .02em; }
2616
+ .tile .thumb .badge, .files-list .badge { font-family: var(--sans); font-size: 9.5px; font-weight: 700; color: #fff; padding: 1px 5px; border-radius: 3px; letter-spacing: .02em; }
2617
2617
  .tile .thumb .badge { position: absolute; left: 6px; top: 6px; }
2618
2618
  .tile .thumb .ver { position: absolute; top: 6px; right: 6px; font-family: var(--sans); font-size: 10px; font-weight: 700; color: #1d1b2e; background: rgba(255, 255, 255, .88); padding: 0 6px; border-radius: 999px; }
2619
2619
  .tile .nm { padding: 8px 10px 2px; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@@ -2684,11 +2684,14 @@ iframe.pv-page { flex: 1; min-height: 0; width: 100%; border: 0; background: #ff
2684
2684
  .fp-version .grow .hint { display: block; }
2685
2685
  .fp-version .cur { color: var(--accent); }
2686
2686
  .fp-version a { font-weight: 600; font-size: 12px; }
2687
- .file-picker .input { margin: 8px 0 10px; }
2688
- .fpk-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; }
2689
- .fpk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
2690
- .fpk-row:hover, .fpk-row:focus-visible { background: var(--panel-2); }
2691
- .fpk-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2687
+ /* Choosing an artifact: the Artifacts page's tiles in a pop-up, a folder at a time. Its list keeps one height, so the pop-up does not jump from folder to folder. */
2688
+ .modal.file-picker { width: min(780px, 100%); }
2689
+ .fpk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
2690
+ .fpk-head h3 { margin: 0; }
2691
+ .file-picker .input { width: 100%; }
2692
+ .fpk-crumbs { margin: 14px 0 10px; font-size: 14px; font-weight: 600; }
2693
+ .fpk-grid { height: min(56vh, 430px); overflow-y: auto; padding: 2px; }
2694
+ .fpk-none { margin: 8px 0; }
2692
2695
  .tile-wrap { position: relative; display: flex; min-width: 0; }
2693
2696
  .tile-wrap > .tile { flex: 1; }
2694
2697
  .folder-acts { display: flex; gap: 2px; }
@@ -3161,9 +3164,9 @@ label.radio:has(input:disabled) { cursor: default; opacity: .75; }
3161
3164
  .cn > .files-head { margin-bottom: 0; }
3162
3165
  .cn-sec { display: flex; flex-direction: column; gap: 10px; }
3163
3166
  .cn-sec h3, .cn-add h3 { margin: 0; font-size: 14px; font-weight: 600; }
3164
- .cn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; align-items: start; }
3165
- .cn-tiles > .pj-slot { align-self: stretch; }
3166
- .cn-tile { grid-template-rows: auto 12px auto auto; min-height: 0; }
3167
+ /* Every tile in a row is as tall as the tallest in it; what is in a shorter one stays at its top. */
3168
+ .cn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; }
3169
+ .cn-tile { grid-template-rows: auto 12px auto auto; align-content: start; min-height: 0; }
3167
3170
  .cn-tile.off { background: none; box-shadow: 0 0 0 1px var(--border); }
3168
3171
  .cn-tile.off .pj-face { opacity: .55; }
3169
3172
  .cn-corner { grid-area: 1 / 2; align-self: start; justify-self: end; display: flex; align-items: center; min-height: 26px; }
package/src/ui/files.js CHANGED
@@ -669,38 +669,55 @@ export function previewBusy () {
669
669
  }
670
670
 
671
671
  // ---------------------------------------------------------------- picker --
672
- /** A dialog to choose one of the workspace's files. Resolves { id, name }, or null. */
672
+ /**
673
+ * A pop-up to choose one of the project's artifacts: the Artifacts page's own tiles, folder by
674
+ * folder, with where you are across the top and a search over every folder. Resolves { id, name }, or null.
675
+ */
673
676
  export async function workspaceFilePicker (id) {
674
- let files
675
- try { files = (await api('GET', wsUrl(id, '/files'))).files.filter((f) => f.kind !== 'folder').sort((a, b) => a.path.localeCompare(b.path)) } catch (err) { toast(err.status === 404 || /not found/i.test(err.message) ? "Only this project's members can see its artifacts." : err.message); return null }
677
+ let all
678
+ try { all = (await api('GET', wsUrl(id, '/files'))).files } catch (err) { toast(err.status === 404 || /not found/i.test(err.message) ? "Only this project's members can see its artifacts." : err.message); return null }
679
+ const d = { workspace: { id }, files: all }
676
680
  return new Promise((resolve) => {
677
681
  const back = document.createElement('div')
678
682
  back.className = 'modal-back'
679
683
  back.innerHTML = `<div class="card modal file-picker" role="dialog" aria-modal="true" aria-labelledby="fpk-title">
680
- <h3 id="fpk-title">Choose an artifact</h3>
684
+ <div class="fpk-head"><h3 id="fpk-title">Choose an artifact</h3><button type="button" class="btn sm ghost icon" data-no title="Close" aria-label="Close">${I.x}</button></div>
681
685
  <input class="input" type="search" placeholder="Search artifacts" aria-label="Search artifacts" data-pick-search>
682
- <div class="fpk-list" data-pick-list></div>
683
- <div class="actions"><button type="button" class="btn" data-no>Cancel</button></div>
686
+ <nav class="crumbs fpk-crumbs" aria-label="Folder" data-pick-crumbs></nav>
687
+ <div class="fpk-grid" data-pick-list></div>
684
688
  </div>`
685
689
  document.body.appendChild(back)
686
690
  const list = back.querySelector('[data-pick-list]')
691
+ const crumbs = back.querySelector('[data-pick-crumbs]')
687
692
  const search = back.querySelector('[data-pick-search]')
693
+ let folder = ''
688
694
  const done = (v) => { back.remove(); resolve(v) }
689
695
  const draw = () => {
690
696
  const q = search.value.trim().toLowerCase()
691
- const shown = files.filter((f) => !q || f.path.toLowerCase().includes(q))
692
- list.innerHTML = shown.length
693
- ? shown.map((f) => `<button type="button" class="fpk-row" data-pick="${esc(f.id)}"><span class="badge" style="background:${badgeColor(f)}">${esc(badgeText(f))}</span><span class="grow">${esc(f.path)}</span><span class="hint">${esc(bytes(f.size || 0))}</span></button>`).join('')
694
- : `<p class="hint">${files.length ? 'No artifact matches.' : 'This project has no artifacts yet.'}</p>`
697
+ if (folder && !foldersOf(d).some((f) => f.path === folder)) folder = ''
698
+ // A search looks in every folder, and says where each match is; otherwise, the folder you are in.
699
+ const folders = foldersOf(d).filter((f) => (q ? f.name.toLowerCase().includes(q) : f.folder === folder)).sort(byName)
700
+ const files = filesOf(d).filter((f) => (q ? f.path.toLowerCase().includes(q) : f.folder === folder)).sort(byName)
701
+ const parts = folder ? folder.split('/') : []
702
+ crumbs.innerHTML = q
703
+ ? `<span class="here">${plural(files.length + folders.length, 'match', 'matches')} for "${esc(search.value.trim())}"</span>`
704
+ : [folder ? '<a href="#" data-folder="">Artifacts</a>' : '<span class="here">Artifacts</span>', ...parts.map((p, i) => i === parts.length - 1 ? `<span class="here">${esc(p)}</span>` : `<a href="#" data-folder="${esc(parts.slice(0, i + 1).join('/'))}">${esc(p)}</a>`)].join('<span class="sep">/</span>')
705
+ list.innerHTML = folders.length || files.length
706
+ ? `<div class="tiles art-tiles">${folders.map((f) => folderTileHtml(d, f)).join('')}${files.map((f) => fileTileHtml(d, f, { meta: [q && f.folder ? f.folder : '', bytes(f.size || 0), when(f.uploadedAt)].filter(Boolean).join(' · ') })).join('')}</div>`
707
+ : `<p class="hint fpk-none">${q ? 'No artifact matches.' : folder ? 'This folder is empty.' : 'This project has no artifacts yet.'}</p>`
708
+ list.scrollTop = 0
695
709
  }
696
710
  draw()
697
711
  search.oninput = draw
698
- search.onkeydown = (e) => { if (e.key === 'Enter') { e.preventDefault(); list.querySelector('[data-pick]')?.click() } }
699
- list.onclick = (e) => {
700
- const b = e.target.closest('[data-pick]')
701
- const f = b && files.find((x) => x.id === b.dataset.pick)
712
+ search.onkeydown = (e) => { if (e.key === 'Enter') { e.preventDefault(); list.querySelector('[data-pick-file], [data-folder]')?.click() } }
713
+ // A folder opens (out of any search); an artifact is the choice.
714
+ back.addEventListener('click', (e) => {
715
+ const into = e.target.closest('[data-folder]')
716
+ if (into && back.contains(into)) { e.preventDefault(); folder = into.dataset.folder; search.value = ''; draw(); search.focus(); return }
717
+ const b = e.target.closest('[data-pick-file]')
718
+ const f = b && filesOf(d).find((x) => x.id === b.dataset.pickFile)
702
719
  if (f) done({ id: f.id, name: f.name })
703
- }
720
+ })
704
721
  back.addEventListener('mousedown', (e) => { if (e.target === back) done(null) })
705
722
  back.addEventListener('keydown', (e) => { if (e.key === 'Escape') done(null) })
706
723
  back.querySelector('[data-no]').onclick = () => done(null)