-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
feat(explore): Move chart header to top of the page #19529
Conversation
</span> | ||
)} | ||
</Tooltip> | ||
<span ref={sizerRef} className="input-sizer" aria-hidden tabIndex={-1} /> |
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.
That span is invisible, we need it to measure text width in order to scale input's width dynamically
/testenv up |
@kgabryje Ephemeral environment spinning up at http://54.201.146.200:8080. Credentials are |
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.
Approving with a minor nit (not important): Very clean and I like this much better than the current UX. A few thoughts that came to mind when testing: it's not obvious to the user that the title has been edited. I believe some time ago it used to save it when pressing return? I'm not saying that was very intuitive, either, but since we have the pill that says when the form data has changed, maybe we should also record the changed title in it?
But let's leave that for a follow up, as it's not really directly related to this PR.
title={this.getSliceName()} | ||
canEdit={ | ||
!slice || | ||
this.props.can_overwrite || |
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: while we're using the destructured slice
, could we also destructure this like the others on line 224: const { ..., can_overwrite: canOverwrite } = this.props
. Also maybe this.props.actions.updateChartTitle
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.
Done!
Codecov Report
@@ Coverage Diff @@
## master #19529 +/- ##
=======================================
Coverage 66.58% 66.59%
=======================================
Files 1677 1681 +4
Lines 64238 64279 +41
Branches 6538 6553 +15
=======================================
+ Hits 42773 42804 +31
- Misses 19766 19775 +9
- Partials 1699 1700 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
It still does 🙂 I like the idea of including the title in altered table! I'll add that to this PR |
Ephemeral environment shutdown and build artifacts deleted. |
* Move chart header to top of the page * Implement truncating and dynamic input * fix typing * Prevent cmd+z undoing changes when not in edit mode * Fix tests, add missing types * Show changed title in altered
SUMMARY
This PR implements part of chart header redesign (final design available here: #19099)
List of changes:
Next steps:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2022-04-05.at.11.35.42.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
CC @kasiazjc