[Frontend · File verification UI] Create DocumentExpiryBadge component (#259)#301
Open
Ayomisco wants to merge 2 commits intoamina69:mainfrom
Open
[Frontend · File verification UI] Create DocumentExpiryBadge component (#259)#301Ayomisco wants to merge 2 commits intoamina69:mainfrom
Ayomisco wants to merge 2 commits intoamina69:mainfrom
Conversation
- Add DocumentExpiryBadge component showing document expiry status - null: no badge, within 7 days: amber 'Expiring in X days', expired: red 'Expired — re-upload required' - Includes AlertCircle icon and hover tooltip with exact expiry date - Add 15 comprehensive unit tests covering all thresholds - Update Document mock type to include optional expiresAt field - All checks: 340/340 tests passing, lint clean, TypeScript strict Closes amina69#259
|
@Ayomisco Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Owner
|
@Ayomisco conflict, fixed it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Creates
DocumentExpiryBadgecomponent for displaying document expiry status in file verification UI.What's Changed
✅ New component:
DocumentExpiryBadge.tsx✅ Comprehensive tests: 15 test cases included
✅ Updated mock data: Document interface now includes
expiresAt?: string | nullfieldVerification
Closes #259