Skip to content

feat(desktop): Activity's row is a View, and every page it opens can get back - #12059

Merged
Archit-lal merged 2 commits into
BasedHardware:mainfrom
Archit-lal:followup/activity-view-and-back
Aug 22, 2026
Merged

Archit-lal merged 2 commits into
BasedHardware:mainfrom
Archit-lal:followup/activity-view-and-back

Conversation

@Archit-lal

@Archit-lal Archit-lal commented Aug 22, 2026 •

Copy link
Copy Markdown
Collaborator

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 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. fix(desktop): Activity opens what you click, and the conversation summary is whole again #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]

Known-red, not caused by this PR

tests/test-desktop-core-harness-readiness-teardown.sh fails on a pristine upstream/main
checkout with a clean tree — verified in a separate worktree at d6b9e35. It shells out
to make dev-up and is state-dependent locally. Separately,
RewindCaptureExclusionGenerationTests.testOwnerSnapshotStaysCurrentWhenAuthLeadsUnresolvedRewindDatabase
fails at that same pristine baseline: it reads auth_userId out of the real machine's
UserDefaults, so it is non-hermetic and depends on who is signed in. It passes under the
per-suite isolation test.sh and CI use. Both predate this change and neither touches any
symbol in it.

Review in cubic

Archit-lal and others added 2 commits August 22, 2026 12:54
…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]>
@Archit-lal
Archit-lal merged commit 2d35386 into BasedHardware:main Aug 22, 2026
33 checks passed
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.

1 participant