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] Refractor homepage assets list section #7702

Merged
merged 6 commits into from
Aug 14, 2024

Conversation

Qxisylolo
Copy link
Contributor

@Qxisylolo Qxisylolo commented Aug 14, 2024

Description

In this pr, I refractor the assets list in the homepage.

Screenshot

  1. empty state
    Screenshot 2024-08-14 at 14 46 45

  2. Look
    Screenshot 2024-08-14 at 14 47 35

  3. filtering
    Screenshot 2024-08-14 at 14 47 38
    Screenshot 2024-08-14 at 14 47 41
    Screenshot 2024-08-14 at 14 47 43

  4. Title tooltip
    Screenshot 2024-08-14 at 14 46 48

Changelog

  • feat: refractor the homepage assets list section

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

opensearch-changeset-bot bot added a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Aug 14, 2024
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 63.74%. Comparing base (a360b38) to head (ca37389).

Files Patch % Lines
...nagement/public/management_section/recent_work.tsx 70.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7702      +/-   ##
==========================================
+ Coverage   63.73%   63.74%   +0.01%     
==========================================
  Files        3637     3637              
  Lines       80444    80448       +4     
  Branches    12792    12792              
==========================================
+ Hits        51270    51285      +15     
+ Misses      26040    26029      -11     
  Partials     3134     3134              
Flag Coverage Δ
Linux_1 29.82% <9.09%> (-0.01%) ⬇️
Linux_2 55.82% <ø> (ø)
Linux_3 40.39% <9.09%> (-0.01%) ⬇️
Linux_4 31.30% <72.72%> (+<0.01%) ⬆️
Windows_1 29.84% <9.09%> (?)
Windows_2 55.77% <ø> (ø)
Windows_3 40.39% <9.09%> (-0.01%) ⬇️
Windows_4 31.30% <72.72%> (+<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.

Comment on lines +118 to +121
const capitalTheFirstLetter = function (recentAccessItem: DetailedRecentlyAccessedItem) {
return recentAccessItem.type.charAt(0).toUpperCase() + recentAccessItem.type.slice(1);
};

Copy link
Member

Choose a reason for hiding this comment

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

Nit: seems like an util function, better to move it out of the Component render function.

@SuZhou-Joe
Copy link
Member

Nice, looks much better.

@Qxisylolo Qxisylolo changed the title [WorkSapce] Refractor homepage assets list section [WorkSpace] Refractor homepage assets list section Aug 14, 2024
@SuZhou-Joe SuZhou-Joe merged commit 765527a into opensearch-project:main Aug 14, 2024
76 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 14, 2024
* refractor assets section

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

* refractor assets section

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

* refractor assets section_1

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

* Changeset file for PR #7702 created/updated

* add new test

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

* delete border

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

---------

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 765527a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ruanyl pushed a commit that referenced this pull request Aug 15, 2024
* refractor assets section



* refractor assets section



* refractor assets section_1



* Changeset file for PR #7702 created/updated

* add new test



* delete border



---------



(cherry picked from commit 765527a)

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.

4 participants