OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[HomePage] Add recent work section and additional styling for home page

Open abbyhu2000 opened this issue 10 months ago • 5 comments

Description

This PR implements:

  1. recent work section with max 8 cards
  2. each recent work card has the recent work item name, type and last updated time
  3. re-styling the home page sections

Issues Resolved

partially resolves #6066

Screenshot

--work with data, learn basic section styling and links

https://github.com/opensearch-project/OpenSearch-Dashboards/assets/43937633/1e1653f0-9177-4465-8777-7badc22b74a8

-- recent work section

  • recent work will be added with its title and saved object type in reverse order(the latest viewed one will be placed at the front), and clicking on each card take back to the item

https://github.com/opensearch-project/OpenSearch-Dashboards/assets/43937633/534a10a1-60e0-4fc1-a98e-217db4a8a3c3

  • filter by saved object type

https://github.com/opensearch-project/OpenSearch-Dashboards/assets/43937633/2a25839b-c467-4749-8ffb-be77290b1bdc

Changelog

  • feat: Add recent work section and additional styling for home page

abbyhu2000 avatar Mar 27 '24 15:03 abbyhu2000

Codecov Report

Attention: Patch coverage is 61.29032% with 24 lines in your changes missing coverage. Please review.

Project coverage is 67.67%. Comparing base (774f64e) to head (2bfa070).

Files Patch % Lines
...tion/components/homepage/sections/learn_basics.tsx 14.28% 6 Missing :warning:
...on/components/homepage/sections/work_with_data.tsx 57.14% 4 Missing and 2 partials :warning:
...ome/recently_accessed/recently_accessed_service.ts 28.57% 4 Missing and 1 partial :warning:
...ation/components/homepage/sections/recent_work.tsx 84.61% 1 Missing and 1 partial :warning:
...ublic/application/components/homepage/homepage.tsx 0.00% 1 Missing :warning:
src/plugins/home/public/mocks/mocks.ts 92.30% 0 Missing and 1 partial :warning:
...application/utils/use/use_saved_vis_builder_vis.ts 0.00% 1 Missing :warning:
..._builder/public/saved_visualizations/_saved_vis.ts 0.00% 1 Missing :warning:
...ic/application/utils/use/use_saved_vis_instance.ts 50.00% 0 Missing and 1 partial :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6277      +/-   ##
==========================================
+ Coverage   67.55%   67.67%   +0.11%     
==========================================
  Files        3469     3470       +1     
  Lines       68479    68513      +34     
  Branches    11130    11130              
==========================================
+ Hits        46264    46368     +104     
+ Misses      19512    19425      -87     
- Partials     2703     2720      +17     
Flag Coverage Δ
Linux_1 33.11% <8.69%> (-0.02%) :arrow_down:
Linux_2 55.25% <28.57%> (-0.02%) :arrow_down:
Linux_3 45.27% <7.14%> (-0.05%) :arrow_down:
Linux_4 34.96% <60.34%> (+0.24%) :arrow_up:
Windows_1 33.13% <8.69%> (-0.02%) :arrow_down:
Windows_2 55.20% <28.57%> (-0.02%) :arrow_down:
Windows_3 45.28% <7.14%> (-0.04%) :arrow_down:
Windows_4 34.96% <60.34%> (+0.24%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 27 '24 15:03 codecov[bot]

Added a comment here about the necessity of adding a filter button on the recent work section: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/6066#issuecomment-2031004270

Changed the rendering structure of section back to previous way.

abbyhu2000 avatar Apr 02 '24 03:04 abbyhu2000

Hi @abbyhu2000 , is this PR targeting 2.15 or 2.16?

BionIT avatar Jun 05 '24 03:06 BionIT

@ashwin-pc At least the recent items section is still needed.

SuZhou-Joe avatar Jul 10 '24 05:07 SuZhou-Joe

@abbyhu2000 is this still 2.16?

ananzh avatar Jul 23 '24 16:07 ananzh

This doesn't target 2.16 anymore. Will close

abbyhu2000 avatar Jul 25 '24 17:07 abbyhu2000