diff --git a/CHANGELOG.md b/CHANGELOG.md index 37e446a..739cf31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## 0.13.0 + +Themes can be picked from one list, the title field has a setting, and removing a row no longer moves the rows below it. + +### New +- **All themes:** Preferences keeps the System, Light and Dark choice and the two theme grids, and adds one list of all 21 themes. Picking a row sets the theme and switches the appearance to its kind in one step. The grids and the list always agree. +- **Title field setting,** under Details pane in Preferences: "Fixed height" keeps the title box three lines tall and scrolls inside it, so nothing below it moves when you choose another item. "Grow with the title" shows the whole title and moves the fields below it. Fixed height is the default. +- **The splash page** shows the theme you chose, where it can read it. + +### Changed +- **Saving a title:** Shift+Enter saves, and so does Ctrl or Cmd+Enter. Enter alone does nothing in the title. Leaving the field saves as before, and Escape puts the saved title back. The other one-line fields still save on Enter. +- **Connections** words a request the way an app's own question does: "Asks to search, cite and add to your FormCite library", or "Asks to search and cite from your FormCite library" for reading only. +- **Duplicates and Trash:** a merged, restored or deleted row stays in place as a quiet line ("Merged", "Restored", "Deleted") until the list is next loaded, so the rows below it do not jump. + +### Fixed +- Choosing an item no longer moves the fields under the title (with the default Fixed height). +- Connections no longer leaves a gap under its opening sentence. +- Saving the appearance no longer drops other values stored beside it. + +### Known issues +- In the desktop app the splash follows the system's light or dark setting, not a named theme, because it cannot read the window's saved choice there. +- A merged set of duplicates leaves a tall blank space until the list is next loaded. +- With "Grow with the title" chosen, the fields below the title move when the title's height changes. + +### Under the hood +- Not run for this version: the desktop shell was not compiled, and nothing ran on macOS or Windows. + ## 0.12.0 FormCite gets the Form family's themes, a reshaped Add dialog, a live dot in the sidebar head and a new splash page. diff --git a/README.md b/README.md index 6e9b1a0..2b2c7b4 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@
-
+
diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md
index 1f873a7..1ec32e1 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.12.0
+Current build version: v0.13.0
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 ea370a8..f23a6b3 100644
--- a/backend/app/__init__.py
+++ b/backend/app/__init__.py
@@ -1 +1 @@
-__version__ = "0.12.0"
+__version__ = "0.13.0"
diff --git a/docs/CITE_SERVICE.md b/docs/CITE_SERVICE.md
index 3053b6a..172ac05 100644
--- a/docs/CITE_SERVICE.md
+++ b/docs/CITE_SERVICE.md
@@ -296,7 +296,7 @@ The JSON on stdout is `{"file", "entries": [{"time", "host", "name", "token_id",
The cite service speaks plain HTTP with JSON bodies, not JSON-RPC. A host that offers its add-ons a JSON-RPC call into FormCite (form.ext's `fcite.call`) turns these answers into its own error codes: a refusal (403) into its "denied" code, and a method the host does not know into -32601. FormCite never answers a JSON-RPC code. For a route it does not have it answers Starlette's own 404 `{"detail":"Not Found"}` to a `GET` and 405 `{"detail":"Method Not Allowed"}` to a `POST`, with or without a token.
-The consent sentence the owner approved for form.ext's `fcite.addon` permission is "Let {Name} search, cite and add to your FormCite library?". That sentence is the host's own prompt. FormCite's approval is a second, separate consent in its Connections view, which shows the request as "Asks to read and add to your library" with Approve, Approve reading only and Deny.
+The consent sentence the owner approved for form.ext's `fcite.addon` permission is "Let {Name} search, cite and add to your FormCite library?". That sentence is the host's own prompt. FormCite's approval is a second, separate consent in its Connections view, which shows the request as "Asks to search, cite and add to your FormCite library" (or "Asks to search and cite from your FormCite library" for a read-only request) with Approve, Approve reading only and Deny.
## Run against a real engine (2026-11-27)
diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md
index 4f1e854..d790fe9 100644
--- a/frontend/HASHOUT_LOG.md
+++ b/frontend/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.12.0
+Current build version: v0.13.0
Last updated: 2026-11-26 (US Eastern) · window skeleton: shell, engine store, window key, health status
---
@@ -456,3 +456,15 @@ New in v0.12.0 (2026-11-27). Every theme from form.md (`web/src/ui/theme/tokens.
## src/ui/status.ts, src/styles/side.css, public/splash/ {#src-live-dot-splash}
New in v0.12.0 (2026-11-27). The sidebar head carries the engine's live dot and the version, as form.md's `sidebar__version` does (`web/index.html`, `web/src/styles/pages.css` `.live-dot`, `web/src/ui/status.ts`). `bindStatus` appends `.fc-sb-live` to `.fc-sb-head` once, right after `mountOnce` and before `revealApp`, so the box is there at first visible paint; the version text is `VERSION` from `version.ts` and never changes. The dot's only moving part is `data-state`: `live` (link up), `reconnecting` (first check, and the first 30 s after a live engine stops answering), `down` (after that, or never reached). `side.css` widens the head grid to a third `auto` column; that rule belongs in `shell.css` beside `.fc-sb-head`. `public/splash/index.html` is the family card from form.md and FormLedger (`src-tauri/splash/index.html`) with FormCite's icon (`assets/brand/formcite_icon_dark.png` and `_light.png` at 256 px) and the window's pre-paint read of `formcite.theme`, so it is `#08080a` or `#f3f1ed` like the window it hands over to; the named theme in `formcite.look` is not read, so an Ocean window gets the plain dark card. Checked in a private built copy with 2,000 items, CPU 4x, 400 ms, 50 kB/s: engine stopped by pid and started again, dot `live`, `reconnecting` at 4.1 s, `live` 10.1 s after the start; in a second run held stopped 38 s, `down` at 34.3 s and `live` 6.0 s after the start; layout shift 0 with and 0 without input in both; splash and first window paint matched in all six cases (system light or dark, saved none, light, dark).
+
+## src/ui/themes.ts, src/ui/preferences.ts, src/styles/preferences.css, public/splash/ {#src-theme-list}
+
+New in v0.13.0 (2026-11-27). Themes can be chosen both ways, as the owner asked. The mode select and the two swatch grids work as in v0.12.0; under them sits "All themes", a `ul[role="listbox"]` of the 21 themes (`ALL_THEMES` in `ui/themes.ts`, built from `DARK_THEMES` and `LIGHT_THEMES`, each named "Label · dark" or "Label · light"), seven 36 px rows tall with its own scroll, built once in the shell. Picking a row calls `setLook` for that kind and `chooseTheme(engine, kind)` in one step, so the window shows it at once. There is no second key: the chosen row is worked out each time by `shownTheme(mode)` from `formcite.look` and the mode (System follows `prefers-color-scheme`, and `onSystemKind` refreshes the list when the system flips), and the mode row shows "Following the system (dark|light)" in a reserved third column. A pick writes `aria-checked`, `aria-selected`, the hint text and the list's `scrollTop` only; Up and Down on the focused list pick the next row. form.md shows its long choices (language, region, time zone in `web/src/ui/preferences.ts`) as native selects; a listbox was used here because each row carries a swatch. The Details pane section holds `div.fc-pref-slot[data-slot="detail"]`, empty, 36 px tall from first paint, for the Title field control the orchestrator mounts. `public/splash/index.html` now reads `formcite.look` too and paints body, border, text and bar from a table of ground, card (`--border-strong`), text (`--text-muted`) and bar (`--surface-2`) per theme id; that table MUST be kept in step with `styles/themes.css` by hand, because the splash paints before any stylesheet. The default themes and an unreadable store (the desktop shell's splash on another origin) keep the old system light or dark card. Checked in a private built copy with 2,000 items, CPU 4x, 400 ms, 50 kB/s, fresh engine per load: opening Preferences 0 and 0; five list picks (Ocean, Sage, AMOLED, Paper, Violet; three real clicks, two script clicks) 0 and 0, 1,151 nodes before and after each, mode following the kind every time; grid picks and three mode switches 0 and 0, 1,151 nodes; first paint in Ocean, Sand and AMOLED `#06131c`, `#efe8da`, `#000000` at DOMContentLoaded and the splash the same color in each; the splash on another origin `#f3f1ed` with no table read.
+
+## src/ui/detail.ts, src/styles/detail.css, src/engine/preferences.ts, src/ui/pref-detail.ts {#src-title-field-mode}
+
+New in v0.13.0 (2026-11-27). Title keys, as the owner chose: Shift+Enter saves, Ctrl or Cmd+Enter also saves, plain Enter is swallowed and does nothing (a title has no line breaks), Escape puts the saved value back and leaves the field, and blur saves exactly as in v0.12.0 (the shared `blur` listener calls `commit`, which sends nothing when the value is unchanged). `span.fc-dt-hint` "Shift+Enter to save" sits in the title row's label line from the shell (`grid-row: 1`, `justify-self: end`), so it costs no space; the textarea points at it with `aria-describedby`. Enter in the other fields is unchanged and differs from the title: text inputs (Date, Container, Volume, Issue, Pages, DOI, URL) save on plain Enter, Abstract inserts a line and saves on Ctrl or Cmd+Enter, creator rows save on Enter (and add a row from the last row's Given), tag and note inputs add on Enter, note bodies save on Ctrl or Cmd+Enter. Setting "Title field": `formcite.detail` holds `{titleField: 'fixed'|'grow'}`, default `fixed`, read by `titleFieldMode()` and written by `setTitleFieldMode()` in `engine/preferences.ts`, which also calls the `onTitleFieldMode` listeners. A separate key was chosen because the pre-paint boot rewrites `formcite.theme`; `saveAppearance` now merges into the stored object anyway, so any other key in `formcite.theme` survives a mode or accent change. The details root `.fc-dt` carries `data-title-field` from mount; a change writes that one attribute (and, only where `field-sizing` is unsupported, clears or sets the title's inline height through `fit()`). Fixed: `field-sizing: fixed`, height `3lh` plus padding and border, scrolls inside itself; the part of a fourth line shows in the bottom padding as a hint that more follows. Grow: v0.12.0 behavior, which moves every field below the title by the title's height change, by design. `ui/pref-detail.ts` exports `mountDetailPrefs(slot, engine)`, one `.fc-pr-row` with label and `select#fc-pr-title-field`, built once. Checked in a private built copy, 2,000 items plus a 300-character and a 5-character title, CPU 4x, 400 ms, 50 kB/s, fresh engine per load: Fixed, six alternating selections 0 and 0 with real clicks and 0 and 0 by script call, title box 69 px and the creators box top at 244 px for every item; Grow, 0.03876 without and 0.03876 with input by real clicks, 0.07752 and 0 by script call (title 123 or 36 px, creators top 298 or 211 px). Plain Enter no request and no line break; 100 characters then Shift+Enter one PATCH 200; Ctrl+Enter one PATCH 200; blur one PATCH 200; Escape no request. Changing the select: two `data-title-field` writes and no other mutation in `.fc-dt` from the setting. `fc_exit.py`: every step 0 and 0, "select a row" 0; its title step edits `.fc-dt-input[type='text']`, which since v0.12.0 is Date, so "title_after_in_list" reads false.
+
+## Connections wording, rows that leave without a jump, floating error (v0.13.0)
+
+`ui/connections.ts` `asks` and `may` now read "Asks to search, cite and add to your FormCite library" and "Can search, cite and add to your FormCite library" for scope write, and "Asks to search and cite from your FormCite library" and "Can search and cite from your FormCite library" for read; `Grant` has only those two values. The waiting row shows `may()` alone (the group head already says it waits for the app), so no row wraps at 1400 by 900 or 1100 by 800: every row text is one line of 17 px and every row 109 px. `docs/CITE_SERVICE.md` quotes the new request text. `.fc-conn-error` is absolutely positioned at the bottom of the pane (`.fc-conn` is now `position: relative`) and `:empty` hides it, so the reserved 32 px grid row is gone and the group heads sit directly under the intro. `ui/duplicates.ts` and `ui/trash.ts`: a merge, restore or purge no longer calls `render()` on the click. The node gets `data-gone` ("Merged", "Restored", "Deleted") and `is-gone`; `review.css` hides its children with `visibility` and paints `data-gone` as a muted line in the kept slot, so the height is unchanged and nothing below moves. `paint()` writes only the summary, the empty button and the note; the "Nothing here" note stays off while a placeholder is on screen. The placeholder leaves at the next load (view switch or Look again); `fillGroup` and `fillRow` clear `is-gone`, so a failed request puts the row back in place. Checked in a private built copy, 2,000 items, four DOI pairs, 12 trashed, CPU 4x, 400 ms, 50 kB/s, cache off, fresh engine per load: merge by real click 0.151 before, 0 after; merge by script call 0.1157 before, 0 after; restore by real click 0.0198 before, 0 after; restore by script call 0.0173 before, 0 after.
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 6605c8c..b492ff1 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "formcite",
- "version": "0.12.0",
+ "version": "0.13.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "formcite",
- "version": "0.12.0",
+ "version": "0.13.0",
"license": "GPL-3.0-only",
"devDependencies": {
"typescript": "7.0.2",
diff --git a/frontend/package.json b/frontend/package.json
index 7d6f827..1b33453 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,7 +1,7 @@
{
"name": "formcite",
"private": true,
- "version": "0.12.0",
+ "version": "0.13.0",
"description": "FormCite: a local-first personal research library from the Form family",
"license": "GPL-3.0-only",
"type": "module",
diff --git a/frontend/public/splash/index.html b/frontend/public/splash/index.html
index 0c25630..fe1badf 100644
--- a/frontend/public/splash/index.html
+++ b/frontend/public/splash/index.html
@@ -6,22 +6,51 @@