From 4a42a6054c07a47b85049690e4c5a491f5e1e8f4 Mon Sep 17 00:00:00 2001 From: Padreug Date: Mon, 11 May 2026 20:13:17 +0200 Subject: [PATCH] feat(hub): wire Restaurant tile + bump dev port to 5187 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Restaurant chakra tile was stubbed as 'coming soon' since the bundle didn't exist. Now that aiolabs/webapp ships a restaurant bundle, switch it to envKey-driven so deploys can set VITE_HUB_RESTAURANT_URL the same way they set the other 7 standalones. Also bumps the vite dev port from 5186 → 5187 — tasks was already on 5186 and `npm run dev:all` raced. Co-Authored-By: Claude Opus 4.7 (1M context) --- .env.example | 3 +++ src/pages/Hub.vue | 2 +- vite.restaurant.config.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 63b30aa..99327b7 100644 --- a/.env.example +++ b/.env.example @@ -64,6 +64,7 @@ VITE_MARKET_NADDR=naddr1qqjxgdp4vv6rydej943n2dny956rwwf4943xzwfc95ekyd3evenrsvrr # VITE_HUB_FORUM_URL=http://localhost:5184 # VITE_HUB_MARKET_URL=http://localhost:5185 # VITE_HUB_TASKS_URL=http://localhost:5186 +# VITE_HUB_RESTAURANT_URL=http://localhost:5187 # # In PATH-MODE production (recommended for demo) — note the trailing slash: # VITE_HUB_ACTIVITIES_URL=https://demo.example.com/activities/ @@ -73,6 +74,7 @@ VITE_MARKET_NADDR=naddr1qqjxgdp4vv6rydej943n2dny956rwwf4943xzwfc95ekyd3evenrsvrr # VITE_HUB_FORUM_URL=https://demo.example.com/forum/ # VITE_HUB_MARKET_URL=https://demo.example.com/market/ # VITE_HUB_TASKS_URL=https://demo.example.com/tasks/ +# VITE_HUB_RESTAURANT_URL=https://demo.example.com/restaurant/ # # In SUBDOMAIN-MODE production: # VITE_HUB_ACTIVITIES_URL=https://sortir.example.com @@ -86,6 +88,7 @@ VITE_HUB_CHAT_URL= VITE_HUB_FORUM_URL= VITE_HUB_MARKET_URL= VITE_HUB_TASKS_URL= +VITE_HUB_RESTAURANT_URL= # ─────────────────────────────────────────────────────────────────────── # VITE_HUB_ROOT_URL — standalone → hub (the inverse of the URLs above) diff --git a/src/pages/Hub.vue b/src/pages/Hub.vue index 85eda00..d4d608b 100644 --- a/src/pages/Hub.vue +++ b/src/pages/Hub.vue @@ -29,7 +29,7 @@ interface Module { // Lower (root/red) → upper (crown/violet) const modules: Module[] = [ - { label: 'Restaurant', chakra: 'Muladhara', icon: UtensilsCrossed, bgClass: '', glow: 'rgba(255,80,80,0.5)', status: 'coming soon' }, + { label: 'Restaurant', chakra: 'Muladhara', icon: UtensilsCrossed, bgClass: '', glow: 'rgba(255,80,80,0.5)', envKey: 'VITE_HUB_RESTAURANT_URL', status: 'alpha' }, { label: 'Market', chakra: 'Muladhara', icon: Store, bgClass: '', glow: 'rgba(255,80,80,0.5)', envKey: 'VITE_HUB_MARKET_URL', status: 'alpha' }, { label: 'Wallet', chakra: 'Manipura', icon: Wallet, bgClass: '', glow: 'rgba(255,200,0,0.5)', envKey: 'VITE_HUB_WALLET_URL', status: 'alpha', authRequired: true }, { label: 'Activities', chakra: 'Swadhisthana', icon: CalendarDays, bgClass: '', glow: 'rgba(255,165,0,0.5)', envKey: 'VITE_HUB_ACTIVITIES_URL', status: 'beta' }, diff --git a/vite.restaurant.config.ts b/vite.restaurant.config.ts index 506655b..c9c697c 100644 --- a/vite.restaurant.config.ts +++ b/vite.restaurant.config.ts @@ -46,7 +46,7 @@ export default defineConfig(({ mode }) => ({ // Per-app dep cache so concurrent dev servers don't race on .vite/deps cacheDir: 'node_modules/.vite-restaurant', server: { - port: 5186, + port: 5187, strictPort: true, }, plugins: [