docs: add plan, task, and summary for admin-umkm-edit
This commit is contained in:
24
MIND/PLAN/admin-umkm-edit.md
Normal file
24
MIND/PLAN/admin-umkm-edit.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Plan - Admin UMKM & Produk Edit Pages
|
||||
|
||||
## Problem
|
||||
Admin UMKM module list pages have "Edit" buttons that are not functional, and there are no edit pages or update state logic implemented.
|
||||
|
||||
## Strategy
|
||||
1. Update Valtio state in `src/app/admin/(dashboard)/_state/ekonomi/umkm/umkm.ts` with `update` modules for UMKM and Produk.
|
||||
2. Delete Valtio state in `src/app/admin/(dashboard)/_state/ekonomi/umkm/umkm.ts` with `del` modules for UMKM and Produk.
|
||||
3. Add `onClick` handlers to "Edit" buttons in list pages.
|
||||
4. Create new edit pages.
|
||||
5. Use `ModalKonfirmasiHapus` component for delete actions.
|
||||
6. Verify changes with a successful build.
|
||||
7. Follow deployment workflow.
|
||||
|
||||
## Progress
|
||||
- [x] Update Valtio state with update modules
|
||||
- [x] Update Valtio state with delete modules
|
||||
- [x] Wire edit and delete buttons in list pages
|
||||
- [x] Create UMKM edit page
|
||||
- [x] Create Produk edit page
|
||||
- [x] Build and fix errors
|
||||
- [x] Update version in package.json
|
||||
- [x] Commit and push to branch
|
||||
- [x] Merge to stg and push to remotes
|
||||
14
MIND/PLAN/task-admin-umkm-edit.md
Normal file
14
MIND/PLAN/task-admin-umkm-edit.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Task - Admin UMKM & Produk Edit functionality
|
||||
|
||||
## Description
|
||||
Implement Edit and Delete functionality for UMKM and Produk modules in the admin dashboard.
|
||||
|
||||
## Tasks
|
||||
- [x] Update Valtio state with update/delete modules for UMKM and Produk
|
||||
- [x] Wire edit/delete buttons in `src/app/admin/(dashboard)/ekonomi/umkm/data-umkm/page.tsx`
|
||||
- [x] Wire edit/delete buttons in `src/app/admin/(dashboard)/ekonomi/umkm/produk/page.tsx`
|
||||
- [x] Create edit page for UMKM at `src/app/admin/(dashboard)/ekonomi/umkm/data-umkm/[id]/edit/page.tsx`
|
||||
- [x] Create edit page for Produk at `src/app/admin/(dashboard)/ekonomi/umkm/produk/[id]/edit/page.tsx`
|
||||
- [x] Ensure `ModalKonfirmasiHapus` is used correctly
|
||||
- [x] Run `bun run build` and fix errors
|
||||
- [x] Push to task branch and merge to stg
|
||||
15
MIND/SUMMARY/admin-umkm-edit-summary.md
Normal file
15
MIND/SUMMARY/admin-umkm-edit-summary.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Summary - Admin UMKM & Produk Edit functionality
|
||||
|
||||
## Changes
|
||||
- **Valtio State**: Added `update` and `del` methods for UMKM and Produk modules in `src/app/admin/(dashboard)/_state/ekonomi/umkm/umkm.ts`.
|
||||
- **List Pages**: Updated `data-umkm/page.tsx` and `produk/page.tsx` to handle edit (navigation) and delete (confirmation modal + state action).
|
||||
- **Edit Pages**:
|
||||
- Created `src/app/admin/(dashboard)/ekonomi/umkm/data-umkm/[id]/edit/page.tsx`
|
||||
- Created `src/app/admin/(dashboard)/ekonomi/umkm/produk/[id]/edit/page.tsx`
|
||||
- **Component**: Integrated `ModalKonfirmasiHapus` with named import.
|
||||
- **Version**: Bumped to `0.1.21`.
|
||||
|
||||
## Verification
|
||||
- Successfully ran `bun run build`.
|
||||
- Pushed to `tasks/admin-umkm-edit/implement-edit-delete/2026-04-24-11-44`.
|
||||
- Merged to `stg` and pushed to `origin` and `deploy` remotes.
|
||||
Reference in New Issue
Block a user