bcgov / bcgov/cas-reporting

Alerts: Make error messages in Allocation of Emissions page display after action

Open
#616 5 comments 0 reactions 0 assignees View on GitHub
Design Backlog Task
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

#### Describe the task

Make the error messages in the Allocation of Emissions page display only after clicking `Save` or `Save & Continue`

Error messages:
- `All emissions must be allocated to 100% before saving and continuing`
- `A methodology must be selected before saving and continuing`

Currently, these messages show up immediately on the page and only disappear if/when you have selected a methodology and filled out the allocation to 100%.

This ticket is to fix this so that the messages ONLY display if you try and save/save & continue without a methodology and/or 100% allocation.

#### Acceptance Criteria

- [ ] first
- [ ] second
- [ ] third

#### Definition of Done

- [ ] first
- [ ] second
- [ ] third

#### Additional context

- Add any other context about the task here.
- Or here

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Allocation of Emissions page and trace how the methodology and 100% allocation validations are rendered and triggered. Reproduce the page with missing values, then use Save and Save & Continue to confirm each relevant error appears only after those actions and disappears when the inputs are valid.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.