Skip to content

Dashboard v0.2.2 — login-screen versions, and drop frame-ancestors - #10

Merged
gmpassos merged 3 commits into
masterfrom
chore/dashboard-0.2.2
Jul 14, 2026
Merged

Dashboard v0.2.2 — login-screen versions, and drop frame-ancestors#10
gmpassos merged 3 commits into
masterfrom
chore/dashboard-0.2.2

Conversation

@gmpassos

@gmpassos gmpassos commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Two dashboard changes, shipped together as 0.2.2 so the gated Pages deploy fires once.

Login-screen versions

The login screen now shows a version line under the form:

Dashboard v0.2.2 · OmnyServer v0.15.0
  • omnyServerWebVersion (lib/version.dart), kept in sync with pubspec.yaml by a test — mirroring the server's omnyServerVersion / version_test.dart.
  • The server half is the omnyserver package version the dashboard was built against (the deploy path-overrides omnyserver to this repo, so the two always match).
  • Both are compile-time. At the login screen there's no Hub connection yet, so the line names the API the dashboard targets, not the version of the Hub you sign in to — the tooltip says exactly that.
  • The composed text is centralized as versionLabel in lib/version.dart; the screen just renders it.

Verified the dart2js release build (what the deploy runs): the bundle compiles and both Dashboard v0.2.2 and OmnyServer v0.15.0 are baked in.

Drop frame-ancestors from the CSP

The v0.15.0 work removed frame-ancestors from the CSP that deploy.yml injects into index.html — it's only honoured in a real HTTP header, never in a <meta> tag, so it did nothing but log a console error on every page load. But the Pages deploy is gated on a dashboard version bump, and those PRs were server-only, so the fix never went live. This bump carries it.

Every other CSP directive is unchanged.

🤖 Generated with Claude Code

gmpassos and others added 2 commits July 14, 2026 19:54
The strict CSP injected into the built index.html carried `frame-ancestors
'none'`, which is only honoured in a real HTTP header, never in a <meta> tag —
and GitHub Pages does not let us set headers. It bought no protection and logged
a console error on every page load. The directive was removed from the deploy
workflow in the v0.15.0 work; this bumps the dashboard so the gated Pages deploy
actually ships it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add `omnyServerWebVersion` (lib/version.dart), synced to pubspec.yaml by a test,
and compose it with the omnyserver package version the dashboard was built
against into a single `versionLabel`. The login screen shows that line under the
form — `Dashboard v0.2.2 · OmnyServer v0.15.0`.

Both halves are compile-time: at the login screen there is no Hub connection
yet, so the line names the API the dashboard targets, not the version of the Hub
you go on to sign in to. The tooltip says so; that caveat is the one bit local to
the login screen, so it stays there while the text itself is centralized.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmpassos gmpassos changed the title Dashboard v0.2.2 — drop frame-ancestors from the CSP Dashboard v0.2.2 — login-screen versions, and drop frame-ancestors Jul 14, 2026
Use the stylesheet's purpose-built `.version-footer` (text-align: center) rather
than a one-off inline style.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmpassos
gmpassos merged commit afa83cb into master Jul 14, 2026
5 checks passed
@gmpassos
gmpassos deleted the chore/dashboard-0.2.2 branch July 14, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant