chore: release [ci skip]

This commit is contained in:
gitea-actions
2026-05-14 03:39:58 +00:00
parent 8e9e48d9b4
commit 378e381454
6 changed files with 12 additions and 9 deletions
+4 -2
View File
@@ -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
+2 -1
View File
@@ -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,
+1 -1
View File
@@ -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:
+2 -2
View File
@@ -124,11 +124,11 @@ export function CartProvider({ children }: { children: React.ReactNode }) {
}; };
if (error) { if (error) {
createCartFunc(); createCartFunc();
} else if (!cartId) { } else if (!cartId) {
const localCartId = localStorage.getItem(CART_ID); const localCartId = localStorage.getItem(CART_ID);
if (localCartId) setCartId(localCartId); if (localCartId) setCartId(localCartId);
else createCartFunc(); else createCartFunc();
} }
}, [eateryData, createCart, data, loading, error]); }, [eateryData, createCart, data, loading, error]);
+2 -2
View File
@@ -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
View File
@@ -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",