bcgov / CONN-CCBC-portal

Intake for application process for Connected Communities BC funding program
Apache License 2.0
4 stars 3 forks source link

Implement error pages #297

Open elliottSlee opened 2 years ago

elliottSlee commented 2 years ago

User Story

As an applicant I want error pages that inform me of what went wrong and what I can do so that I can resolve any issues I encounters.

(Copy paste code from CIIP/CIF and release npm package)

Description

Suggestions from CAS: https://happo.io/a/336/components?projectId=1010&target=chrome&component=500%20page%20server-side&variant=default

Wireframes

Acceptance Criteria

#

Screen Shot 2022-09-08 at 10.59.41 AM.png # Screen Shot 2022-09-08 at 11.01.06 AM.png #

wenzowski commented 2 years ago

Presumably we want to have an ErrorContext https://github.com/bcgov/cas-cif/blob/develop/app/contexts/ErrorContext.ts

…installed in our app page… https://github.com/bcgov/cas-cif/blob/develop/app/pages/_app.tsx

With 404 page example https://github.com/bcgov/cas-cif/blob/develop/app/pages/404.tsx

And 500 page example https://github.com/bcgov/cas-cif/blob/develop/app/pages/500.tsx

matthieu-foucault commented 2 years ago

The ErrorContext's purpose is to have an application-wide method to display errors (e.g. "Your application could not be submitted"). 404 and 500 pages should be the only ones that are implemented, not the list of error pages that are currently in the acceptance criteria.

The 404 error message should be tweaked: The responses may not have been saved (and that message may not make sense to the user), and they may not need to log in again, or be logged in in the first place

matthieu-foucault commented 2 years ago

Please add your planning poker estimate with Zenhub @VB-at-Bis

matthieu-foucault commented 2 years ago

Not sure the ErrorContext should be part of the AC...