bcgov / bcgov/bcparks-ar-admin

A&R -> Issue with the "Enter data" page filters

Open
#261 0 comments 0 reactions 0 assignees View on GitHub
A&R
Dominant language
TypeScript
Stars
5
Forks
15
PR merge metrics
No merged PRs in 30d

Description

## Description

> [!NOTE]
This issue also happens when selecting a subarea.

How to replicate:
* Navigate to the `A&R` on test environment
* Log in as a user who has access to multiple Parks and sub-areas.
* Navigate to the `Enter Data` page.
* Now select a month, then select a park and a sub-area → click on `Go` (eg: 02/ 2023; Golden ears park; Gold creek)
* Then perform the following actions and check the behavior and console errors.
1. Choose the default option `Select an option` on the field `Sub-areas` and check for console errors.
2. Try to select another Park to enter data for the same month as above. (for the same month 02/2023)
3. Try to change the month and then select a different park and check the console errors before choosing the Sub-area option. (eg: 03/2023; Mount Seymour park)

## Expected Behavior
* Need to decide the best way to handle all the scenarios.

## Issues
1. When the field Sub-areas is set to the default option console errors are displayed.
2. To be able to select a different park you need to change the month to a different month and select again.
3. Console errors similar to issue in `#1` could be seen.

![Image](https://github.com/bcgov/bcparks-ar-admin/assets/145403218/d79d7c35-f0be-482e-bebd-4f47e27bebf4)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Enter Data page scenarios in the test environment with a user who can access multiple parks and sub-areas, while watching the browser console. Inspect the page's month, park, and sub-area filters; done means users can reset sub-areas, switch parks for the same month, and change month and park without console errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.