Repository navigation
feat: auth-aware welcome.html (completes MVP) - #19
Merged
Merged
Conversation
The welcome page now reflects sign-in state instead of looking identical regardless of whether the user is authenticated. Behaviour change on first paint: Signed out (unchanged from before): - "Sign in" button revealed by HEAD probe to /idp/register - "Default sign-in: me / me" credentials block visible - Tiles probed with plain fetch — /private/, /inbox/, /settings/ 401 → dimmed and rerouted to /signin.html Signed in (new): - "Sign in" button stays hidden - Credentials block hidden (the user has already climbed past it) - Green "signed in as <webid>" note pointing to /account.html - All tiles probed via session.authFetch — DPoP-bound bearer attached, /private/ etc. return 200 → tiles stay lit and navigate correctly Implementation: solid-oidc imported as an ES module, same version-pinned jsdelivr URL as the other auth-aware pages. session.restore() on load decides which branch to render. The familiar "Missing refresh data" throw on a clean first visit is caught and treated as "not signed in." Locked-tile fallback link changed from ./idp (which 403s in single-user mode) to ./signin.html (which actually starts a flow). Bumps jspod to 0.0.21. Refs #1
This was referenced May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the visual disconnect where the welcome page looked identical regardless of authentication. Now it adapts to session state. This is the last UX gap from the score-check punch list and effectively completes MVP for the first-run friction-removal arc started in #1.
Signed-out (unchanged)
Signed-in (new)
Implementation
solid-oidc imported as an ES module from the version-pinned jsdelivr URL (same pattern as signin.html and account.html). `session.restore()` on load decides the branch. The familiar "Missing refresh data" throw on a clean first visit is caught and treated as "not signed in."
Locked-tile fallback link also updated: was `./idp` (which 403s in single-user mode), now `./signin.html` (which actually starts a flow).
Test plan
Bumps jspod to 0.0.21.
Refs #1