This repository was archived by the owner on Apr 12, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
[plugin-klogs] feat: adds button to remove column from Documents table #608
Open
matthiastz
wants to merge
8
commits into
kobsio:main
Choose a base branch
from
matthiastz:feat/add-button-to-remove-columns
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
902dc2c
feat: adds button to remove column from Documents table
matthiastz ff1d178
fix: lint
matthiastz 49ab087
fix: lint 2
matthiastz 0eea732
fix: export Documents and fix typo
matthiastz 6f7634c
test: expand tests
matthiastz 29873e4
fix: lint
matthiastz 4061051
fix: use TableChart icon
matthiastz 0e96db0
fix: add aria label
matthiastz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ import { | |
| KeyboardArrowRight, | ||
| ListAlt, | ||
| MoreVert, | ||
| RemoveCircleOutline, | ||
| SavedSearch, | ||
| TableChart, | ||
| ZoomIn, | ||
|
|
@@ -480,9 +481,9 @@ const Document: FunctionComponent<{ | |
| /** | ||
| * The `Documents` component is used to render the documents in a table. The table will show the timestamp of each log | ||
| * line and a preview of the most important fields. If the user select a list of fields these fields will be shown | ||
| * insteand of the preview. | ||
| * instead of the preview. | ||
| */ | ||
| const Documents: FunctionComponent<{ | ||
| export const Documents: FunctionComponent<{ | ||
| addFilter?: (filter: string) => void; | ||
| changeOrder?: (orderBy: string) => void; | ||
| documents: Record<string, string>[]; | ||
|
|
@@ -524,6 +525,15 @@ const Documents: FunctionComponent<{ | |
| > | ||
| {field} | ||
| </TableSortLabel> | ||
| <IconButton | ||
| edge="end" | ||
| color="inherit" | ||
| size={'small'} | ||
| sx={{ m: 0 }} | ||
| onClick={() => selectField?.(field)} | ||
| > | ||
| <RemoveCircleOutline fontSize="small" /> | ||
| </IconButton> | ||
|
Comment on lines
+527
to
+536
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. core change. |
||
| </TableCell> | ||
| ))} | ||
| </> | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.