From 127d692058c8368686d073f5556f69531a8f22da Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 15 Apr 2026 16:48:30 -0400 Subject: [PATCH] fix(rcred): add Vite build entry + fix script path + darken badge color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dashboard was empty because folk-cred-dashboard.ts had no Vite build entry — the JS never got compiled. Add build step to vite.config.ts, fix script src to /dist/modules/rcred/folk-cred-dashboard.js, and darken badge background from #fbbf24 to #d97706 so it doesn't blend with the ⭐ emoji. Co-Authored-By: Claude Opus 4.6 --- modules/rcred/mod.ts | 2 +- server/shell.ts | 2 +- shared/components/rstack-app-switcher.ts | 2 +- shared/components/rstack-tab-bar.ts | 2 +- vite.config.ts | 21 +++++++++++++++++++++ 5 files changed, 25 insertions(+), 4 deletions(-) diff --git a/modules/rcred/mod.ts b/modules/rcred/mod.ts index f99c9308..8a34d883 100644 --- a/modules/rcred/mod.ts +++ b/modules/rcred/mod.ts @@ -38,7 +38,7 @@ routes.get('/', (c) => { moduleId: 'rcred', modules: getModuleInfoList(), body: ``, - scripts: '', + scripts: '', }), ); }); diff --git a/server/shell.ts b/server/shell.ts index 7a72ee95..b61075d3 100644 --- a/server/shell.ts +++ b/server/shell.ts @@ -55,7 +55,7 @@ const FAVICON_BADGE_MAP: Record = { rdata: { badge: "r📊", color: "#d8b4fe" }, ragents: { badge: "r🤖", color: "#6ee7b7" }, rids: { badge: "r🪪", color: "#6ee7b7" }, - rcred: { badge: "r⭐", color: "#fbbf24" }, + rcred: { badge: "r⭐", color: "#d97706" }, rstack: { badge: "r✨", color: "#c4b5fd" }, }; diff --git a/shared/components/rstack-app-switcher.ts b/shared/components/rstack-app-switcher.ts index b1ac517d..87bb8f82 100644 --- a/shared/components/rstack-app-switcher.ts +++ b/shared/components/rstack-app-switcher.ts @@ -54,7 +54,7 @@ const MODULE_BADGES: Record = { rauctions: { badge: "r🎭", color: "#fca5a5" }, // red-300 // Govern rgov: { badge: "r⚖️", color: "#94a3b8" }, // slate-400 - rcred: { badge: "r⭐", color: "#fbbf24" }, // amber-400 + rcred: { badge: "r⭐", color: "#d97706" }, // amber-600 // Media rphotos: { badge: "r📸", color: "#f9a8d4" }, // pink-200 rfiles: { badge: "r📁", color: "#67e8f9" }, // cyan-300 diff --git a/shared/components/rstack-tab-bar.ts b/shared/components/rstack-tab-bar.ts index 3426fb6a..ccc0375a 100644 --- a/shared/components/rstack-tab-bar.ts +++ b/shared/components/rstack-tab-bar.ts @@ -55,7 +55,7 @@ const MODULE_BADGES: Record = { rtasks: { badge: "r📋", color: "#cbd5e1" }, rschedule: { badge: "r⏱", color: "#a5b4fc" }, rids: { badge: "r🪪", color: "#6ee7b7" }, - rcred: { badge: "r⭐", color: "#fbbf24" }, + rcred: { badge: "r⭐", color: "#d97706" }, rstack: { badge: "r✨", color: "" }, }; diff --git a/vite.config.ts b/vite.config.ts index 0c503596..7794ef5e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1503,6 +1503,27 @@ export default defineConfig({ }, }); + // ── rCred: folk-cred-dashboard ── + mkdirSync(resolve(__dirname, "dist/modules/rcred"), { recursive: true }); + await wasmBuild({ + configFile: false, + root: resolve(__dirname, "modules/rcred/components"), + build: { + emptyOutDir: false, + outDir: resolve(__dirname, "dist/modules/rcred"), + lib: { + entry: resolve(__dirname, "modules/rcred/components/folk-cred-dashboard.ts"), + formats: ["es"], + fileName: () => "folk-cred-dashboard.js", + }, + rollupOptions: { + output: { + entryFileNames: "folk-cred-dashboard.js", + }, + }, + }, + }); + // ── Generate content hashes for cache-busting ── const { readdirSync, readFileSync, writeFileSync, statSync: statSync2 } = await import("node:fs"); const { createHash } = await import("node:crypto");