Skip to content

fix(app): swipe to dismiss a Needs attention row in Activity - #25783

Merged
kodjima33 merged 8 commits into
mainfrom
mux/2026-11-19-dismiss-needs-attention
Nov 21, 2026
Merged

kodjima33 merged 8 commits into
mainfrom
mux/2026-11-19-dismiss-needs-attention

Conversation

@kodjima33

@kodjima33 kodjima33 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Activity "Needs attention" rows can only be retried or opened. Rows whose recording has no transcript fail every retry, so they never leave. #25353: one user has about 60 stuck rows back to Oct 19.

The backend already has POST /v1/attention-items/{id}/dismiss (backend/routers/pending_work.py) and the app has dismissAttentionItem, but nothing in app/lib called it.

Prod, read-only Firestore scan of processing_attention_items metadata (2026-11-19 11:06 UTC): 10,536 active items, all conversation_summary_failed, across 1,113 users. 347 users have 5+ active items, 114 have 5+ older than 7 days, and the largest account has 627.

Change

  • Swipe left on a server Needs attention row to dismiss it. The background is neutral grey and says "Dismiss". There is no new button, tab or setting.
  • VoiceOver gets a "Dismiss" custom action on the same rows (the same pattern as conversation screenshots). The existing dismiss string is used, so no new copy.
  • PendingWorkStore.dismiss (injected like retry / markSeen) removes the row at once and calls the endpoint. If the request fails, the row comes back in place with the existing quiet "Something went wrong" line, and a 404 counts as already gone. A read that was already running cannot bring the row back, and an ambiguous earlier retry keeps its idempotency key.
  • When an attention row goes away, Activity's projected failure row for the same conversation would take its place ("Processing Failed"), because an untitled, empty-transcript conversation classifies as failed (backend/utils/conversations/home_step.py). The store now keeps dismissed conversation ids in attentionConversationIds and saves them on the device per account (newest 500), so a dismissed row also stays gone after a relaunch.
  • The saved dismissed list is per account (dismissedAttentionConversations.<uid>). reset() (sign-out, account switch) drops the in-memory copy, so the next account never hides or re-saves the old one's ids.
  • A new attention item for a dismissed conversation takes it off the list, so a new failure shows again.
  • Home's bell skips failed v3 conversations that Activity lists under an attention row or hides after a dismiss, so the dot cannot stay lit with nothing to open (activity_bell_button.dart).

Files: app/lib/services/pending_work/pending_work_store.dart, app/lib/pages/activity/needs_attention_section.dart, app/lib/pages/activity/activity_bell_button.dart, tests, changelog fragment.

Impact estimate

If dismiss ships, monthly churn goes 11.78% → 11.78% (effect unmeasured).

  • A = 11.78% subscriber churn, ACTUAL (runs/2026-11-19/metrics.json, Stripe live, 347 ended / 2,946).
  • Reach: 114 users with 5+ active items older than 7 days, 1,113 with any active item. ACTUAL (prod Firestore metadata scan above, no user content).
  • Rate: there is no Omi comparable for "clearing stale error rows" and no exposure event yet, so the churn effect is not modeled.

Evidence

Simulator, lane sim.2, iPhone 17 Pro iOS 26.4, re-shot 2026-11-21 against main fa56be0. Both builds use the same seeded state: 5 failed-summary attention items, 3 left swipes, then a relaunch.

before-after
dark
largest text

check main fa56be0 this branch 8c3750f
Activity shows 5 rows yes yes
1st swipe left 5 4
2nd swipe 5 3
3rd swipe 5 2
relaunch, reopen Activity 5 2, no projected Processing Failed row
dark ok same
largest text rows already broken same, not changed here

Video (not in git): ~/mobile-ux-agent/runs/2026-11-19/p1/demo.mp4 and demo.gif.

At ship

  • No flags, no new events.
  • Read after a week: rerun the same metadata scan and compare active items per user and users with 5+ items older than 7 days.

Tests

  • flutter test with pending_work_store_test (optimistic removal, restore on failure, 404, read fence, relaunch persistence, failed dismiss forgets the saved id, account switch neither hides nor re-saves the old account's ids, a new failure shows again), pending_work_test (swipe dismisses, VoiceOver custom action present), v3_outcomes_test (a dismissed, still-failed conversation does not light the bell; fails without the bell change), test/pages/activity, notes_attention, needs_attention_capture, processing_today_render, home_v3, sync_attention_evidence: 144 passed, after merging main fa56be0.
  • check_mobile_ux_contract, check_mobile_ui_isolate, check_brand_ui: clean. dart analyze: no issues.

Not verified

  • VoiceOver on a device. Only the widget test checks the custom action.
  • Projected "Processing Failed" rows that never had an attention item still have no dismiss. That was out of scope.
  • Dismissed ids live on one device, per account. Another phone may still show the projected failure row for a dismissed conversation.
  • Largest text: the rows clip on main and on this branch alike (existing bug, not fixed here).
  • No "Clear all" and no backend expiry change; fix(attention): expire non-retryable items #25028 covers expiry.

Product invariants affected

none

Failure-Class: none

UI-Evidence: see the images above (.agent-artifacts/ui-evidence/mux-2026-11-19-dismiss-needs-attention)

View guided diff Turn on auto-fix

Server attention items could only be retried, so rows whose recording has no
transcript stayed forever. PendingWorkStore.dismiss removes the row at once,
calls the existing dismiss endpoint, and puts the row back with the quiet
error line if the request fails. VoiceOver gets a Dismiss custom action.
@kodjima33 kodjima33 added the mux-proposal Mobile UX improver (MUX) proposal; waits for Nik's ship label Nov 19, 2026
@kodjima33
kodjima33 marked this pull request as ready for review November 21, 2026 12:21
@kodjima33
kodjima33 merged commit cdb3fad into main Nov 21, 2026
54 checks passed
@kodjima33
kodjima33 deleted the mux/2026-11-19-dismiss-needs-attention branch November 21, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mux-proposal Mobile UX improver (MUX) proposal; waits for Nik's ship

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant