Skip to content

fix(examiner-ui): restore application approval conditions - #1793

Draft
jimmypalelil wants to merge 10 commits into
bcgov:mainfrom
jimmypalelil:REGBACKLOG-9-add-approval-conditions
Draft

fix(examiner-ui): restore application approval conditions#1793
jimmypalelil wants to merge 10 commits into
bcgov:mainfrom
jimmypalelil:REGBACKLOG-9-add-approval-conditions

Conversation

@jimmypalelil

@jimmypalelil jimmypalelil commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Issue

JIRA: https://hous-hpb.atlassian.net/browse/REGBACKLOG-9

Summary

  • restore the approval condition selector for application approvals
  • add DecisionPanel regression coverage for approval visibility, assignment gating, and the approval email lock

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

Restores approval-condition controls in the examiner decision panel and adds regression coverage.

Changes:

  • Shows approval conditions for assigned application approvals.
  • Tests visibility, assignment gating, and email locking.
  • Identified that selected application conditions are not persisted.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
DecisionPanel.vue Restores application approval conditions.
decision-panel.spec.ts Adds DecisionPanel regression tests.

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

Comment thread strr-examiner-web/app/components/DecisionPanel.vue

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 9 out of 9 changed files in this pull request and generated 3 comments.

Comment thread strr-api/src/strr_api/services/application_service.py Outdated
Comment thread strr-examiner-web/app/components/ActionButtons.vue Outdated
Comment thread strr-api/src/strr_api/resources/application.py
@jimmypalelil
jimmypalelil force-pushed the REGBACKLOG-9-add-approval-conditions branch from 5133fe9 to c742591 Compare August 28, 2026 01:42

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 11 out of 11 changed files in this pull request and generated 1 comment.

Comment thread strr-api/src/strr_api/services/application_service.py Outdated
@jimmypalelil
jimmypalelil force-pushed the REGBACKLOG-9-add-approval-conditions branch from 9cb614d to 9edb1af Compare August 28, 2026 02:05

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 11 out of 11 changed files in this pull request and generated 1 comment.

Comment thread strr-api/src/strr_api/resources/application.py

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 11 out of 11 changed files in this pull request and generated 1 comment.

Comment thread strr-examiner-web/app/components/DecisionPanel.vue

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 11 out of 11 changed files in this pull request and generated no new comments.

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

strr-examiner-web/app/components/DecisionPanel.vue:266

  • Provisional-review applications still cannot reach this restored selector. useExaminerDecision.ts:36-38 makes showDecisionPanel false whenever an application has a registration number, while models/application.py:646-649 adds that number for applications backed by the existing registration used during provisional approval. The outer v-if="showDecisionPanel" therefore removes this component, and the legacy page action calls provisionallyApproveApplication without conditions. Relax the panel gate for actionable provisional approvals and route those approvals through this panel; the new tests currently hard-code showDecisionPanel to true, so they mask this path.
            v-if="isApproveDecisionSelected && isAssignedToUser"

@jimmypalelil

Copy link
Copy Markdown
Collaborator Author

Addressed the suppressed Copilot finding from review 5047431894 in commit e59721f8.

  • Provisional-review applications with an existing registration now show the DecisionPanel when PROVISIONAL_APPROVE is available.
  • The bottom ActionButtons are also kept visible so the approval selected in the panel can be submitted through the conditions-aware path.
  • Existing predefined, custom, and minimum-booking-day conditions are loaded before approval.
  • Added coverage for provisional application panel visibility and existing-condition loading.

Validation: 24 focused frontend tests passed and frontend lint passed with only two pre-existing warnings. vue-tsc was unavailable in the local project dependencies.

@sonarqubecloud

Copy link
Copy Markdown

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 14 out of 14 changed files in this pull request and generated no new comments.

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.

2 participants