Skip to content

feat(ui): added renewal badge to old and new examiner dashboards#1042

Merged
JazzarKarim merged 6 commits intobcgov:mainfrom
JazzarKarim:32523-renewal-badge-update
Feb 24, 2026
Merged

feat(ui): added renewal badge to old and new examiner dashboards#1042
JazzarKarim merged 6 commits intobcgov:mainfrom
JazzarKarim:32523-renewal-badge-update

Conversation

@JazzarKarim
Copy link
Collaborator

Issue:

Description of changes:
Old dashboard:
image

New dashboard:
image

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

@JazzarKarim JazzarKarim self-assigned this Feb 20, 2026
@JazzarKarim JazzarKarim marked this pull request as ready for review February 20, 2026 21:59
Comment on lines 288 to 294
const hasRenewalInProgress = (reg: HousRegistrationResponse): boolean => {
const applications = reg.header?.applications ?? []
return applications.some(
app =>
app.applicationType === 'renewal' &&
app.applicationStatus &&
!RENEWAL_NOT_IN_PROGRESS_STATUSES.has(app.applicationStatus as ApplicationStatus)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dima, let me know your thoughts about this solution.

Basically, we check if application type is renewal. If it is and the status is not one of those 5 above, that means it's a renewal that is in progress.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the requirement was to show Renewals in progress?
I thought they wanted to see which Registration is a Renewal, to distinguish it from the first-ever Registrations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dima, thanks for catching this. So I confirmed with Victor, you're absolutely right. Examiners want to see when a registration has been renewed.

I made that change and it should look good now.

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-1042-upadrz7n.web.app

@JazzarKarim JazzarKarim requested a review from dimak1 February 20, 2026 22:05
@bcgov bcgov deleted a comment from bcregistry-sre Feb 23, 2026
@JazzarKarim JazzarKarim force-pushed the 32523-renewal-badge-update branch from 12c0494 to ddb403a Compare February 23, 2026 21:14
/** Application statuses that mean a renewal was completed (registration was renewed) */
const RENEWAL_APPROVED_STATUSES = new Set<ApplicationStatus>([
ApplicationStatus.FULL_REVIEW_APPROVED,
ApplicationStatus.PROVISIONALLY_APPROVED,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just waiting on Victor's reply to see if I should add ApplicationStatus.PROVISIONAL_REVIEW as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will revisit this in another PR once I receive an answer from Victor.

@bcgov bcgov deleted a comment from bcregistry-sre Feb 23, 2026
@bcgov bcgov deleted a comment from bcregistry-sre Feb 23, 2026
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-1042-upadrz7n.web.app

@bcgov bcgov deleted a comment from bcregistry-sre Feb 23, 2026
Copy link
Collaborator

@dimak1 dimak1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sonarqubecloud
Copy link

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-1042-upadrz7n.web.app

@JazzarKarim JazzarKarim merged commit 78afd98 into bcgov:main Feb 24, 2026
14 checks passed
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