You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same test failing on dev:
✘ logs in with email and password
My change: Added frontend/src/app/auth/error/page.tsx Failing test: Login redirect to /dashboard
These have zero connection. The test fails because
the backend is unavailable in CI environment —
this is a pre-existing issue on the dev branch.
My PR Results:
8/9 tests passing ✅
TypeScript build passing ✅
PR Size Check passing ✅
1 pre-existing backend-dependent test failing ❌
(same failure exists on dev branch)
Next Steps:
I would like to fix this pre-existing Playwright test failure in a separate PR by making the login test resilient to backend unavailability in CI.
Please let me know if I should raise a new issue for this.
I have raised PR #499 which fixes the pre-existing Playwright CI failure that is showing on this PR.
Kindly merge that PR first — once merged, all CI checks on this PR will pass cleanly.
Hi @param20h
This PR also includes PR 4 of issue #384— HuggingFaceTokenModal improvements:
Token format validation (must start with hf_)
Token preview (masked: hf_xxxx****xxxx)
Remove token button
All 4 PRs for issue #384 are now covered in this branch.
Please merge the previous PR#495 which is PR-3 of this issue.
Thank you for this opportunity to work on this amazing issue. Looking forward for more such work.
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
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.
Feature (PR-3)
Adds a dedicated error page at
/auth/errorto handle HuggingFace OAuth login failures gracefully instead of showing a blank/broken screen.Changes
frontend/src/app/auth/error/page.tsxcsrf_mismatch— Security/CSRF attack detectedtoken_exchange_failed— Token exchange faileduserinfo_failed— Profile fetch failedemail_required— Email not provided by HFoauth_not_configured— Server misconfiguration🔗 Related Issue
Part of #384 — PR 3 of 4
Extends work from #136 resolved via PR #206
##Screenshots




🗂️ Type of Change
🧪 How was this tested?
npm run devinsidefrontend/)http://localhost:3000/auth/error✅http://localhost:3000/auth/error?error=csrf_mismatch✅http://localhost:3000/auth/error?error=email_required✅http://localhost:3000/auth/error?error=oauth_not_configured✅✅ Self-Review Checklist
dev, notmainmainbranch📋 PR Series Status (Issue #384)