Skip to content

feat(ui): 1534 clearer host dashboard#1693

Merged
JazzarKarim merged 8 commits into
bcgov:mainfrom
JazzarKarim:1534-clearer-host-renewal
Jun 4, 2026
Merged

feat(ui): 1534 clearer host dashboard#1693
JazzarKarim merged 8 commits into
bcgov:mainfrom
JazzarKarim:1534-clearer-host-renewal

Conversation

@JazzarKarim
Copy link
Copy Markdown
Collaborator

@JazzarKarim JazzarKarim commented Jun 2, 2026

Issue:

Description of changes:
Registrations Table:
image

Applications Table:
image

I noticed also there were no unit tests for those two tables, added those.

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 Jun 2, 2026
@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1693-de1mqi9m.web.app

@JazzarKarim JazzarKarim marked this pull request as ready for review June 2, 2026 19:13
@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1693-de1mqi9m.web.app

@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1693-de1mqi9m.web.app


/** Returns true when an application row is in draft status. */
const isDraftApplication = (row: any): boolean =>
row.statusKey === ApplicationStatus.DRAFT || row.status === 'Draft'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

since the param type is any do we have to worry about undefined values sneaking in

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

So Jimmy, I fixed most of the any types. I felt we've been relying on any a lot and it would be nice to take some time and fix all of them. Should be good now.

/** Redirects the user to payment for a payment due application. */
async function handlePayNow (row: any) {
let paymentToken = row.paymentToken
if (!paymentToken) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why would a row not have payment token? The fallback is to get the individual application. Is that good fallback mechanism? if it doesnt come up in search applicaiton api call then how would it show up in the get app by id api call

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense. Fixed, removed this fallback mechanism.

}
return registration.header.applications[0].applicationNumber
return registration.header.applications.some((app: any) =>
app.applicationType === 'renewal' && app.applicationStatus === 'PAYMENT_DUE'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same comment here about the type any for the param

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

instead of using any do you think its a good idea to fix the types?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Same comment as before, fixed all these any types. Used interfaces and enums now.

Comment thread strr-host-pm-web/app/components/dashboard/RegistrationsTable.vue Outdated
Comment thread strr-host-pm-web/app/components/dashboard/RegistrationsTable.vue Outdated
Comment thread strr-host-pm-web/app/components/dashboard/ApplicationsTable.vue Outdated
@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1693-de1mqi9m.web.app

Copy link
Copy Markdown
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.

Approved and added some non-blocking comments.

Comment thread strr-host-pm-web/app/enums/dashboard-tables.ts Outdated
Comment thread strr-host-pm-web/app/components/dashboard/RegistrationsTable.vue
Comment thread strr-host-pm-web/app/components/dashboard/ApplicationsTable.vue
Comment thread strr-host-pm-web/app/components/dashboard/RegistrationsTable.vue
Comment thread strr-host-pm-web/app/components/dashboard/RegistrationsTable.vue
Comment thread strr-host-pm-web/app/components/dashboard/RegistrationsTable.vue
@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1693-de1mqi9m.web.app

@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1693-de1mqi9m.web.app

@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1693-de1mqi9m.web.app

@JazzarKarim
Copy link
Copy Markdown
Collaborator Author

@jimmypalelil All good for me to merge?

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 4, 2026

@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1693-de1mqi9m.web.app

@JazzarKarim JazzarKarim merged commit 806d68a into bcgov:main Jun 4, 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.

4 participants