-
Notifications
You must be signed in to change notification settings - Fork 99
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
table view with two way sync #1022
table view with two way sync #1022
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1022 +/- ##
============================================
+ Coverage 53.60% 53.61% +0.01%
Complexity 291 291
============================================
Files 280 280
Lines 9309 9335 +26
Branches 2135 2155 +20
============================================
+ Hits 4990 5005 +15
- Misses 4149 4160 +11
Partials 170 170
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -46,6 +33,30 @@ export const DataTable = ({ visualizations, layout, config }: any) => { | |||
metadata: { fields = [] }, | |||
} = visualizations.data.rawVizData; | |||
|
|||
const { dataConfig = {} } = visualizations?.data?.userConfigs; |
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 we follow bar's viz data destruction code here to destruct data config so we don't have to make these multiple long lines of assignments?
typeof dataConfig?.chartStyles?.columnWidth !== 'undefined' | ||
? dataConfig?.chartStyles?.columnWidth | ||
: visualizations.vis.columnwidth; | ||
|
||
useEffect(() => { | ||
document.addEventListener('keydown', hideGridFullScreenHandler); | ||
return () => { |
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.
from Line 70, seems like we can also use useMemo hook here, could we add this for column calculation?
Please address the comments and resolve the conflicts for this PR. |
03dc15e
4f15c16
to
03dc15e
Compare
Signed-off-by: abasatwar <[email protected]>
Signed-off-by: abasatwar <[email protected]>
Signed-off-by: abasatwar <[email protected]>
Signed-off-by: abasatwar <[email protected]>
Signed-off-by: ruchika-narang <[email protected]>
21ae219
to
813e24f
Compare
Signed-off-by: ruchika-narang <[email protected]>
Signed-off-by: ruchika-narang <[email protected]>
Signed-off-by: ruchika-narang <[email protected]>
Table view visualization with two way sync is implemented.
#916