alby-hub/frontend
Roland 037765794d
Some checks are pending
Multiplatform Docker build & push / build (push) Waiting to run
Code quality - linting and typechecking / linting (push) Waiting to run
Backend testing with Postgres / test-postgres (push) Waiting to run
fix: keep showing migration success page after creating migration file (#2527)
* fix: keep showing migration success page after creating migration file

After creating a node migration file the hub is halted and the Alby
OAuth token is intentionally removed, so visiting the homepage sent the
user through /start into the Alby OAuth flow. Track the halted state
in memory and redirect back to the migration success page instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: synchronize migration flag access and propagate zip close error

Make nodeMigrationFileCreated an atomic.Bool since it is written by
CreateBackup and read by GetInfo on concurrent HTTP handler goroutines,
and finalize the migration archive explicitly so a failed zip close
returns an error instead of reporting a corrupt backup as success.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: return minimal info response after migration file is created

Once a migration file is created the hub is halted and the database is
closed. GetInfo previously only worked because every config key it reads
happened to be served from the config cache; any cache miss on an
error-propagating read would fail /api/info. Return early with a minimal
response instead so the migration success page does not depend on cache
state.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 15:37:26 +07:00
..
.husky Fix: husky 10 warning (#1616) 2025-08-19 13:20:43 +07:00
platform_specific chore: fix ts errors (#1448) 2025-06-26 16:34:50 +05:30
public chore(frontend): shadcn v4 upgrade, Alby theme polish, hub logo (#2155) 2026-04-14 14:05:54 +02:00
src fix: keep showing migration success page after creating migration file (#2527) 2026-08-10 15:37:26 +07:00
.env.local.example chore: update additional places to support multiple relays (#2104) 2026-02-28 13:30:48 +07:00
.prettierignore feat: setup linters (#357) 2024-06-01 14:05:43 +07:00
.prettierrc feat: setup linters (#357) 2024-06-01 14:05:43 +07:00
commitlint.config.js feat: setup linters (#357) 2024-06-01 14:05:43 +07:00
components.json chore(frontend): shadcn v4 upgrade, Alby theme polish, hub logo (#2155) 2026-04-14 14:05:54 +02:00
eslint.config.mjs build(deps-dev): bump eslint-plugin-react-hooks from 7.0.1 to 7.1.1 in /frontend (#2261) 2026-04-27 16:46:41 +05:30
frontend.go feat: embed react dist in go executable 2024-01-10 12:40:15 +07:00
index.html fix: branding (#1890) 2025-11-07 09:29:10 +01:00
lint-staged.config.js fix: linting errors + migrate to new config system (#415) 2024-06-12 13:00:17 +07:00
package.json chore: remove unused argon2-wasm-esm dependency (#2508) 2026-08-07 17:55:38 +07:00
tsconfig.json chore: remove unused argon2-wasm-esm dependency (#2508) 2026-08-07 17:55:38 +07:00
tsconfig.node.json feat: frontend setup 2023-12-14 17:22:47 +05:30
vite.config.ts chore: remove Bitrefill custom app in favor of standard NWC connection (#2420) 2026-06-09 20:11:04 +07:00
yarn.lock chore: remove unused argon2-wasm-esm dependency (#2508) 2026-08-07 17:55:38 +07:00