Skip to content

feat(dashboard): dismiss recently-added project suggestions#246

Merged
parth0025 merged 1 commit into
stagingfrom
feat/recently-added-projects-dismiss
Jun 16, 2026
Merged

feat(dashboard): dismiss recently-added project suggestions#246
parth0025 merged 1 commit into
stagingfrom
feat/recently-added-projects-dismiss

Conversation

@parth0025

Copy link
Copy Markdown
Collaborator

Adds a per-row dismiss control to the Recently Added Projects section of the Employee Workload Edit Card modal.

What changed

  • RecentlyAddedProjects.vue: an X button as the leftmost element of each row (just inside the green marker), grey by default and red on hover. Uses click.stop so it never triggers the row add-toggle. New dismiss emit.
  • CardFieldComponent.vue: dismissed project ids are stored in localStorage per user, filtered out of newlyAddedProjects, loaded on mount, and written on dismiss. The stored list is pruned to the 2-day new-project window so it cannot grow unbounded.
  • en.js: dashboardCard.dismiss_recent_project tooltip string.

Behavior

  • Clicking X removes the suggestion immediately and persists it, so it does not reappear after the card is closed and reopened, or after a page reload.
  • Dismissing only hides the suggestion; it does NOT modify selectedProjects. The tick-to-add path, Save, and the main Project dropdown are unchanged. The project can still be added manually from the dropdown.

Notes

  • Scope is per-user, per-browser (localStorage), and global across Workload cards (the editor only knows the card type, not an instance id). Per-card or cross-device persistence would need a small backend field.

Verified all three files compile with @vue/compiler-sfc (parse + compileScript + compileTemplate).

🤖 Generated with Claude Code

Adds an X on each Recently Added Projects row in the Employee Workload Edit Card. Clicking it dismisses the suggestion (without adding the project) and persists the dismissal in localStorage per user, so it stays hidden after the card is closed/reopened or the page is reloaded. Dismissals are pruned to the 2-day new-project window so the stored list stays bounded. The tick-to-add path and Save are untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: aa440541-de0d-4e30-8a73-ce35ca14b48f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/recently-added-projects-dismiss

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

@parth0025 parth0025 merged commit 3638d55 into staging Jun 16, 2026
4 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