From 136f239d4596dac93d19f85e5fb4a76f71f87000 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 19:13:02 -0500 Subject: [PATCH 01/18] fix(list): hidden rows no longer cover the real ones, so a click selects the item and shows its details --- frontend/HASHOUT_LOG.md | 4 ++++ frontend/src/styles/itemlist.css | 1 + 2 files changed, 5 insertions(+) diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index 00ee8bd..36a70f7 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -581,3 +581,7 @@ Removed, quoted: `const CHEV = ...`; the section head ` + -
-
-

Tags

+
${DT_TABS.map(([id, label], i) => ``).join('')}
+
+ + -
+ -
+ ${CONNECTIONS_PANE}

${icon('duplicates', 14)}Duplicates

From d8c6123569082660ed496732cbcf349ac858e07b Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 19:51:38 -0500 Subject: [PATCH 13/18] docs(hashout): why every view fits and none is an empty rectangle --- frontend/HASHOUT_LOG.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index ab6409e..2d680ab 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -629,3 +629,35 @@ Checked (verified under throttling, CPU 4x, headless Chrome, a production build ## src/ui/app.ts, src/styles/shell.css · the in-page Preferences view leaves the shell {#src-shell-prefs-dialog} New in v0.15.2 (2026-12-01, EST), topbar, at the prefs role's request. Preferences is now a dialog that `mountPreferences(engine)` mounts into `#overlay-root` (#src-prefs-floating-dialog above), so the shell no longer has a page for it. `app.ts` imports `openPreferences`, which the `preferences:` hook (the gear, Cmd or Ctrl+, and the menus) already calls; `mountPreferences` loses its host argument. Removed, quoted: `Preferences` from `.fc-tb-title`; the pane `

${icon('sliders', 14)}Preferences

`; `mountPreferences(engine, at('preferences'));`; and in `shell.css` the selectors `.fc-panes[data-view="preferences"] .fc-tb-title > [data-v="preferences"]` and `.fc-panes[data-view="preferences"] > .fc-view[data-pane="preferences"]`, the rest of both rules kept. Nothing on screen moves: the removed pane was `display: none` outside its own view. + +## src/ui/start.ts, src/ui/itemlist.ts, src/ui/duplicates.ts, src/ui/trash.ts, src/ui/titles.ts, src/styles/itemlist.css, src/styles/detail.css, src/styles/review.css, src/styles/home.css · every view fits and none is an empty rectangle {#src-views-line-7} + +New in v0.15.2 (2026-12-01, EST), layout. This is standard line 7. On the owner's MacBook Air, Items showed one row beside a large pane that said only "No item selected." Duplicates, Trash and Needs a title put one grey sentence under their bar and left the rest of the sheet blank. Home scrolled by 60 px at 1280 by 800, and so did the details pane, by 11 px. + +Empty states (`ui/start.ts`, new): one `.fc-start` block holds an icon, a title, a line of text and the main actions. The actions are Add by identifier, Import a file and Choose a PDF, the same three as Home's hero, with the hint "Paste an arXiv id such as arXiv:2402.06196, a DOI, an ISBN or a PubMed ID". There are three uses: +- `DETAIL_START`, which topbar put in the app.ts SHELL (e1c5ffd). Its root keeps `fc-empty fc-empty-center`, so `mountDetail` hides and shows it as before. +- The list's block, which `mountItemList` builds. It replaces the SHELL's one-line `

