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
{{ message }}
Repository navigation
[PB-6744]: fix/keep the login form mounted until the redirect to Drive - #2286
After logging in, the login form briefly disappeared and an empty form reappeared on /login for about 50-70 ms before the redirect to Drive.
Cause: the gate in App.tsx treats every route without auth: false as protected, so while isAuthenticated && !isInitialized it swapped the login page for PreparingWorkspaceAnimation and then re-mounted an empty form
Fix: mark the login and signup routes in paths.json with "auth": false
The only consumers of the flag are App.tsx:139 and App.tsx:183
Added a unit test checking that /login and /new are public
Checklist
Changes have been tested locally.
Unit tests have been written or updated as necessary.
The code adheres to the repository's coding standards.
Relevant documentation has been added or updated.
No new warnings or errors have been introduced.
SonarCloud issues have been reviewed and addressed.
QA Passed
Summary by CodeRabbit
Bug Fixes
Login and signup routes are now explicitly available without an authenticated session. Their existing exact-match behavior remains unchanged, so the way these routes are matched has not changed. This makes the access rules for these entry points clear while preserving their existing routing behavior. No other route behavior is described as changed in this update.
/login and /new were not marked public, so the App gate swapped them for
PreparingWorkspaceAnimation after login and re-mounted an empty form
before redirecting.
terrerox
changed the title
[_]: fix/keep the login form mounted until the redirect to Drive
[PB-6744]: fix/keep the login form mounted until the redirect to Drive
Nov 5, 2026
Review was skipped as selected files did not have any reviewable changes.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: cad6768a-b7fe-414a-82a2-4f099ec9cf40
Commits
Reviewing files that changed from the base of the PR and between ba05c70 and b92ee31.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The signup and login routes now explicitly set auth to false. Tests check that /login and /new return view configurations with auth set to false.
Changes: Public route authentication
Layer / File(s)
Summary
Route authentication settings and tests src/app/routes/paths.json, src/services/config.service.test.ts
The signup and login routes set auth to false and retain exact matching. Tests check that /login and /new return view configurations with auth set to false.
The change correctly keeps the login and signup forms reachable while authentication initializes, with no actionable merge-blocking risk identified.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly describes the main change: keeping the login form mounted until redirecting to Drive.
Description check
The description clearly explains the issue, cause, fix, affected routes, and unit test coverage. It follows the main template structure and includes the checklist. The Related Issues, Related Pull Req…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description clearly explains the issue, cause, fix, affected routes, and unit test coverage. It follows the main template structure and includes the checklist. The Related Issues, Related Pull Requests, Testing Process, and Additional Notes sections are not included, but the description remains mostly complete and relevant.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: f8dcb8a7-e696-4c74-893c-5edb745850dd
Commits
Reviewing files that changed from the base of the PR and between 1269284 and ba05c70.
Files selected for processing: 2
src/app/routes/paths.json
src/services/config.service.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
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.
Description
After logging in, the login form briefly disappeared and an empty form reappeared on
/loginfor about 50-70 ms before the redirect to Drive.App.tsxtreats every route withoutauth: falseas protected, so whileisAuthenticated && !isInitializedit swapped the login page forPreparingWorkspaceAnimationand then re-mounted an empty formloginandsignuproutes inpaths.jsonwith"auth": falseApp.tsx:139andApp.tsx:183/loginand/neware publicChecklist
Summary by CodeRabbit