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

Dashboard\Tiles -External user condition if Operator record has required fields #2341

Open zoeyli-46 opened 1 week ago

zoeyli-46 commented 1 week ago

Dependencies

Figma links

Please review this workflow Figma to see where each screen leads to by following the arrows/text instructions

Click through this Prototype to see the intended workflow for either a new user who is signing into BCIERS for an EXISTING operator, OR a returning user who already has access to an operator.

Note: the grayed-out tiles in the prototype will be a future enhancement; for the MVP, we will implement them as hidden instead of grayed-out, because we already have the "hide tile" pattern implemented.

Description:

During the first year of BCIERS 2025, the Operator must complete a sequence of steps. To enforce this sequence of steps, tiles will be hidden and shown to users one by one given that they completed the required step.

Given that a user (new or returning) is accessing an existing operator, these are the required steps

  1. User signs in (if they are new, they request access and wait for access to be granted)
  2. User is brought to the BCIERS dashboard
  3. Only Admin tile is shown, Inside the Admin tile, the Operator link has a "action required" notification" ONLY if the associated operator is missing required fields information
  4. User updates their Operator Information
  5. Dashboard tile, Operator link has NO "action required" notification
  6. Dashboard Registration tile displays 5. User is redirected to the BCIERS dashboard: only Admin and Registration and Report a Problem tiles are shown, (reporting and COAM are hidden) 6. Registration tile's Register an Operation link has an "action required" notification 7. Given that the user registers 1 operation, when they return to the BCIERS dashboard the reporting tile is unhidden and shown 8. Given that the user has submitted a report, the COAM tile is unhidden and shown (pending BA decision on when to show the COAM tile)

Acceptance Criteria:

Given I am logging in as a user for an existing operator who does not have an admin, When I have logged in, I have to wait for the Internal User to approve of me as an admin for the existing operator Then I will be able to access the BCIERS dashboard related to ticket: #2122 )

Given I am logging in as a user for an existing operator with an admin When I have logged in, I have to wait for the admin to approve of me, Then I will be able to access the BCIERS dashboard

Given that I have access to the BCIERS dashboard, but without access to an operator I only see the Admin\Select an Operator and Report a Problem tile

Given that I have access to the BCIERS dashboard, with access to an operator but without required fields I only see the Admin\My Operator * action required and Report a Problem tile Figma

Given that I filled out the Operator Information form and clicked submit, then I get a success snackbar that says "All changes have been successfully saved", and am redirected back to the BCIERS dashboard displays Administration\My Operator and Registration tiles

I see an "action pending" in my Registration tile next to Register an Operation Given that I registered one of my operations, then when I go back to my dashboard, the Reporting tile becomes unhidden Given that it is May 31st, or I have submitted a report (?) then the COAM tile becomes unhidden

Development Checklist:

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

·Definition of Done (Note: If any of these points are not applicable, mark N/A)

Notes:

zoeyli-46 commented 1 week ago

@shon-button I've just added this ticket after splitting it from #2048 please let me know if there are any clarifications I can make to this ticket :) cc @patriciarussellCAS

shon-button commented 1 week ago

then I get a success snackbar that says "Operator information updated.

@zoeyli-46

Hi Zoey, thanks for doing the updates...could you also make this additions:

zoeyli-46 commented 1 week ago

@shon-button yes, done added to the ticket