Repository navigation
feat(cli): the sign-in page the browser lands on follows the design - #7332
Conversation
|
Re-ran loopback.test.ts on the final head (13c0b5b): 10 passed. |
There was a problem hiding this comment.
Verdict: APPROVE · 0 blocker · 0 important · 1 nit · head 13c0b5bb
I re-ran the fails-without-fix check locally. With main's loopback.ts, the two named tests fail, plus the updated success test (3 failed, 7 passed). At head, 10 pass. Every value that comes from the query (error, error_description) still goes through escapeHtml before it reaches the page. The page still uses only an inline <style>, with no script or outside request, the same as the page it replaces.
- nit:
callbackPage.ts:42exportsescapeHtmlbut nothing outside the file uses it, and thea.btnrule inSTYLEmatches no element on any of the three pages.
Scope
I read all 3 files in full. I checked that the response headers in respond are unchanged (no CSP to conflict with the inline style), and that the SVG gradient ids are unique per page. I grepped for other places that assert the old "Signed in" / "Sign-in failed" page text: only CLI console strings and comments mention them. CI was still running when I reviewed (no failures so far). I didn't check the visual design against the design source myself; I relied on the PR's screenshots for that.
…ilder, and drops unused code
There was a problem hiding this comment.
Verdict: APPROVE · 0 blocker · 0 important · 0 nits — 1 resolved, 0 open, 0 new · 13c0b5bb → 2f2f6248
✅ escapeHtml is no longer exported and the a.btn rule is gone. Folding the Cancel / other-failure pages into failurePage keeps the same branch on access_denied, so each of the three endings gets the same page as before. At head, loopback.test.ts passes (10). CI was still running when I reviewed.
…-com#7336-heygen-com#7358 Adopt heygen-com#7304 (without CLI renderDiagnostic, needs heygen-com#6725), heygen-com#7331, heygen-com#7332, heygen-com#7334, heygen-com#7337, heygen-com#7336, heygen-com#7339, heygen-com#7289, heygen-com#5594, heygen-com#6900, heygen-com#7322, heygen-com#7342, heygen-com#7343, heygen-com#7350 (onProgress only), heygen-com#7352, heygen-com#7348, heygen-com#7344, heygen-com#7353, heygen-com#7356 and heygen-com#7355. Defer heygen-com#5708 (needs heygen-com#6911) and heygen-com#7345 (READ_VERSION 4 vs 7); heygen-com#7307 not applicable. Re-read 14 moved pins, pin 6 new PRs (monitored 126). Make checkReportFile module-private and suppress the cross-package closeTestChrome duplicate for fallow. Co-authored-by: Miguel Ángel <miguel.sierra@heygen.com> Co-authored-by: SophiaHuangCc <129631224+SophiaHuangCc@users.noreply.github.com> Co-authored-by: Dante <duanjl.china@gmail.com> Co-authored-by: Muzzy5150 <muzzy5150yt@gmail.com> Co-authored-by: ump45nose <52391318+ump45nose@users.noreply.github.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
The page the browser lands on after
hyperframes loginnow follows the HyperFrames sign-in design: the corner mark and name, a check or cross tile, a left-aligned heading, a dark panel with the big mark (a green check on it when connected), paper or night from the system setting, stacked on a phone. It was a small dark card with a green or red title.Why
The last step of sign-in looked unlike the rest of it, and every failure said "Sign-in failed", including a person pressing Cancel. A Cancel is not a failure, and a server problem is not the person's doing.
How
auth/callbackPage.tsbuilds the three pages;loopback.tspicks one: "You're connected" on success, "Not authorized" only when the authorize endpoint returnedaccess_denied, and "Couldn't connect" with the error code and description for any other error, a state mismatch or a missing code.Test plan
fails without the fix:
loopback.test.ts"says Not authorized only when the person pressed Cancel" and "says Couldn't connect, with the code, for a failure that is not a Cancel" (the old page said "Sign-in failed" for both).loopback.test.ts: 10 passed on a remote machine before the last formatting commit.hyperframes loginagainst the live service.UX/Screenshot recording
Wide: Allow, Cancel, other failure; paper above and night below. Phone at 390 below that.