-
- Downloads
Switch the collection page to table-based layout, display last edit info (#16357)
* Extract color functions from EntityItem body * Refactor EntityItem not to use `switch` statement * Extract `<EntityItem.Icon />` component * Extract `<EntityItem.Name />` component * Extract `<EntityItem.Menu />` component * Add basic table components for collection items * Update item name style * Update `last-edit-info` columns text style * Make CollectionContent wider * Highlight pinned items * Add `renderItem` prop to BaseItemsTable * Add links to table items' entity pages * Connect `data-metabase-event` to table items * Make table items selectable for bulk actions * Remove filtering E2E test Collection items filtering is going to be replaced with sorting * Fix cypress collection item selectors * Fix cypress pinned items assertions * Add collection item actions menu * Fix "Type" column style * Fix layout when there are no pinned items * Add CollectionContent's empty state * Fix typo * Update table row height * Add table rows separators * Remove replaced components * Remove filtering logic from CollectionContent * Fix pulses display in collection items table * Remove note about filtering E2E tests Collection items filtering is going to be replaced with sorting * Move BaseTableItem into its own file * Remove redundant conditional render * Fix col's span attribute * Don't use `useCallback` for itemRenderer * Extract ItemsTable's renderItem * Extract PinnedItemsTable's renderItem * Fix `EntityItemIcon` margin prop usage * Remove not used props from `EntityItem` * Fix string prop notation * Add IconButtonWrapper component * Use IconButtonWrapper for EntityItem's icon * Update BaseTableItem's EntityIcon usage * Move EntityItemWrapper to .styled file * Rename `EntityItemIcon` to `EntityIconCheckBox`
Showing
- frontend/src/metabase/collections/components/BaseItemsTable.jsx 75 additions, 0 deletions...nd/src/metabase/collections/components/BaseItemsTable.jsx
- frontend/src/metabase/collections/components/BaseItemsTable.styled.jsx 28 additions, 0 deletions...metabase/collections/components/BaseItemsTable.styled.jsx
- frontend/src/metabase/collections/components/BaseTableItem.jsx 106 additions, 0 deletions...end/src/metabase/collections/components/BaseTableItem.jsx
- frontend/src/metabase/collections/components/CollectionSectionHeading.jsx 0 additions, 14 deletions...abase/collections/components/CollectionSectionHeading.jsx
- frontend/src/metabase/collections/components/ItemList.jsx 0 additions, 118 deletionsfrontend/src/metabase/collections/components/ItemList.jsx
- frontend/src/metabase/collections/components/ItemTypeFilterBar.jsx 0 additions, 85 deletions...src/metabase/collections/components/ItemTypeFilterBar.jsx
- frontend/src/metabase/collections/components/ItemsTable.jsx 30 additions, 0 deletionsfrontend/src/metabase/collections/components/ItemsTable.jsx
- frontend/src/metabase/collections/components/PinnedItems.jsx 0 additions, 121 deletionsfrontend/src/metabase/collections/components/PinnedItems.jsx
- frontend/src/metabase/collections/components/PinnedItemsTable.jsx 37 additions, 0 deletions.../src/metabase/collections/components/PinnedItemsTable.jsx
- frontend/src/metabase/collections/containers/CollectionContent.jsx 32 additions, 60 deletions...src/metabase/collections/containers/CollectionContent.jsx
- frontend/src/metabase/components/EntityItem.jsx 138 additions, 125 deletionsfrontend/src/metabase/components/EntityItem.jsx
- frontend/src/metabase/components/EntityItem.styled.js 46 additions, 0 deletionsfrontend/src/metabase/components/EntityItem.styled.js
- frontend/src/metabase/components/IconButtonWrapper.jsx 13 additions, 0 deletionsfrontend/src/metabase/components/IconButtonWrapper.jsx
- frontend/test/metabase/scenarios/collections/collections.cy.spec.js 3 additions, 22 deletions...est/metabase/scenarios/collections/collections.cy.spec.js
- frontend/test/metabase/scenarios/collections/permissions.cy.spec.js 6 additions, 10 deletions...est/metabase/scenarios/collections/permissions.cy.spec.js
Loading
Please register or sign in to comment