From 6b2411c04284c55cc88ac75a446c35280649a3db Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Mon, 24 Aug 2026 19:41:37 -0700 Subject: [PATCH 1/4] fix(ui): unify branded error pages --- apps/desktop/e2e/smoke.spec.ts | 9 + apps/desktop/electron-builder.yml | 2 + apps/desktop/static/offline.html | 211 +++++++++++------- apps/docs/app/[lang]/not-found.tsx | 25 ++- .../app/(landing)/blog/authors/not-found.tsx | 17 +- apps/sim/app/(landing)/blog/not-found.tsx | 17 +- .../app/(landing)/comparisons/not-found.tsx | 17 +- .../app/(landing)/integrations/not-found.tsx | 17 +- .../(landing)/library/authors/not-found.tsx | 17 +- apps/sim/app/(landing)/library/not-found.tsx | 17 +- apps/sim/app/(landing)/models/not-found.tsx | 17 +- apps/sim/app/global-error.tsx | 32 ++- apps/sim/app/not-found.tsx | 16 +- .../[workspaceId]/components/error/error.tsx | 10 +- .../w/[workflowId]/components/error/index.tsx | 51 +---- apps/sim/components/status-page/index.ts | 1 + .../components/status-page/status-page.tsx | 38 ++++ 17 files changed, 278 insertions(+), 236 deletions(-) create mode 100644 apps/sim/components/status-page/index.ts create mode 100644 apps/sim/components/status-page/status-page.tsx diff --git a/apps/desktop/e2e/smoke.spec.ts b/apps/desktop/e2e/smoke.spec.ts index 86d3716430e..02c9990e740 100644 --- a/apps/desktop/e2e/smoke.spec.ts +++ b/apps/desktop/e2e/smoke.spec.ts @@ -110,5 +110,14 @@ test.describe('desktop shell smoke', () => { const window = await app.firstWindow() await window.waitForSelector('#retry', { timeout: 30_000 }) expect(window.url().startsWith('file:')).toBe(true) + await expect(window.locator('.wordmark')).toBeVisible() + await expect(window.locator('.wordmark')).toHaveAttribute('aria-label', 'Sim') + await expect(window.locator('#title')).toHaveText('Can’t connect to Sim') + await expect(window.locator('#status')).toHaveText('Check status') + await expect + .poll(() => window.evaluate(() => document.fonts.check('16px "Season Sans"'))) + .toBe(true) + await expect(window.locator('#retry')).toHaveCSS('height', '30px') + await expect(window.locator('#retry')).toHaveCSS('border-radius', '8px') }) }) diff --git a/apps/desktop/electron-builder.yml b/apps/desktop/electron-builder.yml index 4f0629d1259..0ecc4bf5706 100644 --- a/apps/desktop/electron-builder.yml +++ b/apps/desktop/electron-builder.yml @@ -10,6 +10,8 @@ files: - dist/** - static/** - package.json + - from: ../sim/public/brand/fonts/SeasonSansUprightsVF.woff2 + to: static/SeasonSansUprightsVF.woff2 asar: true diff --git a/apps/desktop/static/offline.html b/apps/desktop/static/offline.html index c0a5a93be86..ffbe1f8c52a 100644 --- a/apps/desktop/static/offline.html +++ b/apps/desktop/static/offline.html @@ -4,26 +4,27 @@ - Sim — Can’t connect + Sim - Can’t connect +
+ + + + + + + + +
-
S
-

Can’t connect to Sim

-

- Sim couldn’t reach the server. Check your internet connection, then try again. -

-
- -
-