@circuitwall/jarela 2.5.0 → 2.5.1

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 (47) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +1 -1
  3. package/.next/standalone/.next/build-manifest.json +2 -2
  4. package/.next/standalone/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/.next/server/app/_not-found.html +2 -2
  13. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  14. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  15. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  16. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  18. package/.next/standalone/.next/server/app/api/v1/update/apply/route.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/page.js +15 -7
  20. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/.next/server/app-paths-manifest.json +1 -1
  23. package/.next/standalone/.next/server/chunks/2471.js +17 -17
  24. package/.next/standalone/.next/server/chunks/3399.js +525 -525
  25. package/.next/standalone/.next/server/chunks/4189.js +1 -1
  26. package/.next/standalone/.next/server/chunks/4508.js +2 -2
  27. package/.next/standalone/.next/server/chunks/6649.js +1 -1
  28. package/.next/standalone/.next/server/chunks/9164.js +7 -7
  29. package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
  30. package/.next/standalone/.next/server/pages/404.html +2 -2
  31. package/.next/standalone/.next/server/pages/500.html +1 -1
  32. package/.next/standalone/.next/server/preview-props.json +3 -3
  33. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  34. package/.next/standalone/.next/static/chunks/app/{page-2ef8d75d40eb4311.js → page-dd05bcb5f5b81157.js} +16 -8
  35. package/.next/standalone/.next/static/css/{c160ea862133acd2.css → 5b30046ba49144c5.css} +2 -2
  36. package/.next/standalone/docs/adoption/changesets.json +12 -0
  37. package/.next/standalone/package.json +1 -1
  38. package/CHANGELOG.md +8 -0
  39. package/components/dashboard/DashboardPanel.test.tsx +34 -0
  40. package/components/dashboard/DashboardPanel.tsx +1 -1
  41. package/components/ui/BootScreen.test.tsx +1 -0
  42. package/components/ui/BootScreen.tsx +1 -0
  43. package/components/ui/ServerStatus.test.tsx +50 -0
  44. package/components/ui/ServerStatus.tsx +10 -8
  45. package/package.json +1 -1
  46. /package/.next/standalone/.next/static/{544OFJV-q0RC6Gjgje4LT → XFZTDssHBZKKX2mzH2ld0}/_buildManifest.js +0 -0
  47. /package/.next/standalone/.next/static/{544OFJV-q0RC6Gjgje4LT → XFZTDssHBZKKX2mzH2ld0}/_ssgManifest.js +0 -0
@@ -3109,6 +3109,18 @@
3109
3109
  "required_removed": []
3110
3110
  }
3111
3111
  ]
3112
+ },
3113
+ {
3114
+ "version": "2.5.1",
3115
+ "previous_version": "2.5.0",
3116
+ "date": "2026-10-19",
3117
+ "hints": [],
3118
+ "commits": [
3119
+ "fix(ui): add launch progress while waiting for the server",
3120
+ "fix(dashboard): restore theme colors across dashboard sections"
3121
+ ],
3122
+ "prompts": [],
3123
+ "tools": []
3112
3124
  }
3113
3125
  ]
3114
3126
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@circuitwall/jarela",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Jarela — local chat interface for LangGraph agents (multi-provider, single-process, SQLite-backed).",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Andrew Ge Wu",
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.5.1] - 2026-10-19
11
+
12
+ ### Fixed
13
+
14
+ - Show launch progress while waiting for the local server to respond.
15
+ - Restore dashboard backgrounds, text, borders, chart colors, and selected
16
+ controls in light and dark themes.
17
+
10
18
  ## [2.5.0] - 2026-10-18
11
19
 
12
20
  ### Added
