Skip to content

feat(nsgo): keep the window and filter the notes tree - #285

Merged
bketelsen merged 1 commit into
mainfrom
feat/nsgo-window-and-filter
Nov 25, 2026
Merged

bketelsen merged 1 commit into
mainfrom
feat/nsgo-window-and-filter

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

The 2 things the NSGo client had not done of the kit's standard for an app (frostui's docs/specs/workspaceui.md, rules 7 and 8; frostyard/frostmail's plan 0016, Phase 5).

  • The window is kept (cmd/frostnotes-nsgo/window.go), in the client's storage on the device: its size, its place where the platform reports one (Linux reports none), and the navigation's width. A start shows the window as it was left. A maximized window's size is not kept, nor a size under 480 by 360, and the window does not go under that size (nsgo.WindowConstraints). A browser's window is not kept.
  • A filter over the notes tree (tree.go): the kit's SearchField, "Filter notes". It leaves the notes whose title or path holds every word, inside their folders, all open, and says so when none does. mod+F puts the keyboard in it, from the editor too. It is also what stands over the navigation's rows in FrostMail (its search) and PocketGo (its filter), which the comparison of the 3 windows found missing here.
  • Another vault starts with no filter.

Not done: the notes tree's own width is not kept. The kit's FileExplorer reports no change of it.

Risk tier

Risk tier: 2 — a change of the client's behaviour: 2 keys of the client's storage (window, pane-widths), and a filter of what the tree shows. No path of .github/risk-paths.json is touched. The filter narrows the tree alone: the palette, the vault search and what a note's row opens are the code they were.

Docs housekeeping

  • Cross-links: docs/design/app.md describes the kept window, the filter and the key

Verification

  • make check green (host): exit 0
  • make nsgo-check, in make verify: the suite headless passes, with 3 new tests: TestWindowSizeIsKept (a resize is kept; 300 by 200 is not), TestKeptWindowAndPanesShowAtStart (the app asks for its kept window, the navigation is its kept 300 wide, and a drag of its edge is kept), TestFilterNarrowsTheTree (a title's and a folder's words, no match, and mod+F from the editor)
  • make nsgo-live on Xvfb's X11: 26 passed, 0 failed, 0 skipped. There the kept window is checked by the real window's size, 1000 by 720
  • make nsgo-pictures: 17 of the 25 kept pictures changed (the field over the tree). I looked at 1, a note in source
  • Not run: the web build under Lodge in a browser on this commit; a person's mouse on a real desktop, and so a window's place after a restart on a desktop that reports one; Windows

The device keeps the window's size, its place where the platform
reports one, and the navigation's width, and a start shows the window
as it was left. A field over the notes tree leaves the notes whose
title or path holds its words, and mod+F puts the keyboard in it.
@github-actions github-actions Bot added the level:L3 Skim label Nov 25, 2026
@bketelsen
bketelsen merged commit e63d1a1 into main Nov 25, 2026
15 checks passed
@bketelsen
bketelsen deleted the feat/nsgo-window-and-filter branch November 25, 2026 01:54
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