webui: render the project north star as markdown on the overview (F1, #1873) #1877

Merged
jason.woltje merged 2 commits from org-f1-land into refactor 2026-11-09 19:02:49 +00:00
Owner

The project overview showed the north star as raw text. It now renders through the shared markdown renderer (the same path as Requirements), with a 500-character preview and an "Open north star in Docs" link. The redraw signature includes the north-star content, so a change repaints and an unchanged read keeps scroll and focus.

Proof:

  • New projects-north-star-browser.test.mjs: red on edec4e1d0, green here. It covers a script tag in the north star, the bounded preview, the Docs link and a refresh.
  • org-quick-live.test.mjs gained a records case. GLM retest on a fresh scratch instance: live 4/0 twice.
  • Sol review: APPROVE 0/0/1, 382/0 across 38 files plus 8 hostile payloads. The P3 (a 600-character heading previewed as #…) is fixed in c9c409ac4, with a regression case that is red without the fix.
  • After rebasing onto 791791360: north-star browser 1/0, org-quick-browser 6/0, projects-review 29/0, slice3 8/0, breadcrumb 2/0, archive-style 2/0, w15 remote 4/0, org-live-fix 9/0, markdown-preview 19/0, docs-browser 1/0. The live file skips (4) without a scratch Console.
The project overview showed the north star as raw text. It now renders through the shared markdown renderer (the same path as Requirements), with a 500-character preview and an "Open north star in Docs" link. The redraw signature includes the north-star content, so a change repaints and an unchanged read keeps scroll and focus. Proof: - New `projects-north-star-browser.test.mjs`: red on edec4e1d0, green here. It covers a script tag in the north star, the bounded preview, the Docs link and a refresh. - `org-quick-live.test.mjs` gained a records case. GLM retest on a fresh scratch instance: live 4/0 twice. - Sol review: APPROVE 0/0/1, 382/0 across 38 files plus 8 hostile payloads. The P3 (a 600-character heading previewed as `#…`) is fixed in c9c409ac4, with a regression case that is red without the fix. - After rebasing onto 791791360: north-star browser 1/0, org-quick-browser 6/0, projects-review 29/0, slice3 8/0, breadcrumb 2/0, archive-style 2/0, w15 remote 4/0, org-live-fix 9/0, markdown-preview 19/0, docs-browser 1/0. The live file skips (4) without a scratch Console.
jason.woltje added 2 commits 2026-11-09 19:02:39 +00:00
The overview's Project direction panel printed north-star.md source as one
paragraph. It now mounts the same DOM-building markdown renderer the
requirements view uses, trims the preview to 500 characters at a word
boundary, and links to the full document in Docs. No raw HTML from the
document reaches the page; the fallback is a text node.

Quick Setup leaving no records was not reproduced on 00ef0bd30: all six
steps report done and the records step writes where the project view
reads. org-quick-live gains a records case that checks the six setup
POSTs, the records repository on disk and the live north-star read with
no button press. The manual records button stays for older projects.

Tests: projects-north-star-browser 1/0 (red before the change),
org-quick-live 4/0 twice on a fresh scratch instance.
The word-boundary cut removed everything after '# ' when the first
500 characters were one long heading, leaving '#…'. Keep the hard cut
when the soft cut would leave only a markdown marker. Review P3 on
F1 (#1873).
jason.woltje merged commit c9c409ac4e into refactor 2026-11-09 19:02:49 +00:00
Sign in to join this conversation.