@@ -0,0 +1,34 @@
1
+ // @vitest-environment jsdom
2
+ import { render, screen } from "@testing-library/react";
3
+ import { expect, it, vi } from "vitest";
4
+ import { DashboardPanel } from "./DashboardPanel";
5
+
6
+ vi.mock("./useDashboardData", () => ({
7
+ useDashboardData: () => ({ days: 30, loading: true, data: null }),
8
+ }));
9
+ vi.mock("./useCurrencyPreference", () => ({
10
+ useCurrencyPreference: () => ({
11
+ currencyInfo: { currency: "USD", source: "default" },
12
+ currencyMode: "auto",
13
+ manualCurrency: "USD",
14
+ }),
15
+ }));
16
+
17
+ it("provides dashboard colors from the current application theme", () => {
18
+ const { container } = render(<DashboardPanel />);
19
+ const dashboard = container.firstElementChild!;
20
+ const tokens = {
21
+ "bg-primary": "surface",
22
+ "bg-secondary": "surface-2",
23
+ "text-primary": "fg",
24
+ "text-secondary": "fg-muted",
25
+ border: "border",
26
+ accent: "accent",
27
+ };
28
+
29
+ for (const [name, token] of Object.entries(tokens)) {
30
+ expect(dashboard.classList.contains(`[--${name}:var(--color-${token})]`)).toBe(true);
31
+ }
32
+ expect(dashboard.contains(screen.getByRole("heading", { name: "Usage dashboard" }))).toBe(true);
33
+ expect(dashboard.contains(screen.getByText("Loading dashboard metrics..."))).toBe(true);
34
+ });
@@ -52,7 +52,7 @@ export function DashboardPanel() {
52
52
  const toggleDay = (day: string) => setSelectedDay((prev) => (prev === day ? null : day));
53
53
 
54
54
  return (
55
- <div className="relative h-full overflow-y-auto p-4 md:p-6 space-y-4">
55
+ <div className="relative h-full overflow-y-auto p-4 md:p-6 space-y-4 [--bg-primary:var(--color-surface)] [--bg-secondary:var(--color-surface-2)] [--text-primary:var(--color-fg)] [--text-secondary:var(--color-fg-muted)] [--border:var(--color-border)] [--accent:var(--color-accent)]">
56
56
  <div className="mx-auto max-w-7xl space-y-4">
57
57
  <div className="dashboard-atmosphere pointer-events-none absolute inset-0 overflow-hidden">
58
58
  <div className="absolute -top-20 -right-20 w-72 h-72 rounded-full bg-cyan-500/10 blur-3xl" />
@@ -33,6 +33,7 @@ it("does not restart boot prefetch after dismissal when the agent changes", asyn
33
33
  const { rerender, container } = render(
34
34
  <BootScreen agents={[]} agentsLoaded activeAgentId="first" onPickAgent={onPickAgent} />,
35
35
  );
36
+ expect(container.querySelector('[data-testid="boot-screen"]')?.getAttribute("role")).toBe("status");
36
37
  await act(async () => {});
37
38
  await act(async () => { await vi.advanceTimersByTimeAsync(750); });
38
39
  expect(container.innerHTML).toBe("");
@@ -403,6 +403,7 @@ export function BootScreen({ agents, agentsLoaded, activeAgentId, preferredThrea
403
403
 
404
404
  return (
405
405
  <div
406
+ data-testid="boot-screen"
406
407
  role="status"
407
408
  aria-live="polite"
408
409
  aria-hidden={dismissing}
@@ -0,0 +1,50 @@
1
+ // @vitest-environment jsdom
2
+ import { act, render, screen } from "@testing-library/react";
3
+ import { afterEach, expect, it, vi } from "vitest";
4
+ import { ServerStatus } from "./ServerStatus";
5
+
6
+ vi.mock("@/api/runtime-config", () => ({
7
+ runtimeConfig: () => ({ healthCheckTimeoutMs: 5_000 }),
8
+ }));
9
+
10
+ afterEach(() => {
11
+ vi.useRealTimers();
12
+ vi.unstubAllGlobals();
13
+ });
14
+
15
+ it("shows launch progress until the server responds", async () => {
16
+ let respond!: (response: Response) => void;
17
+ vi.stubGlobal("fetch", vi.fn(() => new Promise<Response>((resolve) => { respond = resolve; })));
18
+ const { container } = render(<ServerStatus />);
19
+ expect(screen.getByRole("status").textContent).toContain("Launching Jarela");
20
+ expect(screen.queryByRole("button", { name: "Reload now" })).toBeNull();
21
+ await act(async () => { respond(new Response(null, { status: 200 })); });
22
+ expect(container.innerHTML).toBe("");
23
+ });
24
+
25
+ it("keeps launch progress during retries, then reports a persistent failure", async () => {
26
+ vi.useFakeTimers();
27
+ const fetch = vi.fn().mockRejectedValue(new TypeError("Failed to fetch"));
28
+ vi.stubGlobal("fetch", fetch);
29
+ render(<ServerStatus />);
30
+ await act(async () => {});
31
+ expect(screen.getByRole("status").textContent).toContain("Launching Jarela");
32
+ await act(async () => { await vi.advanceTimersByTimeAsync(3_000); });
33
+ expect(screen.getByRole("status").textContent).toContain("Launching Jarela");
34
+ await act(async () => { await vi.advanceTimersByTimeAsync(3_000); });
35
+ expect(fetch).toHaveBeenCalledTimes(3);
36
+ expect(screen.getByRole("status").textContent).toContain("Server unavailable");
37
+ expect(screen.getByRole("button", { name: "Reload now" })).toBeTruthy();
38
+ expect(screen.queryByText("Failed to fetch")).toBeNull();
39
+ });
40
+
41
+ it("does not show launch progress for a transient failure after startup", async () => {
42
+ vi.useFakeTimers();
43
+ vi.stubGlobal("fetch", vi.fn()
44
+ .mockResolvedValueOnce(new Response(null, { status: 200 }))
45
+ .mockRejectedValueOnce(new TypeError("Failed to fetch")));
46
+ const { container } = render(<ServerStatus />);
47
+ await act(async () => {});
48
+ await act(async () => { await vi.advanceTimersByTimeAsync(20_000); });
49
+ expect(container.innerHTML).toBe("");
50
+ });
@@ -36,6 +36,7 @@ async function ping(): Promise<boolean> {
36
36
  }
37
37
 
38
38
  export function ServerStatus() {
39
+ const [launching, setLaunching] = useState(true);
39
40
  const [down, setDown] = useState(false);
40
41
  const wasDownRef = useRef(false);
41
42
  const failureCountRef = useRef(0);
@@ -61,6 +62,7 @@ export function ServerStatus() {
61
62
  return;
62
63
  }
63
64
  failureCountRef.current = 0;
65
+ setLaunching(false);
64
66
  if (wasDownRef.current) {
65
67
  // Server recovered after the overlay actually showed — full reload
66
68
  // to drop any stale in-memory state (EventSource queues, agent
@@ -89,27 +91,27 @@ export function ServerStatus() {
89
91
  };
90
92
  }, []);
91
93
 
92
- if (!down) return null;
94
+ if (!launching && !down) return null;
93
95
 
94
96
  return (
95
- <div className="fixed inset-0 z-[100] flex items-center justify-center bg-black/50 backdrop-blur-sm">
97
+ <div role="status" aria-live="polite" className="fixed inset-0 z-[100] flex items-center justify-center bg-black/50 backdrop-blur-sm">
96
98
  <div className="mx-4 max-w-sm w-full flex flex-col items-center gap-3 rounded-xl border border-border bg-surface text-fg px-6 py-5 text-center shadow-lg">
97
- <CloudOff size={28} className="text-amber-500" />
98
- <div className="text-sm font-medium">Server unavailable</div>
99
+ {down ? <CloudOff size={28} className="text-amber-500" /> : <Loader2 size={28} className="animate-spin text-fg-muted" />}
100
+ <div className="text-sm font-medium">{down ? "Server unavailable" : "Launching Jarela"}</div>
99
101
  <div className="text-xs text-fg-muted">
100
- Lost connection to Jarela. Retrying…
102
+ {down ? "Cannot connect to Jarela. Retrying..." : "Waiting for the local server..."}
101
103
  </div>
102
104
  <div className="flex items-center gap-2 text-xs text-fg-subtle">
103
105
  <Loader2 size={14} className="animate-spin" />
104
- <span>Reconnecting</span>
106
+ <span>{down ? "Reconnecting" : "Starting up"}</span>
105
107
  </div>
106
- <button
108
+ {down && <button
107
109
  type="button"
108
110
  onClick={() => window.location.reload()}
109
111
  className="mt-1 text-xs underline text-fg-subtle hover:text-fg"
110
112
  >
111
113
  Reload now
112
- </button>
114
+ </button>}
113
115
  </div>
114
116
  </div>
115
117
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@circuitwall/jarela",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Jarela — local chat interface for LangGraph agents (multi-provider, single-process, SQLite-backed).",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Andrew Ge Wu",