Skip to content

feat(FR-2626): migrate LoginView sToken path to STokenLoginBoundary#6861

Merged
graphite-app[bot] merged 1 commit into
mainfrom
04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary
Apr 23, 2026
Merged

feat(FR-2626): migrate LoginView sToken path to STokenLoginBoundary#6861
graphite-app[bot] merged 1 commit into
mainfrom
04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary

Conversation

@nowgnuesLee
Copy link
Copy Markdown
Contributor

@nowgnuesLee nowgnuesLee commented Apr 22, 2026

Resolves FR-2636, FR-2637, FR-2638 (under Story FR-2626, Epic FR-2616)

resolves #NNN (FR-MMM)

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 for the full story breakdown.

Copy link
Copy Markdown
Contributor Author

nowgnuesLee commented Apr 22, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 22, 2026

Coverage report for ./react

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

@nowgnuesLee nowgnuesLee force-pushed the 04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary branch from 7c7561a to fc0f377 Compare April 22, 2026 03:43
@nowgnuesLee nowgnuesLee force-pushed the 04-22-refactor_fr-2616_rely_on_react_compiler_use_memo_for_memoization branch from 6dcbbec to 19bc0b6 Compare April 22, 2026 03:44
@nowgnuesLee nowgnuesLee force-pushed the 04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary branch from fc0f377 to f062859 Compare April 22, 2026 03:53
@nowgnuesLee nowgnuesLee force-pushed the 04-22-refactor_fr-2616_rely_on_react_compiler_use_memo_for_memoization branch from 19bc0b6 to 0e60f45 Compare April 22, 2026 03:53
@nowgnuesLee nowgnuesLee marked this pull request as ready for review April 23, 2026 06:09
Copilot AI review requested due to automatic review settings April 23, 2026 06:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 STokenGuard that mounts STokenLoginBoundary when sToken/stoken exists, and clears the query params on success.
  • Introduced persistPostLoginState() helper to centralize post-login side effects for token-based login success.
  • Removed the legacy sToken URL parsing + token login flow from LoginView.

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.

Comment thread react/src/helper/loginSessionAuth.ts Outdated
Comment thread react/src/components/LoginView.tsx
Comment thread react/src/routes.tsx
@nowgnuesLee nowgnuesLee force-pushed the 04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary branch from f062859 to c9bf0d6 Compare April 23, 2026 07:57
@nowgnuesLee nowgnuesLee force-pushed the 04-22-refactor_fr-2616_rely_on_react_compiler_use_memo_for_memoization branch from 0e60f45 to 35db452 Compare April 23, 2026 07:57
@nowgnuesLee nowgnuesLee force-pushed the 04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary branch from c9bf0d6 to 6c16c60 Compare April 23, 2026 08:02
@nowgnuesLee nowgnuesLee force-pushed the 04-22-refactor_fr-2616_rely_on_react_compiler_use_memo_for_memoization branch from 35db452 to 3edbd01 Compare April 23, 2026 08:02
@nowgnuesLee nowgnuesLee force-pushed the 04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary branch from 6c16c60 to c683412 Compare April 23, 2026 08:35
@nowgnuesLee nowgnuesLee force-pushed the 04-22-refactor_fr-2616_rely_on_react_compiler_use_memo_for_memoization branch from 3edbd01 to 9b8a859 Compare April 23, 2026 08:35
Copy link
Copy Markdown
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Apr 23, 2026

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
@graphite-app graphite-app Bot force-pushed the 04-22-refactor_fr-2616_rely_on_react_compiler_use_memo_for_memoization branch from 9b8a859 to e109675 Compare April 23, 2026 10:36
@graphite-app graphite-app Bot force-pushed the 04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary branch from c683412 to 79e6dc4 Compare April 23, 2026 10:36
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 graphite-app Bot merged commit 79e6dc4 into main Apr 23, 2026
8 checks passed
@graphite-app graphite-app Bot deleted the 04-22-feat_fr-2626_migrate_loginview_stoken_path_to_stokenloginboundary branch April 23, 2026 10:46
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants