Skip to content

feat(nsgo): list a vault's notes as a tree - #280

Merged
frostyard-machines merged 1 commit into
mainfrom
feat/nsgo-notes-tree
Nov 25, 2026
Merged

frostyard-machines merged 1 commit into
mainfrom
feat/nsgo-notes-tree

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

The NSGo client's notes are a tree, in place of a sidebar with a section for each folder's path (frostyard/frostmail's plan 0016, Phase 5, which starts here at the owner's word).

  • The tree (cmd/frostnotes-nsgo/tree.go): NSGo's ui.Tree. A folder holds its folders, by name, then its notes, and opens and closes by its chevron or a double press. The old sidebar showed no folder inside another: Plants/Herbs was a section of its own beside Plants.
  • Rows are the kit's NavLabel, with a folder's or a note's icon, on the kit's soft rows, as FrostMail's navigation draws them.
  • Opening. A press of a note's row opens it, and the open note's row is the chosen one. In the narrow layout, the way back to the tree leaves no row chosen, so a press of the same note opens it again.
  • A vault's folders start open. notesd lists notes and no folders, so a folder shows because a note is in it or under it: an empty folder is not shown, as before.

The tours' vault gains a note in a folder inside a folder, so the kept pictures show the nesting.

Not in this change: the editor's row of controls, which the plan moves to the shell's toolbar; the client's own helpers that the kit's parts replace.

Risk tier

Risk tier: 2 — a change of how the notes are listed and chosen. How a note opens, saves and is left (open, leave) is the code it was; the tree calls open as the sidebar did.

Docs housekeeping

  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan): docs/design/app.md describes the tree and the suite; no new doc

Verification

  • make check green (host): exit 0, golangci-lint 0 issues
  • make nsgo-check, in make verify: the suite headless, 8 workflows; 2 are new (TestBuildTreeNestsFoldersBeforeNotes, TestNotesTreeNestsFoldsAndOpens)
  • make nsgo-live on Xvfb's X11: 17 passed, 0 failed, 0 skipped
  • make nsgo-pictures: the 22 kept pictures; 18 changed
  • Not run: a person's mouse on a real desktop; the web build under Lodge in a browser; Windows

The NSGo client's notes are NSGo's tree: a folder holds its folders,
then its notes, and opens and closes. They were a sidebar with a
section for each folder's path, which showed no folder inside another.
A press of a note's row opens it, and the open note's row is the chosen
one. The tours' vault gains a note in a folder inside a folder.
@github-actions github-actions Bot added the level:L3 Skim label Nov 24, 2026
@frostyard-machines
frostyard-machines merged commit 828ad96 into main Nov 25, 2026
15 checks passed
@frostyard-machines
frostyard-machines deleted the feat/nsgo-notes-tree branch November 25, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants