Repository navigation
Windows Projects tab: fast on big boards, new project list, easier search, one click opens an item - #115
Merged
Conversation
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.
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.
…settings 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.
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.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Allkeeps its read until the tasks table changes, so every page shares one replica read per change.ProjectBoardIndexholds 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.CollectionSync), not cleared and refilled; a near-total change (another project) is one Reset.ListBoxthat scrolls on its own and draws only the cards in view. A card is glyphs and text with one shared menu (aui:Button, twoui:SymbolIcons and a ten-item menu per card made each card about 10 ms to draw).Project list (GM-122)
Easier search (GM-122, the owner's follow-up "and easier search")
Filter words (also in docs/projects.md, "Searching items"). They combine with the chips:
#tag#12, digits only, is an id)is:open,is:done,is:droppedis:task,is:idea,is:bug,type:bugp:high,priority:highm:M3,milestone:M3An unknown filter word, like
is:soon, is searched as a plain word.How they combine:
type:bug type:idea, or the Bug chip withtype:ideatyped, finds both.#release #ui.is:open p:high."board sync",m:"Q4 launch",#"to read". The milestone chip also lists every name.Opening items (GM-122)
Also
ThemeApplier.Facebuilt apack://URI before the scheme was registered.SettingsViewModelTestsfailed when run alone (20 of 22 on main) or when test order changed. It now names the scheme throughPackUriHelper.docs/pitfalls.md, and a Windows section indocs/projects.md. The general WPF ones are filed as CodePrint Release 1.12.0 #77 (#pitfall).Review fixes (after BLOCK)
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.pypasses, and so do the othercodeprint.ymlscripts.TaskList.All()race: the version check and the store happen under one lock, which the change handler also takes.TaskListTests.ARaceWithAChangeDuringTheReadKeepsNothingOldwrites a change in the middle of a read through a wrapping replica (RacingReplica).ProjectPaneTestsnow 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.ProjectBoardIndexTestschecks that the index finds exactly what a plain scan of 3,000 items finds, and that a new index picks up a changed title.ProjectsSpeedReport.EscapeKey.BelongsToleaves Esc to a text box, ComboBox, DatePicker, anything in a popup and menus.EscapeKeyTestscovers each case.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:
Numbers
ProjectsSpeedReport(explicit test), onLargeBoard: 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: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
Screenshots
Before (main), normal and narrow:


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


Search over every project, grouped, matched words lit up (


sync crash is:open):Chips (Bug, Urgent) with a word, wide:

Nothing found in one project:


Finding a project in the list:

Narrow: folded to a strip, and out over the board:



More on the
screenshots/gm-121-projectsbranch (delete after review). Re-render withPageSnapshots.ProjectsLargeBoard.Tests
dotnet format --verify-no-changesclean, build 0 warnings.dotnet test --solution windows\GoalMaker.slnx: 1,219 total, 1,183 passed, 35 skipped, 1 failed. The failure isSingleInstanceTests, because the owner's GoalMaker is running; it passed alone (2 of 2) earlier in this branch.ci.yml: run 20261124-140638-990108 succeeded on 610f550 (supabase-connector, android, android-lint, windows-core).codeprint.ymlchecks run locally and pass: validate_repository, the replica migrations, synced tables, design tokens, prompts, tally rules, check_accessibility, own copy and PowerShell syntax.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
KLN-5(or another real id): that item is found directly.#tag,is:done,type:bug,p:urgent,m:M3, and the chips. Clear the filters resets them.🤖 Generated with Claude Code