Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Workspace] Refactor new home page #8467

Merged
merged 21 commits into from
Oct 8, 2024

Conversation

yubonluo
Copy link
Contributor

@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 <[email protected]>
Signed-off-by: yubonluo <[email protected]>
Signed-off-by: yubonluo <[email protected]>
Signed-off-by: yubonluo <[email protected]>
Signed-off-by: yubonluo <[email protected]>
Signed-off-by: yubonluo <[email protected]>
ruanyl
ruanyl previously approved these changes Oct 8, 2024
@ruanyl
Copy link
Member

ruanyl commented Oct 8, 2024

@yubonluo It looks the CI failed on i18n validation

@SuZhou-Joe SuZhou-Joe merged commit 61eedf7 into opensearch-project:main Oct 8, 2024
68 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 8, 2024
* update home page

Signed-off-by: yubonluo <[email protected]>

* updated useCase card in workspace initial page

Signed-off-by: yubonluo <[email protected]>

* Integrate use case flyout and add unit tests

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* implemet populate use case when clicking create/view button

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR #8467 created/updated

* update css

Signed-off-by: yubonluo <[email protected]>

* fix the test errors

Signed-off-by: yubonluo <[email protected]>

* delete useless code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* update snap shot

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* fix i18n validation error

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
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 <[email protected]>
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
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