bcgov / cas-registration

A web app for Registration in OBPS under the Clean Growth branch
Apache License 2.0
1 stars 1 forks source link

Reg\Register an operation - conditionally show form pages based on Registration purpose(s) #2133

Open marcellmueller opened 3 weeks ago

marcellmueller commented 3 weeks ago

Describe the task

The Operation Registration form is meant to conditionally show form pages such as the New Entrant Operation and Opted-in Operation based on what the user selects for the Registration Purpose question. We have logic for this partially implemented in OperationRegistrationPage.tsx, however even though a user can only select one they can be assigned multiple options in the backend based on this criteria:

For Developers
Dropdown for “The purpose of this registration is to register as a:”
is options includes: 

Reporting Operation
OBPS Regulated Operation
Opted-in Operation
New Entrant Operation
Electricity Import Operation
Potential Reporting Operation

The user can only pick 1 option. 
all options EXCEPT “potential reporting operation” should automatically mark the user as a “reporting operation” in the back end.
if the user picks new entrant or opt in, mark the user as a Reporting AND regulated operation in the back end.

Acceptance Criteria

patrickisaac commented 1 week ago

Blocking label is added for PO checking other mentioned tickets, not development work

patriciarussellCAS commented 3 days ago

I believe this is blocking #2094 but please correct me if I'm wrong.

BCerki commented 2 days ago

I believe this is blocking #2094 but please correct me if I'm wrong.

It doesn't block development, but it does block manual testing of 2094. Everything's a new entrant until 2094 is in

BCerki commented 2 days ago

Note that there's a bug (https://github.com/orgs/bcgov/projects/122/views/2?filterQuery=facility&pane=issue&itemId=79778537) that prevents continuing past the facilities page for LFOs.