-
Notifications
You must be signed in to change notification settings - Fork 12
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: add column config local storage support to table #2417
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2417 +/- ##
==========================================
+ Coverage 82.82% 82.96% +0.14%
==========================================
Files 921 921
Lines 20549 20557 +8
Branches 3241 3245 +4
==========================================
+ Hits 17020 17056 +36
+ Misses 3404 3379 -25
+ Partials 125 122 -3
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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 haven't looked at the full code yet but I have some doubts.
- Will we have a way to not set preferences?
- Will the preference setting be a default behavior?
The problem that I see here is with the column resizing. We set pixel widths after resizing and if we save everything to the preferences then we will never have a way to revert to the original state in terms of the column sizing. and it will create a problem if someone goes from one screen to another.
Should we have a way to reset that as well? I really think we should.
We can add an action in the table menu to reset columns the columns.
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.
Code looks good; no red flags here that I could see. However, table is a beast, so please be sure to test with all forms - flat, expandable, and tree versions. In particular, tree/waterfall. Also explorer table, despite being expandable, works a little different and can be thought of as a fourth version worth testing.
Approved, but please work with @itssharmasandeep on the column resizing concerns he has above as he recently improved that logic and knows it best.
We are currently saving only two attributes from the column for user preferences. |
I've tested all the variants you mentioned. LGTM. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…rtrace/hypertrace-ui into add-column-config-preferences-table
Remove column config local storage support from table widget renderer.
Adapt and add it to table component directly.