Repository navigation
feat(dashboard): add Today's Priorities focus widget - #6
Merged
Merged
Conversation
A single ranked focus card leads the dashboard, unifying the manager's most pressing items into one list. - DashboardData.todayPriorities (PriorityKind: OVERDUE/DUE_SOON/INBOX_NOTE) - DashboardService ranks overdue + due-soon action items + self-assigned INBOX quick notes (that order), capped at 7, all userId-scoped - Exposed on /api/v1/dashboard as todayPriorities - Read-only TodayPriorities widget, first in the dashboard grid, each row linking to where you act (person page / my-notes) - Widen frontend DashboardActionItem person fields to nullable (backend parity) Backend: 1643 tests pass. Frontend: 1354 tests pass.
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.
Summary
Adds a single ranked "Today's Priorities" focus card at the top of the manager dashboard. It answers one question at a glance — what are the most important things I need to handle today? — by unifying the manager's most pressing items into one ordered list instead of leaving them spread across separate sections.
Motivation
The dashboard already surfaced overdue items, due-soon items, stale 1:1s, and anniversaries as separate panels, and self-assigned quick notes lived only in My Notes. There was no single "start here" view. This widget consolidates the time-sensitive, actionable items into one ranked list so nothing important gets lost.
What's included
Backend —
/api/v1/dashboardnow returns a pre-rankedtodayPrioritieslist:kind(OVERDUE/DUE_SOON/INBOX_NOTE), title, nullable person, and nullable due date.QuickNoteRepositorydependency toDashboardServicefor the notes source.Frontend — a read-only
TodayPrioritieswidget, placed first in the dashboard grid:/my-notesfor notes.Scope / design notes
Security
userId-scoped (the self-assigned notes query scoping is unit-tested). No new write endpoints — the widget only reads.Testing
./gradlew test→ 1643 tests pass, 0 failures. NewDashboardServiceTest.TodayPrioritiesTestscovers empty state, inbox-note mapping, ranking order, cap-at-7, person details, and userId scoping;DashboardControllerTestgains a populated-section test plus an empty-section assertion.jest→ 126 suites / 1354 tests pass. NewTodayPriorities.test.tsx; dashboard-page assertions extended.Notes for reviewers
DashboardActionItemtype'spersonId/personNamewere still non-null and out of sync with the backend (person-less TODOs); widened to nullable.within(...)because an item title can now legitimately appear in both the Priorities widget and the Overdue section.main(which already contains the merged My Notes / quick-note-tags / person-less-TODO work), so this PR is independent of that one.tscdrift onmain(unrelated fixtures) is untouched and doesn't affectnpm test.