π 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.
π Description
src/components/VaultCard.tsxexposesdeadlineUrgencytiers (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
src/utils/atRiskVaults.tsselecting vaults by urgency tier + status.Dashboard.tsxusingVaultCard.deadlineUrgency(export it fromVaultCard.tsxif needed).π οΈ Suggested Execution
1. Fork the repo and create a branch
2. Implement changes
src/utils/atRiskVaults.ts; add the section toDashboard.tsx.src/utils/__tests__/atRiskVaults.test.ts.src/pages/__tests__/Dashboard.test.tsx.3. Test and commit
npm test.critical vs soon selection, expired deadlines.
Example commit message
β Guidelines
π·οΈ Labels
type-featureΒ·type-enhancementΒ·area-frontendΒ·MAYBE REWARDEDΒ·GRANTFOX OSSΒ·OFFICIAL CAMPAIGNπ¬ Community & Support