Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep public help reachable during session-check failures

pulse-triage[bot]02459c3783b9
diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsx
index 6eced1b786..0cf3eb8ccb 100644
--- a/frontend-modern/src/App.tsx
+++ b/frontend-modern/src/App.tsx
@@ -476,7 +476,7 @@ function App() {
return (
<Show
- when={!runtime.isLoading() && !runtime.bootstrapFailed()}
+ when={!runtime.isLoading() && (!runtime.bootstrapFailed() || isPublicRoute())}
fallback={<AppBootstrapStatus failed={runtime.bootstrapFailed()} />}
>
<Show
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 84436fb4b5..80e909ca73 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -256,7 +256,7 @@ describe('App architecture', () => {
});
it('keeps first-load connection progress understandable and retryable', () => {
- expect(appSource).toContain('when={!runtime.isLoading() && !runtime.bootstrapFailed()}');
+ expect(appSource).toContain('(!runtime.bootstrapFailed() || isPublicRoute())');
expect(appSource).toContain(
'fallback={<AppBootstrapStatus failed={runtime.bootstrapFailed()} />}',
);
diff --git a/frontend-modern/src/__tests__/useAppRuntimeState.test.ts b/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
index eb45819798..fed0833b99 100644
--- a/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
+++ b/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
@@ -56,7 +56,7 @@ const makeTrueNASResource = (id = 'truenas-1'): Resource => ({
describe('useAppRuntimeState', () => {
let useAppRuntimeState: UseAppRuntimeStateModule['useAppRuntimeState'];
- let apiFetchMock: ReturnType<typeof vi.fn>;
+ let apiFetchMock: ReturnType<typeof vi.fn<(url: string) => Promise<Response>>>;
let orgsListMock: ReturnType<typeof vi.fn>;
let loadLicenseStatusMock: ReturnType<typeof vi.fn>;
let loadCommercialPostureMock: ReturnType<typeof vi.fn>;
@@ -418,9 +418,7 @@ describe('useAppRuntimeState', () => {
it('keeps a genuine summary 401 on the login path, not the connection-error path', async () => {
const fallbackFetch = apiFetchMock.getMockImplementation()!;
apiFetchMock.mockImplementation(async (url: string) =>
- url === '/api/state/summary'
- ? new Response('{}', { status: 401 })
- : fallbackFetch(url),
+ url === '/api/state/summary' ? new Response('{}', { status: 401 }) : fallbackFetch(url),
);
const { hookState, dispose } = mountHook();
@@ -434,9 +432,7 @@ describe('useAppRuntimeState', () => {
});
it('requires explicit no-auth discovery before first-run setup', async () => {
- apiFetchMock.mockResolvedValue(
- new Response('{"hasAuthentication":false}', { status: 200 }),
- );
+ apiFetchMock.mockResolvedValue(new Response('{"hasAuthentication":false}', { status: 200 }));
const { hookState, dispose } = mountHook();
await waitFor(() => expect(hookState.isLoading()).toBe(false));
diff --git a/frontend-modern/src/components/AppBootstrapStatus.tsx b/frontend-modern/src/components/AppBootstrapStatus.tsx
index 055bb34b03..9ac6b0a19f 100644
--- a/frontend-modern/src/components/AppBootstrapStatus.tsx
+++ b/frontend-modern/src/components/AppBootstrapStatus.tsx
@@ -51,8 +51,8 @@ export const AppBootstrapStatus: Component<AppBootstrapStatusProps> = (props) =>
when={props.failed}
fallback={
<Show when={isSlow()} fallback="Checking your session and preparing the workspace.">
- Pulse is taking longer than expected to respond. The server may still be starting
- or busy.
+ Pulse is taking longer than expected to respond. The server may still be starting or
+ busy.
</Show>
}
>