bcgov / bcgov/parks-data-register

[M] UIs for Edit record - make change to current data

Open
#30 7 comments 0 reactions 1 assignee Claimed by @danieltruong View on GitHub
UI/FE
Dominant language
JavaScript
Stars
5
Forks
7
PR merge metrics
No merged PRs in 30d

Description

As a data register data admin, I need to be able to make minor (not connected to legal processes) changes to a name record, preview changes, and save changes if all looks good so that I can change park name information when necessary and have it available in the register.

### Acceptance Criteria:

- UI matches designs and specs in attached screen grabs (UI numbers - 1.1.1, 1.1.1.1a, 1.1.1.1b, 1.1.1.1c)

**User experience:**
- User can select the type of edit they want to do (Edit existing data, Change current legal name, Repeal)
- User can do minor edits on these attributes of the current name: effective date, legal name, display name, phonetic name, audio link
- ~~User can edit search terms~~ (will be added in a later ticket)
- ~~User can add notes~~ (will be added in a later ticket)
- User can preview changes
- User can save changes
- User sees a success or fail toast

**Backend:**
- Changes are saved to database (overwriting previous data)
- Change details are saved in audit log

**Note:**
Page 1.1.1.1a is very similar to page in ticket #132 _1.1.1.2 Edit record - change legal name_

![Image](https://github.com/bcgov/parks-data-register/assets/26172886/ef541a5e-3e51-4164-a98a-3f01a6f3a4ee)
![Image](https://github.com/bcgov/parks-data-register/assets/26172886/b6393f8e-a97a-4ee9-bd48-f2eb1ea3f677)
![Image](https://github.com/bcgov/parks-data-register/assets/26172886/9445b95a-6ea4-4558-b658-d6f32d190228)
![Image](https://github.com/bcgov/parks-data-register/assets/26172886/ffe95cfb-dfcf-41c5-8d5d-af072a8d0b6b)

**Designs are approved**
[Choose edit type](https://www.figma.com/file/qdjegD6YHWZPlyFT8dGXvk/Park-Name-Data-Register?type=design&node-id=948%3A7065&mode=design&t=Eu4aHcNuIFqqcMNb-1)
[Edit record - minor edits](https://www.figma.com/file/qdjegD6YHWZPlyFT8dGXvk/Park-Name-Data-Register?type=design&node-id=714%3A2289&mode=design&t=Eu4aHcNuIFqqcMNb-1)
[Edit records - minor edits - confirm](https://www.figma.com/file/qdjegD6YHWZPlyFT8dGXvk/Park-Name-Data-Register?type=design&node-id=940%3A6176&mode=design&t=Eu4aHcNuIFqqcMNb-1)
[Edit records - minor edits - repealed](https://www.figma.com/file/qdjegD6YHWZPlyFT8dGXvk/Park-Name-Data-Register?type=design&node-id=911%3A5572&mode=design&t=Eu4aHcNuIFqqcMNb-1)

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.