Skip to content

Conversation

@agatha197
Copy link
Contributor

@agatha197 agatha197 commented Apr 21, 2025

Resolves #3546 (FR-873)

Rename experimental_dashboard to classic_dashboard_page with inverted logic

This PR renames the user setting experimental_dashboard to classic_dashboard_page and inverts its logic. The dashboard page is now the default view, and users can opt to use the classic summary page instead.

The change affects:

  • Router configuration in App.tsx
  • WebUISider menu item display logic
  • User settings definition and UI controls
  • All language translation files with updated descriptions

This change better reflects that the dashboard is now the standard view rather than an experimental feature, while still allowing users to switch back to the classic summary page if preferred.

image.png

Checklist:

  • 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

@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization labels Apr 21, 2025
Copy link
Contributor Author

agatha197 commented Apr 21, 2025


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 hot fixes, skip the queue and merge this PR next

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 github-actions bot added the size:M 30~100 LoC label Apr 21, 2025
@github-actions
Copy link

github-actions bot commented Apr 21, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
4.65% (+0% 🔼)
532/11429
🔴 Branches
3.76% (+0% 🔼)
302/8022
🔴 Functions
2.88% (+0% 🔼)
102/3543
🔴 Lines
4.6% (+0% 🔼)
514/11169

Test suite run success

121 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 4f287da

@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from 45855d8 to 995054c Compare July 15, 2025 09:53
@github-actions github-actions bot added size:L 100~500 LoC and removed size:M 30~100 LoC labels Jul 15, 2025
@agatha197 agatha197 marked this pull request as ready for review July 15, 2025 09:54
@Copilot Copilot AI review requested due to automatic review settings July 15, 2025 09:54
Copy link
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

This PR renames the experimental_dashboard setting to classic_dashboard_page, inverts its logic, and updates all related UI and translations so that the dashboard is the default, with an opt-in classic summary page.

  • Updated translation files with new DescClassicDashboardPage and menu key ClassicDashboardPage, removed obsolete DescClassicSessionLauncher
  • Replaced the experimental dashboard checkbox in UserSettingsPage with the new classic dashboard toggle
  • Updated useBAISetting hook, WebUISider menu logic, and App.tsx routing to use classic_dashboard_page

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
resources/i18n/**/*.json Added DescClassicDashboardPage and ClassicDashboardPage, removed DescClassicSessionLauncher
react/src/pages/UserSettingsPage.tsx Replaced experimental dashboard setting with classic dashboard toggle
react/src/hooks/useBAISetting.tsx Added classic_dashboard_page to UserSettings interface
react/src/components/MainLayout/WebUISider.tsx Inverted menu display based on classic_dashboard_page
react/src/App.tsx Updated route guards to use classic_dashboard_page
Comments suppressed due to low confidence (1)

react/src/pages/UserSettingsPage.tsx:247

  • Add tests for the new classic_dashboard_page setting to verify that the checkbox correctly reflects and persists the default state, and that routing switches between dashboard and summary as expected.
          type: 'checkbox',

@agatha197 agatha197 requested a review from nowgnuesLee July 16, 2025 01:02
Copy link
Contributor

@nowgnuesLee nowgnuesLee left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
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.

It works properly. I have a suggestion. How about adding a group of settings for the classic feature, similar to an experimental group?

image.png

@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from 995054c to af8709b Compare July 29, 2025 00:58
@agatha197 agatha197 requested a review from yomybaby July 29, 2025 00:58
@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from af8709b to 0ed6535 Compare August 4, 2025 01:31
@agatha197 agatha197 changed the base branch from main to graphite-base/3554 October 16, 2025 05:35
@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from 0ed6535 to 5800173 Compare October 16, 2025 05:36
@agatha197 agatha197 changed the base branch from graphite-base/3554 to feat_FR-1240_/admin-dashboard October 16, 2025 05:36
@agatha197 agatha197 requested a review from nowgnuesLee October 16, 2025 05:42
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

Please check the failed CI job.

Copy link
Contributor Author

@ironAiken2 The jest test files are all passed when I tested them on local env. I think that's the graphite's error.

@agatha197 agatha197 requested a review from ironAiken2 October 17, 2025 07:39
Copy link
Contributor

@agatha197 Error: Error: The process '/usr/bin/git' failed with exit code 128 error occurs; it seems something went wrong when switching branches in Graphite, preventing it from finding the branch. I'll skip this part and review the rest.

Copy link
Contributor

@nowgnuesLee nowgnuesLee left a comment

Choose a reason for hiding this comment

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

I'm not sure why, but it's failing in GitHub Actions. Could you run gt sync once?

@agatha197 agatha197 requested a review from nowgnuesLee October 20, 2025 02:21
Copy link
Contributor Author

agatha197 commented Oct 20, 2025

oh finally it works! It passed all tests!

@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 086b36f to c5b0ebc Compare October 20, 2025 08:03
@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from 49617a3 to 580aafe Compare October 20, 2025 08:03
Copy link
Contributor

@nowgnuesLee nowgnuesLee left a comment

Choose a reason for hiding this comment

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

LGTM

@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from c5b0ebc to 89dbeef Compare October 20, 2025 08:39
@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch 2 times, most recently from 075d561 to 905e57a Compare October 20, 2025 08:56
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 89dbeef to 1a6808a Compare October 20, 2025 08:56
@agatha197 agatha197 changed the base branch from feat_FR-1240_/admin-dashboard to graphite-base/3554 October 21, 2025 04:31
@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from 905e57a to 3134151 Compare October 21, 2025 06:01
@agatha197 agatha197 changed the base branch from graphite-base/3554 to feat_FR-1240_/admin-dashboard October 21, 2025 06:01
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 43826b2 to e59548e Compare October 21, 2025 06:13
@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from 3134151 to 202d296 Compare October 21, 2025 06:13
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
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

graphite-app bot commented Oct 22, 2025

Merge activity

@graphite-app graphite-app bot changed the base branch from feat_FR-1240_/admin-dashboard to graphite-base/3554 October 22, 2025 08:56
@agatha197 agatha197 force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from 16b9c95 to 0d8210e Compare October 22, 2025 09:24
@agatha197 agatha197 changed the base branch from graphite-base/3554 to main October 22, 2025 09:24
Resolves #3546 ([FR-873](https://lablup.atlassian.net/browse/FR-873))

## Rename `experimental_dashboard` to `classic_dashboard_page` with inverted logic

This PR renames the user setting `experimental_dashboard` to `classic_dashboard_page` and inverts its logic. The dashboard page is now the default view, and users can opt to use the classic summary page instead.

The change affects:
- Router configuration in App.tsx
- WebUISider menu item display logic
- User settings definition and UI controls
- All language translation files with updated descriptions

This change better reflects that the dashboard is now the standard view rather than an experimental feature, while still allowing users to switch back to the classic summary page if preferred.

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/83d03b46-701d-484f-97e4-73da95fe446c.png)

**Checklist:**
- [x] 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

[FR-873]: https://lablup.atlassian.net/browse/FR-873?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@graphite-app graphite-app bot force-pushed the feat_FR-873_/set-dashboard-page-as-a-default branch from 0d8210e to 4f287da Compare October 22, 2025 09:26
@graphite-app graphite-app bot merged commit 4f287da into main Oct 22, 2025
11 checks passed
@graphite-app graphite-app bot deleted the feat_FR-873_/set-dashboard-page-as-a-default branch October 22, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:i18n Localization area:ux UI / UX issue. size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set dashboard page as a default

4 participants