-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make saved insights meta fields editable in-line #6159
Conversation
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 good to me 🙌 . No reason to block this merge on the idea of extracting a component from the editable text although (if nothing else) it does save the future reader comparing the title and description to understand differences
frontend/src/scenes/insights/InsightMetadata/InsightMetadata.tsx
Outdated
Show resolved
Hide resolved
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 like this change. Based on the feedback during the demo today, we might consider making renaming, description editing, tagging available outside of the edit view. Is it technically feasible to save those single-attribute changes outside the edit workflow? Great work, Alex!
Thanks for the feedback everyone!
Yup it should be. The only difference would be if the user clicks "Done" outside of the edit workflow, it will permanently save the metadata for that insight. This is different from behavior in the edit workflow, where clicking "Done" will just save the state of the metadata and clicking "Save" will permanently save the final state. |
Added edit functionality to view modes and cleaned up FF's for this feature. Screen.Recording.2021-10-04.at.4.19.09.PM.mov |
Codecov Report
@@ Coverage Diff @@
## master #6159 +/- ##
=========================================
Coverage ? 91.77%
=========================================
Files ? 391
Lines ? 29584
Branches ? 2510
=========================================
Hits ? 27150
Misses ? 1906
Partials ? 528 Continue to review full report at Codecov.
|
Overall LGTM. Going to merge since I want to work on the insight logics a bit today, and best to have it in... and it's feature flagged. The
All these are proper blockers to unflagging saved insights, but not for merging this PR. |
Changes
Closes #6131.
Should've gotten most of the edge cases with different types of inputs but please feel free to poke around and break things.
Demo
Screen.Recording.2021-10-04.at.12.45.03.AM.mov
How did you test this code?