-
Notifications
You must be signed in to change notification settings - Fork 968
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
[navigation-next] feat: add recent works in new homepage #7237
Conversation
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
src/plugins/content_management/public/components/section_render.tsx
Outdated
Show resolved
Hide resolved
d73444b
to
eaf5fea
Compare
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Thanks, added some test to improve the code coverage. |
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
src/core/public/chrome/recently_accessed/recently_accessed_service.ts
Outdated
Show resolved
Hide resolved
src/core/public/chrome/recently_accessed/recently_accessed_service.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
src/plugins/saved_objects_management/public/management_section/recent_work.tsx
Outdated
Show resolved
Hide resolved
const savedObjects = recentAccessed | ||
.filter((item) => item.meta?.type) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
src/plugins/saved_objects_management/public/management_section/recent_work.tsx
Outdated
Show resolved
Hide resolved
src/plugins/saved_objects_management/public/management_section/recent_work.tsx
Outdated
Show resolved
Hide resolved
src/plugins/saved_objects_management/public/management_section/recent_work.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
@SuZhou-Joe could we first fix the failed tests? thx |
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
* feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * Changeset file for PR #7237 created/updated * feat: remove the euispacer Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update empty state Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update i18n key Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> --------- Signed-off-by: SuZhou-Joe <suzhou@amazon.com> 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>
* 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 <suzhou@amazon.com> 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>
* 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 <suzhou@amazon.com> 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>
…) (#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 <suzhou@amazon.com> 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>
Description
Add recent works section in new home page.
Issues Resolved
Screenshot
Workspace enabled
20240720224051706.mp4
Workspace disabled
20240720224254539.mp4
Empty state
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration