Hosting: land the new owner signed in with the settings panel open - #1441
Conversation
Code Review by Qodo
1.
|
PR Summary by QodoHosting: deep-link new owners into settings with secure login handoff
AI Description
Diagram
High-Level Assessment
Files changed (8)
|
Code Review by Qodo
1.
|
fd0f2ec to
ec4829e
Compare
The success screen ended with a static list telling the owner to visit their site, sign in and hunt for the settings button. It now carries a primary Customize your blog action deep-linking to the instance with a setup intent, plus ?login=hivesigner when the ecency.com session is a Hivesigner one. The login param only STARTS the instance's own OAuth flow: the state nonce is issued by the instance and verified at /auth exactly like a manual login, so identity is never accepted from URL parameters. The setup intent survives the OAuth round trip in sessionStorage; once the owner is looking at their site, the settings panel opens by itself. Owners who arrive through rails without the customize step get a one-time first-run checklist beside the settings button (pick a style, set an accent, check the title), dismissible and per account. Closes #1417
Review findings: FloatingMenu checked the setup intent in its own effect, but child effects run before parent effects, so an already signed-in owner arriving with ?setup=1 had the flag set AFTER the only check that would open the panel. Params are now captured at boot in main(), before React renders anything, so no component's effect order can decide whether an intent is seen. The provider keeps only the decision half (actOnLoginRequest) with honest deps, which also retires the suppressed exhaustive-deps, and the URL rebuild preserves the hash fragment.
e1de899 to
0cd206b
Compare
Review finding: the intent was consumed on the first decisive run even when it could not act, so arriving before the instance's client id was registered silently killed the headline auto-login. It is now retained while the method is unavailable (and still dropped once signed in), so a later run or the next load can honor it. The suggested pre-redirect confirm is deliberately not added: the redirect only reaches the Hivesigner authorize page, which is itself the user gesture, so a forged link achieves nothing an ordinary anchor could not.
|
Warning Review limit reached
Next review available in: 36 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Closes #1417. Stacked on #1439 (which stacks on #1438); base retargets as those merge.
The signup success screen ended with a static list telling the owner to visit their new site, sign in again and find the settings button. Now:
?setup=1, plus?login=hivesignerwhen the ecency.com session is a Hivesigner one./authexactly like a manual login, so identity is never accepted from URL parameters (the exact bug class the dedicated/authroute was built to prevent). No token ever rides in a URL.Tests: the handoff module (param consumption and URL stripping, redirect only when Hivesigner is offered and nobody is signed in, intent surviving the redirect, per-account first-run gate) and the success screen's link shape for a non-Hivesigner session. SPA 885 tests, apps/web 2623, both typechecks green.