-
Notifications
You must be signed in to change notification settings - Fork 920
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
[D&D] metadata slice 1879 #2193
[D&D] metadata slice 1879 #2193
Conversation
80f3f24
to
2a25918
Compare
Codecov Report
@@ Coverage Diff @@
## main #2193 +/- ##
==========================================
- Coverage 67.22% 67.21% -0.02%
==========================================
Files 3100 3100
Lines 59564 59579 +15
Branches 9062 9064 +2
==========================================
+ Hits 40043 40047 +4
- Misses 17334 17346 +12
+ Partials 2187 2186 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Nice change. Almost all my comments are stylistic
src/plugins/wizard/public/application/utils/state_management/metadata_slice.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/state_management/metadata_slice.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/state_management/store.ts
Outdated
Show resolved
Hide resolved
…sable the save button if not and show error messages. Signed-off-by: abbyhu2000 <[email protected]>
2a25918
to
3c1da32
Compare
Signed-off-by: abbyhu2000 <[email protected]>
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!
import { useTypedSelector, useTypedDispatch } from '../utils/state_management'; | ||
import { setSaveState } from '../utils/state_management/metadata_slice'; | ||
|
||
// TODO: Need to finalize the error messages |
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 have a follow-up issue for this? do we need ux insight here?
|
||
// TODO: Need to finalize the error messages | ||
if (isEmpty) { | ||
errorMsg = 'The canvas is empty. Add some aggregations before saving.'; |
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 to ping @KrooshalUX to get the final messages?
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.
@KrooshalUX Hi Kroosh, for the save button tooltip() error messages for wizard, have we finalized them? Thanks!
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.
@btzeng - do we have an empty state for this view?
src/plugins/wizard/public/application/utils/state_management/store.ts
Outdated
Show resolved
Hide resolved
cool~ ship it! |
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.
Awesome job on the feature!
src/plugins/wizard/public/application/utils/state_management/metadata_slice.ts
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/state_management/store.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/state_management/store.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/state_management/metadata_slice.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/get_top_nav_config.tsx
Outdated
Show resolved
Hide resolved
20df493
202acd0
to
20df493
Compare
Signed-off-by: abbyhu2000 <[email protected]>
20df493
to
9f17933
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.
Ship it!
* Use metadata slice to save if the visualization is savable or not. Disable the save button if not and show error messages. Signed-off-by: abbyhu2000 <[email protected]> * Add some comments about store subscriber and editor state Signed-off-by: abbyhu2000 <[email protected]> * create a seperate use_can_save hook Signed-off-by: abbyhu2000 <[email protected]> Signed-off-by: abbyhu2000 <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]> (cherry picked from commit 65005be)
* Use metadata slice to save if the visualization is savable or not. Disable the save button if not and show error messages. Signed-off-by: abbyhu2000 <[email protected]> * Add some comments about store subscriber and editor state Signed-off-by: abbyhu2000 <[email protected]> * create a seperate use_can_save hook Signed-off-by: abbyhu2000 <[email protected]> Signed-off-by: abbyhu2000 <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]> (cherry picked from commit 65005be) Co-authored-by: Qingyang(Abby) Hu <[email protected]>
Description
Add two new state in metadata slice, disable save button when the visualization is not savable and display error messages using tooltip.
Visualization is not savable when:
Issues Resolved
resolves #1879
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr