mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-04 20:42:05 +00:00
27 lines
1.2 KiB
Markdown
27 lines
1.2 KiB
Markdown
|
|
## Jira
|
||
|
|
|
||
|
|
- [SH-189](https://luby-us.atlassian.net/browse/SH-189)
|
||
|
|
|
||
|
|
## QA residual
|
||
|
|
|
||
|
|
- P0 done: duplicate dialog also on **wizard create** (not only table cell).
|
||
|
|
- P1 polish: Cancel / View Existing copy tweaks.
|
||
|
|
|
||
|
|
## Summary
|
||
|
|
|
||
|
|
- Show a confirmation dialog when inline WO number editing **or wizard create** detects a duplicate instead of navigating immediately to the existing work order.
|
||
|
|
- Dialog title: **Duplicate Work Order Number**; actions: **View existing** (opens the existing WO via slide-over route) and **Dismiss** (closes the dialog and keeps the current row editable).
|
||
|
|
- Duplicate scan logic shared via `find-duplicate-wo-number-row`.
|
||
|
|
|
||
|
|
## Test plan
|
||
|
|
|
||
|
|
- [ ] Edit a WO number in the table to match an existing row → dialog opens with the duplicate number in the message.
|
||
|
|
- [ ] Click **Dismiss** → dialog closes; edited row keeps its original number.
|
||
|
|
- [ ] Repeat duplicate entry → click **View existing** → navigates to `/workorders/{id}` for the existing row.
|
||
|
|
- [ ] Wizard create with duplicate WO number → same dialog; **View existing** closes wizard and opens `/workorders/{id}`.
|
||
|
|
|
||
|
|
## Out of scope
|
||
|
|
|
||
|
|
- Server-side uniqueness (422) handling
|
||
|
|
- SH provisional numbering
|