René's URL Explorer Experiment


Title: feat: mode-agnostic landing + HEAD-adaptive Sign up/Sign in (#435) by melvincarvalho · Pull Request #436 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: feat: mode-agnostic landing + HEAD-adaptive Sign up/Sign in (#435) by melvincarvalho · Pull Request #436 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: feat: mode-agnostic landing + HEAD-adaptive Sign up/Sign in (#435) by melvincarvalho · Pull Request #436 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Summary Refines the Phase 3 landing page from #433/#434 so it adapts to the server's current state at load time instead of being frozen at seed time. Mode-agnostic copy. Single welcome page used by every mode. Differences land in the buttons, which adapt at load time. HEAD-adaptive Sign up / Sign in. Inline script probes HEAD /idp/register: 200 → reveal both (multi-user + IDP, registration open) 403 → reveal Sign in only (single-user — registration intentionally disabled) 404 / network error → leave both hidden (no IDP) Live server URL filled in client-side from window.location.origin — adapts to whichever host the visitor used (works behind reverse proxies, across localhost / 127.0.0.1 / LAN-IP) without re-rendering. Get started → docs. Primary CTA points at https://jss.live/docs/getting-started/introduction (the canonical first page in the existing Getting Started section — Docusaurus 3 doesn't auto-generate a category index, so /docs/getting-started/ would 404). Tone: professional enough to leave as the public landing on an IDP / multi-user deployment. No emoji headline, sentence case, brief Solid explainer for visitors landing fresh. The seed model itself is unchanged — still skip-if-exists for /index.html, /.acl, /index.html.acl. Operator-written files preserved. The ./-relative .acl seeds from #434 still mean an operator-uploaded /index.html is publicly readable without them having to write WAC by hand. Why Two problems with the previous Phase 3 landing showed up the first time we tried switching modes on a real install: Stale across mode changes. Once --single-user ran first, every later run (any mode) served the same HTML because of skip-if-exists. A subsequent restart in another mode still showed "Mode: single-user" and a non-functional Sign-in button. Sign in 404. "Sign in" linked to /idp, which 404s when IDP isn't enabled. The button always rendered (worked out at write time), so the page kept promising something the server no longer offered after a mode change. Copilot review surfaced two more during this PR's iteration: The .btn class's display: inline-block overrode the UA stylesheet's [hidden] { display: none } (equal specificity, author rule wins because it comes later). Sign up / Sign in would have flashed visible before the HEAD probe finished. Fixed with an explicit [hidden] { display: none !important } rule. The Mode pill and Features pills were still rendered into the seeded HTML at first start. Same skip-if-exists trap — they'd stale on the next mode change. Dropped both from the seed; the CLI banner already lists them at startup. Tests test/server-root.test.js rewritten for the new model. 20 tests: 3 server-root integration: GET / serves seeded HTML, public-read on /index.html, seeded ACLs use ./ relative form (#434 regression). 2 operator-override: existing /index.html preserved + served as-is. 10 renderer assertions: mode-agnostic byte-equality across singleUser flag, no Mode/Features pills baked in, Get started CTA at /docs/getting-started/introduction, hidden Sign-up/Sign-in anchors with the right data-cond attributes, [hidden] { display: none !important } CSS rule present, HEAD probe script presence + status literals, live-URL script, version interpolation + escape, footer GitHub link + customise hint. 5 unit tests for the new decideRevealForRegisterStatus(status) helper covering 200 / 403 / 404 / 500 / undefined. 819/819 tests pass. Test plan npm test — 819/819 passing locally New tests cover the HEAD matrix as a pure helper (status → buttons), the CSS [hidden] override, the absence of stale Mode/Features pills in the seed, and the docs-CTA URL. .acl portability regression from #434 still passing. Out of scope A standalone /idp/login page (NSS-style direct credential form). That's the only way to give "Sign in" a destination when no OIDC client app is in the picture; deferred to its own feature. A friendlier "first-run" walkthrough page in JavaScriptSolidServer/docs. The CTA currently lands on Introduction (a real, useful page); a more guided post-install page is being filed as a separate, independent docs PR. Closes #435. Phase 3 refinement of #427.

Open Graph Description: Summary Refines the Phase 3 landing page from #433/#434 so it adapts to the server's current state at load time instead of being frozen at seed time. Mode-agnostic copy. Single welcome page us...

X Description: Summary Refines the Phase 3 landing page from #433/#434 so it adapts to the server's current state at load time instead of being frozen at seed time. Mode-agnostic copy. Single welcome pag...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c8761e9f-3b55-4050-9b12-e006f7732555
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8F12:161BA9:14ACB45:1A16BF8:6B039A82
html-safe-noncefa786626f8914b8064a178d51b55209d1315c346ddfd748ea9b6e736e8d6343e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjEyOjE2MUJBOToxNEFDQjQ1OjFBMTZCRjg6NkIwMzlBODIiLCJ2aXNpdG9yX2lkIjoiODIzMzkzMzIzNzE5MDM2Nzg3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac476af8844804dbe074bc116023a754c9a613feff571e109031178559ad01eebb
hovercard-subject-tagpull_request:3681137825
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
twitter:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
og:image:altSummary Refines the Phase 3 landing page from #433/#434 so it adapts to the server's current state at load time instead of being frozen at seed time. Mode-agnostic copy. Single welcome page us...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F436%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F436%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
melvincarvalhohttps://github.com/melvincarvalho
gh-pageshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/gh-pages
issue-435-landing-refinementhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/issue-435-landing-refinement
Conversation 29 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436
Commits 7 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/commits
Checks 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/checks
Files changed https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
feat: mode-agnostic landing + HEAD-adaptive Sign up/Sign in (#435) https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#top
Show all changes 7 commits https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
02ceb7d feat: mode-agnostic landing + HEAD-adaptive Sign up/Sign in (#435) melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/commits/02ceb7d205acfdc0f974b132e2439d02b7ba63e5
692932f fix: point Get started CTA at /docs/getting-started/introduction melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/commits/692932faffafb2dd10890f66023e9669daed523c
694a5df review: address Copilot pickups on #436 melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/commits/694a5dfe9622a7ccddfb127c6732fc3fabf3ddba
45b695c review: fix issue reference in seeded HTML comment melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/commits/45b695c3f2832380865e996c9c489280aa2a9ee6
b6ad396 review: page-relative IdP URLs for path-prefix portability melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/commits/b6ad3968fb004a49b673166b7be078f9118ba1a4
5447f65 review: derive live URL from document base, not origin-only melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/commits/5447f65f61c1be6fb877c5f3a4ec33b83b94e5ee
4903553 review: drop seeded version + page-relative fallback href melvincarvalho May 14, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/commits/490355323f7a3d257beaf7bddc41dcc0c7047983
Clear filters https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
server-root.html https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#diff-ffc0c38dbc8b723f85b340460c82173b960ead1e303e22cf69a82aa10fad35cf
server-root.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#diff-c470b442eed3d9b8b12582350b4fe705d4fd22e756b8b47e0e68e4441375b0d7
server-root.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#diff-60204af4883fe14b892ba2df459e47925435d9c75015d2dc7deda97af97f1723
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
src/ui/server-root.htmlhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#diff-ffc0c38dbc8b723f85b340460c82173b960ead1e303e22cf69a82aa10fad35cf
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/490355323f7a3d257beaf7bddc41dcc0c7047983/src/ui/server-root.html
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#diff-ffc0c38dbc8b723f85b340460c82173b960ead1e303e22cf69a82aa10fad35cf
melvincarvalhohttps://github.com/melvincarvalho
May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#r3239716208
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
694a5dfhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/694a5dfe9622a7ccddfb127c6732fc3fabf3ddba
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
melvincarvalhohttps://github.com/melvincarvalho
May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#r3239716851
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
melvincarvalhohttps://github.com/melvincarvalho
May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#r3239716722
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
694a5dfhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/694a5dfe9622a7ccddfb127c6732fc3fabf3ddba
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
melvincarvalhohttps://github.com/melvincarvalho
May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#r3240095467
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#435https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/435
#439https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/439
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
src/ui/server-root.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#diff-c470b442eed3d9b8b12582350b4fe705d4fd22e756b8b47e0e68e4441375b0d7
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/490355323f7a3d257beaf7bddc41dcc0c7047983/src/ui/server-root.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#diff-c470b442eed3d9b8b12582350b4fe705d4fd22e756b8b47e0e68e4441375b0d7
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files#diff-c470b442eed3d9b8b12582350b4fe705d4fd22e756b8b47e0e68e4441375b0d7
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/436/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.