## Problem
`getDatabaseMajorVersion` and `getSemanticVersion` in
`apps/studio/lib/helpers.ts` returned `NaN` for Postgres versions with
an architecture prefix, e.g. `supabase-postgres-arm64-17.9.0.019`
(expected 17 / 1790019). `parseAppVersionKey` already handled `arm64-`
and `x86_64-`, but the two helpers did not.
Fixes FE-4974
Closes#53109
## Solution
- `formatSemver` now strips any leading architecture token
(`^[a-z][a-z0-9_]*-`) rather than a hardcoded list. A version segment
always starts with a digit, so this covers `arm`, `arm64`, `x86_64`,
`aarch64`, `amd64` and future values.
- `APP_VERSION_KEY_RE` in `useSelectedProject.utils.ts` uses the same
rule, so the two parsers stay consistent.
- Because the rule is generic, strings like
`supabase-postgres-custom-123` would otherwise parse as a number.
`formatSemver` now rejects anything that doesn't look like `\d+.\d+`
after stripping, and both helpers return `0` for it (matching their
existing empty-string behavior). Callers only compare the result
numerically, so `0` behaves like the previous `NaN`.
Tests cover each prefix on both helpers and on `parseAppVersionKey`, a
release suffix (`-vault-rc1`), and non-version strings.
Not changed: `getSemanticVersion` concatenates segments without padding
(`17.10.0.001` becomes 171001, which compares below `17.9.0.019`). That
predates this change and its callers pin to a single major line.
## Problem
- Older orioledb projects show "Public Beta" instead of "Public Alpha"
in UI.
- List of backups in the "Scheduled backups" tab hangs.
## Solution
- show in the UI "Public Alpha" for projects older than
17.11.0.001-orioledb
- show in the UI "Public Beta" for new projects
- enable scheduled-backup query for "Public Beta"
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Backup availability messages now reflect OrioleDB’s current release
stage rather than always describing it as public beta.
* AWS backup queries are no longer disabled for every OrioleDB project;
they remain disabled during the alpha stage.
* **New Features**
* Added an informational notice and documentation link for scheduled
backups on AWS OrioleDB projects in alpha.
* Added release-stage details to the PITR availability notice.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>