Skip to content

feat: Add attention mode to Active Tasks sidebar#628

Draft
BnayaZil wants to merge 3 commits into
h0x91b:mainfrom
BnayaZil:chore/dev3-task-priority-attention-mode
Draft

feat: Add attention mode to Active Tasks sidebar#628
BnayaZil wants to merge 3 commits into
h0x91b:mainfrom
BnayaZil:chore/dev3-task-priority-attention-mode

Conversation

@BnayaZil

@BnayaZil BnayaZil commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Problem

The Active Tasks sidebar had two scope modes (project / global) but no way to quickly surface the tasks that actually need the user's input. Tasks in `user-questions` or `review-by-user` were mixed in with in-progress and AI-review work, requiring the user to scan the full list to find what's blocking them.

Solution

  • Added a third scope `"attention"` to `SidebarScope` (`"project" | "global" | "attention"`)
  • Replaced the project/global toggle switch with 3 plain icon buttons: folder (project), globe (global), bell (attention) — all three sit naturally side-by-side, no toggle needed
  • In attention mode: fetches all-project tasks (reuses the global fetch), filters to `user-questions` + `review-by-user`, sorted oldest-first so the longest-waiting task is always at the top
  • Bell shows a pulsing amber count badge when attention tasks exist and the mode is not active
  • Project badge shown for tasks from other projects (same as global scope)
  • Empty state: "Nothing needs your attention"
  • Scope persisted to `localStorage` like before
  • `"Did you know?"` tip added for the new bell feature
  • i18n keys added for EN / RU / ES
  • Updated test that was asserting on the now-removed toggle `data-testid`

Extra information

  • `ATTENTION_STATUSES` mirrors the same constant already defined in `ActivityOverview.tsx`
  • The global fetch (`getAllProjectTasks`) is reused — no new RPC needed

BnayaZil and others added 3 commits June 8, 2026 14:50
Bell icon button next to the scope toggle shows tasks in user-questions/review-by-user
across all projects, sorted oldest-first. Pulsing badge shows count when tasks are waiting.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…lobe/bell)

Drops the toggle switch in favour of three distinct icon buttons so the
attention mode sits naturally alongside the existing scope controls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add ActiveTasksSidebar tests for attention scope: cross-project
  filtering to user-questions/review-by-user, oldest-first ordering,
  bell count badge, and the empty state.
- Correct the changelog to reflect the toggle being replaced by three
  icon buttons (folder/globe/bell), and move it to the 06/09 merge date.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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