Skip to content

fix: broken /static/brand/ paths, narrow account settings, blank 2FA QR#296

Merged
SimplicityGuy merged 1 commit intomainfrom
fix/broken-static-brand-paths-and-2fa-qr
Apr 12, 2026
Merged

fix: broken /static/brand/ paths, narrow account settings, blank 2FA QR#296
SimplicityGuy merged 1 commit intomainfrom
fix/broken-static-brand-paths-and-2fa-qr

Conversation

@SimplicityGuy
Copy link
Copy Markdown
Owner

Summary

  • Broken logo/favicons (PR feat: Deep Space design language rebrand with Constellation Vinyl logo #295 regression): StaticFiles is mounted at / in dashboard and explore, so /static/brand/... resolved to a non-existent nested static/static/brand/ path. Fixed in admin.html, both index.html files, and both site.webmanifest files.
  • Narrow Account Settings view: .settings-page had max-width: 42rem forcing a narrow centered column. Removed the cap and wrapped the three cards (Profile, Password, 2FA) in a .settings-grid that tiles with auto-fit, minmax(28rem, 1fr).
  • Blank 2FA QR code: Client read this._setupData.provisioning_uri but the API /api/auth/2fa/setup returns otpauth_uri. QRCode library received undefined → empty white canvas. Field name fixed in settings.js.

Test plan

  • Load dashboard index — logo + favicons render (not broken image)
  • Load /admin — logo + favicons render
  • Load explore index — logo + favicons render
  • Open Account Settings in explore — cards use full viewport width, tile on wide screens
  • Enable 2FA in explore — QR code renders scannable image, manual secret still visible

🤖 Generated with Claude Code

StaticFiles is mounted at `/` in dashboard and explore, so references to
`/static/brand/...` resolved to a non-existent nested directory — logos
and favicons were broken throughout the rebrand added in PR #295. Fixed
in admin.html, index.html, and both site.webmanifest files.

Account Settings pane was constrained to 42rem and centered, ignoring
most of the viewport. Removed the max-width cap and wrapped cards in a
responsive grid that tiles to fit available width.

The 2FA setup QR code rendered as a blank white square because the
client read `provisioning_uri` while the API returns `otpauth_uri`.
QRCode library received `undefined` and drew an empty canvas.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (webkit)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (chromium)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (firefox)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (webkit - iPad Pro 11)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (webkit - iPhone 15)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@SimplicityGuy SimplicityGuy merged commit 91093c9 into main Apr 12, 2026
57 checks passed
@SimplicityGuy SimplicityGuy deleted the fix/broken-static-brand-paths-and-2fa-qr branch April 12, 2026 22:37
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