` before `revealApp`, so nothing changes after first paint. +- `reviewStart` in Duplicates, Trash and Needs a title, with Open Items, plus Import a file in Needs a title. + +The list block has three texts (library empty, collection or Unfiled empty, no search match), and the details block has two (nothing selected, list empty). Each text sits in the same grid cell (`grid-area: 1 / 1`), and only `visibility` changes, so a block's size never depends on its state. `mountItemList` sets `.fc-panes[data-fc-list="empty"|"some"]`. While the list itself shows the actions, the details block shows what can be pasted (arXiv, DOI, ISBN, PubMed, files) in place of a second copy of them. These forms are the ones `backend/app/lookup/guess.py` accepts. One `bindStart` listener on `.fc-panes` runs every `[data-start]` button and `.fc-start-pick` input, and opens the add panel the way `ui/home.ts` does. + +Removed, quoted: +- `itemlist.ts`: `const empty = host.querySelector('.fc-empty');` and `if (empty) { empty.classList.add('fc-il-empty'); setHidden(empty, true); scroll.append(empty); }`, and in `reset`, `if (empty) { setText(empty, lib.query ? 'No items match this search.' : 'No items here yet.'); setHidden(empty, total > 0); }`. +- `duplicates.ts`: `showNote(groups.length || quiet || !loadedOnce ? '' : 'Nothing here. Items that share a DOI, or a title, year and first creator, would be listed.');`. +- `trash.ts`: `showNote(items.length || quiet ? '' : (loadedOnce ? 'Nothing here. Items you move to the trash wait here until you delete them for good.' : ''));`. +- `titles.ts`: `if (!items.length && loadedOnce) showNote('Nothing here. Imported entries without a title wait here until you give them one.');`. + +The note line itself stays for loading and errors. + +Split and fit: +- The list's columns now follow the list's own width, through a `fc-list` container query, in place of the window width. Removed, quoted from `itemlist.css`: `@media (max-width: 1250px) { .fc-il { --il-col-creator: 120px; --il-col-type: 0px; --il-col-added: 100px; } .fc-il-head > :nth-child(4), .fc-il-row > :nth-child(4) { visibility: hidden; padding: 0; overflow: hidden; } }`. Under 700 px the Type column folds; under 560 px, Added does too. At 1440 the split is 748 by 420, with all five columns. At 1280 it is 624 by 384: Type folds and the title gets about 330 px, where it had about 200. +- The detail tabs share the row (`flex: 1 1 auto`, padding `--space-1h`). Before, `.fc-dt-tabs` had `gap: var(--space-1)` and each tab `padding: 0 var(--space-2)`, so at 384 px "Notes" was cut off. +- Below 860 px of height, the creators box goes from 144 to 120 px, and Home's padding and gaps go to `--space-4`. +- While the details empty state shows, its pane body is `overflow: hidden`, so the hidden inspector under it cannot scroll it. + +Checked (verified under throttling, CPU 4x, headless Chrome, production build served by the engine, the urban-heat demo and an empty library, 1440 by 900 and 1280 by 800, dark and light): +- Items, the details pane, Home, Duplicates, Trash and Needs a title have scrollHeight equal to clientHeight. +- The layout shift is 0 on load, on each view switch, on selecting an item, on each detail tab and on selecting another item. A probe shift was caught, so the observer was live. +- Each start button opens the add panel on the right tab, Choose a PDF opens a multi-file chooser, and Open Items goes to Items. + +Not in these files: the sidebar's Collections and Tags still scroll (1017 px of content in 692 at 1280 by 800). From c531d43905e39c7a296843926c4d166fd5d0b98e Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 20:02:27 -0500 Subject: [PATCH 14/18] fix(side): the navigation stays put, and Collections and Tags fold, remember it and scroll in their own share of the sidebar, with tags as chips --- frontend/src/styles/side.css | 29 +++++++++++++++++++++++++- frontend/src/ui/side.ts | 40 ++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/frontend/src/styles/side.css b/frontend/src/styles/side.css index ea14af0..67a2a0b 100644 --- a/frontend/src/styles/side.css +++ b/frontend/src/styles/side.css @@ -11,7 +11,34 @@ .fc-sb-dot[data-state="down"] { background: var(--danger); } .fc-side-list { list-style: none; margin: 0; padding: 0; } -.fc-side-tags { max-height: calc(var(--fc-side-row-h) * 12); overflow-y: auto; overscroll-behavior: contain; } +.fc-side > .fc-pane-body { display: flex; flex-direction: column; overflow: hidden; } +.fc-side > .fc-pane-body > .fc-nav { flex: none; } +.fc-side-pane { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; } +.fc-side-pane > .fc-section { flex: 0 1 auto; display: grid; grid-template-rows: var(--fc-section-head-h) minmax(0, 1fr); min-height: calc(var(--fc-section-head-h) + var(--fc-side-row-h) * 3); padding-bottom: var(--space-1); } +.fc-side-pane > .fc-section + .fc-section { border-top: 1px solid var(--line-0); } +.fc-side-pane > .fc-section.is-shut { flex: none; grid-template-rows: var(--fc-section-head-h); min-height: 0; padding-bottom: 0; } +.fc-side-pane > .fc-section.is-shut > .fc-side-scroll { display: none; } +.fc-side-scroll { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; } +.fc-side-pane .fc-section-head { display: block; margin: 0; padding: 0 var(--space-2); } +.fc-section-toggle { display: grid; grid-template-columns: var(--size-icon-sm) var(--size-icon-sm) minmax(0, 1fr); align-items: center; column-gap: var(--space-1h); width: 100%; height: 100%; padding: 0 var(--space-1); border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: start; cursor: pointer; } +.fc-section-toggle:hover { color: var(--text-secondary); } +.fc-section-chevron { width: var(--size-icon-sm); height: var(--size-icon-sm); transition: transform var(--transition-fast); } +.fc-section-toggle[aria-expanded="false"] .fc-section-chevron { transform: rotate(-90deg); } +.fc-side-scroll > .fc-side-msg { padding: 0 var(--space-3) 0 calc(var(--space-3) + var(--size-icon-sm) + var(--space-2)); } + +.fc-side-pane { --fc-side-chip-h: 24px; --fc-side-chip-count: 30px; } +.fc-side-tags { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--space-1); padding: var(--space-1) var(--space-3); } +.fc-side-tags > .fc-side-row { position: static; contain: none; max-width: 100%; height: var(--fc-side-chip-h); line-height: var(--fc-side-chip-h); } +.fc-side-tags .fc-side-entry { display: inline-grid; grid-template-columns: minmax(0, auto) var(--fc-side-chip-count); column-gap: var(--space-1); width: auto; max-width: 100%; height: var(--fc-side-chip-h); padding: 0 0 0 var(--space-2); border: 1px solid var(--line-2); border-radius: var(--radius-pill); background: var(--surface-2); line-height: normal; vertical-align: top; } +.fc-side-tags .fc-side-entry > .fc-side-icon { display: none; } +.fc-side-tags .fc-side-count { padding-right: var(--space-2); } +.fc-side-tags .fc-side-row:hover > .fc-side-entry { border-color: var(--line-3); background: var(--surface-2); } +.fc-side-tags .fc-side-row.is-active > .fc-side-entry { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: none; } +.fc-side-tags .fc-side-row.is-active > .fc-side-actions { background: var(--accent-soft); } +.fc-side-tags .fc-side-actions { display: inline-grid; top: auto; bottom: auto; right: auto; width: var(--fc-side-chip-count); height: calc(var(--fc-side-chip-h) - 2px); margin: 1px 0 0 calc(-1 * var(--fc-side-chip-count) - 1px); border-radius: 0 var(--radius-pill) var(--radius-pill) 0; background: var(--surface-2); vertical-align: top; } +.fc-side-tags .fc-side-act { height: calc(var(--fc-side-chip-h) - 4px); } +.fc-side-tags .fc-side-act .fc-side-icon { width: 11px; height: 11px; } +.fc-side-tags .fc-side-edit { top: auto; bottom: auto; left: var(--space-3); right: var(--space-3); height: var(--fc-side-chip-h); box-sizing: border-box; vertical-align: top; } .fc-side-row.is-pending { pointer-events: none; } .fc-side-row { diff --git a/frontend/src/ui/side.ts b/frontend/src/ui/side.ts index b3ec3a0..17bb5cc 100644 --- a/frontend/src/ui/side.ts +++ b/frontend/src/ui/side.ts @@ -16,6 +16,42 @@ const SIDE_ICONS: Record = { tag: ``, }; +const OPEN_KEY = 'formcite.side.open'; +const CHEVRON = ``; + +function readOpen(): Record { + try { + const v = JSON.parse(localStorage.getItem(OPEN_KEY) || 'null') as unknown; + return v && typeof v === 'object' ? (v as Record) : {}; + } catch { return {}; } +} + +function saveOpen(id: string, open: boolean): void { + try { localStorage.setItem(OPEN_KEY, JSON.stringify({ ...readOpen(), [id]: open })); } catch (e) { console.error('[side] save failed:', e); } +} + +function foldable(sec: HTMLElement): void { + const id = sec.dataset.section ?? ''; + const head = q(sec, '.fc-section-head'); + const body = el(`

