Skip to content

feat(examiner-ui): display days-ago and today for expiry countdown in application and registration info header#1093

Open
jimmypalelil wants to merge 1 commit intobcgov:mainfrom
jimmypalelil:32631-display-days-ago-expiry
Open

feat(examiner-ui): display days-ago and today for expiry countdown in application and registration info header#1093
jimmypalelil wants to merge 1 commit intobcgov:mainfrom
jimmypalelil:32631-display-days-ago-expiry

Conversation

@jimmypalelil
Copy link
Collaborator

Issue:

Description of changes:

  • Examiner UI – expiry countdown copy: Replaced generic “X days left” / “EXPIRED” with clearer labels:
    • Future: “X days left”
    • Same day: “today”
    • Past: “X days ago” (replacing “EXPIRED”)
  • strr-base-web: Added getExpiryCountdown() in accountDashHelpers.ts to compute label and numeric value for styling/sorting; added i18n keys expiryDaysLeft, expiryDaysAgo, expiryToday in en-CA and fr-CA.
  • strr-examiner-web: ApplicationInfoHeader.vue and RegistrationInfoHeader.vue now use the shared countdown helper for NOC and registration expiry; expiry text is shown in parentheses with red styling when expired.
  • Tests: Unit tests in registration-details.spec.ts updated to cover future/today/past expiry label scenarios (with mocked getExpiryCountdown).
  • Bumped strr-examiner-web version to 0.2.24.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the BC Registry and Digital Services BSD 3-Clause License

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-1093-senxr375.web.app

… application and registration info header

Add getExpiryCountdown() in base-web with en-CA/fr-CA i18n. Use in ApplicationInfoHeader and RegistrationInfoHeader for NOC and registration expiry. Replace generic 'EXPIRED' with 'X days ago' and show 'today' for same-day expiry. Add unit tests for expiry label scenarios.
@jimmypalelil jimmypalelil force-pushed the 32631-display-days-ago-expiry branch from 59f2597 to 6a66420 Compare March 12, 2026 21:39
@sonarqubecloud
Copy link

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-1093-senxr375.web.app

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.

3 participants