feat(FR-2626): migrate LoginView sToken path to STokenLoginBoundary#6861
Merged
graphite-app[bot] merged 1 commit intoApr 23, 2026
Conversation
5 tasks
Contributor
Author
This was referenced Apr 22, 2026
Contributor
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 8.91% (+0% 🔼) |
1832/20567 |
| 🔴 | Branches | 8.07% (-0.01% 🔻) |
1165/14433 |
| 🔴 | Functions | 5.3% (+0.02% 🔼) |
295/5568 |
| 🔴 | Lines | 8.64% (+0% 🔼) |
1724/19956 |
Test suite run success
865 tests passing in 40 suites.
Report generated by 🧪jest coverage report action from 79e6dc4
This was referenced Apr 22, 2026
7c7561a to
fc0f377
Compare
6dcbbec to
19bc0b6
Compare
fc0f377 to
f062859
Compare
19bc0b6 to
0e60f45
Compare
This was referenced Apr 22, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates the sToken (SSO token) URL-entry login path out of LoginView and into a dedicated route-level STokenLoginBoundary, so the main login/layout tree no longer reads auth state directly from URL query params.
Changes:
- Added a route-level
STokenGuardthat mountsSTokenLoginBoundarywhensToken/stokenexists, and clears the query params on success. - Introduced
persistPostLoginState()helper to centralize post-login side effects for token-based login success. - Removed the legacy
sTokenURL parsing + token login flow fromLoginView.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
react/src/routes.tsx |
Adds STokenGuard and wraps root routes so token-based login is handled before rendering the normal app tree. |
react/src/helper/loginSessionAuth.ts |
Adds persistPostLoginState() to persist common “successful login” side effects for token-based login. |
react/src/components/LoginView.tsx |
Removes in-component sToken URL handling; relies on route-level boundary instead. |
f062859 to
c9bf0d6
Compare
0e60f45 to
35db452
Compare
c9bf0d6 to
6c16c60
Compare
35db452 to
3edbd01
Compare
6c16c60 to
c683412
Compare
3edbd01 to
9b8a859
Compare
Merge activity
|
…6861) Resolves FR-2636, FR-2637, FR-2638 (under Story [FR-2626](https://lablup.atlassian.net/browse/FR-2626), Epic [FR-2616](https://lablup.atlassian.net/browse/FR-2616)) resolves #NNN (FR-MMM) <!-- replace NNN, MMM with the GitHub issue number and the corresponding Jira issue number. --> <!-- Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes, and how it affects the users and other developers. --> **Checklist:** (if applicable) - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after ## Stack Story 2 of Epic FR-2616. See [dev plan](../blob/main/.specs/draft-stoken-login-boundary/dev-plan.md) for the full story breakdown. [FR-2626]: https://lablup.atlassian.net/browse/FR-2626?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [FR-2616]: https://lablup.atlassian.net/browse/FR-2616?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
9b8a859 to
e109675
Compare
c683412 to
79e6dc4
Compare
Base automatically changed from
04-22-refactor_fr-2616_rely_on_react_compiler_use_memo_for_memoization
to
main
April 23, 2026 10:45
graphite-app Bot
pushed a commit
that referenced
this pull request
Apr 24, 2026
…6865) Resolves FR-2639 and FR-2643 (under Stories [FR-2626](https://lablup.atlassian.net/browse/FR-2626) / [FR-2627](https://lablup.atlassian.net/browse/FR-2627), Epic [FR-2616](https://lablup.atlassian.net/browse/FR-2616)) resolves #NNN (FR-MMM) <!-- replace NNN, MMM with the GitHub issue number and the corresponding Jira issue number. --> <!-- Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes, and how it affects the users and other developers. --> **Checklist:** (if applicable) - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after ## Stack Story 2/3 E2E regression for Epic FR-2616. Sits on top of the Story 2 (#6861) and Story 3 (#6864) implementation PRs. [FR-2626]: https://lablup.atlassian.net/browse/FR-2626?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [FR-2627]: https://lablup.atlassian.net/browse/FR-2627?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [FR-2616]: https://lablup.atlassian.net/browse/FR-2616?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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.

Resolves FR-2636, FR-2637, FR-2638 (under Story FR-2626, Epic FR-2616)
resolves #NNN (FR-MMM)
Checklist: (if applicable)
Stack
Story 2 of Epic FR-2616. See dev plan for the full story breakdown.