Repository navigation
Description
Priority (MoSCoW): Must
Persona: Registry Analyst
Value: Record the registrar’s judgment that the filing appears to comply, so the filing request can proceed to registration without mail-ins.
User Story
As a registry analyst, I want to approve a filing request from In Review, so that the system records my decision and hands off to filing.
Context
- Where: Filing Request — Review/Details page.
- Before: Filing request is
In Review(Epic 5) and assigned to me (Epic 2). - After: Decision recorded; handoff to Epic 8 (File Record).
- No Hold in MVP.
UX/UI Link (Design-owned)
To be added by Design (after BA review is complete).
MVP Boundary (story-level; PO-owned)
- In: Approve action (assigned analyst only); record decision; minimal audit (who/when/from→to); raise handoff to Epic 8.
- Out: No refund operations; no rejection notices; no timeline/history UI.
Acceptance Criteria (PO-owned; user-observable)
- When an analysts clicks approve the system assigns the analyst
- backend system status changes New to In review and then Approved
- records the analyst that made the changes
- On save, the system records my decision and writes an audit entry (who/when/from→to).
- After saving, a handoff to Epic 8 is raised (staff confirmation shown).
- Labels are consistent: action = Approve; resulting state later is
Approved(Epic 8). - Accessibility: Not colour-only; keyboard reachable; focus visible; announced to AT.
- Empty state/Unavailable: Displays clear, plain-language non-blocking message.
BA Section (Required before Dev)
(BA responsible, Design consulted — SM enforces DoR)
BA — Notes
- Analyst must be assigned before a ToD is approved. Status change should be from "In Progress" to "Approved" or "Rejected"
The option to Approve should be disabled when any of the following conditions apply: - Submission Status Conflicts: Filing is already Approved or Rejected. Filing is in a Payment Pending state due to unresolved payment issues.
- Validation Failures:Required documents are missing, incomplete, or invalid. Submission data does not match the existing MHR registration. Payment is not pre-authorized or ready for processing.
- System Constraints: Database or Document Repository System (DRS) is unavailable. Communication or audit logging services are down (to prevent incomplete records).
- Business Rule Enforcement: QS has not acknowledged prior rejection instructions (if resubmission is required). Filing is locked for review by another staff member (to prevent concurrent approvals).
Business and Validation Rules
Business Rules
The filing state must be "in progress" with a staff assigned
System must insure that submission details match the existing MHR registration.
Payment must be pre-authorized or ready for processing.
Approval finalizes the registration and generates a verification statement.
Approved submissions trigger:
- Storage of verification documents in the Document Repository System (DRS).
- Email notification to the QS with the verification statement.
- Payment processing (if not already collected).
- Status update to “Completed” and removal from the active queue.
Validation Rules
System must support one-click approval with a confirmation prompt.
Verification documents must be automatically generated and stored in DRS.
Payment processing and notification dispatch must be triggered upon approval.
If payment fails after approval, the submission remains in “payment pending” until resolved.
Additional Requirements
QS must receive email notifications for all status changes (approved, rejected, pending).
All communication must be logged and accessible within the submission record.
Error Messages
Error Message for process failure
"Approval could not be completed due to a system error. No changes have been applied. Please retry later or contact support if the issue persists."
Error message when another staff has updated the filing:
"Approval cannot be completed. The filing was updated by another staff member and is no longer eligible for this action. Refresh the page to view the current status."
Error Message when Analyst is not assigned
"Approval cannot proceed. You must assign this filing to yourself before taking action. Please assign the filing to yourself and retry."
Error message when the database is unavailable
"Approval cannot be completed. A critical database service is currently unavailable. Please try again later or contact technical support if the issue persists."
Policy references (BA to confirm)
- Manufactured Home Act — s. 8(1):Filing of notice, application or other record: Defines requirements for QS filing submissions.
- Manufactured Home Regulation — s. 3: Registrar may require proof of execution/authority.
- Freedom of Information and Protection of Privacy Act — Sections 26: Covers the purpose for which personal information may be collected: Limits data collection to necessary information within filings
BA — Edge cases
| Edge Case | What Triggers It | What the User Sees | Can They Continue? |
|---|---|---|---|
| Status and Business Rules | Analyst not assigned | Error, Pause Process | No, must self-assign first |
| Filing in Payment Pending | Error, Pause Process | No, until error is resolved | |
| Filing in a locked state due to another workflow | Error, Pause Process | No, until error is resolved | |
| Concurrency and Conflicts | Parallel edits occurred seconds earlier | Error, Pause Process | No, until error is resolved |
| Double-click on Approve triggers duplicate requests | Error, Pause Process | No, until error is resolved | |
| Browser refresh replays a previous approval request | Error, Pause Process | No, until error is resolved | |
| Documents and DRS | DRS write fails after status save | Error, Pause Process | No, staff is prompted |
| Verification statement generation fails or duplicates | Error, Pause Process | No, staff is prompted | |
| Document stored without index metadata | Error, Pause Process | No, until error is resolved | |
| System Reliability | Database unavailable during save | Error, Pause Process | No |
| Network interruption mid-transaction | Error, Pause Process | No, until network issue is resolved | |
| Audit service unavailable | Error, Pause Process | No, until service issue is resolved | |
| Feature flag toggled during operation | Error, Pause Process | No, until error is resolved | |
| Usability and UX | Approve button enabled despite unmet preconditions | Error, Pause Process | No, until error is resolved |
| Spinner never resolves, user retries without feedback | Error, Pause Process | No, until error is resolved |
BA — Acceptance Criteria in Gherkin Notation
Scenario: Staff approves, status saved, audit written (happy-path)
When staff selects the filing
And clicks "Approve"
Then the system changes the filing status to "Completed"
And the system generates and stores in DRS a verification statement
And the system processes payment if not already collected
And the system sends an email to the QS with the verification statement
And the system writes an audit entry with user (IDIR) , action "Approve", timestamp, filing id, and previous and new status
And the filing is removed from the active queue
And the UI shows a success message "Filing approved"
Scenario: Unavailable, save fails
Given the database is unavailable
When staff clicks "Approve"
Then the system does not change the filing status
And the system does not generate or store any document
And the system does not process any payment
And the system does not send any notification
And the system shows an error "Service unavailable. Try again later"
And the system logs a technical error with correlation id
Scenario: Approval recorded with payment pending after processor failure
Given the payment processor is temporarily unavailable after approval
When I click "Approve"
Then the system saves the filing status as "Payment Pending"
And the system writes an audit entry with user, action "Approve", timestamp, filing id, and previous and new status
And the system queues a retry for payment processing
And the system sends an email to the QS stating "Approval recorded, payment pending"
And the UI shows an alert "Payment pending"
Scenario Outline: Validation blocks approval when business rules fail
Given a QS filing exists in "Pending Review" status
And a precondition fails
When staff clicks "Approve"
Then the system blocks approval
And the system shows a validation message ""
And the system does not save status
And the system does not generate or store any document
And the system does not process any payment
And the system writes an audit entry with user, action "Approve Failed", reason "Validation"
Scenario: Notifications and logs are recorded on status change
Given the filing moved from "Pending Review" to "Completed"
When the system commits the change
Then the system sends an email notification to the QS
And the system records the communication in the submission record
And the system writes an audit entry with user, action, timestamp, filing id, and status change
Samples of messages displayed for possible precondition failures are shown below
| Precondition | Message |
|---|---|
| required documents are present | Missing required documents |
| documents are complete | Incomplete documents |
| documents are valid | Invalid or expired documents |
| submission matches existing registration | Data mismatch with MHR registration |
| payment is pre-authorized or ready | Payment not ready |
Design — Prompts
- Confirm placement of Approve button.
- Ensure accessibility basics.
- Paste design link above.
Activity
[-]6.1 - Approve a Filing Request (Assigned Analyst)[/-][+] 6.1 — Approve (decision-only; handoff to Epic 8)[/+]mbertucci commentedon Jan 9, 2026
@oanyahuru please review this ticket for business rules
do we need assignee here https://www.figma.com/design/rbiPKU4yAW8PqDDjFRBVKQ/Intake-Queue?node-id=2119-13307&p=f&t=pDWiEjeapFa8AuFs-0