Title: IDP register UX polish — WebID preview, relaxed username, auto-login · Issue #284 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: IDP register UX polish — WebID preview, relaxed username, auto-login · Issue #284 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: IDP register UX polish — WebID preview, relaxed username, auto-login · Issue #284 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Background `registerPage` in `src/idp/views.js` is a functional signup form but has rough edges for first-time users. Looking at it fresh today: Username regex `^[a-z0-9]+$`, min 3 chars → rules out common shapes like `alice-smith`, `ali...
Open Graph Description: Background `registerPage` in `src/idp/views.js` is a functional signup form but has rough edges for first-time users. Looking at it fresh today: Username regex `^[a-z0-9]+$`, min 3 chars → rules ou...
X Description: Background `registerPage` in `src/idp/views.js` is a functional signup form but has rough edges for first-time users. Looking at it fresh today: Username regex `^[a-z0-9]+$`, min 3 chars → rules ou...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/284
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IDP register UX polish — WebID preview, relaxed username, auto-login","articleBody":"## Background\n\n\\`registerPage\\` in \\`src/idp/views.js\\` is a functional signup form but has rough edges for first-time users. Looking at it fresh today:\n\n- Username regex \\`^[a-z0-9]+$\\`, min 3 chars → rules out common shapes like \\`alice-smith\\`, \\`alice.smith\\`, \\`alice_work\\`. No Unicode either.\n- No **WebID preview**. The user submits without seeing that they're about to get e.g. \\`https://jss.live/alice/profile/card.jsonld#me\\`.\n- **Two-step post-submit**: success banner says \\\"you can now sign in\\\" and bounces to \\`/idp/auth\\`. A freshly-created account doesn't get an auto-login.\n- Page styling is bare compared to our other surfaces.\n\n## Proposed scope\n\nExplicitly leaving email / account recovery out of this issue — that's a bigger design discussion.\n\n**1. Relax username validation.**\n\\`^[a-z0-9][a-z0-9._-]{1,30}[a-z0-9]$\\` — must start and end alphanumeric, can contain dot, dash, underscore in the middle. Keep 3-char minimum. Blocks \\`.hidden\\`, trailing \\`.\\`, and double-separators like \\`--\\` if desired (extra check).\n\n**2. Live WebID preview.**\nAs the user types, show the resolved WebID:\n\n\\`\\`\\`\nWebID: https://jss.live/alice/profile/card.jsonld#me\nStorage: https://jss.live/alice/\n\\`\\`\\`\n\nPure client-side — template the origin + path mode into the page. Subdomain mode renders the subdomain shape. This converts an abstract form into a concrete \\\"here's what you're about to get\\\".\n\n**3. Auto-login on successful register.**\nInstead of \\\"Account created — now go sign in\\\", issue the token and redirect to the original \\`uid\\` interaction (or \\`/idp/auth\\`) with the session primed. Matches the pod-creation token flow that \\`POST /.pods\\` already supports.\n\n**4. (optional) Visual pass.**\nBring the register card up to the same gradient-accent feel as pilot's Onboarding, so the first screen a new user sees doesn't feel half-finished. Keep the same \\`styles\\` constant but add a subtle header gradient + larger logo treatment. Low effort if bundled with the above.\n\n## Non-goals\n\n- Email / account recovery. Separate discussion.\n- Passkey-first signup. Passkey prompt already exists post-login (\\`passkeyPromptPage\\`); leave that flow alone.\n- WebAuthn at register time. Out of scope.\n\n## Back-compat\n\n- The new username regex is a **superset** of the current one, so no existing user is invalidated.\n- Auto-login changes the response shape of \\`POST /idp/register\\` slightly (redirect instead of success page). If any script depended on the success HTML, they'd need an update — unlikely given this is a UI endpoint.\n\nHappy to PR.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-04-21T22:25:13Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/284"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6edcd719-bb57-f180-251f-8d86ccb5ed4e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4F2:28DAC6:1A27A06:213D3A9:6B03C66A |
| html-safe-nonce | 7d078382014fd244c06707aca55f7dd6f60723f073edf24cd16e842ee68b4b3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEYyOjI4REFDNjoxQTI3QTA2OjIxM0QzQTk6NkIwM0M2NkEiLCJ2aXNpdG9yX2lkIjoiMjAyMDMzMzg4NzQ4MTQzMTY1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 17c71938f7dad20e05c3cf159a0d19d2461f69e6581ac43ac3120e9b06cc6dcb |
| hovercard-subject-tag | issue:4305616864 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a43e3f80174003ccb6b2bbbf89b943bbb80af8ca384f697861c487dbd9cf9289/JavaScriptSolidServer/JavaScriptSolidServer/issues/284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a43e3f80174003ccb6b2bbbf89b943bbb80af8ca384f697861c487dbd9cf9289/JavaScriptSolidServer/JavaScriptSolidServer/issues/284 |
| og:image:alt | Background `registerPage` in `src/idp/views.js` is a functional signup form but has rough edges for first-time users. Looking at it fresh today: Username regex `^[a-z0-9]+$`, min 3 chars → rules ou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width