Skip to content

Windows Projects tab: fast on big boards, new project list, easier search, one click opens an item - #115

Merged
lukr-99 merged 14 commits into
mainfrom
claude/projects-tab-afb703
Nov 24, 2026
Merged

lukr-99 merged 14 commits into
mainfrom
claude/projects-tab-afb703

Conversation

@lukr-99

@lukr-99 lukr-99 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

GoalMaker: GM-121, GM-122

The owner asked: "with recent uptick of goalmaker usage and projects tasks being created and used search and filters in the pc projects tab need some heavy optimizations and perhaps rethink the side pane for choosing projects and add easier click through to view the items".

What changed

Speed (GM-121)

  • TaskList.All keeps its read until the tasks table changes, so every page shares one replica read per change.
  • ProjectBoardIndex holds each project's items, open counts, tag links and folded search text (kept for items whose text did not change). Folding plain ASCII skips Unicode normalization.
  • The Projects page reads that index once per change, off the UI thread, gathering bursts of changes into one read. Typing, filters and switching projects only filter what was read.
  • Rows and cards are diffed (CollectionSync), not cleared and refilled; a near-total change (another project) is one Reset.
  • Both searches wait for a 150 ms pause in typing; emptying a box shows everything at once.
  • Each column is a virtualized ListBox that scrolls on its own and draws only the cards in view. A card is glyphs and text with one shared menu (a ui:Button, two ui:SymbolIcons and a ten-item menu per card made each card about 10 ms to draw).
  • The project editor is built only while it shows: filling its hidden boxes cost about 45 ms per project switch.

Project list (GM-122)

  • Pinned projects first (row menu: Pin to the top), then active projects by area, those without an area, and paused or done ones folded away at the end. Headings only when there is more than one group.
  • Each row: area dot, status mark, name, open count and the Doing count in the accent. The selected project is clearly marked.
  • Quick search at the top of the list (Ctrl+P) finds projects by name or key. Enter opens the first, Down goes into the list, and typing on a row types into the box. Items are searched in the one search box below.
  • Pins and recent projects stay on this PC (settings file). The page opens on the project opened last.
  • Below 900 px the list folds to a strip and comes out over the board. In a wide window it folds with the button beside New project.

