Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

matthiastz
Copy link
Contributor

@matthiastz matthiastz commented Dec 21, 2023

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.

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (886bb38) 72.24% compared to head (0e96db0) 72.26%.

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     
Flag Coverage Δ
go 71.41% <ø> (-0.16%) ⬇️
node-app 0.00% <ø> (ø)
node-azure 94.62% <ø> (ø)
node-core 42.10% <ø> (ø)
node-datadog 92.84% <ø> (ø)
node-elasticsearch 91.73% <ø> (ø)
node-flux 65.99% <ø> (ø)
node-github 98.30% <ø> (ø)
node-grafana 89.65% <ø> (ø)
node-harbor 94.88% <ø> (ø)
node-helm 99.15% <ø> (ø)
node-jaeger 90.96% <ø> (ø)
node-jira 95.66% <ø> (ø)
node-kiali 89.98% <ø> (ø)
node-klogs 94.70% <100.00%> (+1.25%) ⬆️
node-mongodb 95.88% <ø> (ø)
node-opsgenie 83.77% <ø> (ø)
node-prometheus 88.16% <ø> (ø)
node-rss 96.16% <ø> (ø)
node-runbooks 96.36% <ø> (ø)
node-signalsciences 97.47% <ø> (ø)
node-sonarqube 96.12% <ø> (ø)
node-sql 88.83% <ø> (ø)
node-techdocs 94.20% <ø> (ø)
node-velero 82.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matthiastz
Copy link
Contributor Author

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

Comment on lines +527 to +536
<IconButton
edge="end"
color="inherit"
size={'small'}
sx={{ m: 0 }}
aria-label="toggle field column"
onClick={() => selectField?.(field)}
>
<TableChart sx={{ fontSize: 16 }} />
</IconButton>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core change.

@matthiastz matthiastz marked this pull request as ready for review December 21, 2023 18:38
@matthiastz
Copy link
Contributor Author

@ricoberger @staffbase-robert :)

@matthiastz
Copy link
Contributor Author

for consistency i used the TableChart icon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant