claude-session-dashboard 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/client/assets/_dashboard-Job6DOd1.js +1 -0
  2. package/dist/client/assets/_sessionId-CIFXqjVa.js +12 -0
  3. package/dist/client/assets/app-CkRVT69z.css +1 -0
  4. package/dist/client/assets/{createServerFn-BLR4iNR3.js → createServerFn-6SJrpRCO.js} +1 -1
  5. package/dist/client/assets/index-DDr2smLW.js +1 -0
  6. package/dist/client/assets/main-B6FohBFQ.js +69 -0
  7. package/dist/client/assets/sessions.queries-ClgzoOt4.js +1 -0
  8. package/dist/client/assets/settings-DQD2EaIq.js +1 -0
  9. package/dist/client/assets/{settings.types-DHC6rkil.js → settings.types-LYd9Z8Y1.js} +1 -1
  10. package/dist/client/assets/stats-CrWQ_y2R.js +4 -0
  11. package/dist/client/assets/{useSessionCost-BikgEmWy.js → useSessionCost-Drt0v6oj.js} +1 -1
  12. package/dist/server/assets/{_dashboard-smfIqyQC.js → _dashboard-61fpMMMe.js} +7 -7
  13. package/dist/server/assets/{_sessionId-DIUMcrWR.js → _sessionId-B_O50OfN.js} +17 -17
  14. package/dist/server/assets/_tanstack-start-manifest_v-Dva5sIpS.js +4 -0
  15. package/dist/server/assets/{app-info.server-CXcS0a5s.js → app-info.api-CdaWsxHl.js} +2 -2
  16. package/dist/server/assets/{index-hFrIPkke.js → index-BYcFI9Ho.js} +6 -6
  17. package/dist/server/assets/{project-analytics.server-Bxk8-NnT.js → project-analytics.api-QnhRRs7T.js} +4 -4
  18. package/dist/server/assets/{router-5hznwWqr.js → router-BvYNknMb.js} +80 -12
  19. package/dist/server/assets/{session-detail.server-BIoOQwSE.js → session-detail.api-8plxSeB0.js} +3 -3
  20. package/dist/server/assets/{session-parser-B0pdBvgT.js → session-parser-DxLcS8VW.js} +2 -2
  21. package/dist/server/assets/{session-scanner-CpgOq5m1.js → session-scanner-DRGzVO2T.js} +1 -1
  22. package/dist/server/assets/{sessions.server-Biq8gbAJ.js → sessions.api-DRmOjipJ.js} +8 -8
  23. package/dist/server/assets/{sessions.queries-B5ZBiVJy.js → sessions.queries-CvAnVbE8.js} +3 -3
  24. package/dist/server/assets/{settings-D0FgLIR5.js → settings-Ct2BZGxb.js} +33 -5
  25. package/dist/server/assets/{settings.server-6B2PvLgf.js → settings.api-C9L2GoIE.js} +4 -4
  26. package/dist/server/assets/{settings.queries-DSQd324O.js → settings.queries-BVEZA-1G.js} +2 -2
  27. package/dist/server/assets/{stats-Ae6umrPI.js → stats-CZEpvzmd.js} +51 -37
  28. package/dist/server/assets/{stats.server-DhzOihwM.js → stats.api-CH-wTCGE.js} +4 -4
  29. package/dist/server/assets/{useSessionCost-CYs5UOX-.js → useSessionCost-CyWBuljV.js} +1 -1
  30. package/dist/server/server.js +40 -29
  31. package/package.json +4 -1
  32. package/dist/client/assets/_dashboard-DLFGahko.js +0 -1
  33. package/dist/client/assets/_sessionId-xiPzwrlf.js +0 -12
  34. package/dist/client/assets/app-DREGBD44.css +0 -1
  35. package/dist/client/assets/index-D_9sS4oJ.js +0 -1
  36. package/dist/client/assets/main-BcKPK-4E.js +0 -56
  37. package/dist/client/assets/sessions.queries-CHKiZnLm.js +0 -1
  38. package/dist/client/assets/settings-B2tG1vy0.js +0 -1
  39. package/dist/client/assets/stats-BlA0NIHc.js +0 -4
  40. package/dist/server/assets/_tanstack-start-manifest_v-Dmhlhehg.js +0 -4
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useMatches, Link, Outlet } from "@tanstack/react-router";
3
3
  import { useQuery, queryOptions } from "@tanstack/react-query";
4
- import { a as activeSessionsQuery } from "./sessions.queries-B5ZBiVJy.js";
4
+ import { a as activeSessionsQuery } from "./sessions.queries-CvAnVbE8.js";
5
5
  import { c as createSsrRpc } from "./createSsrRpc-CVg2UDl0.js";
6
6
  import { c as createServerFn } from "../server.js";
7
7
  import "zod";
@@ -22,7 +22,7 @@ function ActiveSessionsBadge() {
22
22
  }
23
23
  const getAppInfo = createServerFn({
24
24
  method: "GET"
25
- }).handler(createSsrRpc("955327d72ca3168c4751159ca07b8fb0fe0d2381dd0b991f06b941480959fbe8"));
25
+ }).handler(createSsrRpc("04ac41a7e3e644815167d098c2d6c3375d00a72a11e5af0d37033ba771081ba9"));
26
26
  const appInfoQuery = queryOptions({
27
27
  queryKey: ["app-info"],
28
28
  queryFn: () => getAppInfo(),
@@ -64,7 +64,7 @@ function AppShell({ children }) {
64
64
  const { data: appInfo } = useQuery(appInfoQuery);
65
65
  return /* @__PURE__ */ jsxs("div", { className: "flex min-h-screen", children: [
66
66
  /* @__PURE__ */ jsxs("aside", { className: "flex w-56 shrink-0 flex-col border-r border-gray-800 bg-gray-950", children: [
67
- /* @__PURE__ */ jsx("div", { className: "flex h-14 items-center border-b border-gray-800 px-4", children: /* @__PURE__ */ jsxs(Link, { to: "/sessions", className: "text-sm font-bold text-white", children: [
67
+ /* @__PURE__ */ jsx("div", { className: "flex h-14 items-center border-b border-gray-800 px-4", children: /* @__PURE__ */ jsxs(Link, { to: "/sessions", className: "text-sm font-bold text-gray-100", children: [
68
68
  /* @__PURE__ */ jsx("span", { className: "text-brand-500", children: "Claude" }),
69
69
  " Dashboard"
70
70
  ] }) }),
@@ -74,7 +74,7 @@ function AppShell({ children }) {
74
74
  Link,
75
75
  {
76
76
  to: item.to,
77
- className: `flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm transition-colors ${isActive ? "bg-gray-800 text-white" : "text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,
77
+ className: `flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm transition-colors ${isActive ? "bg-gray-800 text-gray-100" : "text-gray-400 hover:bg-gray-900 hover:text-gray-200"}`,
78
78
  children: [
79
79
  /* @__PURE__ */ jsx("span", { className: "text-gray-500", children: item.icon }),
80
80
  item.label,
@@ -84,7 +84,7 @@ function AppShell({ children }) {
84
84
  item.to
85
85
  );
86
86
  }) }),
87
- /* @__PURE__ */ jsxs("div", { className: "border-t border-gray-800 p-3", children: [
87
+ /* @__PURE__ */ jsxs("div", { className: "border-t border-gray-800 p-3 space-y-3", children: [
88
88
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
89
89
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
90
90
  /* @__PURE__ */ jsx(
@@ -110,12 +110,12 @@ function AppShell({ children }) {
110
110
  }
111
111
  )
112
112
  ] }),
113
- /* @__PURE__ */ jsx("p", { className: "text-xs text-gray-600", children: "Read-only" })
113
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: "Read-only" })
114
114
  ] }),
115
115
  appInfo && /* @__PURE__ */ jsxs(
116
116
  "p",
117
117
  {
118
- className: "mt-1.5 truncate text-[10px] text-gray-600",
118
+ className: "mt-1.5 truncate text-[10px] text-gray-500",
119
119
  title: `v${appInfo.version} · ${appInfo.appPath}`,
120
120
  children: [
121
121
  "v",
@@ -7,10 +7,10 @@ import { useRef, useCallback, useState, useEffect, useMemo } from "react";
7
7
  import { format } from "date-fns";
8
8
  import { a as formatDuration, f as formatTokenCount, e as formatDateTime, c as formatUSD } from "./format-DIZHV7IJ.js";
9
9
  import { ResponsiveContainer, AreaChart, YAxis, Tooltip, ReferenceLine, Area } from "recharts";
10
- import { s as settingsQuery } from "./settings.queries-DSQd324O.js";
11
- import { g as getMergedPricing, c as calculateSessionCost, u as useSessionCost, E as ExportDropdown, d as downloadFile, e as sessionToJSON } from "./useSessionCost-CYs5UOX-.js";
12
- import { a as activeSessionsQuery } from "./sessions.queries-B5ZBiVJy.js";
13
- import { b as Route, u as usePrivacy } from "./router-5hznwWqr.js";
10
+ import { s as settingsQuery } from "./settings.queries-BVEZA-1G.js";
11
+ import { g as getMergedPricing, c as calculateSessionCost, u as useSessionCost, E as ExportDropdown, d as downloadFile, e as sessionToJSON } from "./useSessionCost-CyWBuljV.js";
12
+ import { a as activeSessionsQuery } from "./sessions.queries-CvAnVbE8.js";
13
+ import { c as Route, u as usePrivacy } from "./router-BvYNknMb.js";
14
14
  import "@tanstack/history";
15
15
  import "@tanstack/router-core/ssr/client";
16
16
  import "@tanstack/router-core";
@@ -24,7 +24,7 @@ import "./settings.types-DntadCHo.js";
24
24
  import "zod";
25
25
  const getSessionDetail = createServerFn({
26
26
  method: "GET"
27
- }).inputValidator((input) => input).handler(createSsrRpc("ff8a3161afdfa175e9c519e4146a56ab5bce6e80745e99cfc2191ebbb7a859bb"));
27
+ }).inputValidator((input) => input).handler(createSsrRpc("71794080473579a94431392ab409ebd02772f6a9f6a08386cadbb8c0d3cf804a"));
28
28
  function sessionDetailQuery(sessionId, projectPath, isActive) {
29
29
  return queryOptions({
30
30
  queryKey: ["session", "detail", sessionId],
@@ -305,7 +305,7 @@ function TimelineChart({ data, width, onHover }) {
305
305
  y1: TOP_MARGIN - 4,
306
306
  x2: chartWidth - RIGHT_MARGIN,
307
307
  y2: TOP_MARGIN - 4,
308
- stroke: "#374151",
308
+ stroke: "var(--color-gray-700)",
309
309
  strokeWidth: 1
310
310
  }
311
311
  ),
@@ -317,7 +317,7 @@ function TimelineChart({ data, width, onHover }) {
317
317
  y1: TOP_MARGIN - 8,
318
318
  x2: tick.x,
319
319
  y2: TOP_MARGIN - 4,
320
- stroke: "#4b5563",
320
+ stroke: "var(--color-gray-600)",
321
321
  strokeWidth: 1
322
322
  }
323
323
  ),
@@ -348,7 +348,7 @@ function TimelineChart({ data, width, onHover }) {
348
348
  y1: mainLaneY + LANE_HEIGHT / 2,
349
349
  x2: chartWidth - RIGHT_MARGIN,
350
350
  y2: mainLaneY + LANE_HEIGHT / 2,
351
- stroke: "#1f2937",
351
+ stroke: "var(--color-gray-800)",
352
352
  strokeWidth: 1,
353
353
  strokeDasharray: "2,4"
354
354
  }
@@ -405,7 +405,7 @@ function TimelineChart({ data, width, onHover }) {
405
405
  y1: skillRowY + LANE_HEIGHT / 2,
406
406
  x2: chartWidth - RIGHT_MARGIN,
407
407
  y2: skillRowY + LANE_HEIGHT / 2,
408
- stroke: "#1f2937",
408
+ stroke: "var(--color-gray-800)",
409
409
  strokeWidth: 1,
410
410
  strokeDasharray: "2,4"
411
411
  }
@@ -457,7 +457,7 @@ function TimelineChart({ data, width, onHover }) {
457
457
  y1: errorRowY + LANE_HEIGHT / 2,
458
458
  x2: chartWidth - RIGHT_MARGIN,
459
459
  y2: errorRowY + LANE_HEIGHT / 2,
460
- stroke: "#1f2937",
460
+ stroke: "var(--color-gray-800)",
461
461
  strokeWidth: 1,
462
462
  strokeDasharray: "2,4"
463
463
  }
@@ -908,7 +908,7 @@ function ContextWindowPanel({ contextWindow, tokens }) {
908
908
  /* @__PURE__ */ jsx("span", { className: "rounded bg-gray-800 px-1.5 py-0.5 text-[10px] font-mono text-gray-400", children: shortModel })
909
909
  ] }),
910
910
  /* @__PURE__ */ jsxs("div", { className: "mt-1 flex items-baseline gap-1", children: [
911
- /* @__PURE__ */ jsx("span", { className: "text-2xl font-bold text-white", children: formatTokenCount(currentContextSize) }),
911
+ /* @__PURE__ */ jsx("span", { className: "text-2xl font-bold text-gray-100", children: formatTokenCount(currentContextSize) }),
912
912
  /* @__PURE__ */ jsxs("span", { className: "text-sm text-gray-500", children: [
913
913
  "/ ",
914
914
  formatTokenCount(contextLimit)
@@ -1032,8 +1032,8 @@ function ContextWindowPanel({ contextWindow, tokens }) {
1032
1032
  Tooltip,
1033
1033
  {
1034
1034
  contentStyle: {
1035
- background: "#1c1c1a",
1036
- border: "1px solid #3d3b36",
1035
+ background: "var(--color-gray-900)",
1036
+ border: "1px solid var(--color-gray-700)",
1037
1037
  borderRadius: "8px",
1038
1038
  fontSize: "11px"
1039
1039
  },
@@ -1155,7 +1155,7 @@ function TokenFallback({ tokens }) {
1155
1155
  ];
1156
1156
  return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-gray-800 bg-gray-900/50 p-4", children: [
1157
1157
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-gray-300", children: "Token Usage" }),
1158
- /* @__PURE__ */ jsx("p", { className: "mt-1 text-2xl font-bold text-white", children: formatTokenCount(activeTotal) }),
1158
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-2xl font-bold text-gray-100", children: formatTokenCount(activeTotal) }),
1159
1159
  /* @__PURE__ */ jsxs("p", { className: "text-[10px] text-gray-500", children: [
1160
1160
  "input + output (",
1161
1161
  formatTokenCount(allTotal),
@@ -1336,7 +1336,7 @@ function SkillInvocationsPanel({
1336
1336
  ] }),
1337
1337
  /* @__PURE__ */ jsx("div", { className: "mt-3 space-y-1", children: groups.map((group) => /* @__PURE__ */ jsxs("div", { className: "rounded bg-gray-950/40 px-2 py-1.5", children: [
1338
1338
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
1339
- /* @__PURE__ */ jsxs("span", { className: "shrink-0 rounded bg-amber-500/20 px-1.5 py-0.5 text-[10px] font-semibold text-amber-300", children: [
1339
+ /* @__PURE__ */ jsxs("span", { className: "shrink-0 rounded bg-brand-500/20 px-1.5 py-0.5 text-[10px] font-semibold text-brand-400", children: [
1340
1340
  "/",
1341
1341
  group.skill
1342
1342
  ] }),
@@ -1425,7 +1425,7 @@ function CostEstimationPanel({ tokensByModel }) {
1425
1425
  return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-gray-800 bg-gray-900/50 p-4", children: [
1426
1426
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
1427
1427
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-gray-300", children: "Cost Estimation" }),
1428
- /* @__PURE__ */ jsxs("span", { className: "font-mono text-lg font-bold text-white", children: [
1428
+ /* @__PURE__ */ jsxs("span", { className: "font-mono text-lg font-bold text-gray-100", children: [
1429
1429
  "~",
1430
1430
  formatUSD(cost.totalUSD)
1431
1431
  ] })
@@ -1581,7 +1581,7 @@ function SessionDetailPage() {
1581
1581
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
1582
1582
  /* @__PURE__ */ jsxs("div", { children: [
1583
1583
  /* @__PURE__ */ jsx(Link, { to: "/sessions", className: "text-xs text-gray-500 hover:text-gray-300", children: "← Sessions" }),
1584
- /* @__PURE__ */ jsx("h1", { className: "mt-1 text-xl font-bold text-white", children: privacyMode ? anonymizeProjectName(detail.projectName) : detail.projectName }),
1584
+ /* @__PURE__ */ jsx("h1", { className: "mt-1 text-xl font-bold text-gray-100", children: privacyMode ? anonymizeProjectName(detail.projectName) : detail.projectName }),
1585
1585
  /* @__PURE__ */ jsxs("div", { className: "mt-1 flex items-center gap-3 text-xs text-gray-400", children: [
1586
1586
  detail.branch && /* @__PURE__ */ jsx("span", { className: "font-mono", children: anonymizeBranch(detail.branch) }),
1587
1587
  startedAt && /* @__PURE__ */ jsx("span", { children: formatDateTime(startedAt) }),
@@ -0,0 +1,4 @@
1
+ const tsrStartManifest = () => ({ "routes": { "__root__": { "filePath": "/home/runner/work/claude-session-dashboard/claude-session-dashboard/apps/web/src/routes/__root.tsx", "children": ["/", "/_dashboard"], "preloads": ["/assets/main-B6FohBFQ.js"], "assets": [] }, "/": { "filePath": "/home/runner/work/claude-session-dashboard/claude-session-dashboard/apps/web/src/routes/index.tsx" }, "/_dashboard": { "filePath": "/home/runner/work/claude-session-dashboard/claude-session-dashboard/apps/web/src/routes/_dashboard.tsx", "children": ["/_dashboard/settings", "/_dashboard/stats", "/_dashboard/sessions/$sessionId", "/_dashboard/sessions/"], "assets": [], "preloads": ["/assets/_dashboard-Job6DOd1.js", "/assets/createServerFn-6SJrpRCO.js", "/assets/sessions.queries-ClgzoOt4.js"] }, "/_dashboard/settings": { "filePath": "/home/runner/work/claude-session-dashboard/claude-session-dashboard/apps/web/src/routes/_dashboard/settings.tsx", "assets": [], "preloads": ["/assets/settings-DQD2EaIq.js", "/assets/settings.types-LYd9Z8Y1.js"] }, "/_dashboard/stats": { "filePath": "/home/runner/work/claude-session-dashboard/claude-session-dashboard/apps/web/src/routes/_dashboard/stats.tsx", "assets": [], "preloads": ["/assets/stats-CrWQ_y2R.js", "/assets/format-Bsprb3az.js", "/assets/useSessionCost-Drt0v6oj.js", "/assets/settings.types-LYd9Z8Y1.js"] }, "/_dashboard/sessions/$sessionId": { "filePath": "/home/runner/work/claude-session-dashboard/claude-session-dashboard/apps/web/src/routes/_dashboard/sessions/$sessionId.tsx", "assets": [], "preloads": ["/assets/_sessionId-CIFXqjVa.js", "/assets/format-Bsprb3az.js", "/assets/useSessionCost-Drt0v6oj.js", "/assets/settings.types-LYd9Z8Y1.js"] }, "/_dashboard/sessions/": { "filePath": "/home/runner/work/claude-session-dashboard/claude-session-dashboard/apps/web/src/routes/_dashboard/sessions/index.tsx", "assets": [], "preloads": ["/assets/index-DDr2smLW.js", "/assets/format-Bsprb3az.js"] } }, "clientEntry": "/assets/main-B6FohBFQ.js" });
2
+ export {
3
+ tsrStartManifest
4
+ };
@@ -14,9 +14,9 @@ import "react/jsx-runtime";
14
14
  import "@tanstack/react-router/ssr/server";
15
15
  import "@tanstack/react-router";
16
16
  const getAppInfo_createServerFn_handler = createServerRpc({
17
- id: "955327d72ca3168c4751159ca07b8fb0fe0d2381dd0b991f06b941480959fbe8",
17
+ id: "04ac41a7e3e644815167d098c2d6c3375d00a72a11e5af0d37033ba771081ba9",
18
18
  name: "getAppInfo",
19
- filename: "src/features/settings/app-info.server.ts"
19
+ filename: "src/features/settings/app-info.api.ts"
20
20
  }, (opts) => getAppInfo.__executeServer(opts));
21
21
  const getAppInfo = createServerFn({
22
22
  method: "GET"
@@ -2,9 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useRef, useCallback, useMemo } from "react";
3
3
  import { useQuery } from "@tanstack/react-query";
4
4
  import { Link, useNavigate } from "@tanstack/react-router";
5
- import { p as paginatedSessionListQuery, a as activeSessionsQuery } from "./sessions.queries-B5ZBiVJy.js";
5
+ import { p as paginatedSessionListQuery, a as activeSessionsQuery } from "./sessions.queries-CvAnVbE8.js";
6
6
  import { a as formatDuration, b as formatRelativeTime, d as formatBytes } from "./format-DIZHV7IJ.js";
7
- import { u as usePrivacy, a as Route } from "./router-5hznwWqr.js";
7
+ import { u as usePrivacy, b as Route } from "./router-BvYNknMb.js";
8
8
  import "./createSsrRpc-CVg2UDl0.js";
9
9
  import "../server.js";
10
10
  import "@tanstack/history";
@@ -61,7 +61,7 @@ function SessionCard({ session }) {
61
61
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
62
62
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
63
63
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
64
- /* @__PURE__ */ jsx("h3", { className: "truncate text-sm font-semibold text-white", children: displayName }),
64
+ /* @__PURE__ */ jsx("h3", { className: "truncate text-sm font-semibold text-gray-100", children: displayName }),
65
65
  /* @__PURE__ */ jsx(StatusBadge, { isActive: session.isActive })
66
66
  ] }),
67
67
  displayBranch && /* @__PURE__ */ jsx("p", { className: "mt-1 truncate text-xs text-gray-500", children: /* @__PURE__ */ jsx("span", { className: "font-mono", children: displayBranch }) })
@@ -137,7 +137,7 @@ function SessionFilters({ projects, activeCount }) {
137
137
  "button",
138
138
  {
139
139
  onClick: () => handleStatusChange(s),
140
- className: `px-3 py-1.5 capitalize transition-colors ${status === s ? "bg-gray-700 text-white" : "text-gray-400 hover:text-gray-200"} ${s === "all" ? "rounded-l-lg" : ""} ${s === "completed" ? "rounded-r-lg" : ""}`,
140
+ className: `px-3 py-1.5 capitalize transition-colors ${status === s ? "bg-gray-700 text-gray-100" : "text-gray-400 hover:text-gray-200"} ${s === "all" ? "rounded-l-lg" : ""} ${s === "completed" ? "rounded-r-lg" : ""}`,
141
141
  children: [
142
142
  s,
143
143
  s === "active" && activeCount > 0 && /* @__PURE__ */ jsxs("span", { className: "ml-1 text-emerald-400", children: [
@@ -256,7 +256,7 @@ function PaginationControls({
256
256
  "button",
257
257
  {
258
258
  onClick: () => onPageChange(item),
259
- className: `min-w-[2rem] rounded-lg px-2 py-1.5 text-xs font-mono transition-colors ${item === page ? "bg-brand-600 text-white" : "border border-gray-700 bg-gray-800 text-gray-400 hover:bg-gray-700 hover:text-gray-200"}`,
259
+ className: `min-w-[2rem] rounded-lg px-2 py-1.5 text-xs font-mono transition-colors ${item === page ? "bg-brand-600 text-gray-100" : "border border-gray-700 bg-gray-800 text-gray-400 hover:bg-gray-700 hover:text-gray-200"}`,
260
260
  children: item
261
261
  },
262
262
  item
@@ -367,7 +367,7 @@ function SessionList() {
367
367
  }
368
368
  function SessionsPage() {
369
369
  return /* @__PURE__ */ jsxs("div", { children: [
370
- /* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold text-white", children: "Sessions" }),
370
+ /* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold text-gray-100", children: "Sessions" }),
371
371
  /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-gray-400", children: "All Claude Code sessions from ~/.claude" }),
372
372
  /* @__PURE__ */ jsx("div", { className: "mt-6", children: /* @__PURE__ */ jsx(SessionList, {}) })
373
373
  ] });
@@ -1,9 +1,9 @@
1
1
  import { c as createServerRpc } from "./createServerRpc-Bd3B-Ah9.js";
2
- import { a as scanAllSessions } from "./session-scanner-CpgOq5m1.js";
2
+ import { a as scanAllSessions } from "./session-scanner-DRGzVO2T.js";
3
3
  import { c as createServerFn } from "../server.js";
4
4
  import "node:fs";
5
5
  import "node:path";
6
- import "./session-parser-B0pdBvgT.js";
6
+ import "./session-parser-DxLcS8VW.js";
7
7
  import "node:os";
8
8
  import "node:readline";
9
9
  import "@tanstack/history";
@@ -45,9 +45,9 @@ function aggregateProjectAnalytics(allSessions) {
45
45
  };
46
46
  }
47
47
  const getProjectAnalytics_createServerFn_handler = createServerRpc({
48
- id: "64052f224a1d6696436e5d3deeee2b798f0742e1292ffabd038c3a7bf75e6fcb",
48
+ id: "39e65590d2bc41f653f54a9b6a9e0a72f185da275304c0a4a595d811cf185572",
49
49
  name: "getProjectAnalytics",
50
- filename: "src/features/project-analytics/project-analytics.server.ts"
50
+ filename: "src/features/project-analytics/project-analytics.api.ts"
51
51
  }, (opts) => getProjectAnalytics.__executeServer(opts));
52
52
  const getProjectAnalytics = createServerFn({
53
53
  method: "GET"
@@ -1,7 +1,7 @@
1
1
  import { createRootRoute, Outlet, HeadContent, Scripts, createFileRoute, lazyRouteComponent, redirect, createRouter } from "@tanstack/react-router";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
4
- import { useState, useRef, useCallback, createContext, useContext } from "react";
4
+ import { useState, useRef, useCallback, createContext, useContext, useEffect, useMemo } from "react";
5
5
  import { z } from "zod";
6
6
  const OS_USERNAME_PATTERN = /^(\/(?:Users|home))\/[^/]+/;
7
7
  function anonymizePath(path, anonymizedProjectName) {
@@ -96,7 +96,57 @@ function usePrivacy() {
96
96
  }
97
97
  return ctx;
98
98
  }
99
- const appCss = "/assets/app-DREGBD44.css";
99
+ const THEME_STORAGE_KEY = "csd-theme";
100
+ const ThemeContext = createContext(null);
101
+ function getInitialTheme() {
102
+ if (typeof window === "undefined") return "dark";
103
+ const stored = window.localStorage.getItem(THEME_STORAGE_KEY);
104
+ if (stored === "light" || stored === "dark") {
105
+ return stored;
106
+ }
107
+ const prefersDark = window.matchMedia?.("(prefers-color-scheme: dark)").matches;
108
+ return prefersDark ? "dark" : "light";
109
+ }
110
+ function ThemeProvider({ children }) {
111
+ const [theme, setTheme] = useState(getInitialTheme);
112
+ useEffect(() => {
113
+ const root = document.documentElement;
114
+ root.setAttribute("data-theme", theme);
115
+ window.localStorage.setItem(THEME_STORAGE_KEY, theme);
116
+ const metaTheme = document.querySelector('meta[name="theme-color"]');
117
+ if (metaTheme) {
118
+ metaTheme.setAttribute("content", theme === "dark" ? "#141413" : "#f5f3ec");
119
+ }
120
+ }, [theme]);
121
+ useEffect(() => {
122
+ const media = window.matchMedia("(prefers-color-scheme: dark)");
123
+ const listener = (event) => {
124
+ const stored = window.localStorage.getItem(THEME_STORAGE_KEY);
125
+ if (stored !== "light" && stored !== "dark") {
126
+ setTheme(event.matches ? "dark" : "light");
127
+ }
128
+ };
129
+ media.addEventListener("change", listener);
130
+ return () => media.removeEventListener("change", listener);
131
+ }, []);
132
+ const value = useMemo(
133
+ () => ({
134
+ theme,
135
+ toggleTheme: () => setTheme((prev) => prev === "dark" ? "light" : "dark"),
136
+ setTheme
137
+ }),
138
+ [theme]
139
+ );
140
+ return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children });
141
+ }
142
+ function useTheme() {
143
+ const ctx = useContext(ThemeContext);
144
+ if (!ctx) {
145
+ throw new Error("useTheme must be used within a ThemeProvider");
146
+ }
147
+ return ctx;
148
+ }
149
+ const appCss = "/assets/app-CkRVT69z.css";
100
150
  const queryClient = new QueryClient({
101
151
  defaultOptions: {
102
152
  queries: {
@@ -125,18 +175,35 @@ const Route$6 = createRootRoute({
125
175
  component: RootComponent
126
176
  });
127
177
  function RootComponent() {
128
- return /* @__PURE__ */ jsx(RootDocument, { children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(PrivacyProvider, { children: /* @__PURE__ */ jsx(Outlet, {}) }) }) });
178
+ return /* @__PURE__ */ jsx(RootDocument, { children: /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(PrivacyProvider, { children: /* @__PURE__ */ jsx(Outlet, {}) }) }) }) });
129
179
  }
180
+ const themeInitScript = `
181
+ (() => {
182
+ try {
183
+ const stored = localStorage.getItem('csd-theme');
184
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
185
+ const theme = stored === 'light' || stored === 'dark' ? stored : (prefersDark ? 'dark' : 'light');
186
+ document.documentElement.setAttribute('data-theme', theme);
187
+ const meta = document.querySelector('meta[name="theme-color"]');
188
+ if (meta) meta.setAttribute('content', theme === 'dark' ? '#141413' : '#f5f3ec');
189
+ } catch (e) {
190
+ document.documentElement.setAttribute('data-theme', 'dark');
191
+ }
192
+ })();
193
+ `;
130
194
  function RootDocument({ children }) {
131
195
  return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
132
- /* @__PURE__ */ jsx("head", { children: /* @__PURE__ */ jsx(HeadContent, {}) }),
133
- /* @__PURE__ */ jsxs("body", { className: "bg-gray-950 text-gray-100 antialiased", children: [
196
+ /* @__PURE__ */ jsxs("head", { children: [
197
+ /* @__PURE__ */ jsx(HeadContent, {}),
198
+ /* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: { __html: themeInitScript } })
199
+ ] }),
200
+ /* @__PURE__ */ jsxs("body", { className: "antialiased", children: [
134
201
  children,
135
202
  /* @__PURE__ */ jsx(Scripts, {})
136
203
  ] })
137
204
  ] });
138
205
  }
139
- const $$splitComponentImporter$4 = () => import("./_dashboard-smfIqyQC.js");
206
+ const $$splitComponentImporter$4 = () => import("./_dashboard-61fpMMMe.js");
140
207
  const Route$5 = createFileRoute("/_dashboard")({
141
208
  component: lazyRouteComponent($$splitComponentImporter$4, "component")
142
209
  });
@@ -145,7 +212,7 @@ const Route$4 = createFileRoute("/")({
145
212
  throw redirect({ to: "/sessions" });
146
213
  }
147
214
  });
148
- const $$splitComponentImporter$3 = () => import("./stats-Ae6umrPI.js");
215
+ const $$splitComponentImporter$3 = () => import("./stats-CZEpvzmd.js");
149
216
  const statsSearchSchema = z.object({
150
217
  tab: z.enum(["overview", "projects"]).default("overview").catch("overview")
151
218
  });
@@ -153,11 +220,11 @@ const Route$3 = createFileRoute("/_dashboard/stats")({
153
220
  validateSearch: statsSearchSchema,
154
221
  component: lazyRouteComponent($$splitComponentImporter$3, "component")
155
222
  });
156
- const $$splitComponentImporter$2 = () => import("./settings-D0FgLIR5.js");
223
+ const $$splitComponentImporter$2 = () => import("./settings-Ct2BZGxb.js");
157
224
  const Route$2 = createFileRoute("/_dashboard/settings")({
158
225
  component: lazyRouteComponent($$splitComponentImporter$2, "component")
159
226
  });
160
- const $$splitComponentImporter$1 = () => import("./index-hFrIPkke.js");
227
+ const $$splitComponentImporter$1 = () => import("./index-BYcFI9Ho.js");
161
228
  const sessionsSearchSchema = z.object({
162
229
  page: z.number().int().min(1).default(1).catch(1),
163
230
  pageSize: z.number().int().min(5).max(100).default(5).catch(5),
@@ -169,7 +236,7 @@ const Route$1 = createFileRoute("/_dashboard/sessions/")({
169
236
  validateSearch: sessionsSearchSchema,
170
237
  component: lazyRouteComponent($$splitComponentImporter$1, "component")
171
238
  });
172
- const $$splitComponentImporter = () => import("./_sessionId-DIUMcrWR.js");
239
+ const $$splitComponentImporter = () => import("./_sessionId-B_O50OfN.js");
173
240
  const searchSchema = z.object({
174
241
  project: z.string().optional()
175
242
  });
@@ -233,8 +300,9 @@ const router = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
233
300
  }, Symbol.toStringTag, { value: "Module" }));
234
301
  export {
235
302
  Route$3 as R,
236
- Route$1 as a,
237
- Route as b,
303
+ useTheme as a,
304
+ Route$1 as b,
305
+ Route as c,
238
306
  router as r,
239
307
  usePrivacy as u
240
308
  };
@@ -1,7 +1,7 @@
1
1
  import { c as createServerRpc } from "./createServerRpc-Bd3B-Ah9.js";
2
2
  import * as path from "node:path";
3
3
  import * as fs from "node:fs";
4
- import { e as extractProjectName, p as parseDetail, g as getProjectsDir, d as decodeProjectDirName } from "./session-parser-B0pdBvgT.js";
4
+ import { e as extractProjectName, p as parseDetail, a as getProjectsDir, d as decodeProjectDirName } from "./session-parser-DxLcS8VW.js";
5
5
  import { c as createServerFn } from "../server.js";
6
6
  import "node:os";
7
7
  import "node:readline";
@@ -17,9 +17,9 @@ import "react/jsx-runtime";
17
17
  import "@tanstack/react-router/ssr/server";
18
18
  import "@tanstack/react-router";
19
19
  const getSessionDetail_createServerFn_handler = createServerRpc({
20
- id: "ff8a3161afdfa175e9c519e4146a56ab5bce6e80745e99cfc2191ebbb7a859bb",
20
+ id: "71794080473579a94431392ab409ebd02772f6a9f6a08386cadbb8c0d3cf804a",
21
21
  name: "getSessionDetail",
22
- filename: "src/features/session-detail/session-detail.server.ts"
22
+ filename: "src/features/session-detail/session-detail.api.ts"
23
23
  }, (opts) => getSessionDetail.__executeServer(opts));
24
24
  const getSessionDetail = createServerFn({
25
25
  method: "GET"
@@ -664,11 +664,11 @@ function extractTextContent(msg) {
664
664
  return texts.length > 0 ? texts.join("\n").slice(0, 500) : void 0;
665
665
  }
666
666
  export {
667
- getStatsPath as a,
667
+ getProjectsDir as a,
668
668
  extractSessionId as b,
669
669
  parseSummary as c,
670
670
  decodeProjectDirName as d,
671
671
  extractProjectName as e,
672
- getProjectsDir as g,
672
+ getStatsPath as g,
673
673
  parseDetail as p
674
674
  };
@@ -1,6 +1,6 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
- import { g as getProjectsDir, d as decodeProjectDirName, e as extractProjectName, b as extractSessionId, c as parseSummary } from "./session-parser-B0pdBvgT.js";
3
+ import { a as getProjectsDir, d as decodeProjectDirName, e as extractProjectName, b as extractSessionId, c as parseSummary } from "./session-parser-DxLcS8VW.js";
4
4
  async function scanProjects() {
5
5
  const projectsDir = getProjectsDir();
6
6
  let entries;
@@ -1,10 +1,10 @@
1
1
  import { c as createServerRpc } from "./createServerRpc-Bd3B-Ah9.js";
2
2
  import { z } from "zod";
3
- import { a as scanAllSessions, g as getActiveSessions } from "./session-scanner-CpgOq5m1.js";
3
+ import { a as scanAllSessions, g as getActiveSessions } from "./session-scanner-DRGzVO2T.js";
4
4
  import { c as createServerFn } from "../server.js";
5
5
  import "node:fs";
6
6
  import "node:path";
7
- import "./session-parser-B0pdBvgT.js";
7
+ import "./session-parser-DxLcS8VW.js";
8
8
  import "node:os";
9
9
  import "node:readline";
10
10
  import "@tanstack/history";
@@ -19,9 +19,9 @@ import "react/jsx-runtime";
19
19
  import "@tanstack/react-router/ssr/server";
20
20
  import "@tanstack/react-router";
21
21
  const getSessionList_createServerFn_handler = createServerRpc({
22
- id: "bf8e4a7901f1843bdc9c46be1ad5ad59c615b8bbe611b73eb3ff28f20e43ee0d",
22
+ id: "8fd6c4e5b4d5590acf1ec73da75f249978e8aced6dd2be23de06ade8431033be",
23
23
  name: "getSessionList",
24
- filename: "src/features/sessions/sessions.server.ts"
24
+ filename: "src/features/sessions/sessions.api.ts"
25
25
  }, (opts) => getSessionList.__executeServer(opts));
26
26
  const getSessionList = createServerFn({
27
27
  method: "GET"
@@ -29,9 +29,9 @@ const getSessionList = createServerFn({
29
29
  return scanAllSessions();
30
30
  });
31
31
  const getActiveSessionList_createServerFn_handler = createServerRpc({
32
- id: "839d29fe93dfa2a6d506af7b48ca25197190a5ff4c796e970ddfdc6e8c98827f",
32
+ id: "946cc550946f64ee7985dc35913a690eb13183d7ba83cffe398e424e697b4265",
33
33
  name: "getActiveSessionList",
34
- filename: "src/features/sessions/sessions.server.ts"
34
+ filename: "src/features/sessions/sessions.api.ts"
35
35
  }, (opts) => getActiveSessionList.__executeServer(opts));
36
36
  const getActiveSessionList = createServerFn({
37
37
  method: "GET"
@@ -83,9 +83,9 @@ async function paginateAndFilterSessions(allSessions, input) {
83
83
  };
84
84
  }
85
85
  const getPaginatedSessions_createServerFn_handler = createServerRpc({
86
- id: "a3f42f9012fd83586787da8f7cb90649da739dd947d867eb67572f68735ff495",
86
+ id: "e574977967ea9b3387e72d70704b6ca87230e72becaf69f0b98cbc91c9cd1339",
87
87
  name: "getPaginatedSessions",
88
- filename: "src/features/sessions/sessions.server.ts"
88
+ filename: "src/features/sessions/sessions.api.ts"
89
89
  }, (opts) => getPaginatedSessions.__executeServer(opts));
90
90
  const getPaginatedSessions = createServerFn({
91
91
  method: "GET"
@@ -4,10 +4,10 @@ import { z } from "zod";
4
4
  import { c as createServerFn } from "../server.js";
5
5
  const getSessionList = createServerFn({
6
6
  method: "GET"
7
- }).handler(createSsrRpc("bf8e4a7901f1843bdc9c46be1ad5ad59c615b8bbe611b73eb3ff28f20e43ee0d"));
7
+ }).handler(createSsrRpc("8fd6c4e5b4d5590acf1ec73da75f249978e8aced6dd2be23de06ade8431033be"));
8
8
  const getActiveSessionList = createServerFn({
9
9
  method: "GET"
10
- }).handler(createSsrRpc("839d29fe93dfa2a6d506af7b48ca25197190a5ff4c796e970ddfdc6e8c98827f"));
10
+ }).handler(createSsrRpc("946cc550946f64ee7985dc35913a690eb13183d7ba83cffe398e424e697b4265"));
11
11
  const paginatedSessionsInputSchema = z.object({
12
12
  page: z.number().int().min(1),
13
13
  pageSize: z.number().int().min(5).max(100),
@@ -17,7 +17,7 @@ const paginatedSessionsInputSchema = z.object({
17
17
  });
18
18
  const getPaginatedSessions = createServerFn({
19
19
  method: "GET"
20
- }).inputValidator((input) => paginatedSessionsInputSchema.parse(input)).handler(createSsrRpc("a3f42f9012fd83586787da8f7cb90649da739dd947d867eb67572f68735ff495"));
20
+ }).inputValidator((input) => paginatedSessionsInputSchema.parse(input)).handler(createSsrRpc("e574977967ea9b3387e72d70704b6ca87230e72becaf69f0b98cbc91c9cd1339"));
21
21
  queryOptions({
22
22
  queryKey: ["sessions", "list"],
23
23
  queryFn: () => getSessionList(),
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { useQuery } from "@tanstack/react-query";
4
- import { s as settingsQuery, u as useSettingsMutation } from "./settings.queries-DSQd324O.js";
4
+ import { s as settingsQuery, u as useSettingsMutation } from "./settings.queries-BVEZA-1G.js";
5
5
  import { a as SUBSCRIPTION_TIERS, b as DEFAULT_PRICING, D as DEFAULT_SETTINGS } from "./settings.types-DntadCHo.js";
6
- import { u as usePrivacy } from "./router-5hznwWqr.js";
6
+ import { u as usePrivacy, a as useTheme } from "./router-BvYNknMb.js";
7
7
  import "./createSsrRpc-CVg2UDl0.js";
8
8
  import "../server.js";
9
9
  import "@tanstack/history";
@@ -25,7 +25,7 @@ function TierSelector({ value, onChange }) {
25
25
  {
26
26
  type: "button",
27
27
  onClick: () => onChange(tier.id),
28
- className: `rounded-lg border px-3 py-2 text-left transition-colors ${isSelected ? "border-brand-500 bg-brand-500/10 text-white" : "border-gray-800 bg-gray-900/50 text-gray-400 hover:border-gray-700 hover:text-gray-300"}`,
28
+ className: `rounded-lg border px-3 py-2 text-left transition-colors ${isSelected ? "border-brand-500 bg-brand-500/10 text-gray-100" : "border-gray-800 bg-gray-900/50 text-gray-400 hover:border-gray-700 hover:text-gray-300"}`,
29
29
  children: [
30
30
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: tier.displayName }),
31
31
  /* @__PURE__ */ jsx("div", { className: "mt-0.5 font-mono text-[10px] text-gray-500", children: tier.monthlyUSD !== null ? `$${tier.monthlyUSD}/mo` : "Custom" })
@@ -115,6 +115,8 @@ function SettingsPage() {
115
115
  function SettingsForm({ settings }) {
116
116
  const mutation = useSettingsMutation();
117
117
  const { privacyMode, togglePrivacyMode } = usePrivacy();
118
+ const { theme, toggleTheme } = useTheme();
119
+ const isDark = theme === "dark";
118
120
  const [tier, setTier] = useState(settings.subscriptionTier);
119
121
  const [overrides, setOverrides] = useState(settings.pricingOverrides);
120
122
  const [isDirty, setIsDirty] = useState(false);
@@ -144,7 +146,7 @@ function SettingsForm({ settings }) {
144
146
  });
145
147
  }
146
148
  return /* @__PURE__ */ jsxs("div", { children: [
147
- /* @__PURE__ */ jsx("h1", { className: "text-xl font-bold text-white", children: "Settings" }),
149
+ /* @__PURE__ */ jsx("h1", { className: "text-xl font-bold text-gray-100", children: "Settings" }),
148
150
  /* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-gray-500", children: "Configure your subscription tier and API pricing for cost estimation." }),
149
151
  /* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
150
152
  /* @__PURE__ */ jsx("h2", { className: "text-sm font-semibold text-gray-300", children: "Privacy Mode" }),
@@ -194,6 +196,32 @@ function SettingsForm({ settings }) {
194
196
  ] })
195
197
  ] })
196
198
  ] }),
199
+ /* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
200
+ /* @__PURE__ */ jsx("h2", { className: "text-sm font-semibold text-gray-300", children: "Theme" }),
201
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-[10px] text-gray-500", children: "Switch between dark and light mode. Defaults to your system preference." }),
202
+ /* @__PURE__ */ jsx("div", { className: "mt-3 rounded-xl border border-gray-800 bg-gray-900/50 p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
203
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-gray-300", children: isDark ? "Dark mode" : "Light mode" }),
204
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
205
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-gray-500", children: isDark ? "🌙" : "☀️" }),
206
+ /* @__PURE__ */ jsx(
207
+ "button",
208
+ {
209
+ type: "button",
210
+ role: "switch",
211
+ "aria-checked": !isDark,
212
+ onClick: toggleTheme,
213
+ className: `relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors ${!isDark ? "bg-brand-600" : "bg-gray-800"}`,
214
+ children: /* @__PURE__ */ jsx(
215
+ "span",
216
+ {
217
+ className: `inline-block h-3.5 w-3.5 rounded-full bg-white transition-transform ${!isDark ? "translate-x-[18px]" : "translate-x-[3px]"}`
218
+ }
219
+ )
220
+ }
221
+ )
222
+ ] })
223
+ ] }) })
224
+ ] }),
197
225
  /* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
198
226
  /* @__PURE__ */ jsx("h2", { className: "text-sm font-semibold text-gray-300", children: "Subscription Tier" }),
199
227
  /* @__PURE__ */ jsx("p", { className: "mt-1 text-[10px] text-gray-500", children: "Select your Claude subscription plan. This is informational only and does not affect cost calculations." }),
@@ -232,7 +260,7 @@ function SettingsForm({ settings }) {
232
260
  type: "button",
233
261
  onClick: handleSave,
234
262
  disabled: !isDirty || mutation.isPending,
235
- className: `rounded-lg px-4 py-1.5 text-xs font-medium transition-colors ${isDirty && !mutation.isPending ? "bg-brand-600 text-white hover:bg-brand-500" : "cursor-not-allowed bg-gray-800 text-gray-500"}`,
263
+ className: `rounded-lg px-4 py-1.5 text-xs font-medium transition-colors ${isDirty && !mutation.isPending ? "bg-brand-600 text-gray-100 hover:bg-brand-500" : "cursor-not-allowed bg-gray-800 text-gray-500"}`,
236
264
  children: mutation.isPending ? "Saving..." : "Save"
237
265
  }
238
266
  )