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] update workspace-list-card and home-list-card #7547

Merged
merged 7 commits into from
Aug 2, 2024

Conversation

Qxisylolo
Copy link
Contributor

@Qxisylolo Qxisylolo commented Jul 29, 2024

Description

Here, I updated the workspace-list-card and home-list-card by adjusting the view-all button position and fixing the overflow issue.

Issues Resolved

  1. adjusting the view-all button position and reorganize the content into Flex
  2. fixing the issue that caused overflow when resizing the window or increasing content.

Screenshot

appearance:before
appearance:before
appearance:after
appearance: after
before-when resizing
Screenshot 2024-07-29 at 11 34 31
after-when resizing
Screenshot 2024-07-30 at 14 24 43

Changelog

  • fix: [Workspace] updating workspace-list-card and home-list-card

Copy link
Contributor

❌ Changelog Entry Missing Hyphen

Changelog entries must begin with a hyphen (-).

Copy link
Contributor

❌ Changelog Entry Missing Hyphen

Changelog entries must begin with a hyphen (-).

1 similar comment
Copy link
Contributor

❌ Changelog Entry Missing Hyphen

Changelog entries must begin with a hyphen (-).

Copy link
Contributor

❌ Invalid Prefix For Manual Changeset Creation

Invalid description prefix. Found "fix". Only "skip" entry option is permitted for manual commit of changeset files.

If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description.

1 similar comment
Copy link
Contributor

❌ Invalid Prefix For Manual Changeset Creation

Invalid description prefix. Found "fix". Only "skip" entry option is permitted for manual commit of changeset files.

If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description.

Copy link
Contributor

❌ Invalid Prefix For Manual Changeset Creation

Invalid description prefix. Found "- fix". Only "skip" entry option is permitted for manual commit of changeset files.

If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description.

@SuZhou-Joe
Copy link
Member

@Qxisylolo Thanks for that, could you please add CHANGELOG entry for this PR?

</EuiTitle>
}
description={
config.list.length > 0 && (
Copy link
Member

Choose a reason for hiding this comment

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

Do we need any empty state for empty list?

Copy link
Contributor Author

@Qxisylolo Qxisylolo Jul 30, 2024

Choose a reason for hiding this comment

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

I'm not sure. For now the config is set manually and we don't need empty list.

@Qxisylolo Qxisylolo requested a review from joshuali925 as a code owner July 30, 2024 06:12
opensearch-changeset-bot bot added a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 63.66%. Comparing base (61d5c49) to head (f98b428).
Report is 229 commits behind head on main.

Files with missing lines Patch % Lines
...ic/components/service_card/workspace_list_card.tsx 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7547      +/-   ##
==========================================
+ Coverage   63.64%   63.66%   +0.01%     
==========================================
  Files        3634     3634              
  Lines       80099    80099              
  Branches    12682    12682              
==========================================
+ Hits        50977    50993      +16     
+ Misses      26015    26001      -14     
+ Partials     3107     3105       -2     
Flag Coverage Δ
Linux_1 30.56% <60.00%> (+<0.01%) ⬆️
Linux_2 55.58% <ø> (ø)
Linux_3 40.58% <0.00%> (-0.01%) ⬇️
Linux_4 31.33% <100.00%> (+<0.01%) ⬆️
Windows_1 30.60% <60.00%> (+0.02%) ⬆️
Windows_2 55.53% <ø> (ø)
Windows_3 40.58% <0.00%> (ø)
Windows_4 31.33% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ruanyl ruanyl added the v2.17.0 label Jul 30, 2024
@opensearch-project opensearch-project deleted a comment from github-actions bot Jul 31, 2024
@opensearch-project opensearch-project deleted a comment from github-actions bot Jul 31, 2024
Copy link
Member

@ruanyl ruanyl left a comment

Choose a reason for hiding this comment

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

Thank you, great work!

</EuiToolTip>
<EuiSpacer />
<EuiFlexItem grow={true}>
{workspaceList && workspaceList.length === 0 ? (
Copy link
Member

Choose a reason for hiding this comment

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

This seems is existing code, but would be nice to change it in this way, as empty state should be displayed if workspaceList is undefined.

Suggested change
{workspaceList && workspaceList.length === 0 ? (
{!workspaceList || workspaceList.length === 0 ? (

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okok, Thanks for your comments~

@SuZhou-Joe SuZhou-Joe merged commit 14c71c7 into opensearch-project:main Aug 2, 2024
69 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 8, 2024
* update workspace-list-card and home-list-card

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

* new update home_list_card and workspace_list_card,solve some errors

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

* new update home_list_card and workspace_list_card,solve some errors

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

* Changeset file for PR #7547 created/updated

* new update home_list_card and workspace_list_card,solve some errors

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

* new update home_list_card and workspace_list_card,solve some errors, and write new testes

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

* new update home_list_card and workspace_list_card,solve some errors, and write new testes

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

---------

Signed-off-by: Yang <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
Co-authored-by: Yang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 14c71c7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Aug 8, 2024
)

* update workspace-list-card and home-list-card



* new update home_list_card and workspace_list_card,solve some errors



* new update home_list_card and workspace_list_card,solve some errors



* Changeset file for PR #7547 created/updated

* new update home_list_card and workspace_list_card,solve some errors



* new update home_list_card and workspace_list_card,solve some errors, and write new testes



* new update home_list_card and workspace_list_card,solve some errors, and write new testes



---------





(cherry picked from commit 14c71c7)

Signed-off-by: Yang <[email protected]>
Signed-off-by: Qxisylolo <[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: Yang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.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.

6 participants