chore: release [ci skip]
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
# TODO - Add image upload field for manager add/update menu item
|
# 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 GraphQL queries/mutations in `lib/manager-context.tsx` to include
|
||||||
|
`imageUrl`
|
||||||
- [x] Update `components/organisms/manager/ProductModal.tsx`
|
- [x] Update `components/organisms/manager/ProductModal.tsx`
|
||||||
- [x] Add file input for image selection
|
- [x] Add file input for image selection
|
||||||
- [x] Add upload button to call `POST /api/file`
|
- [x] Add upload button to call `POST /api/file`
|
||||||
- [x] Store returned URL string into `form.imageUrl`
|
- [x] Store returned URL string into `form.imageUrl`
|
||||||
- [x] Show upload/loading/error states and image preview
|
- [x] Show upload/loading/error states and image preview
|
||||||
- [x] Update `components/organisms/manager/ProductsTab.tsx` to show image thumbnail in table
|
- [x] Update `components/organisms/manager/ProductsTab.tsx` to show image
|
||||||
|
thumbnail in table
|
||||||
- [x] Mark TODO progress after each step completed
|
- [x] Mark TODO progress after each step completed
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ export default function PaymentPage() {
|
|||||||
const { products } = useManager();
|
const { products } = useManager();
|
||||||
|
|
||||||
const findProduct = (id: string): MenuItemEntity =>
|
const findProduct = (id: string): MenuItemEntity =>
|
||||||
products.find((i) => i.id == id) ?? ({
|
products.find((i) => i.id == id) ??
|
||||||
|
({
|
||||||
name: "Unknown product",
|
name: "Unknown product",
|
||||||
description: "",
|
description: "",
|
||||||
price: 0,
|
price: 0,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: frontend-container
|
- name: frontend-container
|
||||||
image: git.demonkernel.io.vn/foodsurf/frontend:1.2.8
|
image: git.demonkernel.io.vn/foodsurf/frontend:1.2.9
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "temp",
|
"name": "temp",
|
||||||
"version": "1.2.8",
|
"version": "1.2.9",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "temp",
|
"name": "temp",
|
||||||
"version": "1.2.8",
|
"version": "1.2.9",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "^4.1.9",
|
"@apollo/client": "^4.1.9",
|
||||||
"@tailwindcss/postcss": "^4.2.4",
|
"@tailwindcss/postcss": "^4.2.4",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "temp",
|
"name": "temp",
|
||||||
"version": "1.2.8",
|
"version": "1.2.9",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user