Skip to content

[Workspace] Refactor new home page#8467

Merged
SuZhou-Joe merged 21 commits intoopensearch-project:mainfrom
yubonluo:2.17/support-home-page
Oct 8, 2024
Merged

[Workspace] Refactor new home page#8467
SuZhou-Joe merged 21 commits intoopensearch-project:mainfrom
yubonluo:2.17/support-home-page

Conversation

@yubonluo
Copy link
Copy Markdown
Collaborator

@yubonluo yubonluo commented Oct 3, 2024

Description

Refactor new home page.
The new home page will show use case card, workspace list, use case information flyout, create workspace button for OSD admin, view workspace button, tools button, setting button and user information.

  1. For the order of workspace list, it should show recently visited first, then other workspaces alphabetically.
  2. Clicking the information icon will show the use case information
  3. Clicking the create button will preselect the use case in the workspace create page;
  4. Clicking the view all button will preselect the use case in the workspace list page;

Issues Resolved

Screenshot

2024-10-03.15.23.43.mp4

Dark mode

image

Testing the changes

opensearchDashboards.dashboardAdmin.users: ["admin"]
workspace.enabled: true 
opensearch.hosts: ["https://localhost:9200"]
opensearch.username: "admin"
opensearch.password: "myStrongPassword!" 
opensearch.ssl.verificationMode: none
savedObjects.permission.enabled: true

uiSettings:
   overrides:
     "home:useNewHomePage": true

Changelog

  • refactor: [Workspace] Refactor new home page.

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Comment thread src/plugins/home/public/plugin.ts
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
Comment thread src/plugins/workspace/public/components/workspace_initial/utils.ts Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Comment thread src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx Outdated
Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: yubonluo <yubonluo@amazon.com>
ruanyl
ruanyl previously approved these changes Oct 8, 2024
@ruanyl
Copy link
Copy Markdown
Member

ruanyl commented Oct 8, 2024

@yubonluo It looks the CI failed on i18n validation

Signed-off-by: yubonluo <yubonluo@amazon.com>
@SuZhou-Joe SuZhou-Joe merged commit 61eedf7 into opensearch-project:main Oct 8, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 8, 2024
* update home page

Signed-off-by: yubonluo <yubonluo@amazon.com>

* updated useCase card in workspace initial page

Signed-off-by: yubonluo <yubonluo@amazon.com>

* Integrate use case flyout and add unit tests

Signed-off-by: yubonluo <yubonluo@amazon.com>

* optimize the code

Signed-off-by: yubonluo <yubonluo@amazon.com>

* optimize the code

Signed-off-by: yubonluo <yubonluo@amazon.com>

* implemet populate use case when clicking create/view button

Signed-off-by: yubonluo <yubonluo@amazon.com>

* optimize the code

Signed-off-by: yubonluo <yubonluo@amazon.com>

* Changeset file for PR #8467 created/updated

* update css

Signed-off-by: yubonluo <yubonluo@amazon.com>

* fix the test errors

Signed-off-by: yubonluo <yubonluo@amazon.com>

* delete useless code

Signed-off-by: yubonluo <yubonluo@amazon.com>

* optimize the code

Signed-off-by: yubonluo <yubonluo@amazon.com>

* update snap shot

Signed-off-by: yubonluo <yubonluo@amazon.com>

* optimize the code

Signed-off-by: yubonluo <yubonluo@amazon.com>

* optimize the code

Signed-off-by: yubonluo <yubonluo@amazon.com>

* fix i18n validation error

Signed-off-by: yubonluo <yubonluo@amazon.com>

---------

Signed-off-by: yubonluo <yubonluo@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 61eedf7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Oct 8, 2024
* update home page



* updated useCase card in workspace initial page



* Integrate use case flyout and add unit tests



* optimize the code



* optimize the code



* implemet populate use case when clicking create/view button



* optimize the code



* Changeset file for PR #8467 created/updated

* update css



* fix the test errors



* delete useless code



* optimize the code



* update snap shot



* optimize the code



* optimize the code



* fix i18n validation error



---------



(cherry picked from commit 61eedf7)

Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
@ananzh ananzh added the v2.18.0 label Oct 30, 2024
ruchidh pushed a commit to ruchidh/OpenSearch-Dashboards that referenced this pull request Jul 18, 2025
…rch-project#8523)

* update home page

* updated useCase card in workspace initial page

* Integrate use case flyout and add unit tests

* optimize the code

* optimize the code

* implemet populate use case when clicking create/view button

* optimize the code

* Changeset file for PR opensearch-project#8467 created/updated

* update css

* fix the test errors

* delete useless code

* optimize the code

* update snap shot

* optimize the code

* optimize the code

* fix i18n validation error

---------

(cherry picked from commit 61eedf7)

Signed-off-by: yubonluo <yubonluo@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Ruchi Sharma <ruchi492@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants