-
Notifications
You must be signed in to change notification settings - Fork 898
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
[workspace]Fix/UI of assets table #8519
base: main
Are you sure you want to change the base?
[workspace]Fix/UI of assets table #8519
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8519 +/- ##
=======================================
Coverage 60.85% 60.86%
=======================================
Files 3802 3802
Lines 91062 91074 +12
Branches 14376 14379 +3
=======================================
+ Hits 55419 55430 +11
- Misses 32104 32105 +1
Partials 3539 3539
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
...ins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx
Outdated
Show resolved
Hide resolved
...ins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx
Outdated
Show resolved
Hide resolved
bdda7c2
to
495fe77
Compare
c09ae37
to
50de911
Compare
1c905bc
to
746db1c
Compare
@@ -283,13 +298,71 @@ export class Table extends PureComponent<TableProps, TableState> { | |||
'data-test-subj': 'updated-at', | |||
render: (updatedAt: string) => updatedAt && moment(updatedAt).format(dateFormat), | |||
} as EuiTableFieldDataColumnType<SavedObjectWithMetadata<any>>, | |||
...columnRegistry.getAll().map((column) => { |
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.
We are not supposed to delete the columnRegistry here, it is an extension point for other plugins to register their customized column.
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.
Thanks for the comment, already updated
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
223dd7d
to
ef28e15
Compare
@@ -224,7 +223,7 @@ export class Table extends PureComponent<TableProps, TableState> { | |||
<EuiToolTip position="top" content={getSavedObjectLabel(type)}> | |||
<EuiIcon | |||
aria-label={getSavedObjectLabel(type)} | |||
type={object.meta.icon || 'apps'} | |||
type={object.type === 'config' ? 'gear' : object.meta.icon || 'app'} |
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.
Why don't we just changed the meta.icon
?
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.
Thanks for all the comments, updated.
panelPaddingSize="s" | ||
data-test-subj="workspace-column-popover" | ||
> | ||
{workspaceNames?.slice(1).map((ws) => ( |
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.
The ws
may be undefined, shall we filter those workspace out?
expect(getByTestId('workspace-column-popover')).toBeInTheDocument(); | ||
expect(getByText('foo')).toBeInTheDocument(); | ||
expect(getByText('bar')).toBeInTheDocument(); |
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.
Nit: we could use findByText or findByTestId for such kind of assertion, those commands have retry mechanism out of the box.
Signed-off-by: Qxisylolo <[email protected]>
Signed-off-by: Qxisylolo <[email protected]>
setShowBadgePopover(false); | ||
}; | ||
|
||
if (workspaceNames) { |
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.
if (workspaceNames) { | |
if (workspaceNames?.length) { |
Description
This pr addresses the UI of assets table by:
Screenshot
Changelog
Check List
yarn test:jest
yarn test:jest_integration