cityofaustin / cityofaustin/techstack

Publish pre-flight: page-level error message handling

Open
#4,024 2 comments 0 reactions 0 assignees View on GitHub
Feature: Staff Permissions & Roles Team: Dev
Dominant language
No language data
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### As an author, if there are errors for content when publishing a page I want a summary of those errors at the top so I know what the problem was and can go looking for details.

See [Mocks](https://app.abstract.com/share/e75c484e-cf36-48d6-9f1d-e4c6338f1cee?mode=design&sha=a02a5e5554ce45040316079b975ec46d0b8ee39b)

- [ ] Page-level error messaging
- [ ] Design: Style matches mocks
- [ ] Appears below the page header controls but above "title" field
- [ ] Content: `Please fix x errors before publishing`, where `x` is the number of errors on a page.

### Acceptance criteria

- [ ] The page level error adds up all the total errors for the page and displays a summary statement.
- [ ] The summary statement's error number is equal to the total number of errors on the page.
- [ ] These errors can be validation errors, missing fields required to save a draft, or missing fields required to publish (basically any sort of Django form error, model error, or publish preflight error)

### Outstanding issues:
In Django/Wagtail, there are some kinds of errors which are non-field level errors, but errors associated with the page itself. If such an error occurs, where do we want the error to show up? (I can dig around for an example)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.