Easier search (GM-122, the owner's follow-up "and easier search")

  • One search box over the board (Ctrl+F). It searches all projects by default, with an All projects | This project switch beside it. Esc empties it and goes back to all projects.
  • Matching is forgiving: case and accents are ignored, and all words must match, in any order. An id like GM-12 or KLN-5 finds that item directly (feat: the Letter in both apps (M8-08) #12 in the project on show).
  • Results replace the board, grouped by project and column with counts. The project on show comes first, then recent projects; items off the board come last. Matched words are lit up. Click or Enter jumps to the card, with the search narrowed to that project. Items off the board open their page. A project heading opens its board.
  • Chips next to the box: type, priority, status (open, done or dropped; any by default, so done items are found), milestone (by name), and the existing area and tag filter moved beside them. Clear the filters resets all of them.
  • Recent searches (the last 8, on this PC) show under the empty box while it has focus. One click runs one again. A search is remembered on Enter or when a result is opened.
  • No results: "Nothing in Atlas matches." / "Nothing matches in any project.", with Search every project, Clear the filters and Clear the search.
  • Shortcuts: Ctrl+F goes to the search box, even when no project is on show (for example when the area filter hides them all). Ctrl+P goes to the list's project search. Ctrl+K stays the app-wide Go to palette on every page; taking it over on one page would make it behave differently there.

Filter words (also in docs/projects.md, "Searching items"). They combine with the chips:

Word Keeps
#tag items with that tag (#12, digits only, is an id)
is:open, is:done, is:dropped items in that state
is:task, is:idea, is:bug, type:bug items of that type
p:high, priority:high urgent, high, normal or low
m:M3, milestone:M3 items of a milestone with that name

An unknown filter word, like is:soon, is searched as a plain word.

How they combine:

  • Values of one kind are alternatives: type:bug type:idea, or the Bug chip with type:idea typed, finds both.
  • Tags must all be present: #release #ui.
  • Different kinds must all hold: is:open p:high.
  • Any whitespace separates words. Double quotes keep a phrase or a name with spaces together: "board sync", m:"Q4 launch", #"to read". The milestone chip also lists every name.

Opening items (GM-122)

  • One click on a card opens it on the task page, as a tap does on Android. The dots or a right click show the menu.
  • Up and Down walk a column, Left and Right go to the next column, Enter opens, the menu key shows the menu, Ctrl+F goes to the board search, Esc empties it.
  • Esc on the task page goes back (unless typing in a box), and the board picks the same card again.

Also

  • fix: ThemeApplier.Face built a pack:// URI before the scheme was registered. SettingsViewModelTests failed when run alone (20 of 22 on main) or when test order changed. It now names the scheme through PackUriHelper.
  • Five new entries in docs/pitfalls.md, and a Windows section in docs/projects.md. The general WPF ones are filed as CodePrint Release 1.12.0 #77 (#pitfall).

Review fixes (after BLOCK)

  1. CI validate: the card's dots button is named for screen readers. The column, the list's search row and the search row are Grids written in reading order, so Tab follows the screen. tools/check_accessibility.py passes, and so do the other codeprint.yml scripts.
  2. TaskList.All() race: the version check and the store happen under one lock, which the change handler also takes. TaskListTests.ARaceWithAChangeDuringTheReadKeepsNothingOld writes a change in the middle of a read through a wrapping replica (RacingReplica).
  3. Timing asserts removed.
    • ProjectPaneTests now checks that typing, chips, filters, the made-by switch, switching projects and the list search cause no replica reads (ReplicaReads), and that a burst of 20 changes in one transaction causes one read.
    • ProjectBoardIndexTests checks that the index finds exactly what a plain scan of 3,000 items finds, and that a new index picks up a changed title.
    • Timings stay only in the explicit ProjectsSpeedReport.
  4. Esc on the task page: EscapeKey.BelongsTo leaves Esc to a text box, ComboBox, DatePicker, anything in a popup and menus. EscapeKeyTests covers each case.
  5. No replica read on the UI thread: Rebuild() never reads. A read that a newer change overtook is dropped, and another off-thread read is scheduled. Refresh() reads off the UI thread too.

Nits:

  • The results stop at the 200 cap, with no project headings after it, and "N more" shows. A test covers this.
  • Search splits on any whitespace and supports quoted values.
  • The combining rules are documented.
  • Ctrl+F works with no project on show.
  • The shortcuts are as above.

Numbers

ProjectsSpeedReport (explicit test), on LargeBoard: 40 projects, 3,000 items (600 in one project), 20 tags, done and dropped items, plus 1,000 plain tasks. The real board has 25 projects and about 1,200 items. Times are on the UI thread with the page drawn offscreen at 1280x860. Main and this branch ran back to back on this PC under 85 to 100% CPU load from other work, so absolute numbers are high. Medians:

main this branch
a key in the board search (after the pause) 814 ms 46 ms (view model 8.5)
area filter on or off 1,704 ms 20 ms
who-made-it switch 1,704 ms 64 ms
switch project 533 ms 79 ms
a change from sync, UI thread 1,842 ms 3.3 ms (read off the UI thread)
come back to the tab (page kept) 1,402 ms 13 ms
open the tab, warm 4,588 ms 428 ms (291 in a quieter run)
open the tab, first time 6,120 ms 625 ms
view model alone: switch / a key 64 / 59 ms 0.7 / 1.0 ms

Not met: the made-by switch (64 ms) and opening the tab fresh are over the 50 ms and 300 ms targets on this loaded PC. Both are WPF drawing new cards; the page chrome alone is about 130 ms. Opening the tab again uses the kept page (13 ms).

Guards: ProjectPaneTests.OnALargeBoardSearchingFilteringAndSwitchingStayQuick (view model median under 50 ms on LargeBoard), ProjectBoardIndexTests.ALargeBoardIsIndexedAndSearchedQuickly, ProjectsPageScrollTests.ALongColumnScrollsOnItsOwnAndDrawsOnlyTheCardsInView.

Critique of the old list

  • No way to find a project: 25+ projects in one long list of tall bordered buttons, about 14 visible.
  • No order but status: no pins, no recents, no areas, though projects have areas.
  • Counts were three bare numbers ("110 110 110") with no labels; "Active" repeated on every row.
  • The project on show was not marked in the list.
  • It could not fold: in a narrow window it kept 240 px and the board showed 2.5 columns.
  • The whole page scrolled as one, so the search and quick line scrolled away with the cards.
  • Opening an item took the dots and then Open, with no keyboard path.
  • Search covered the project on show only. It had no filters beyond made-by, area and tag, gave no sign when nothing matched, and had no history.

Screenshots

Before (main), normal and narrow:
before normal light
before narrow dark

After, normal (light) and wide (dark):
after normal light
after wide dark

Search over every project, grouped, matched words lit up (sync crash is:open):
search light
search dark

Chips (Bug, Urgent) with a word, wide:
chips dark

Nothing found in one project:
nothing light
nothing dark

Finding a project in the list:
find project light

Narrow: folded to a strip, and out over the board:
narrow dark
narrow list light
narrow list dark

More on the screenshots/gm-121-projects branch (delete after review). Re-render with PageSnapshots.ProjectsLargeBoard.

Tests

  • dotnet format --verify-no-changes clean, build 0 warnings.
  • dotnet test --solution windows\GoalMaker.slnx: 1,219 total, 1,183 passed, 35 skipped, 1 failed. The failure is SingleInstanceTests, because the owner's GoalMaker is running; it passed alone (2 of 2) earlier in this branch.
  • Kiln ci.yml: run 20261124-140638-990108 succeeded on 610f550 (supabase-connector, android, android-lint, windows-core).
  • All codeprint.yml checks run locally and pass: validate_repository, the replica migrations, synced tables, design tokens, prompts, tally rules, check_accessibility, own copy and PowerShell syntax.
  • New: ProjectSearchTests (grouping and counts, forgiving words and highlights, ids, filter words and chips, no results, jump, recent searches) and Core tests for the filter words and highlight ranges.

Manual test list

  1. Projects tab with many projects: the list shows Pinned, then areas, then "Paused and done" folded; open it.
  2. Right click a project, Pin to the top; it moves to Pinned. Unpin.
  3. Ctrl+P, type part of a project name, Enter: that project opens and the box empties.
  4. Ctrl+F, type two words from an item in another project in the reverse order and without accents: results are grouped by project and column with counts, and the words are lit up. Click one: the board switches, the card is picked and in view, and the scope says This project.
  5. Type KLN-5 (or another real id): that item is found directly.
  6. Try #tag, is:done, type:bug, p:urgent, m:M3, and the chips. Clear the filters resets them.
  7. Search an item that left Done: it says "Done, off the board" and opens its page.
  8. Narrow to This project and search a word only other projects have: "Nothing in ... matches." with Search every project.
  9. After a few searches, click into the empty box: recent searches show; click one.
  10. Click a card (not the dots): the task page opens. Esc: back on the board with the same card picked.
  11. Tab into a column, Up and Down, Left and Right, Enter, and the menu key.
  12. With This project on, typing narrows the cards after a short pause; Esc empties the box and goes back to All projects.
  13. Make the window narrow (under 900 px): the list folds to a strip; the strip buttons bring it out over the board; picking a project puts it away.
  14. With Claude adding items through the connector, typing in the searches stays smooth.
  15. Edit a project, then Cancel and Save: the editor still works.

🤖 Generated with Claude Code

SettingsViewModelTests failed when run on their own, or when the order of
the test classes changed: ThemeApplier.Face wrote out a pack URI before any
Application had registered the scheme, and Uri threw Invalid port
specified. Naming the scheme through PackUriHelper registers it.
TaskList.All keeps its read until the tasks table changes, so every page
that redraws after a change shares one read of the replica. A version
counter stops a read that raced a change from being kept.

ProjectBoardIndex holds what the Projects page shows: each project's items
and open load, the tag links, and every item's title and notes folded for
search, kept for the items whose text did not change. ProjectSearch folds
the query once. Folding plain ASCII skips Unicode normalization.

Refs GM-121.
The Projects list pins projects to its top and opens on the project
opened last. Both lists are this PC's own, like the folded board columns.

Refs GM-122.
CollectionSync brings an ObservableCollection in line with what it should
hold by removing, moving and inserting only what differs, so rows and cards
that did not change keep their containers, the keyboard and the scroll
position. A ShownCollection that changes almost wholly, such as another
project's board, is replaced in one Reset instead of hundreds of changes.
Cards and archived rows remember the item they were drawn from.

Refs GM-121.
…its list

Speed (GM-121), on a board of 40 projects and 3,000 items:
- the page reads the projects and items once per change, off the UI
  thread, into a ProjectBoardIndex; searching, filtering and switching
  projects only filter what was read, and redraw through CollectionSync;
- both searches look once typing pauses for 150 ms;
- each column is a virtualized list that scrolls on its own and draws
  only the cards in view; a card is glyphs and text, with one shared menu;
- the project editor is made only while it shows.

The project list (GM-122): pinned projects first, then by area, paused and
done ones folded away at the end; each row shows its open and Doing counts
and its area's dot. A quick search (Ctrl+P) finds projects and items in
every project, says where an item is, and takes the board to its card.
The list folds to a strip, and comes out over the board below 900 px.

Opening items (GM-122): one click on a card opens it, Enter opens the
picked card, Left and Right go to the next column, the menu key shows its
menu, Esc on the item's page goes back and the board picks the same card.

LargeBoard builds the big board for tests; ProjectsSpeedReport measures
the page drawn; ProjectPaneTests holds a time budget for the view model.
Adds what GM-121 and GM-122 taught to docs/pitfalls.md: a hidden form
still pays for its boxes, every item's template is paid per row drawn,
MouseLeftButtonUp does not bubble, a page put back in one pass fires no
Loaded, and a pack URI fails before WPF starts.
Copilot AI balanced review requested due to automatic review settings November 24, 2026 13:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

ProjectSearch reads #tag, is:open/done/dropped, is: or type: task, idea or
bug, p: or priority:, and m: or milestone: from the query, beside the
words and an item id, and takes the same from the chips. A filter word
that names nothing it knows is searched as a word. ProjectBoardIndex
knows tag and milestone names for them and finds the items of every
project. SearchHighlight gives the parts of a title the words match,
ignoring case and accents.

Refs GM-122.
…ped results

The owner asked for easier search. The box over the board (Ctrl+F) looks
in every project by default, and All projects | This project narrows it
to the board on show. Results take the board's place, grouped by project
and column with counts, the matched words lit up; a click or Enter jumps
to the card with the search narrowed to its project. Chips beside the box
pick type, priority, status (done included) and milestone, next to the
area and tag filter, and Clear the filters lets go of all of them. Recent
searches show under the empty box. When nothing is found, the page offers
to search every project, clear the filters or clear the search.

The project list's quick search now finds projects only, so items are
searched in one place.

Refs GM-122.
@lukr-99 lukr-99 changed the title Windows Projects tab: fast on big boards, new project list, one click opens an item Windows Projects tab: fast on big boards, new project list, easier search, one click opens an item Nov 24, 2026
The version check and the keeping of a read of every task ran apart, so a
change between them left an old read kept until the next change. Both now
happen under one gate with the change's bookkeeping. A test writes a
change in the middle of a read and checks the next read sees it.

Refs GM-121.
Any whitespace parts the words of a search, and double quotes keep a
phrase or a name with spaces together: "board sync", m:"Q4 launch",
#"to read". The large-board test now checks the index finds what a plain
scan finds, instead of a time budget that a busy machine can miss.

Refs GM-122.
Esc on the task page went back even when it was closing a ComboBox's or a
DatePicker's list, which could lose an edit. EscapeKey says when Esc
belongs to the focused control: a text box, a picker, anything in a popup
or a menu.

Refs GM-122.
…ts Tab order

- A change that overtook a read no longer made the next redraw read the
  replica on the UI thread; another read is scheduled instead, and
  Refresh reads off the UI thread too. ReplicaReads counts reads, and the
  large-board test checks typing, filters and switching read nothing,
  instead of a time budget.
- The search results stop at their cap: no project heading without its
  items after it.
- The search box shows whenever there are projects, so Ctrl+F reaches it
  with no project on show.
- The column, the list's quick search row and the search row are grids
  written in reading order, so Tab follows the screen, and the card's dots
  are named for screen readers (tools/check_accessibility.py).
- docs: how the chips and filter words combine, quoted values, and Ctrl+F.

Refs GM-121, GM-122.
@lukr-99
lukr-99 merged commit b06fcd1 into main Nov 24, 2026
7 checks passed
@lukr-99
lukr-99 deleted the claude/projects-tab-afb703 branch November 24, 2026 14:16
@lukr-99 lukr-99 mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants