-
Notifications
You must be signed in to change notification settings - Fork 918
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
New Home Page #6065
New Home Page #6065
Conversation
Currently i placed the advanced setting under general section. Do we need to change any wording here? @kgcreative @ashwin-pc |
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.
Cant we add this setting to a new section in the home plugin? Similar to how discover does it? https://github.com/suzhou-joe/opensearch-dashboards/blob/b2f79ca6dfce478be51e5bd394d1676bd75e46ca/src/plugins/discover/server/ui_settings.ts#L58
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, i just moved the location of the uisettings within the home plugin.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6065 +/- ##
==========================================
- Coverage 67.22% 67.21% -0.01%
==========================================
Files 3333 3342 +9
Lines 64565 64681 +116
Branches 10391 10408 +17
==========================================
+ Hits 43404 43476 +72
- Misses 18628 18662 +34
- Partials 2533 2543 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -28,7 +28,7 @@ on: | |||
|
|||
env: | |||
TEST_REPO: ${{ inputs.test_repo != '' && inputs.test_repo || 'opensearch-project/opensearch-dashboards-functional-test' }} | |||
TEST_BRANCH: "${{ inputs.test_branch != '' && inputs.test_branch || github.base_ref }}" | |||
TEST_BRANCH: "${{ 'feature/new-home' || inputs.test_branch != '' && inputs.test_branch || github.base_ref }}" |
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.
Do we need this?
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.
nope
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.
changed back
I would recommend using the changelog from |
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.
LGTM except for Miki's suggestion and the changelog conflict. Will approve once thats in.
Cc: @lauralexis |
532a468
to
99b7f29
Compare
99b7f29
to
999f873
Compare
Signed-off-by: Matt Provost <provomat@amazon.com> Add some things I for some reason didn't get in the initial commit Signed-off-by: Matt Provost <provomat@amazon.com> Add formatting line Signed-off-by: Matt Provost <provomat@amazon.com> Add doc comment explaining get homepage function Signed-off-by: Matt Provost <provomat@amazon.com> Remove unused function Signed-off-by: Matt Provost <provomat@amazon.com> Rename functions to more accurately describe what they do Signed-off-by: Matt Provost <provomat@amazon.com> WE HAVE RENDERING Signed-off-by: Matt Provost <provomat@amazon.com> Make some fixed/clarifications around the lazy rendering Signed-off-by: Matt Provost <provomat@amazon.com> Add basic layout for hero sections and sections Signed-off-by: Matt Provost <provomat@amazon.com> Set up proper section rendering Signed-off-by: Matt Provost <provomat@amazon.com> Add page layout Signed-off-by: Matt Provost <provomat@amazon.com> Add homepage saved object edit button Signed-off-by: Matt Provost <provomat@amazon.com> Memoize section content Signed-off-by: Matt Provost <provomat@amazon.com> Add data section Signed-off-by: Matt Provost <provomat@amazon.com> Add learn basics section Signed-off-by: Matt Provost <provomat@amazon.com> Small cleanup things Signed-off-by: Matt Provost <provomat@amazon.com> Misc changes Signed-off-by: Matt Provost <provomat@amazon.com> Remove custom card display Signed-off-by: Matt Provost <provomat@amazon.com> Fix breadcrumbs not updating Signed-off-by: Matt Provost <provomat@amazon.com> Add small todo comment Signed-off-by: Matt Provost <provomat@amazon.com> Inline section rendering Signed-off-by: Matt Provost <provomat@amazon.com> Fix section type service mock Signed-off-by: Matt Provost <provomat@amazon.com> Fix jest tests Signed-off-by: Matt Provost <provomat@amazon.com> Fix the test mocks Signed-off-by: Matt Provost <provomat@amazon.com> Add throw tests Signed-off-by: Matt Provost <provomat@amazon.com> Remove default hero section Signed-off-by: Matt Provost <provomat@amazon.com> Add a few more tests Signed-off-by: Matt Provost <provomat@amazon.com> Add footer Signed-off-by: Matt Provost <provomat@amazon.com> Fix some of the testing Signed-off-by: Matt Provost <provomat@amazon.com> Add homepage saved object test Signed-off-by: Matt Provost <provomat@amazon.com> Add basic getHomepage test Signed-off-by: Matt Provost <provomat@amazon.com> Remove copilot comments Signed-off-by: Matt Provost <provomat@amazon.com> Add some more tests to ensure functionality is as intended Signed-off-by: Matt Provost <provomat@amazon.com> Remove unused file Signed-off-by: Matt Provost <provomat@amazon.com> Add test subjects Signed-off-by: Matt Provost <provomat@amazon.com> Update changelog Signed-off-by: Matt Provost <provomat@amazon.com> Update with guidance from UX Signed-off-by: Matt Provost <provomat@amazon.com> Convert homepage to use observables Signed-off-by: Matt Provost <provomat@amazon.com> Add doc comment Signed-off-by: Matt Provost <provomat@amazon.com> Finish functionality for observable based homepage Signed-off-by: Matt Provost <provomat@amazon.com> Rename heros to heroes Signed-off-by: Matt Provost <provomat@amazon.com> Update footer i18n ids Signed-off-by: Matt Provost <provomat@amazon.com> Extract layout into its own component Signed-off-by: Matt Provost <provomat@amazon.com> Make the new home experience configurable Signed-off-by: Matt Provost <provomat@amazon.com> Move all legacy home stuff into legacy folder Signed-off-by: Matt Provost <provomat@amazon.com> Update loading and error designs Signed-off-by: Matt Provost <provomat@amazon.com> Change from Webpack import to file path Signed-off-by: Matt Provost <provomat@amazon.com> Add config value for disabling new homepage Signed-off-by: Matt Provost <provomat@amazon.com> Reverse list Signed-off-by: Matt Provost <provomat@amazon.com> Redo some of the comments Signed-off-by: Matt Provost <provomat@amazon.com> Remove old todo comment Signed-off-by: Matt Provost <provomat@amazon.com> Add welcome screen & branding & fix tests Signed-off-by: Matt Provost <provomat@amazon.com> Make new homepage disabled by default Signed-off-by: Matt Provost <provomat@amazon.com> Change disable homepage behavior Signed-off-by: Matt Provost <provomat@amazon.com> Change some names around Signed-off-by: Matt Provost <provomat@amazon.com> Add back recently accessed Signed-off-by: Matt Provost <provomat@amazon.com> Reduce weight of ingestion image Signed-off-by: Matt Provost <provomat@amazon.com> Minor comment addressing Signed-off-by: Matt Provost <provomat@amazon.com> Update learn section with UX feedback Signed-off-by: Matt Provost <provomat@amazon.com> Small redesign cleanup Signed-off-by: Matt Provost <provomat@amazon.com> Fix useShowWelcome semantics Signed-off-by: Matt Provost <provomat@amazon.com> Actually fix show welcome this time Signed-off-by: Matt Provost <provomat@amazon.com> Rename config option Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> delete workflow change Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
999f873
to
df345e1
Compare
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
df345e1
to
d83f5a2
Compare
Should add some fallback mechanism if getting the new home page failed. #6146 |
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
Thanks for the great work @BSFishy @abbyhu2000 |
This pull request introduces a comprehensive update to the homepage, focusing on enhancing its layout, functionality, and configurability. Key changes include: * Initial implementation and iterative improvements of the new homepage layout, including the addition of hero sections and various other sections for improved content organization and presentation. * Introduction of lazy rendering and memoization to optimize performance and user experience. * Refinements in section rendering, including inline rendering, to streamline the page's structure and interactivity. * Removal of unused functions and components, alongside renaming functions for better clarity and alignment with their purpose. * Significant enhancements in testing, ensuring robust functionality through the addition of various unit tests, including jest tests and tests for new observable-based features. * Adjustments and updates following UX guidance, including changes to the footer, welcome screen, and other user interface elements to align with best practices and user expectations. * Conversion of the homepage to use observables for dynamic content updates, and making the new homepage experience configurable, allowing for easy toggling between legacy and new layouts. * Comprehensive cleanup and minor redesign efforts to refine the overall look and feel, alongside the removal of outdated comments and redundant code. * Introduction of a new configuration option to enable/disable the new homepage, providing flexibility and control to users or administrators. * Additional contributions include replacing a YAML config with an advanced setting and fixing the changelog for accurate documentation. --------- Signed-off-by: Matt Provost <provomat@amazon.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Co-authored-by: Matt Provost <provomat@amazon.com> Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com> (cherry picked from commit d1dd85b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
This pull request introduces a comprehensive update to the homepage, focusing on enhancing its layout, functionality, and configurability. Key changes include: * Initial implementation and iterative improvements of the new homepage layout, including the addition of hero sections and various other sections for improved content organization and presentation. * Introduction of lazy rendering and memoization to optimize performance and user experience. * Refinements in section rendering, including inline rendering, to streamline the page's structure and interactivity. * Removal of unused functions and components, alongside renaming functions for better clarity and alignment with their purpose. * Significant enhancements in testing, ensuring robust functionality through the addition of various unit tests, including jest tests and tests for new observable-based features. * Adjustments and updates following UX guidance, including changes to the footer, welcome screen, and other user interface elements to align with best practices and user expectations. * Conversion of the homepage to use observables for dynamic content updates, and making the new homepage experience configurable, allowing for easy toggling between legacy and new layouts. * Comprehensive cleanup and minor redesign efforts to refine the overall look and feel, alongside the removal of outdated comments and redundant code. * Introduction of a new configuration option to enable/disable the new homepage, providing flexibility and control to users or administrators. * Additional contributions include replacing a YAML config with an advanced setting and fixing the changelog for accurate documentation. --------- Signed-off-by: Matt Provost <provomat@amazon.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Co-authored-by: Matt Provost <provomat@amazon.com> Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com> (cherry picked from commit d1dd85b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
This PR is built upon the original home page PR: #5613 authored by @BSFishy
Added a new commit on replacing the yml config with advanced setting.
Issues Resolved
resolves #6056
Screenshot
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration