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

[navigation-next] feat: add recent works in new homepage #7237

Merged

Conversation

SuZhou-Joe
Copy link
Member

@SuZhou-Joe SuZhou-Joe commented Jul 14, 2024

Description

Add recent works section in new home page.

Issues Resolved

Screenshot

Workspace enabled

20240720224051706.mp4

Workspace disabled

20240720224254539.mp4

Empty state

image

Testing the changes

  • Go to the advanced settings page to enable new home page.
  • Go to home page, you should see the recent items section is displayed in home page.

Changelog

  • feat: [navigation-next] add recent works in new homepage

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

Copy link

codecov bot commented Jul 14, 2024

Codecov Report

Attention: Patch coverage is 70.51282% with 23 lines in your changes missing coverage. Please review.

Project coverage is 67.70%. Comparing base (e64de15) to head (9c7e0e6).

Files Patch % Lines
...nagement/public/management_section/recent_work.tsx 83.07% 6 Missing and 5 partials ⚠️
.../plugins/saved_objects_management/public/plugin.ts 0.00% 5 Missing ⚠️
...rc/plugins/home/public/application/home_render.tsx 0.00% 4 Missing ⚠️
...ome/recently_accessed/recently_accessed_service.ts 0.00% 0 Missing and 1 partial ⚠️
...application/utils/use/use_saved_vis_builder_vis.ts 0.00% 1 Missing ⚠️
..._builder/public/saved_visualizations/_saved_vis.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7237   +/-   ##
=======================================
  Coverage   67.70%   67.70%           
=======================================
  Files        3520     3521    +1     
  Lines       69700    69777   +77     
  Branches    11376    11390   +14     
=======================================
+ Hits        47189    47246   +57     
- Misses      19716    19730   +14     
- Partials     2795     2801    +6     
Flag Coverage Δ
Linux_1 33.15% <12.82%> (-0.04%) ⬇️
Linux_2 55.46% <0.00%> (-0.01%) ⬇️
Linux_3 43.24% <12.00%> (-0.08%) ⬇️
Linux_4 34.81% <72.00%> (+0.10%) ⬆️
Windows_1 33.17% <12.82%> (-0.04%) ⬇️
Windows_2 55.41% <0.00%> (-0.01%) ⬇️
Windows_3 43.26% <12.00%> (-0.07%) ⬇️
Windows_4 34.81% <72.00%> (+0.10%) ⬆️

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.

@opensearch-project opensearch-project deleted a comment from github-actions bot Jul 14, 2024
@opensearch-project opensearch-project deleted a comment from github-actions bot Jul 14, 2024
@SuZhou-Joe SuZhou-Joe marked this pull request as draft July 15, 2024 10:26
@SuZhou-Joe SuZhou-Joe force-pushed the feature/navigation-next branch 3 times, most recently from d73444b to eaf5fea Compare July 17, 2024 07:26
@opensearch-project opensearch-project deleted a comment from github-actions bot Jul 20, 2024
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
@opensearch-project opensearch-project deleted a comment from github-actions bot Jul 20, 2024
@SuZhou-Joe
Copy link
Member Author

I haven't looked at this yet, but just wanted to call out that some tests were failing and code coverage for patch is much lower than target - have you taken a look at these?

Thanks, added some test to improve the code coverage.

Signed-off-by: SuZhou-Joe <[email protected]>
ruanyl
ruanyl previously approved these changes Jul 21, 2024
Signed-off-by: SuZhou-Joe <[email protected]>
Comment on lines +124 to +125
const savedObjects = recentAccessed
.filter((item) => item.meta?.type)
Copy link
Contributor

Choose a reason for hiding this comment

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

does this mean legacy recently view items are ignored?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, because legacy items does not have viewed at, nor the type.

Signed-off-by: SuZhou-Joe <[email protected]>
@ananzh
Copy link
Member

ananzh commented Jul 22, 2024

@SuZhou-Joe could we first fix the failed tests? thx

@SuZhou-Joe SuZhou-Joe merged commit 46afb96 into opensearch-project:main Jul 22, 2024
67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 22, 2024
* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* Changeset file for PR #7237 created/updated

* feat: remove the euispacer

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update empty state

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update i18n key

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 46afb96)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ananzh pushed a commit that referenced this pull request Jul 22, 2024
* Changeset file for PR #7237 created/updated

* feat: remove the euispacer

* feat: update empty state

* feat: update i18n key

* feat: update



---------



(cherry picked from commit 46afb96)

Signed-off-by: SuZhou-Joe <[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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 23, 2024
* Changeset file for PR #7237 created/updated

* feat: remove the euispacer

* feat: update empty state

* feat: update i18n key

* feat: update

---------

(cherry picked from commit 46afb96)

Signed-off-by: SuZhou-Joe <[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>
(cherry picked from commit d89447b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Jul 23, 2024
…) (#7381)

* Changeset file for PR #7237 created/updated

* feat: remove the euispacer

* feat: update empty state

* feat: update i18n key

* feat: update

---------

(cherry picked from commit 46afb96)





(cherry picked from commit d89447b)

Signed-off-by: SuZhou-Joe <[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