Repository navigation
feat(desktop): Activity's row is a View, and every page it opens can get back - #12059
Merged
Archit-lal merged 2 commits intoAug 22, 2026
Merged
Conversation
…get back Follow-up to BasedHardware#12042, which shipped the Activity spine, its navigating chip row and the summary sections. Three things that PR left wrong, plus the five defects an independent review found in it. **The row's header called itself `Filter`.** Its chips open pages; nothing about them narrows a list. The word now follows the behaviour rather than the surface — Home's search results still say `Filter`, because there the chips genuinely do filter in place, and `QueryPanelChipBehavior` is what decides. It was hoisted out of the generic panel so a test can assert the two cases without naming three view types. **`Tasks` and `Rewind` were in the row.** Both already have their own pill in the bar two inches above; a second control to the same place is not a shortcut. The row is now exactly the hub's four pages, and a test pins that — it is the reachability mechanism, so a page dropped from it must fail a test rather than quietly become unreachable. **The row is a one-way door.** It lives on Activity's panel and does not travel, so opening Conversations, Memories or Brain Map left no way back except knowing the top-bar pill was the answer. Each of those pages, and the chat-first Conversations route that mounts its own host, now carries a `‹ Activity` control that names where it goes. Review findings fixed: - **The standalone Memories page lost its glass.** BasedHardware#12042's `PageGlassLane` rule keyed panel-ownership on `.conversations` *and* `.memories`; only the first is the hub. In the modern shell `SidebarNavItem.memories` renders a standalone `MemoriesPage` that paints no ground, so pressing `Activity` and then reaching Memories by a route that does not reset the persisted destination drew its rows onto the wallpaper. The test added with it asserted the wrong claim for that index and locked it in; it now asserts the opposite. - **`SummarySection.id` was the heading.** Model-written blocks repeat headings and may have none, and duplicate `ForEach` ids make SwiftUI drop or duplicate rows. - **Desktop and mobile disagreed on provenance.** Flutter suppresses `sections` when a summarization app produced the summary; desktop rendered them anyway, stacking a second unattributed Omi summary under the app's. Desktop now matches. - **Flutter: an empty-content app result hid the sections and reported "no summary."** `getSummarizedApp()` returned `appResults[0]` without checking it carried anything. - **Flutter: one malformed section killed the whole conversation decode.** The sections loop threw where the `actionItems` and `events` loops beside it tolerate bad entries. Also: `ActivityDestinationChip.hubDestination` is non-optional, so "every chip opens a hub page" is a compiler guarantee; the orphaned `MemoryHubDestination.switcherOrder` is gone with four tests that had become assertions about nothing; and four e2e flows plus several doc comments stop describing the deleted switcher and the retired `Library` pill. Verified: `scripts/swift-test-suites.sh` — 665 suites in isolation, 0 failures. `app/test.sh` — 1421 passed, 5 skipped, 0 failures, each Flutter fix confirmed to fail without it. `check-e2e-flow-coverage.py --strict` — exit 0. Clicked through a real signed build for the `View` header, the four-chip row, and `‹ Activity` on Conversations and Brain Map. INV-NAV-1 INV-UI-1 Failure-Class: FC-mirrored-model-omits-new-member Co-Authored-By: Claude Opus 5 <[email protected]>
… control Co-Authored-By: Claude Opus 5 <[email protected]>
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.
feat(desktop): Activity's row is a View, and every page it opens can get back
Follow-up to #12042, which shipped the Activity spine, its navigating chip row and
the summary sections. Three things that PR left wrong, plus the five defects an
independent review found in it.
The row's header called itself
Filter. Its chips open pages; nothing about themnarrows a list. The word now follows the behaviour rather than the surface — Home's
search results still say
Filter, because there the chips genuinely do filter in place,and
QueryPanelChipBehavioris what decides. It was hoisted out of the generic panel soa test can assert the two cases without naming three view types.
TasksandRewindwere in the row. Both already have their own pill in the bartwo inches above; a second control to the same place is not a shortcut. The row is now
exactly the hub's four pages, and a test pins that — it is the reachability mechanism,
so a page dropped from it must fail a test rather than quietly become unreachable.
The row is a one-way door. It lives on Activity's panel and does not travel, so
opening Conversations, Memories or Brain Map left no way back except knowing the top-bar
pill was the answer. Each of those pages, and the chat-first Conversations route that
mounts its own host, now carries a
‹ Activitycontrol that names where it goes.Review findings fixed:
PageGlassLanerule keyedpanel-ownership on
.conversationsand.memories; only the first is the hub. In themodern shell
SidebarNavItem.memoriesrenders a standaloneMemoriesPagethat paintsno ground, so pressing
Activityand then reaching Memories by a route that does notreset the persisted destination drew its rows onto the wallpaper. The test added with it
asserted the wrong claim for that index and locked it in; it now asserts the opposite.
SummarySection.idwas the heading. Model-written blocks repeat headings and mayhave none, and duplicate
ForEachids make SwiftUI drop or duplicate rows.sectionswhen asummarization app produced the summary; desktop rendered them anyway, stacking a second
unattributed Omi summary under the app's. Desktop now matches.
getSummarizedApp()returnedappResults[0]without checking it carried anything.loop threw where the
actionItemsandeventsloops beside it tolerate bad entries.Also:
ActivityDestinationChip.hubDestinationis non-optional, so "every chip opens a hubpage" is a compiler guarantee; the orphaned
MemoryHubDestination.switcherOrderis gonewith four tests that had become assertions about nothing; and four e2e flows plus several
doc comments stop describing the deleted switcher and the retired
Librarypill.Verified:
scripts/swift-test-suites.sh— 665 suites in isolation, 0 failures.app/test.sh— 1421 passed, 5 skipped, 0 failures, each Flutter fix confirmed to failwithout it.
check-e2e-flow-coverage.py --strict— exit 0. Clicked through a real signedbuild for the
Viewheader, the four-chip row, and‹ Activityon Conversations andBrain Map.
INV-NAV-1
INV-UI-1
Failure-Class: FC-mirrored-model-omits-new-member
Co-Authored-By: Claude Opus 5 [email protected]
Known-red, not caused by this PR
tests/test-desktop-core-harness-readiness-teardown.shfails on a pristine upstream/maincheckout with a clean tree — verified in a separate worktree at d6b9e35. It shells out
to
make dev-upand is state-dependent locally. Separately,RewindCaptureExclusionGenerationTests.testOwnerSnapshotStaysCurrentWhenAuthLeadsUnresolvedRewindDatabasefails at that same pristine baseline: it reads
auth_userIdout of the real machine'sUserDefaults, so it is non-hermetic and depends on who is signed in. It passes under theper-suite isolation
test.shand CI use. Both predate this change and neither touches anysymbol in it.