-
Notifications
You must be signed in to change notification settings - Fork 59
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
[Page Header] New page header for applications and UI updates #2081
Conversation
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
float: 'left', | ||
width: '100%', |
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.
Are these needed anymore. Cause when we removed the mac width the other two css lines became irrelevant.
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.
Removed pageStyle, was also used in notebooks so was going to do it separately but removed from both.
public/plugin_headerControl.tsx
Outdated
return ( | ||
<> | ||
{components.map((component, index) => | ||
React.cloneElement(component, { key: `component-fallback-${index}` }) |
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.
Why do we need clone element here? Also, why do we have this key named as component-fallback
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.
Removed now just using
return <>{components}</>;
{!newNavigation && ( | ||
<> | ||
<EuiTitle size="l"> | ||
<h1 data-test-subj="applicationTitle">{application.name}</h1> | ||
</EuiTitle> | ||
<EuiText> | ||
<p>{application.description}</p> | ||
</EuiText> | ||
</> | ||
)} | ||
{newNavigation && ( | ||
<HeaderControlledComponentsWrapper description={application.description} /> | ||
)} | ||
</EuiPageHeaderSection> |
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.
Nit. Would this be cleaner?
{newNavigation ?
(<HeaderControlledComponentsWrapper description={application.description} />)
: (
<>
<EuiTitle size="l">
<h1 data-test-subj="applicationTitle">{application.name}</h1>
</EuiTitle>
<EuiText>
<p>{application.description}</p>
</EuiText>
</>
)}
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, have adjusted thank you
<div style={pageStyles}> | ||
<> | ||
{!newNavigation && ( | ||
<div style={{ paddingLeft: '16px', paddingTop: '8px' }}> |
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.
Can may be remove these custom styles.
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.
Fixed with EuiPageHeader
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/dashboards-observability/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/dashboards-observability/backport-2.x
# Create a new branch
git switch --create backport/backport-2081-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 dd544f708d1aed95d2b4e2d7ae7c0eb45b37398a
# Push it to GitHub
git push --set-upstream origin backport/backport-2081-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/dashboards-observability/backport-2.x Then, create a pull request where the |
…arch-project#2081) * Page header updates for applications Signed-off-by: Adam Tackett <[email protected]> * small adjustments Signed-off-by: Adam Tackett <[email protected]> * update snapshots Signed-off-by: Adam Tackett <[email protected]> * update from comments Signed-off-by: Adam Tackett <[email protected]> * remove custom css Signed-off-by: Adam Tackett <[email protected]> * update snapshots from osd Signed-off-by: Adam Tackett <[email protected]> --------- Signed-off-by: Adam Tackett <[email protected]> Signed-off-by: Adam Tackett <[email protected]> Co-authored-by: Adam Tackett <[email protected]> (cherry picked from commit dd544f7)
…updates (#2081) (#2095) * [Page Header] New page header for applications and UI updates (#2081) * Page header updates for applications Signed-off-by: Adam Tackett <[email protected]> * small adjustments Signed-off-by: Adam Tackett <[email protected]> * update snapshots Signed-off-by: Adam Tackett <[email protected]> * update from comments Signed-off-by: Adam Tackett <[email protected]> * remove custom css Signed-off-by: Adam Tackett <[email protected]> * update snapshots from osd Signed-off-by: Adam Tackett <[email protected]> --------- Signed-off-by: Adam Tackett <[email protected]> Signed-off-by: Adam Tackett <[email protected]> Co-authored-by: Adam Tackett <[email protected]> (cherry picked from commit dd544f7) * fixing lint errors Signed-off-by: Adam Tackett <[email protected]> --------- Signed-off-by: Adam Tackett <[email protected]> Co-authored-by: Adam Tackett <[email protected]>
Description
Old Applications under new navigation:
After changes:
Old applications without new navigation:
After changes:
Video of new actions working (removed button and added to table):
Screen.Recording.2024-08-21.at.11.14.19.AM.mov
Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.