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]Fix the UI of recent assets in the header #8156

Merged
merged 8 commits into from
Dec 24, 2024

Conversation

Qxisylolo
Copy link
Contributor

@Qxisylolo Qxisylolo commented Sep 12, 2024

Description

This pr fixes the UI issue of recent assets in the header

Screenshot

fix: Icons should be styled with single color Style = "Text"
fix: Add cog icon as trigger for preferences dropdown and remove preferences button from the bottom
fix: Add spacing between recent item name and workspace name
截屏2024-09-18 16 41 38

Changelog

  • fix: Fix the UI of recent assets in the header

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

>
<EuiTitle size="xxs">
<EuiText size="m">
Copy link
Member

Choose a reason for hiding this comment

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

Should this be size="s" with h3?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, thanks for spotting the issue. I update size='s' with h4 to set the font size to 16px, which can be seen in the attached picture, where in figma both the "Recent Title" and "Recent Workspace" share the same font size
截屏2024-09-18 16 44 08

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.91%. Comparing base (66331eb) to head (0da4907).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8156      +/-   ##
==========================================
+ Coverage   60.90%   60.91%   +0.01%     
==========================================
  Files        3808     3808              
  Lines       91178    91178              
  Branches    14396    14396              
==========================================
+ Hits        55529    55541      +12     
+ Misses      32095    32083      -12     
  Partials     3554     3554              
Flag Coverage Δ
Linux_1 28.99% <ø> (ø)
Linux_2 56.38% <ø> (ø)
Linux_3 38.01% <ø> (ø)
Linux_4 29.01% <ø> (ø)
Windows_1 29.02% <ø> (+0.01%) ⬆️
Windows_2 56.34% <ø> (ø)
Windows_3 38.01% <ø> (ø)
Windows_4 29.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.

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.

Looks good to me, let's remove the console.log

@@ -124,6 +123,9 @@ export const RecentItems = ({
const navLinks = useObservable(navLinks$, []);
const loadingCount = useObservable(loadingCount$, 0);

// eslint-disable-next-line
console.log('loadingCount', loadingCount);
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove console.log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the comment, all updated.

@Qxisylolo Qxisylolo force-pushed the fix/the_UI_of_recent_assets branch from 6d6c552 to 2a26e67 Compare October 31, 2024 07:56
opensearch-changeset-bot bot added a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Oct 31, 2024
SuZhou-Joe
SuZhou-Joe previously approved these changes Nov 12, 2024
ruanyl
ruanyl previously approved these changes Dec 18, 2024
@ruanyl
Copy link
Member

ruanyl commented Dec 18, 2024

@Qxisylolo Approved, but you may need to resolve the conflicts

Qxisylolo pushed a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Dec 23, 2024
@Qxisylolo Qxisylolo dismissed stale reviews from ruanyl and SuZhou-Joe via 19d62c1 December 23, 2024 05:18
@Qxisylolo Qxisylolo force-pushed the fix/the_UI_of_recent_assets branch 2 times, most recently from 13826cc to afde0b9 Compare December 23, 2024 05:39
Signed-off-by: Qxisylolo <[email protected]>
@Qxisylolo Qxisylolo force-pushed the fix/the_UI_of_recent_assets branch from afde0b9 to 618c975 Compare December 23, 2024 05:42
defaultMessage: 'Preferences',
})}
</EuiButtonEmpty>
iconType="managementApp"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Icon type changed to gear?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, please check the issue tracker:
截屏2024-12-24 10 12 23

@ruanyl ruanyl merged commit b1113f4 into opensearch-project:main Dec 24, 2024
69 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 24, 2024
* resolve conflicts

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

* fix/ fix the_UI_of_recent_assets, delete comments

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

* fix/ fix the recent title size

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

* fix/the_UI_of_recent_assets, use icon button

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

* fix/the_UI_of_recent_assets, a small fix

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

* remove comment

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

* new resolve conflicts

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

* Changeset file for PR #8156 created/updated

---------

Signed-off-by: Qxisylolo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit b1113f4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
silvaf-dev pushed a commit to silvaf-dev/OpenSearch-Dashboards that referenced this pull request Dec 26, 2024
…ect#8156)

* resolve conflicts

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

* fix/ fix the_UI_of_recent_assets, delete comments

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

* fix/ fix the recent title size

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

* fix/the_UI_of_recent_assets, use icon button

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

* fix/the_UI_of_recent_assets, a small fix

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

* remove comment

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

* new resolve conflicts

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

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

---------

Signed-off-by: Qxisylolo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
SuZhou-Joe pushed a commit that referenced this pull request Dec 27, 2024
* resolve conflicts



* fix/ fix the_UI_of_recent_assets, delete comments



* fix/ fix the recent title size



* fix/the_UI_of_recent_assets, use icon button



* fix/the_UI_of_recent_assets, a small fix



* remove comment



* new resolve conflicts



* Changeset file for PR #8156 created/updated

---------



(cherry picked from commit b1113f4)

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: 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.

5 participants