-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
[plugin-klogs] feat: adds button to remove column from Documents table #608
base: main
Are you sure you want to change the base?
[plugin-klogs] feat: adds button to remove column from Documents table #608
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #608 +/- ##
==========================================
+ Coverage 72.24% 72.26% +0.02%
==========================================
Files 430 430
Lines 66635 66645 +10
Branches 2879 2891 +12
==========================================
+ Hits 48141 48163 +22
+ Misses 18194 18180 -14
- Partials 300 302 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
About the styling of the button, I am not fully sure. As you can see, the overall styling of Kobs/Klogs is not right, but thats b/c of my hacked local setup (see #607). Here a short demo: Bildschirmaufnahme.2023-12-21.um.14.52.13.mov |
<IconButton | ||
edge="end" | ||
color="inherit" | ||
size={'small'} | ||
sx={{ m: 0 }} | ||
aria-label="toggle field column" | ||
onClick={() => selectField?.(field)} | ||
> | ||
<TableChart sx={{ fontSize: 16 }} /> | ||
</IconButton> |
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.
core change.
for consistency i used the TableChart icon |
Added a button remove columns directly from the Documents table header. This eases the work quite a lot, for example:
when you have 3+ "custom" (not Time or Log) columns open, you do not need to scroll through all of the properties of a "log line" (Document)
when you aggregate logs where certain properties are not set (or you aggregate them from different services etc.), removing the column as it is from the Document table header is quite convenient ;)
I adjusted the corresponding documentation for this change.
I adjusted the values.yaml and the documentation for all values.