fix(inspector): rework auth gate and request code from newer devframe hosts - #5349
Merged
Merged
Conversation
✅ Deploy Preview for unocss ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
… hosts devframe >=0.9.14 no longer prints the auth code banner automatically on page load, so the inspector's custom auth UI never got a code to enter. Request the code explicitly when the auth screen appears (guarded for older hosts) and rework the gate into a dedicated OTP screen: a six-box code input with paste/keyboard handling, an authorize action, inline error/hint feedback, and a re-issue control to rotate a fresh code. closes unocss#5333
antfubot
force-pushed
the
feat/inspector-auth-ui
branch
from
September 15, 2026 23:51
8c56332 to
4b966be
Compare
|
commit: |
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.
Description
Closes #5333. Builds on the merged #5348 by reworking the auth gate UI.
devframe 0.9.14 (devframes/devframe#368) introduced
requestAuthCode()and stopped automatically printing the auth banner on plain page loads. The inspector drives its own auth UI withsimpleAuth: false, so it must ask the host for a code explicitly. #5348 fixed the missing request; this reworks the gate itself into a proper one-time-code screen.What changed
ViewBuiltinClientAuthNoticefor structure and UX:OtpInputcomponent: six single-digit boxes with paste, arrow-key, backspace and autofill handling, plus an invalid-state shake;aria-liveregion;requestAuthCode?.()) so older hosts keep working.Styling uses the inspector's own UnoCSS tokens (
border-main,bg-active,tealaccent) rather than pulling in external design deps.This PR was created with the help of an agent.