Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
bf2171a
pay
dopoto May 12, 2025
4758d17
wip paymentIntent created
dopoto May 12, 2025
205e82a
wip
dopoto May 13, 2025
f669f52
wip
dopoto May 13, 2025
2047041
wip
dopoto May 13, 2025
0a27804
wip footer checkout
dopoto May 13, 2025
1b03d4a
wip
dopoto May 13, 2025
7a7fc19
fix Pay button
dopoto May 13, 2025
82cae55
menu mode
dopoto May 13, 2025
6baf2b4
wip
dopoto May 14, 2025
d5d2f3a
wip
dopoto May 14, 2025
fb8fb9e
status
dopoto May 14, 2025
e4012aa
your order
dopoto May 14, 2025
984a313
fix ts
dopoto May 15, 2025
8f74ebe
wip
dopoto May 15, 2025
1f8d503
wip
dopoto May 15, 2025
3215833
wip
dopoto May 15, 2025
179efb2
items
dopoto May 15, 2025
3bfc030
add order
dopoto May 15, 2025
8fc11c7
o items
dopoto May 15, 2025
499b21c
css
dopoto May 15, 2025
00da35c
wip
dopoto May 15, 2025
7665d91
wip
dopoto May 15, 2025
0f79dbb
fix ts
dopoto May 15, 2025
1ff9644
oidf
dopoto May 15, 2025
d63e11c
jotai
dopoto May 15, 2025
948d4bb
wip no ts errors
dopoto May 16, 2025
704a5b5
wip
dopoto May 18, 2025
ecbcc57
sort
dopoto May 19, 2025
180cf78
works
dopoto May 19, 2025
46567d3
wip
dopoto May 19, 2025
1c1af52
update order
dopoto May 19, 2025
dacf10b
refactor
dopoto May 19, 2025
fb00045
fix
dopoto May 19, 2025
827485e
three state
dopoto May 22, 2025
aa7d621
ts
dopoto May 22, 2025
8a74139
es
dopoto May 22, 2025
315be8a
migs
dopoto May 22, 2025
b98e99f
prettier
dopoto May 22, 2025
920cf1d
cleanup
dopoto May 22, 2025
b8e4b43
fix
dopoto May 22, 2025
92d7119
fix posthog
dopoto May 22, 2025
bb62855
add edit location menu mode
dopoto May 22, 2025
b411d32
ts
dopoto May 22, 2025
dd98d52
lint
dopoto May 22, 2025
e86ff59
cleanup
dopoto May 22, 2025
d971a3f
rm
dopoto May 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,11 @@ POSTHOG_PROJECT_ID=12345...
POSTHOG_ANALYTICS_QUERIES_API_KEY=phx_...

# See https://vercel.com/docs/edge-config/get-started
EDGE_CONFIG="https://edge-config.vercel.com/...
EDGE_CONFIG="https://edge-config.vercel.com/...

PUSHER_APP_ID=your_app_id
PUSHER_APP_KEY=your_app_key
PUSHER_APP_SECRET=your_app_secret
PUSHER_CLUSTER=your_cluster
NEXT_PUBLIC_PUSHER_APP_KEY=your_app_key
NEXT_PUBLIC_PUSHER_CLUSTER=your_cluster
18 changes: 14 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"explorer.compactFolders": false,
"typescript.preferences.importModuleSpecifier": "non-relative",
"javascript.preferences.importModuleSpecifier": "non-relative"
"typescript.tsdk": "node_modules\\typescript\\lib",
"explorer.compactFolders": false,
"typescript.preferences.importModuleSpecifier": "non-relative",
"javascript.preferences.importModuleSpecifier": "non-relative",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"eslint.enable": true,
"eslint.format.enable": true,
"editor.formatOnSave": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always"
}
3 changes: 3 additions & 0 deletions drizzle/0006_gorgeous_roxanne_simpson.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE "next-menu_location" ADD COLUMN "currency_id" varchar(3) DEFAULT 'USD' NOT NULL;--> statement-breakpoint
ALTER TABLE "next-menu_location" ADD COLUMN "menu_mode" varchar(20) DEFAULT 'noninteractive' NOT NULL;--> statement-breakpoint
ALTER TABLE "next-menu_menu" DROP COLUMN "currency_id";
17 changes: 17 additions & 0 deletions drizzle/0007_tense_may_parker.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CREATE TABLE "next-menu_order_item" (
"id" integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY (sequence name "next-menu_order_item_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
"order_id" integer NOT NULL,
"status" varchar(10) DEFAULT 'draft' NOT NULL,
"created_at" timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
"updated_at" timestamp with time zone
);
--> statement-breakpoint
CREATE TABLE "next-menu_order" (
"id" integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY (sequence name "next-menu_order_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
"location_id" integer NOT NULL,
"created_at" timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
"updated_at" timestamp with time zone
);
--> statement-breakpoint
ALTER TABLE "next-menu_order_item" ADD CONSTRAINT "next-menu_order_item_order_id_next-menu_order_id_fk" FOREIGN KEY ("order_id") REFERENCES "public"."next-menu_order"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "next-menu_order" ADD CONSTRAINT "next-menu_order_location_id_next-menu_location_id_fk" FOREIGN KEY ("location_id") REFERENCES "public"."next-menu_location"("id") ON DELETE no action ON UPDATE no action;
5 changes: 5 additions & 0 deletions drizzle/0008_low_the_renegades.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE "next-menu_order_item" ADD COLUMN "menu_item_id" integer NOT NULL;--> statement-breakpoint
ALTER TABLE "next-menu_order_item" ADD COLUMN "is_delivered" boolean DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE "next-menu_order_item" ADD COLUMN "is_paid" boolean DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE "next-menu_order_item" ADD CONSTRAINT "next-menu_order_item_menu_item_id_next-menu_menu_item_id_fk" FOREIGN KEY ("menu_item_id") REFERENCES "public"."next-menu_menu_item"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "next-menu_order_item" DROP COLUMN "status";
Loading