Skip to content

feat: add CountdownDeadline component#151

Closed
go165 wants to merge 1 commit into
Disciplr-Org:mainfrom
go165:go165/countdown-deadline
Closed

feat: add CountdownDeadline component#151
go165 wants to merge 1 commit into
Disciplr-Org:mainfrom
go165:go165/countdown-deadline

Conversation

@go165

@go165 go165 commented Jun 18, 2026

Copy link
Copy Markdown

Closes #127.

Summary

  • add reusable CountdownDeadline component plus exported timeRemaining(deadline, now) helper
  • wire the shared countdown into VaultCard, VaultDetail, and PendingValidations
  • document thresholds and accessibility behavior in design-system/documentation/countdown-deadline.md

Verification

  • npm test -- --run src/components/__tests__/CountdownDeadline.test.tsx src/components/__tests__/VaultCard.test.tsx
  • npm test -- --run src/components/__tests__/CountdownDeadline.test.tsx src/components/__tests__/VaultCard.test.tsx src/pages/__tests__/ValidationDetail.test.tsx
  • git diff --check

Focused coverage for src/components/CountdownDeadline.tsx is 100% statements / branches / functions / lines. VaultCard.tsx remains 100% covered in the focused run.

Known unrelated repo baseline caveats observed while verifying:

  • npm test -- --run ... src/pages/__tests__/Vaults.test.tsx fails because @testing-library/user-event is imported by that existing test but is not installed.
  • npx tsc -b --pretty false still stops on the existing src/components/Field.tsx syntax error.

Payout wallet if reward eligible: 0x1f0130669ca6fd02e025a984cc038f139df19a2f

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.

Add a CountdownDeadline component for time-locked vault deadlines

2 participants