Skip to content

feat(desktop): toggle reading tasks with undo and follow block links - #190

Merged
bketelsen merged 11 commits into
mainfrom
feat/native-reading-actions
Nov 11, 2026
Merged

bketelsen merged 11 commits into
mainfrom
feat/native-reading-actions

Conversation

@bketelsen

@bketelsen bketelsen commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reading-view task clicks change exactly one original task marker through the shared document and support undo/redo, including notes opened directly in reading mode. Generated Markdown includes an optional source-line map so frontmatter, comments and callouts preserve the edit target; embedded notes remain read-only. Block links resolve to their rendered block and repeated clicks scroll again. Stale actions are disabled and rechecked after synchronizing pending editor changes.

Closes #149. Closes #174. Uses the pinned task-action and anchor capabilities from bketelsen/mygo#2, stacked on its line-style PR. Stacked on #189.

Risk tier

Risk tier: 3 — internal/desktop/reading/view.go is L1. Source edits require the same rendering after buffer sync, a mapped original line and a parsed task marker; generated/embed lines cannot write. Writes use the existing base-aware document save/merge path. The source map is additive and optional; missing maps disable actions.

Docs housekeeping

Updated canonical AGENTS.md, app design, rendering/native UI specs and desktop plan with reciprocal links. The contract changed in YAML and was regenerated, including Go, TypeScript and RPC documentation.

Verification

  • Refreshed branch: mise exec -- make check and make desktop-build passed; Flatpak sources include the merged frostui pin and retain the required MyGo fork hooks.
  • fix(deps): adopt merged frostui and stabilize async checks #191's corrected document/sync test packages passed three complete race runs.
  • Implementation validation: UI checks in nsl passed (821 tests on the combined stack); 10-second Xvfb smoke, vulnerability scan, full Go race suite and all four vault kill/restart scenarios passed.
  • Tests exercise actual task clicks and disk saves, window undo/redo without a visible editor, obsolete rendering/pending buffer rejection, comment/frontmatter/callout mapping and repeated block navigation.
  • Additional integration coverage rejects stale same-vault settings reloads, preserves undo across reading/editing switches and retains reading hooks when remote-image settings recreate the drawer.

Merge order

Remaining merge order: #191 → #188 → #189 → #190. #187 was merged into #188, so its math changes land with #188. Preserve ancestry with merge commits, or rebase the remaining branches after a squash merge. Merge #189 first, then retarget this PR to main. CI and Flatpak workflows are dispatched on this final branch because PR CI is restricted to a main base.

Fresh checks for de1ca45: CI and Flatpak. See each run for its current status.

Update (2026-11-11): moved onto MyGo v0.9.0 by merging

Local results

On each of #188, #189 and #190, these are green:

  • make check
  • go test -race over ./internal/desktop/... and ./internal/render/
  • make desktop-build

make desktop-evidence on #190: the tree at a median of 369 µs, the switcher at 4.8 ms, and a phone edit in 8.7 ms.

Typing cost: about 2.7 ms a keystroke in source mode, and 11.6 to 12.7 ms in live preview, against main's 9.0 ms without per-line styles and the 16 ms budget.

Not verified yet

@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json labels Nov 11, 2026
# Conflicts:
#	docs/design/app.md
#	go.mod
#	go.sum
#	internal/desktop/reading/view.go
#	internal/desktop/reading/view_test.go
#	internal/desktop/window/tabs.go
#	internal/desktop/window/window_test.go
#	internal/render/markdown_test.go
#	packaging/flatpak/go-sources.json
# Conflicts:
#	AGENTS.md
#	go.mod
#	go.sum
#	packaging/flatpak/go-sources.json
@bketelsen bketelsen mentioned this pull request Nov 11, 2026
5 tasks done
Base automatically changed from feat/native-media to main November 11, 2026 18:17
@bketelsen
bketelsen merged commit 812bc59 into main Nov 11, 2026
10 checks passed
@bketelsen
bketelsen deleted the feat/native-reading-actions branch November 11, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L1 Read every line risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

desktop: reading view doesn't follow block links desktop: toggle a task from the reading view

2 participants