8e9e48d9b4
Release package / release (push) Successful in 9m19s
Co-authored-by: Thanh Quy - wolf <524H0124@student.tdtu.edu.vn> Co-authored-by: Thanh Quy- wolf <524H0124@student.tdtu.edu.vn> Reviewed-on: #42 Co-authored-by: TaNguyenThanhQuy <tanguyenthanhquy@noreply.localhost> Co-committed-by: TaNguyenThanhQuy <tanguyenthanhquy@noreply.localhost>
11 lines
569 B
Markdown
11 lines
569 B
Markdown
# TODO - Add image upload field for manager add/update menu item
|
|
|
|
- [x] Update GraphQL queries/mutations in `lib/manager-context.tsx` to include `imageUrl`
|
|
- [x] Update `components/organisms/manager/ProductModal.tsx`
|
|
- [x] Add file input for image selection
|
|
- [x] Add upload button to call `POST /api/file`
|
|
- [x] Store returned URL string into `form.imageUrl`
|
|
- [x] Show upload/loading/error states and image preview
|
|
- [x] Update `components/organisms/manager/ProductsTab.tsx` to show image thumbnail in table
|
|
- [x] Mark TODO progress after each step completed
|