`); + body.append(...Array.from(sec.children).filter((c) => c !== head)); + sec.append(body); + const open = readOpen()[id] !== false; + const btn = el(``); + btn.append(...Array.from(head.childNodes)); + head.append(btn); + setClass(sec, 'is-shut', !open); +} + +function toggleSection(btn: HTMLElement): void { + const sec = btn.closest('.fc-section'); + if (!sec) return; + const open = btn.getAttribute('aria-expanded') !== 'true'; + btn.setAttribute('aria-expanded', String(open)); + setClass(sec, 'is-shut', !open); + saveOpen(sec.dataset.section ?? '', open); +} + function sideIcon(name: string): string { return ``; } @@ -452,12 +488,16 @@ export function mountSide(engine: Engine, host: HTMLElement): void { setText(tagMsg, ''); const tags = el('
    '); tagMsg.before(tags); + foldable(collSec); + foldable(tagSec); const pane: Pane = { engine, fixed, tree, collMsg, tags, tagMsg, collapsed: new Set(), want: { coll: 0, tags: 0 }, pending: new Map() }; tree.addEventListener('keydown', (ev) => treeKey(pane, ev)); host.addEventListener('click', (ev) => { const target = ev.target as HTMLElement; + const fold = target.closest('.fc-section-toggle'); + if (fold) { toggleSection(fold); return; } const act = target.closest('.fc-side-act'); const actRow = act?.closest('.fc-side-row'); if (act && actRow) { From ff4b4cbb3221663e7ffb02b3af4e764a7c0d2db9 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 20:02:44 -0500 Subject: [PATCH 15/18] docs(hashout): why the sidebar sections fold and scroll on their own --- frontend/HASHOUT_LOG.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index 2d680ab..7dc7095 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -660,4 +660,25 @@ Checked (verified under throttling, CPU 4x, headless Chrome, production build se - The layout shift is 0 on load, on each view switch, on selecting an item, on each detail tab and on selecting another item. A probe shift was caught, so the observer was live. - Each start button opens the add panel on the right tab, Choose a PDF opens a multi-file chooser, and Open Items goes to Items. -Not in these files: the sidebar's Collections and Tags still scroll (1017 px of content in 692 at 1280 by 800). +Not in these files: the sidebar's Collections and Tags still scroll (1017 px of content in 692 at 1280 by 800). Fixed next, in #src-side-fold. + +## src/ui/side.ts, src/styles/side.css · the navigation stays put, Collections and Tags fold and scroll on their own {#src-side-fold} + +New in v0.15.2 (2026-12-01, EST), layout, assigned by the coordinator. This is standard line 7. With the 260-item demo, the whole sidebar was one scroll of 1017 px in 692 (1280 by 800), so scrolling down to the tags took the navigation (Home to Preferences) off screen. + +Now: +- `.fc-side > .fc-pane-body` is a flex column with `overflow: hidden`, and `.fc-nav` is `flex: none`, so the navigation never scrolls. +- The Collections and Tags sections share what is left (`flex: 0 1 auto`, so the share goes by content). Each scrolls inside its own `.fc-side-scroll` and keeps at least its head and three rows. +- At mount, before `revealApp`, `mountSide` wraps each section's content in that region. It turns the head into a disclosure button (`.fc-section-toggle`, `aria-expanded`, `aria-controls`), FormVis's panel-head pattern: a chevron turned -90 degrees when shut. +- The open state is saved in `localStorage` under `formcite.side.open` and applied at mount, so first paint already has it. A shut section gives its height to the other one. + +Tags are a wrapping row of chips: the name and a fixed 30 px count slot, no icon, and the chip style of the details pane's tags. +- On hover, rename and delete take the place of the count, in an opaque overlay of the same width, so nothing moves. +- Rename covers the chip's whole line from inside the list: the row is `position: static; contain: none`, the input keeps its inline static position for its top, and `left` and `right` place it against the list. + +Removed, quoted: `.fc-side-tags { max-height: calc(var(--fc-side-row-h) * 12); overflow-y: auto; overscroll-behavior: contain; }`. The section's own region replaces that inner 12-row scroll. `.fc-section > .fc-side-msg` no longer matches anything. The message's indent moved to `.fc-side-scroll > .fc-side-msg`. + +Checked (verified under throttling, CPU 4x, headless Chrome, production build served by the engine, urban-heat demo, 1440 by 900 and 1280 by 800, dark and light): +- The sidebar body is 792 of 792 and 692 of 692. The nav top stays at 84 after scrolling Tags to the end and clicking the last tag. +- Collections shows 272 of 336 px and Tags 182 of 228 at 1440; Collections 213 of 336 and Tags 141 of 228 at 1280. With Collections shut, Tags shows all 228. +- Shut stays shut after a reload. Layout shift is 0 on load and on reload with a section shut. The only entry is opening a section by hand (0.017 to 0.019, `hadRecentInput` true), where the other section moves by design. From 9a8088792f37110106c75e8f534ca855cd1eebfa Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 20:35:36 -0500 Subject: [PATCH 16/18] fix(views): opening and closing the dock moves nothing in the list, the details pane or the sidebar --- frontend/HASHOUT_LOG.md | 13 +++++++++++++ frontend/src/styles/itemlist.css | 3 ++- frontend/src/styles/side.css | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index 7dc7095..fed78d8 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -682,3 +682,16 @@ Checked (verified under throttling, CPU 4x, headless Chrome, production build se - The sidebar body is 792 of 792 and 692 of 692. The nav top stays at 84 after scrolling Tags to the end and clicking the last tag. - Collections shows 272 of 336 px and Tags 182 of 228 at 1440; Collections 213 of 336 and Tags 141 of 228 at 1280. With Collections shut, Tags shows all 228. - Shut stays shut after a reload. Layout shift is 0 on load and on reload with a section shut. The only entry is opening a section by hand (0.017 to 0.019, `hadRecentInput` true), where the other section moves by design. + +## src/styles/itemlist.css, src/styles/side.css · the dock opens and closes with no layout shift {#src-dock-zero-shift} + +New in v0.15.2 (2026-12-01, EST), lead, taken over from layout for verify's V1 (standard line 6). Verify measured a layout shift on every toggle of the agent dock on Items, from three sources: +- **The details pane's empty state re-centred** in the shorter pane: `.fc-start` used `place-items: center`, so `.fc-start-box` moved from y 299 to 159. Shifts of 0.027 to 0.039. It now sits at the top with fixed padding: `place-items: start center; align-content: start; padding: var(--space-8) var(--space-4) var(--space-6)`. +- **The list's empty error line moved with the list's bottom edge:** `.fc-il-error` is bottom-anchored and painted even when empty (0.002 to 0.005, already in 0.15.1). It is now `visibility: hidden` while empty (`.fc-il-error:empty`), so it neither paints nor counts. +- **The sidebar's Collections and Tags were re-shared** when the dock shortened the sidebar, because each `.fc-side-pane > .fc-section` was `flex: 0 1 auto`, and the Tags section moved (0.002 to 0.010). Each section now has a fixed size, `flex: none`, with its height capped at the head plus six rows (204 px). Content past that scrolls inside the section, as before, and the dock covers the sidebar's foot instead of reflowing it. + +Measured with verify's script `/tmp/fc152v/dockcls.py` on a build of this tree, CPU 4x, stand-in macOS shell, urban-heat demo, at 1440 by 900 and 1280 by 800, with nothing selected, an item selected and Home: 0 on every open and every close. The sidebar fits at both sizes: the pane body is 832 of 832 and 732 of 732. The sections start at y 309 and 513, 204 px each, and Collections (336 in 168) and Tags (228 in 167) scroll inside. + +Before, quoted: +- `.fc-start { ... display: grid; place-items: center; padding: var(--space-6) var(--space-4); ... }` +- `.fc-side-pane > .fc-section { flex: 0 1 auto; ... }` diff --git a/frontend/src/styles/itemlist.css b/frontend/src/styles/itemlist.css index 7fc9b88..1a987e8 100644 --- a/frontend/src/styles/itemlist.css +++ b/frontend/src/styles/itemlist.css @@ -62,6 +62,7 @@ .fc-il-col.is-desc .fc-il-arrow { transform: none; } .fc-il-error { position: absolute; left: 0; right: 0; bottom: 0; z-index: var(--z-raised); height: var(--il-error-h); margin: 0; background: var(--sheet); pointer-events: none; padding: 0 var(--space-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--danger-text); font-size: var(--fs-11); line-height: var(--il-error-h); } +.fc-il-error:empty { visibility: hidden; } .fc-il-scroll { position: relative; overflow-y: auto; overflow-x: hidden; outline: none; contain: strict; } .fc-il-spacer { position: relative; height: 0; contain: layout; } @@ -95,7 +96,7 @@ .fc-il-head > :nth-child(5), .fc-il-row > :nth-child(5) { visibility: hidden; padding: 0; overflow: hidden; } } -.fc-start { --fc-start-w: 440px; container: fc-start / inline-size; display: grid; place-items: center; padding: var(--space-6) var(--space-4); color: var(--text-secondary); font-size: var(--fs-13); text-align: center; pointer-events: none; } +.fc-start { --fc-start-w: 440px; container: fc-start / inline-size; display: grid; place-items: start center; align-content: start; padding: var(--space-8) var(--space-4) var(--space-6); color: var(--text-secondary); font-size: var(--fs-13); text-align: center; pointer-events: none; } .fc-start[hidden] { display: none; } .fc-start-box { display: grid; justify-items: center; row-gap: var(--space-3); width: min(100%, var(--fc-start-w)); pointer-events: auto; } .fc-start-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-1); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: radial-gradient(120% 120% at 0% 0%, var(--accent-wash), transparent 60%), var(--surface-raised); color: var(--accent-color); box-shadow: var(--shadow-inset-hl); } diff --git a/frontend/src/styles/side.css b/frontend/src/styles/side.css index 67a2a0b..bb1835f 100644 --- a/frontend/src/styles/side.css +++ b/frontend/src/styles/side.css @@ -14,7 +14,7 @@ .fc-side > .fc-pane-body { display: flex; flex-direction: column; overflow: hidden; } .fc-side > .fc-pane-body > .fc-nav { flex: none; } .fc-side-pane { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; } -.fc-side-pane > .fc-section { flex: 0 1 auto; display: grid; grid-template-rows: var(--fc-section-head-h) minmax(0, 1fr); min-height: calc(var(--fc-section-head-h) + var(--fc-side-row-h) * 3); padding-bottom: var(--space-1); } +.fc-side-pane > .fc-section { flex: none; display: grid; grid-template-rows: var(--fc-section-head-h) minmax(0, 1fr); min-height: calc(var(--fc-section-head-h) + var(--fc-side-row-h) * 3); max-height: calc(var(--fc-section-head-h) + var(--fc-side-row-h) * 6 + var(--space-1)); padding-bottom: var(--space-1); } .fc-side-pane > .fc-section + .fc-section { border-top: 1px solid var(--line-0); } .fc-side-pane > .fc-section.is-shut { flex: none; grid-template-rows: var(--fc-section-head-h); min-height: 0; padding-bottom: 0; } .fc-side-pane > .fc-section.is-shut > .fc-side-scroll { display: none; } From fe3be31564bd18168509bf236dc6b422029e083d Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 20:52:01 -0500 Subject: [PATCH 17/18] fix(prefs): Preferences shows and hides at once, with no fade, as the other Form apps do --- frontend/HASHOUT_LOG.md | 15 +++++++++++++++ frontend/src/styles/preferences.css | 9 +-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index fed78d8..2c2fc9f 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -695,3 +695,18 @@ Measured with verify's script `/tmp/fc152v/dockcls.py` on a build of this tree, Before, quoted: - `.fc-start { ... display: grid; place-items: center; padding: var(--space-6) var(--space-4); ... }` - `.fc-side-pane > .fc-section { flex: 0 1 auto; ... }` + +## src/styles/preferences.css · Preferences shows and hides at once, as in FormVis {#src-prefs-no-animation} + +New in v0.15.2 (2026-12-01, EST), by the lead on the coordinator's decision, in the prefs role's file. FormVis 2.9.0, FormPortal and FormLedger 0.15.1 have no open or close animation on their dialogs. The prefs role had added a 160 ms fade-and-rise in and a 120 ms fade-out, and these are removed, so the dialog appears and disappears in the same frame. + +`ui/preferences.ts` is unchanged. Its `close()` already calls `finish()` at once when `scrim.getAnimations()` is empty, and the `is-closing` class is now only a flag that no rule styles. + +Checked on a build of this tree with CPU 4x and the stand-in macOS shell. The gear showed the dialog at opacity 1 with no running animations 30 ms after the click. Esc hid it within 30 ms, and so did a click outside. Layout shift was 0. + +Removed, quoted: +- `animation: cv-prefs-scrim-in 160ms var(--ease-glass) both;` on `.cv-prefs-scrim`; +- `.cv-prefs-scrim.is-closing { pointer-events: none; animation: cv-prefs-scrim-out 120ms ease-in both; }`; +- `.cv-prefs-scrim > .cv-prefs-dlg { animation: cv-prefs-dlg-in 160ms var(--ease-glass) both; }`; +- `.cv-prefs-scrim.is-closing > .cv-prefs-dlg { animation: cv-prefs-dlg-out 120ms ease-in both; }`; +- the four `@keyframes`, `cv-prefs-scrim-in`, `cv-prefs-scrim-out`, `cv-prefs-dlg-in` and `cv-prefs-dlg-out`. diff --git a/frontend/src/styles/preferences.css b/frontend/src/styles/preferences.css index 2e7a8a0..b28cc88 100644 --- a/frontend/src/styles/preferences.css +++ b/frontend/src/styles/preferences.css @@ -7,15 +7,8 @@ --fc-pr-text-line-h: 15px; --fc-pr-label-w: 200px; } -.cv-prefs-scrim { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; background: var(--bg-scrim); animation: cv-prefs-scrim-in 160ms var(--ease-glass) both; } +.cv-prefs-scrim { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; background: var(--bg-scrim); } .cv-prefs-scrim[hidden] { display: none; } -.cv-prefs-scrim.is-closing { pointer-events: none; animation: cv-prefs-scrim-out 120ms ease-in both; } -.cv-prefs-scrim > .cv-prefs-dlg { animation: cv-prefs-dlg-in 160ms var(--ease-glass) both; } -.cv-prefs-scrim.is-closing > .cv-prefs-dlg { animation: cv-prefs-dlg-out 120ms ease-in both; } -@keyframes cv-prefs-scrim-in { from { opacity: 0; } to { opacity: 1; } } -@keyframes cv-prefs-scrim-out { from { opacity: 1; } to { opacity: 0; } } -@keyframes cv-prefs-dlg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } -@keyframes cv-prefs-dlg-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px); } } .cv-prefs-dlg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr) auto; width: min(840px, calc(100vw - 280px)); height: min(86vh, 780px); margin-left: 240px; box-sizing: border-box; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--bg-secondary); box-shadow: var(--shadow-window); outline: none; } .cv-prefs-head { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--border-color); } .cv-prefs-headicon { display: inline-flex; flex: none; color: var(--text-secondary); } From ed51d0ea04b7b50d9d14cca3e26ff01ebb3db189 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 20:52:31 -0500 Subject: [PATCH 18/18] chore(release): 0.15.2 --- CHANGELOG.md | 36 ++++++++++++++++++++++++++++ README.md | 2 +- backend/HASHOUT_LOG.md | 2 +- backend/app/__init__.py | 2 +- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- frontend/src/version.ts | 2 +- native/formcite-style/Cargo.lock | 2 +- native/formcite-style/Cargo.toml | 2 +- native/formcite-style/pyproject.toml | 2 +- setup/HASHOUT_LOG.md | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/HASHOUT_LOG.md | 2 +- src-tauri/tauri.conf.json | 2 +- 15 files changed, 51 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7fa897..f8a5715 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,41 @@ # Changelog +## 0.15.2 + +On a Mac the menus are in the menu bar only, the agent and Preferences buttons sit at the top right as in FormPortal, Preferences floats over the window as in FormVis, a row in Items opens its details again, and an arXiv paper comes with its PDF. + +### Fixed +- **Clicking an item showed "No item selected".** The list keeps spare row boxes for scrolling. A style rule kept them laid out although they were hidden, so on the first screen they lay on top of the real rows and took the click. Hidden rows now take no room and no clicks, and a click or the arrow keys select the item and show its details. +- **On a Mac the window showed a menu bar of its own under the window buttons, and the system menu bar was missing the Library menu.** The system menu bar is now the only one on a Mac. It is built from the same list as the window's bar: FormCite, File, Edit, View, Library, Window and Help. One item the system refuses no longer stops the whole menu being set. If the system menu cannot be built at all, FormCite no longer opens a bar in the window in its place, so 0.15.0's note that it would no longer holds; the keys keep working. View, Menus in Window still puts the bar in the window, from the next start. Windows and Linux keep the bar in the window. If you turned on Menus in Window in 0.15.0, turn it off in View to get the menu bar back. +- **A broken or cut-off answer from a lookup service** is now reported as a network error and listed in Recent calls, where it could stop the engine's answer with an internal error. + +### New +- **The paper itself.** Adding an arXiv paper also downloads its open-access PDF from arxiv.org and attaches it, when lookups are allowed and the arXiv service is on. The download is listed in Recent calls as arxiv-pdf, has its own switch in Preferences, Network, and stops at 100 MB or two minutes. If it fails, the item is still added. The details pane has **Open PDF**, which opens it in FormPDF when installed and otherwise in the system viewer, and **Open on arXiv**, which opens the paper's page in your browser. An arXiv item that has no PDF yet shows **Get PDF** in the same place. +- **The details pane is a compact inspector:** Info, Abstract, Tags, Files and Notes, one at a time, with their counts on the tabs. It fits at 1440 by 900 and at 1280 by 800 without scrolling. +- **Agent and Preferences buttons at the top right,** beside Add, with FormPortal's icons, size and spacing. The agent button opens and closes the agent dock and stays lit while it is open. The sidebar head holds only the app icon, name and version. +- **Preferences floats over the window,** as in FormVis: a dimmed window, the section rail at the dialog's left with a line drawn from the chosen section to the dialog, one section at a time, Esc or a click outside to close. It shows and hides at once, with no fade, as in the other Form apps. The gear, the sidebar's Preferences item, Cmd+, (Ctrl+, elsewhere) and the app menu all open it. Every setting is where it was. +- **Empty states with their main actions** in the details pane, an empty list, Duplicates, Trash and Needs a title, so no main area is an empty rectangle. + +### Improved +- The list's columns follow its width, so titles have more room on smaller windows. +- **The sidebar no longer scrolls as one long column:** the views stay in place, and Collections and Tags each fold (remembered) and scroll within their own share, with tags shown as chips. +- On a Mac the top-left inset also drops in a window that opens in full screen. + +### Known issues +- The open-access PDF attachment through Crossref, for papers known only by a DOI, is not in this release: Crossref points at publishers' own hosts, which FormCite does not call. arXiv papers, including DOIs of the form 10.48550/arXiv.*, get their PDF. +- Not yet seen on a real Mac: the system menu bar, the window buttons and full screen were checked in a stand-in of the Mac shell. + +### Under the hood +- `net.fetch_to_file` streams a download to disk with a content type, size, host and time limit. Redirects for the PDF may reach only arxiv.org, and Recent calls lists the last hop. Gzip answers are inflated with a cap. New routes: `GET /api/library/items/{id}/fulltext`, `POST /api/library/items/{id}/fulltext/pdf` and `POST /api/library/items/{id}/open-arxiv`. +- Checked for this version, on Linux x64, on 1 December 2026 (EST): + - the window's type check and production build; + - the backend compile and the style regression set, 12 of 12; + - live arXiv adds with the PDF attached, Get PDF, the switches, and a concurrent Get PDF giving one download; + - fault probes for size, type, gzip, slow and cut-off answers; + - the built window in headless Chrome at four times slower CPU with a stand-in for the Mac desktop shell: the menus, the top bar, Preferences, the details pane and the empty states at 1440 by 900 and 1280 by 800, with no layout shift; + - the Linux desktop shell built and run under a virtual display, where Tauri accepted the full FormCite menu list when the Mac menu path was forced on. + Not run: a build or launch on macOS or Windows. + ## 0.15.1 The desktop app opens in a few seconds instead of twenty or more, the Mac window's buttons no longer sit on the FormCite name, arXiv lookups work again, Preferences looks and works like the other Form apps, and the agent dock has its button at the top left. diff --git a/README.md b/README.md index 3cffa14..5fb3036 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

    - version 0.15.1 + version 0.15.2 TypeScript Python 3.12 or later macOS, Windows, Linux diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index f496133..e3df1ee 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -2,7 +2,7 @@ Living log of all comment content, explainers, rationale, TODOs, & removed (hashed-out) code for this side of the repo. Source files stay comment-free per dev-rules `sub-skills/hashout-log/SUB-SKILL.md`; everything they would have said lives here, indexed. This file is also the compressed contextual map of this side: read it first, then edit code surgically. -Current build version: v0.15.1 +Current build version: v0.15.2 Last updated: 2026-11-27 (US Eastern) · the lean rows route for the window's list and opening an attachment --- diff --git a/backend/app/__init__.py b/backend/app/__init__.py index 903e77c..c0d4999 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -1 +1 @@ -__version__ = "0.15.1" +__version__ = "0.15.2" diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 40ca10b..ae636f7 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "formcite", - "version": "0.15.1", + "version": "0.15.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "formcite", - "version": "0.15.1", + "version": "0.15.2", "license": "GPL-3.0-only", "dependencies": { "@tauri-apps/api": "2.12.5", diff --git a/frontend/package.json b/frontend/package.json index e4015f5..58f2e2e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "formcite", "private": true, - "version": "0.15.1", + "version": "0.15.2", "description": "FormCite: a local-first personal research library from the Form family", "license": "GPL-3.0-only", "type": "module", diff --git a/frontend/src/version.ts b/frontend/src/version.ts index 4763743..7d28ef8 100644 --- a/frontend/src/version.ts +++ b/frontend/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.15.1'; +export const VERSION = '0.15.2'; diff --git a/native/formcite-style/Cargo.lock b/native/formcite-style/Cargo.lock index 52936fb..f8eff85 100644 --- a/native/formcite-style/Cargo.lock +++ b/native/formcite-style/Cargo.lock @@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "formcite-style" -version = "0.15.1" +version = "0.15.2" dependencies = [ "hayagriva", "pyo3", diff --git a/native/formcite-style/Cargo.toml b/native/formcite-style/Cargo.toml index 1889fb1..3526b56 100644 --- a/native/formcite-style/Cargo.toml +++ b/native/formcite-style/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "formcite-style" -version = "0.15.1" +version = "0.15.2" edition = "2024" rust-version = "1.95" license = "Apache-2.0" diff --git a/native/formcite-style/pyproject.toml b/native/formcite-style/pyproject.toml index 86d914c..56f6fbc 100644 --- a/native/formcite-style/pyproject.toml +++ b/native/formcite-style/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "formcite-style" -version = "0.15.1" +version = "0.15.2" description = "FormCite citation style engine for the FormCite engine service" license = { text = "Apache-2.0" } requires-python = ">=3.10" diff --git a/setup/HASHOUT_LOG.md b/setup/HASHOUT_LOG.md index b8d003a..0f5280c 100644 --- a/setup/HASHOUT_LOG.md +++ b/setup/HASHOUT_LOG.md @@ -2,7 +2,7 @@ Living log of all comment content, explainers, rationale, TODOs, and removed code for the root launcher scripts and the `setup/` suite. The scripts stay comment-free; everything they would have said lives here, indexed. Read this first, then edit the scripts surgically. -Current build version: v0.15.1 +Current build version: v0.15.2 Last updated: 2026-11-27 · initial port of the launcher and setup suite --- diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 39e55e3..e7ac005 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -918,7 +918,7 @@ dependencies = [ [[package]] name = "formcite" -version = "0.15.1" +version = "0.15.2" dependencies = [ "fontdb", "objc2", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ca295fe..df9212d 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "formcite" -version = "0.15.1" +version = "0.15.2" description = "FormCite desktop shell" authors = ["NodeAgentc, Inc."] license = "GPL-3.0-only" diff --git a/src-tauri/HASHOUT_LOG.md b/src-tauri/HASHOUT_LOG.md index 3e75fdd..6b6a303 100644 --- a/src-tauri/HASHOUT_LOG.md +++ b/src-tauri/HASHOUT_LOG.md @@ -2,7 +2,7 @@ Living log of all comment content, explainers, rationale, TODOs, & removed (hashed-out) code for the desktop shell side of the repo. Source files stay comment-free per dev-rules `sub-skills/hashout-log/SUB-SKILL.md`; everything they would have said lives here, indexed. This file is also the compressed contextual map of this side: read it first, then edit code surgically. -Current build version: v0.15.1 +Current build version: v0.15.2 Last updated: 2026-11-26 (US Eastern) · Tauri 2 shell ported from FormTxt, renamed, launch code added --- diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d61e77a..ca2a324 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "FormCite", - "version": "0.15.1", + "version": "0.15.2", "identifier": "ai.nodemode.formcite", "build": { "devUrl": "http://localhost:5330",