feat(reviews): "Мои" tab — maker self-tracking with status filter

This commit is contained in:
Александр Зимин
2026-05-14 14:06:30 +00:00
parent a6a07428ed
commit be58b61913
6 changed files with 805 additions and 71 deletions
+7 -23
View File
@@ -6,30 +6,14 @@ the **Context** to understand the motivation without re-running the review.
---
## 1. `/reviews` "Мои" tab — maker visibility
## 1. `/reviews` "Мои" tab — maker visibility ✅ SHIPPED MR !188
**What.** Add a third tab "Мои" on the `/reviews` page with three sub-sections:
Pending (drafts awaiting review), Decided (drafts that received a verdict),
WIP (drafts the maker started but did not yet submit).
**Why.** Today the maker has no surface to see "where are my drafts?". MR !170
added the backend (`listByMaker` + analogous schema endpoint), but the UI never
got the entry point. Reviewer's queue mixes records and schemas — symmetric
"my drafts" view is missing.
**Pros.** Reuses `/reviews` page chrome. Backend endpoints already exist. Closes
the loop on the maker journey ("submit → ??? → ..." now has a destination).
**Cons.** Adds two more list queries to the page. Need to think about whether
the existing reviewer "Записи / Схемы" toggle nests inside "Мои" too (so 6 panels
total) or "Мои" is flat.
**Context.** Review pass 1 rated information architecture 6/10 specifically
because maker visibility was missing. User chose "third tab on /reviews"
over a separate `/my-drafts` route — keeps everything in one place.
**Depends on / blocked by.** Nothing — endpoints live (`/admin/dictionaries/*/drafts?makerId=...`
and analogous for schemas).
Closed via MR !188 (2026-05-14). Final shape: flat mixed timeline (records
+ schemas together sorted DESC), filter chips All/Pending/WIP/Decided with
per-bucket counts, ReviewDrawer status-aware (read-only decision banner for
terminal states, Withdraw for own-pending). 13 unit tests on classifiers + 32
i18n keys. Schema rows link to /dictionaries/$name (existing drawer there);
record rows reuse ReviewDrawer with status-gated footer.
---