Skip to content

fix(app): remove Today/This week chat scope chips - #12510

Merged
Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
Git-on-my-level:sca-396/remove-timeframe-chips
Sep 1, 2026
Merged

Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
Git-on-my-level:sca-396/remove-timeframe-chips

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Removes the always-on Today / This week composer chips from the Flutter ChatPage (app/lib/pages/chat/page.dart) and the Scope row (Today / This week / Clear) from the web ChatPanel (web/app/src/components/chat/ChatPanel.tsx).
  • Keeps everything the chips fed: backend chat_scope / PageContext fail-closed retrieval, ChatPageContext + sendMessageStreamToServer(..., context:), conversation-detail Ask about this (initialChatContext), the conversation About: {title} chip that clears an active scope, and the web currentContext plumbing (header Context: {title} + context on Ask).
  • Drops the now-unreferenced chatScopeToday / chatScopeThisWeek keys from app_en.arb plus the 48 translations and regenerates the checked-in gen-l10n output. chatScopeAbout and askAboutThisConversation stay (still referenced).

Follow-up to #11206 / #4515: this strips only the timeframe preset UI; #4515's backend hard-scope capability is untouched. Not a revert of #11206.

Why: dogfooding showed the chips look tappable but only preset _chatScope for the next typed Ask — selected vs unselected are near-identical dark pills, PTT/voice never sends the scope, and no visible Scope label makes the state discoverable.

Verification

Flutter (app/):

  • dart format --line-length 120 lib/pages/chat/page.dart → 0 changed
  • flutter analyze lib/pages/chat/page.dart → No issues found
  • bash scripts/analyze_ratchet.sh → passed
  • flutter gen-l10n → checked-in output changes only drop the two chatScope keys
  • bash test.sh → 1656 passed, 5 skipped, 1 failed: conversation_location_capture_test "shares one deadline between capture and compatibility upload" fails only under full-suite load on this machine and passes in isolation (flutter test test/unit/conversation_location_capture_test.dart → 10/10). Timing flake unrelated to this diff (chat page + l10n only).

Web (web/app/):

  • bun run lint → zero findings for ChatPanel.tsx
  • bun run typecheck → clean
  • bunx vitest run src/components/chat → 8 files / 30 tests passed

No device smoke run; the composer change is verified via analyzer, widget suite, and web tests only.

Failure-Class: none

Closes SCA-396

Review in cubic

Git-on-my-level and others added 2 commits August 31, 2026 20:59
The always-on BasedHardware#4515 composer chips only preset _chatScope for the next
typed Ask: selected vs unselected was nearly the same dark pill, PTT/
voice never sent the scope, and there was no visible Scope label. Strip
the timeframe chips from ChatPage; keep the About: {title} chip that
clears an active conversation scope (Ask about this) and all
initialChatContext / sendMessageStreamToServer context plumbing.
_chatScope no longer changes from the composer, so _timeframePreset and
_toggleTimeframe are gone and the chip row renders nothing without a
conversation scope.

chatScopeToday / chatScopeThisWeek are now unreferenced: dropped from
app_en.arb + 48 translations and regenerated gen-l10n output.
chatScopeAbout and askAboutThisConversation stay (still used).

Verification:
- dart format --line-length 120 app/lib/pages/chat/page.dart (0 changed)
- flutter analyze app/lib/pages/chat/page.dart -> No issues found
- bash app/scripts/analyze_ratchet.sh -> passed (improved: 2 ratchets)
- flutter gen-l10n -> only chatScope key removals in checked-in output
- bash app/test.sh -> 1656 passed, 5 skipped; 1 pre-existing flake
  (conversation_location_capture_test 'shares one deadline...') fails
  only under full-suite load, passes in isolation on this tree

Failure-Class: none
Co-authored-by: multica-agent <[email protected]>
Same BasedHardware#4515 strip as the app side: the Scope row (Today / This week /
Clear) only preset a date window on currentContext that the user could
not see anywhere else once set. Remove the row, activeTimeframePreset,
and applyTimeframePreset; keep currentContext plumbing for
conversation/task/memory (Context: {title} header and context on Ask).
Nothing else in web sets start_date/end_date anymore, so the header's
dead ' · timed' suffix goes too; setContext is no longer used here.

Committed with OMI_SKIP_WEB_FORMAT=1: web/app has no package-lock.json
(bun.lock only), so the hook's pinned-prettier gate cannot resolve and
refuses by design; CI's web-app-checks gate is bun run check.

Verification:
- bun run lint (oxlint) -> zero findings for ChatPanel.tsx
- bun run typecheck (tsc --noEmit) -> clean
- bunx vitest run src/components/chat -> 8 files, 30 tests passed

Failure-Class: none
Co-authored-by: multica-agent <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 101 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@Git-on-my-level
Git-on-my-level merged commit fd6ced9 into BasedHardware:main Sep 1, 2026
30 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