bcgov / bcgov/zeva2

ZEVA 2 - BCeID User ZEV Model Ineligible input handling

Open
#535 0 comments 0 reactions 1 assignee Claimed by @tim738745 View on GitHub
Medium Task tested
Dominant language
TypeScript
Stars
1
Forks
6
Avg merge
14h 22m
Merged PRs (30d)
32

Description

**Describe the task**
The way the system handles ineligible input values when the BCeID user is drafting a ZEV model object needs to be updated.

Warnings need to be modified: when a BCeID user is drafting a ZEV Model object for submission, the system should specifically warn them if they are inputting ineligible GVWR or Electric EPA Range values and make it clear which value is ineligible. E.g. If an ineligible GVWR value is entered, tell the user that their input GVWR value is ineligible. This warning should use the design system component - Status Tags - for this warning.

Ineligible Values need to be updated: The system should allow any positive _Electric EPA Range_ value as an eligible value (Greater than 0). The IDIR users would like to manually review Range values such that the BCeID user should be able to submit any range that is not negative.

The system should restrict eligible GVWR values to integers less than 4,536 kg and greater than 0 (zero)

**Purpose**
This change is needed to improve the usability of the BCeID ZEV model submission functionality. It also aligns the system more closely with ZEVA 1.

**Acceptance Criteria**
- [x] When a BCeID user is drafting a ZEV Model object, and they enter an ineligible _GVWR_ value, the system should warn them the value is ineligible prior to their attempt to submit the ZEV model.
- [x] Eligible GVWR Values are integers greater than 0 and less than or equal to 4,536.
- [x] When a BCeID user is drafting a ZEV Model object, and they enter an ineligible _Electric EPA Range (km)_ value, the system should warn them the value is ineligible prior to attempting to submit the ZEV model.
- [x] Eligible _Electric EPA Range (km)_ values are all integers greater than zero.
- [x] The ineligible warning should use the design system components - specifically the 'warning' status tags.

**Additional context**
- Weere possible use design system components from Figma

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.