Skip to content

Home: dynamic “what next?” suggestion queue - #72

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/home-dynamic-next-suggestions-3367
Aug 11, 2026
Merged

Home: dynamic “what next?” suggestion queue#72
cursor[bot] merged 1 commit into
mainfrom
cursor/home-dynamic-next-suggestions-3367

Conversation

@Modsofthenation

@Modsofthenation Modsofthenation commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Summary

Home (Command center) now suggests what to do next as a prioritized queue that updates as you clear work.

Behavior

  • Primary NextStep — top priority action (roles → self bundles → deadline nudges → backfill → writing desks → consistency → cycle complete / year-round capture).
  • Up next — remaining suggestions with secondary CTAs so there is still one solid primary.
  • Live refresh — returning to the tab (focus / visibility) reloads workspace + cycle pipeline data and reorders the queue; manual Refresh on the NextStep.
  • Hash links jump to Home sections (nudges / writing queue); route links go to Roles, Cycles, Writing desk, etc.

Files

  • apps/ui/src/lib/homeSuggestions.ts — pure priority builder + unit tests
  • apps/ui/src/components/HomeSuggestionQueue.tsx — UI
  • apps/ui/src/pages/HomePage.tsx — wire-up + focus refresh
  • Styles + changelog

Test plan

  • Empty / setup workspace: no suggestion queue (setup wizard / “What happens next” only)
  • Demo unlock → Home shows a prioritized primary + Up next list
  • Assign a missing role → refresh (or leave and return) → role suggestion clears / reorders
  • Import a self-review → writing suggestion appears for that person
  • Finalize all drafts → “Cycle writing complete” (or idle capture fallback)
  • pnpm --filter @prm/ui typecheck
  • pnpm --filter @prm/api exec tsx --test apps/ui/src/lib/homeSuggestions.test.ts
Open in Web Open in Cursor 

Summary by CodeRabbit

  • New Features

    • Added a prioritized “Next step” and “Up next” queue to the Home page.
    • Suggestions now guide users through assignments, reviews, deadlines, evidence capture, writing, and completion.
    • Added refresh actions and automatic updates when returning to the tab.
    • Added responsive styling and progress details for queued actions.
  • Bug Fixes

    • Improved handling of cycle and workspace loading errors with safe fallback states.
  • Documentation

    • Documented the Home suggested next actions queue in the changelog.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Modsofthenation, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 57 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 055d38b6-2956-4745-9820-9e2b250927ac

📥 Commits

Reviewing files that changed from the base of the PR and between ba134bf and fc5f7d7.

📒 Files selected for processing (7)
  • CHANGELOG.md
  • apps/ui/src/components/HomeSuggestionQueue.tsx
  • apps/ui/src/lib/homeSuggestions.test.ts
  • apps/ui/src/lib/homeSuggestions.ts
  • apps/ui/src/pages/HomePage.tsx
  • apps/ui/src/styles.css
  • apps/ui/tsconfig.json
📝 Walkthrough

Walkthrough

Changes

Home suggestions

Layer / File(s) Summary
Suggestion model and prioritization
apps/ui/src/lib/homeSuggestions.ts, apps/ui/src/lib/homeSuggestions.test.ts
Defines typed suggestions and builds prioritized actions for role assignment, reviews, evidence, writing, completion, and idle states. Tests cover the main pipeline states.
Home refresh and suggestion integration
apps/ui/src/pages/HomePage.tsx
Centralizes workspace and cycle refreshes, refreshes on focus or visibility changes, and replaces the previous NextStep decision tree with computed suggestions.
Queue presentation and supporting updates
apps/ui/src/components/HomeSuggestionQueue.tsx, apps/ui/src/styles.css, CHANGELOG.md, apps/ui/tsconfig.json
Renders the primary suggestion and “Up next” list, adds responsive styling, documents the feature, and excludes test files from TypeScript compilation.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant HomePage
  participant buildHomeSuggestions
  participant HomeSuggestionQueue
  HomePage->>buildHomeSuggestions: provide cycle and pipeline state
  buildHomeSuggestions-->>HomePage: return prioritized suggestions
  HomePage->>HomeSuggestionQueue: pass suggestions and refresh state
  HomeSuggestionQueue-->>HomePage: invoke refresh callback when requested
Loading

Possibly related PRs

Suggested reviewers: cursoragent

✨ Finishing Touches 💡 2
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch cursor/home-dynamic-next-suggestions-3367
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/home-dynamic-next-suggestions-3367

Comment @coderabbitai help to get the list of available commands.

@Modsofthenation
Modsofthenation marked this pull request as ready for review August 11, 2026 12:29
Replace the single static NextStep with a priority queue that updates
as roles, self-reviews, drafts, and evidence gaps clear. Refresh on
tab focus/visibility so returning from Roles/Cycles/Writing desk
reorders the list without a full page reload.

Co-authored-by: Damon  <Modsofthenation@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/home-dynamic-next-suggestions-3367 branch from 33dfea3 to fc5f7d7 Compare August 11, 2026 12:33
@cursor
cursor Bot merged commit 6a2c7a5 into main Aug 11, 2026
0 of 2 checks passed
@cursor
cursor Bot deleted the cursor/home-dynamic-next-suggestions-3367 branch August 12, 2026 11:36
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.

2 participants