feat(admin): refactor UMKM edit pages to match berita pattern
This commit is contained in:
22
MIND/PLAN/refactor-umkm-edit-pages-pattern.md
Normal file
22
MIND/PLAN/refactor-umkm-edit-pages-pattern.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Plan - Refactor UMKM Edit Pages Pattern
|
||||
|
||||
## Problem
|
||||
The edit pages for UMKM (Data UMKM and Produk) use an older UI pattern. The user wants to align them with the newer pattern used in the Berita edit page.
|
||||
|
||||
## Strategy
|
||||
1. Analyze the pattern in `src/app/admin/(dashboard)/desa/berita/list-berita/[id]/edit/page.tsx`.
|
||||
2. Refactor `src/app/admin/(dashboard)/ekonomi/umkm/produk/[id]/edit/page.tsx` to match the pattern.
|
||||
3. Refactor `src/app/admin/(dashboard)/ekonomi/umkm/data-umkm/[id]/edit/page.tsx` to match the pattern.
|
||||
4. Add "Batal" (Reset) functionality to both pages.
|
||||
5. Standardize UI components (Header, Paper, Dropzone, Action buttons).
|
||||
6. Verify with a production build.
|
||||
7. Follow the versioning and deployment workflow.
|
||||
|
||||
## Progress
|
||||
- [x] Analyze Berita edit page pattern
|
||||
- [x] Refactor UMKM Produk edit page
|
||||
- [x] Refactor Data UMKM edit page
|
||||
- [ ] Run build and fix any errors
|
||||
- [ ] Update version in package.json
|
||||
- [ ] Commit and push to task branch
|
||||
- [ ] Merge to stg branch
|
||||
12
MIND/PLAN/task-refactor-umkm-edit-pages-pattern.md
Normal file
12
MIND/PLAN/task-refactor-umkm-edit-pages-pattern.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# Task - Refactor UMKM Edit Pages Pattern
|
||||
|
||||
Refactor Data UMKM and Produk edit pages to match the Berita edit page UI pattern and logic.
|
||||
|
||||
## Steps
|
||||
1. [x] Analyze `berita/list-berita/[id]/edit/page.tsx` for the desired pattern.
|
||||
2. [x] Implement the pattern in `ekonomi/umkm/produk/[id]/edit/page.tsx`.
|
||||
3. [x] Implement the pattern in `ekonomi/umkm/data-umkm/[id]/edit/page.tsx`.
|
||||
4. [ ] Run `bun run build` to verify.
|
||||
5. [ ] Update `package.json` version.
|
||||
6. [ ] Commit with message: "feat(admin): refactor UMKM edit pages to match berita pattern".
|
||||
7. [ ] Create summary in `MIND/SUMMARY/refactor-umkm-edit-pages-pattern-summary.md`.
|
||||
Reference in New Issue
Block a user