-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Dashboard] Panel toolbar #83342
[Dashboard] Panel toolbar #83342
Conversation
ba7dfe1
to
f22ab6d
Compare
Opened an initial design PR - cqliu1#15 As we continue down this path, we'll consider better alignment with the Lens toolbar. As it stands, the button sizes are smaller in Dashboard, we use a primary button, etc., but the rest didn't feel right for Dashboard at this juncture. Once we add more features - especially button groups - we can seek stronger alignment. |
15ee66f
to
5a5a604
Compare
01fec0f
to
8e66f2a
Compare
fee1659
to
f0e731b
Compare
Pinging @elastic/kibana-presentation (Team:Presentation) |
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.
ML changes LGTM
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.
operations - storybook aliases LGTM
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.
Looks great!
Double checked the CSS, all still valid.
The button labels were reviewed by Gail ++
<FormattedMessage id="embeddableApi.addPanel.Title" defaultMessage="Add panels" /> | ||
<FormattedMessage | ||
id="embeddableApi.addPanel.Title" | ||
defaultMessage="Add from library" |
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.
@elastic/kibana-app-services This is the only change I made to the embeddable plugin which updates the title of the add panel flyout to align with the rename of the button in Dashboard to Add from library
.
f0e731b
to
3fd042b
Compare
⏳ Build in-progress, with failures
Failed CI StepsHistory
To update your PR or re-run it, just comment with: |
Hide panel toolbar in view mode Update empty panel copy Added buttons to empty prompt Update copy Update toolbar and empty panel styles Fixed some tests Fixed conflict Updated snapshots Removed unused import Added stories Added storyshot test Updated snapshots
11c71cc
to
001b335
Compare
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.
This is all looking great to me! Tested locally in chrome and everything seems to work as expected.
Not necessarily something to do in this PR, but I've opened up a conversation about the top nav here: #85666 (comment)
} | ||
showLinkToVisualize={isEditMode} | ||
onVisualizeClick={this.createNewEmbeddable} | ||
onLinkClick={() => this.props.switchViewMode?.(ViewMode.EDIT)} |
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.
I'm glad this PR removes the 'Create New' button from the empty screen - and the new design is looking great! If at all possible, maybe in a followup, it would also be great to remove the 'switchViewMode` behaviour. This method is injected in a non-standard way and is the only place where the dashboard state manager is coupled with the dashboard container.
onLibraryClick: () => void; | ||
} | ||
|
||
export const PanelToolbar: FC<Props> = ({ onAddPanelClick, onLibraryClick }) => ( |
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.
This is looking good! Can't wait until we standardize this in the Presentation Team plugin
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Distributable file count
Page load bundle
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Summary
Blocked by #82909.Closes #82906.
Related to #85666.
This adds a toolbar below the search bar and filter bar in Dashboard for creating new panels and adding existing embeddables.
The
Create panel
(previouslyCreate new
) button triggers the visualize modal for creating new visualizations.The
Add from library
/Library
(previouslyNew
) button triggers the embeddable flyout for adding Saved Object backed embeddables.Notable changes:
Editing <dashboard-name>
in edit mode. It will just say the title, i.e.New Dashboard
orNew Dashboard (unsaved)
Note: This PR is based off #82909. View the last commit
f0e731b
(#83342) to see the diff for changes relevant to this PR.Checklist
Delete any items that are not applicable to this PR.
For maintainers