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

[Backport 2.x] [Workspace] Add workspace overview page #6641

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 9c884b0 from #6584.

* workspace overview page

Signed-off-by: Hailong Cui <[email protected]>

address review comments

Signed-off-by: Hailong Cui <[email protected]>

address ux review comments

Signed-off-by: Hailong Cui <[email protected]>

Add workspace overview to breadCrumb

Signed-off-by: Hailong Cui <[email protected]>

getting start modal & settings tab

Signed-off-by: Hailong Cui <[email protected]>

home breadcrumb

Signed-off-by: Hailong Cui <[email protected]>

fix rebase issue

Signed-off-by: Hailong Cui <[email protected]>

tmp enable management

Signed-off-by: Hailong Cui <[email protected]>

add workspace overview collapsed into localStorage

Signed-off-by: Hailong Cui <[email protected]>

getting start modal

Signed-off-by: Hailong Cui <[email protected]>

page layout

Signed-off-by: Hailong Cui <[email protected]>

Add test cases

Signed-off-by: Hailong Cui <[email protected]>

fix breadcrumb

Signed-off-by: Hailong Cui <[email protected]>

* fix merge issue

Signed-off-by: Hailong Cui <[email protected]>

* fix wrong dataSourceManagement id

Signed-off-by: Hailong Cui <[email protected]>

* Changeset file for PR #6584 created/updated

* update page layout

Signed-off-by: Hailong Cui <[email protected]>

* overview tab layout update

Signed-off-by: Hailong Cui <[email protected]>

* fix workspace overview page breadcrumb

Signed-off-by: Hailong Cui <[email protected]>

* collapsed setting to be workspace level

Signed-off-by: Hailong Cui <[email protected]>

* fix workspace_overview_modal unit test

Signed-off-by: Hailong Cui <[email protected]>

* Update src/plugins/workspace/public/components/workspace_overview/getting_start_card.tsx

Co-authored-by: SuZhou-Joe <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>

* Update src/plugins/workspace/public/components/workspace_overview/workspace_overview_settings.tsx

Co-authored-by: SuZhou-Joe <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>

* Update src/plugins/workspace/public/components/workspace_overview/getting_start_modal.tsx

Co-authored-by: SuZhou-Joe <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>

* Update src/plugins/workspace/public/components/workspace_overview/getting_start_modal.tsx

Co-authored-by: SuZhou-Joe <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>

* Update src/plugins/workspace/public/components/workspace_overview/getting_start_modal.tsx

Co-authored-by: SuZhou-Joe <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>

* Update src/plugins/workspace/public/components/workspace_overview/getting_start_modal.tsx

Co-authored-by: SuZhou-Joe <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>

* address review comments

Signed-off-by: Hailong Cui <[email protected]>

* address review comments

Signed-off-by: Hailong Cui <[email protected]>

* fix setBreadcrumbs issue

Signed-off-by: Hailong Cui <[email protected]>

* wording change of breadcrumbs

Signed-off-by: Hailong Cui <[email protected]>

* udpate breadcrumb subscription to be a better name

Signed-off-by: Hailong Cui <[email protected]>

* Add unit test

Signed-off-by: Hailong Cui <[email protected]>

---------

Signed-off-by: Hailong Cui <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: SuZhou-Joe <[email protected]>
(cherry picked from commit 9c884b0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
// below categories are for workspace
getStarted: {
id: 'getStarted',
label: i18n.translate('core.ui.getStarted.label', {
Copy link
Member

@kavilla kavilla Apr 26, 2024

Choose a reason for hiding this comment

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

I think the i18n might complain about the namespaces as it will expect workspace. Can we verify it @SuZhou-Joe with:

node ./scripts/i18n_extract.js --output-dir ./translations

Copy link
Member

Choose a reason for hiding this comment

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

There will be errors but ignore the unrelated ones.

Copy link
Collaborator

@Hailong-am Hailong-am Apr 26, 2024

Choose a reason for hiding this comment

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

@kavilla Yes, that will be error to complain it need to be under workspace namespace.
Error: Expected "core.ui.getStarted.label" id to have "workspace" namespace. See .i18nrc.json for the list of supported namespaces.

Copy link
Collaborator

Choose a reason for hiding this comment

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

create a follow up issue #6647

<EuiModal onClose={onCloseModal} maxWidth={false} className="gettingStartModel">
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>Define your path forward</h2>
Copy link
Member

Choose a reason for hiding this comment

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

nit: i18n

@SuZhou-Joe
Copy link
Member

@kavilla Thanks for call it out, and @Hailong-am has raised a following issue to track that.

@SuZhou-Joe SuZhou-Joe merged commit 278177b into 2.x Apr 26, 2024
88 of 89 checks passed
@github-actions github-actions bot deleted the backport/backport-6584-to-2.x branch April 26, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports v2.14.0 valued-contributor workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants