M1: Home & Posts list (S1.1) #17

Closed
opened 2026-08-28 18:33:06 +02:00 by AlexKucera · 2 comments
Owner

What to build

The writer opens Museion and lands in the workspace shell from the design contract (ref/Web-Prototype): nav rail (Posts, Sessions, Learnings, Settings) with the Posts pane listing the Posts of the Museion Home — ~/Museion by default, editable in Settings, repoint-only (Museion never moves content). The list mirrors what is on disk, empty state included. Sessions, Learnings and Settings panes exist as navigation targets (placeholders acceptable until their tickets land).

Acceptance criteria

  • Nav rail and Posts pane follow the design contract's tokens and layout geometry
  • Posts list mirrors the Home's posts/ folder; empty state handled
  • Home path editable in Settings; repoint-only semantics (no content is ever moved)
  • Sessions/Learnings/Settings reachable from the nav rail

Blocked by

None — can start immediately.

[Generated by AI]

## What to build The writer opens Museion and lands in the workspace shell from the design contract (`ref/Web-Prototype`): nav rail (Posts, Sessions, Learnings, Settings) with the Posts pane listing the Posts of the Museion Home — `~/Museion` by default, editable in Settings, repoint-only (Museion never moves content). The list mirrors what is on disk, empty state included. Sessions, Learnings and Settings panes exist as navigation targets (placeholders acceptable until their tickets land). ## Acceptance criteria - [ ] Nav rail and Posts pane follow the design contract's tokens and layout geometry - [ ] Posts list mirrors the Home's `posts/` folder; empty state handled - [ ] Home path editable in Settings; repoint-only semantics (no content is ever moved) - [ ] Sessions/Learnings/Settings reachable from the nav rail ## Blocked by None — can start immediately. [Generated by AI]
AlexKucera added the ready-for-agent label 2026-08-28 18:33:06 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:41 +02:00
AlexKucera self-assigned this 2026-10-01 12:17:56 +02:00
Author
Owner

Resolved on branch m1-home (worktree Museion-m1, off origin/main) — commit 804b588.

All four AC verified:

  • Nav rail + Posts pane built from the contract's tokens/geometry (rail 56, library 232, editor ≥420, mentor 356; DesignTokens.swift extracts the export's :root + grid). Column collapse mirrors the export's media queries (library <1100, mentor <920 budget) so narrow windows never clip — first build's fixed 1064pt minWidth clipped the user's 900pt window live; fixed per the export's responsive contract.
  • Posts list mirrors posts/ on disk: PostLibrary.scan reads posts//post.md, skips lazy folders (no post.md yet), loose files, hidden dirs; Pass State groups + origin meta; empty state; lenient frontmatter (pass_state/origin, First Draft/writer defaults — corpus posts ship bare; write-side key format is #18's to pin).
  • Home editable in Settings (NSOpenPanel), repoint-only copy in-UI, persisted UserDefaults, default ~/Documents/Museion (b3daac9 — note the issue body still says ~/Museion; the docs commit moved it).
  • Sessions/Learnings reachable as nav targets (honest placeholders until #28/#26); Settings real.

Verification: build SUCCEEDED; full suite TEST SUCCEEDED 52/52 (7 new PostLibraryTests); swiftlint 0 violations, SwiftFormat clean. Live-launch verified by screenshot (gate pass → workspace: rail/posts/editor/mentor all rendered); final narrow-width visual pass blocked by a fullscreen break timer — left as a one-look manual item in the devlog.

Note for #18: Post lifecycle owns New Post button, lazy folder creation, slug naming, rename/delete round-trips, and pinning the frontmatter key format written on save. Scan currently fires on .task(id: home) only — re-scan triggers belong to #18's lifecycle work.

Devlog: docs/devlog/20261001-issue17-home-posts-list_log.md

[Generated by AI]

Resolved on branch `m1-home` (worktree Museion-m1, off origin/main) — commit `804b588`. **All four AC verified:** - Nav rail + Posts pane built from the contract's tokens/geometry (rail 56, library 232, editor ≥420, mentor 356; DesignTokens.swift extracts the export's :root + grid). Column collapse mirrors the export's media queries (library <1100, mentor <920 budget) so narrow windows never clip — first build's fixed 1064pt minWidth clipped the user's 900pt window live; fixed per the export's responsive contract. - Posts list mirrors posts/ on disk: PostLibrary.scan reads posts/<id>/post.md, skips lazy folders (no post.md yet), loose files, hidden dirs; Pass State groups + origin meta; empty state; lenient frontmatter (pass_state/origin, First Draft/writer defaults — corpus posts ship bare; write-side key format is #18's to pin). - Home editable in Settings (NSOpenPanel), repoint-only copy in-UI, persisted UserDefaults, default ~/Documents/Museion (b3daac9 — note the issue body still says ~/Museion; the docs commit moved it). - Sessions/Learnings reachable as nav targets (honest placeholders until #28/#26); Settings real. **Verification:** build SUCCEEDED; full suite TEST SUCCEEDED 52/52 (7 new PostLibraryTests); swiftlint 0 violations, SwiftFormat clean. Live-launch verified by screenshot (gate pass → workspace: rail/posts/editor/mentor all rendered); final narrow-width visual pass blocked by a fullscreen break timer — left as a one-look manual item in the devlog. **Note for #18:** Post lifecycle owns New Post button, lazy folder creation, slug naming, rename/delete round-trips, and pinning the frontmatter key format written on save. Scan currently fires on .task(id: home) only — re-scan triggers belong to #18's lifecycle work. Devlog: docs/devlog/20261001-issue17-home-posts-list_log.md [Generated by AI]
Author
Owner

Finish-audit pass on the #17 work: three fresh-context reviewers (ponytail / security / general) over 804b588; accepted fixes landed in 765d32d on m1-home.

Accepted: scan moved off MainActor (Task.detached — big Homes no longer freeze the UI), PostLibrary struct folded into Post.scan, hidden + symlinked dirs now actually skipped (the doc claim had no code; test de-vacuated), unterminated frontmatter returns untitled instead of leaking pass_state as the Title, quoted YAML values unquoted, leading blank line before --- tolerated, #-only body reads untitled, persisted Home validated isFileURL. Dead code out: radiusLarge, editorMinWidth, homeKey, PaneHeader trailing slot, Settings ScrollView, PostRow fill dance.

Discarded as speculative: read-cap on file heads, UserDefaults round-trip test.

Verification: 56/56 tests (4 new edge cases), lint 0, build green.

[Generated by AI]

Finish-audit pass on the #17 work: three fresh-context reviewers (ponytail / security / general) over 804b588; accepted fixes landed in 765d32d on `m1-home`. Accepted: scan moved off MainActor (Task.detached — big Homes no longer freeze the UI), PostLibrary struct folded into Post.scan, hidden + symlinked dirs now actually skipped (the doc claim had no code; test de-vacuated), unterminated frontmatter returns untitled instead of leaking pass_state as the Title, quoted YAML values unquoted, leading blank line before --- tolerated, #-only body reads untitled, persisted Home validated isFileURL. Dead code out: radiusLarge, editorMinWidth, homeKey, PaneHeader trailing slot, Settings ScrollView, PostRow fill dance. Discarded as speculative: read-cap on file heads, UserDefaults round-trip test. Verification: 56/56 tests (4 new edge cases), lint 0, build green. [Generated by AI]
Sign in to join this conversation.