Skip to content

Add an at-risk vault highlight to the Dashboard using deadline urgency tiersΒ #305

Description

@1nonlypiece

πŸ“Œ Description

src/components/VaultCard.tsx exposes deadlineUrgency tiers (safe/soon/
critical), but the Dashboard doesn't surface a focused "needs attention" view β€”
active vaults nearing their deadline are buried in the general list.

This issue adds an "at-risk" highlight section listing vaults whose deadlines are
critical/soon and that are still active or pending validation.

🎯 Requirements and Context

  • Add src/utils/atRiskVaults.ts selecting vaults by urgency tier + status.
  • Render an "At Risk" section on Dashboard.tsx using VaultCard.
  • Hide the section when nothing is at risk.
  • Reuse deadlineUrgency (export it from VaultCard.tsx if needed).

πŸ› οΈ Suggested Execution

1. Fork the repo and create a branch

git checkout -b feature/dashboard-at-risk

2. Implement changes

  • Create src/utils/atRiskVaults.ts; add the section to Dashboard.tsx.
  • Add src/utils/__tests__/atRiskVaults.test.ts.
  • Update src/pages/__tests__/Dashboard.test.tsx.

3. Test and commit

  • Run npm test.
  • Cover edge cases: nothing at risk (hidden), completed vaults excluded,
    critical vs soon selection, expired deadlines.

Example commit message

feat: add at-risk vault highlight to Dashboard

βœ… Guidelines

  • Minimum 95% test coverage on new/changed lines.
  • No regressions in Dashboard tests.
  • Timeframe: 96 hours.

🏷️ Labels

type-feature Β· type-enhancement Β· area-frontend Β· MAYBE REWARDED Β· GRANTFOX OSS Β· OFFICIAL CAMPAIGN

πŸ’¬ Community & Support

  • Join the Disciplr contributor Discord to coordinate, ask questions, and get unblocked fast: https://discord.gg/xvNAvMJf
  • Please introduce yourself in the channel before you start so we can avoid duplicate work, pair you with a reviewer, and get your PR merged quickly.
  • Maintainers actively triage this channel and aim for fast, clear, respectful reviews β€” reach out any time you're blocked.

Metadata

Metadata

Assignees

Labels

GRANTFOX OSSGrantFox open-source campaignMAYBE REWARDEDEligible for GrantFox rewardOFFICIAL CAMPAIGNOfficial GrantFox campaign issueStellar WaveIssues in the Stellar wave programarea-frontendFrontend / UI worktype-enhancementImprovement to existing functionalitytype-featureNew feature work

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions