Skip to content

feat(host-ui,strata-ui): extend NOC document upload window for expired NOC & add status badge (REGBACKLOG-2) - #1784

Merged
jimmypalelil merged 6 commits into
bcgov:mainfrom
jimmypalelil:REGBACKLOG-2
Aug 13, 2026
Merged

feat(host-ui,strata-ui): extend NOC document upload window for expired NOC & add status badge (REGBACKLOG-2)#1784
jimmypalelil merged 6 commits into
bcgov:mainfrom
jimmypalelil:REGBACKLOG-2

Conversation

@jimmypalelil

Copy link
Copy Markdown
Collaborator

Issue:

Description of changes:

  • Extended Notice of Consideration (NOC) document upload window so applicants/hosts can continue uploading supporting documents for expired NOCs prior to a final decision being rendered.
  • Updated getTodoApplication and useDashboardTodos across strr-base-web, strr-host-pm-web, and strr-strata-web to keep NOC todo items active and allow document uploads when status is NOC_EXPIRED or PROVISIONAL_REVIEW_NOC_EXPIRED.
  • Added <UBadge> status badge support to <Todo> items in strr-base-web and rendered an Expired red subtle badge on expired NOC todo items following BC Registries design standards.
  • Refactored todoItems.ts utilities for improved code readability, Set-based status matching, Map-based single-pass task indexing, and strict line-length linting compliance.
  • Updated version numbers for affected web applications (strr-base-web 0.0.51, strr-host-pm-web 1.3.31, strr-strata-web 1.2.6).

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
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1784-o8oc343j.web.app

@bcregistry-sre

Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1784-o8oc343j.web.app

@jimmypalelil
jimmypalelil requested a balanced review from Copilot August 12, 2026 21:03
@jimmypalelil jimmypalelil changed the title feat(web): extend NOC document upload window for expired NOC & add status badge (REGBACKLOG-2) feat(host-ui,strata-ui): extend NOC document upload window for expired NOC & add status badge (REGBACKLOG-2) Aug 12, 2026
@bcregistry-sre

Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1784-o8oc343j.web.app

1 similar comment
@bcregistry-sre

Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1784-o8oc343j.web.app

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Extends NOC document uploads and todos to expired NOCs across the web applications.

Changes:

  • Enables uploads and todos for expired NOC statuses.
  • Adds red “Expired” badges to NOC todos.
  • Refactors todo utilities and bumps application versions.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
strr-strata-web/package.json Bumps the strata app version.
strr-strata-web/app/pages/strata-hotel/dashboard/[applicationId].vue Enables uploads for expired NOCs.
strr-host-pm-web/tests/unit/use-dashboard-todos.spec.ts Tests expired registration todos.
strr-host-pm-web/tests/unit/registration-detail-page.spec.ts Updates NOC-status test logic.
strr-host-pm-web/package.json Bumps the host app version.
strr-host-pm-web/app/stores/document.ts Enables document types for expired NOCs.
strr-host-pm-web/app/pages/dashboard/index.vue Flags expired registration NOCs.
strr-host-pm-web/app/pages/dashboard/[applicationId].vue Adds expired todos and header handling.
strr-host-pm-web/app/composables/useDashboardTodos.ts Creates expired registration todos.
strr-host-pm-web/app/components/summary/SupportingInfo.vue Enables expired-NOC uploads.
strr-host-pm-web/app/components/dashboard/DashboardTodoSection.vue Forwards todo badge properties.
strr-base-web/package.json Bumps the base app version.
strr-base-web/app/utils/todoItems.ts Refactors todo generation and adds expired statuses.
strr-base-web/app/interfaces/todo.ts Adds badge fields to todos.
strr-base-web/app/components/todo/Index.vue Renders todo badges.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread strr-host-pm-web/tests/unit/registration-detail-page.spec.ts Outdated
@sonarqubecloud

Copy link
Copy Markdown

@bcregistry-sre

Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1784-o8oc343j.web.app

@jimmypalelil
jimmypalelil requested review from Jacky-Pham and a balanced review from Copilot August 12, 2026 22:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated no new comments.

Suppressed comments (1)

strr-base-web/app/utils/todoItems.ts:94

  • The newly supported application-level expired statuses are not exercised by the existing dashboard tests: application-dashboard.spec.ts only covers NOC_PENDING, while the added composable test covers registration-level NOC_EXPIRED. Add cases for NOC_EXPIRED and PROVISIONAL_REVIEW_NOC_EXPIRED that assert the correct todo ID, Expired badge, and red badge color so this central behavior cannot regress unnoticed.
  const isProvisional = PROVISIONAL_NOC_STATUSES.has(status)
  const isExpired = EXPIRED_NOC_STATUSES.has(status)

application.value?.header.status === ApplicationStatus.PROVISIONAL_REVIEW_NOC_PENDING ||
registration.value?.nocStatus === RegistrationNocStatus.NOC_PENDING
application.value?.header.status === ApplicationStatus.NOC_EXPIRED ||
application.value?.header.status === ApplicationStatus.PROVISIONAL_REVIEW_NOC_EXPIRED ||

@Jacky-Pham Jacky-Pham Aug 13, 2026

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.

will this work for provisional NOCs? the application is already linked to a registration here, and the upload endpoint rejects linked applications.

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.

provisional NOCs can exist on initial applications as well; not just renewals so we have to consider the scenario where hosts need to upload docs to an applicaiton in these statuses as well.

@Jacky-Pham Jacky-Pham left a comment

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.

LGTM thanks for the feedback

@jimmypalelil
jimmypalelil merged commit 5e31390 into bcgov:main Aug 13, 2026
27 of 28 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