chore: release [ci skip]
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
# 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] 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] Update `components/organisms/manager/ProductsTab.tsx` to show image
|
||||
thumbnail in table
|
||||
- [x] Mark TODO progress after each step completed
|
||||
|
||||
@@ -25,7 +25,8 @@ export default function PaymentPage() {
|
||||
const { products } = useManager();
|
||||
|
||||
const findProduct = (id: string): MenuItemEntity =>
|
||||
products.find((i) => i.id == id) ?? ({
|
||||
products.find((i) => i.id == id) ??
|
||||
({
|
||||
name: "Unknown product",
|
||||
description: "",
|
||||
price: 0,
|
||||
|
||||
@@ -16,7 +16,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: frontend-container
|
||||
image: git.demonkernel.io.vn/foodsurf/frontend:1.2.8
|
||||
image: git.demonkernel.io.vn/foodsurf/frontend:1.2.9
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
resources:
|
||||
|
||||
@@ -124,11 +124,11 @@ export function CartProvider({ children }: { children: React.ReactNode }) {
|
||||
};
|
||||
|
||||
if (error) {
|
||||
createCartFunc();
|
||||
createCartFunc();
|
||||
} else if (!cartId) {
|
||||
const localCartId = localStorage.getItem(CART_ID);
|
||||
if (localCartId) setCartId(localCartId);
|
||||
else createCartFunc();
|
||||
else createCartFunc();
|
||||
}
|
||||
}, [eateryData, createCart, data, loading, error]);
|
||||
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "temp",
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.9",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "temp",
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.9",
|
||||
"dependencies": {
|
||||
"@apollo/client": "^4.1.9",
|
||||
"@tailwindcss/postcss": "^4.2.4",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "temp",
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
Reference in New Issue
Block a user