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

Add table of models to the "Browse models" page #41614

Merged
merged 3 commits into from
May 3, 2024
Merged

Conversation

rafpaf
Copy link
Contributor

@rafpaf rafpaf commented Apr 18, 2024

Adds a table of models to the Browse models page.

image

Figma: https://www.figma.com/file/hubkgafXKo4wcBeTAbJ4vh/Browsing-Models-Exploration?type=design&node-id=252-22078&mode=design&t=Gmk1MAN7hCTDKM34-4

This PR also removes previously existing tab logic. Previously, the logic for retrieving models and retrieving databases was housed in a high-level component, BrowseApp. I moved the models-related logic into the component that displays the models and the database-related logic into the component that displays the databases.

For now, this table is pretty simple. We'll be iterating on it.

@metabase-bot metabase-bot bot added the .Team/AdminWebapp Admin and Webapp team label Apr 18, 2024
@rafpaf rafpaf added the no-backport Do not backport this PR to any branch label Apr 19, 2024
@rafpaf rafpaf changed the base branch from master to port-collections-to-ts April 19, 2024 10:56
@rafpaf rafpaf force-pushed the browse/list branch 2 times, most recently from 5d6da8a to f27eab9 Compare April 19, 2024 19:44
@rafpaf rafpaf changed the title Add sortable list of models to Browse models Add list of models to Browse models Apr 20, 2024
Base automatically changed from port-collections-to-ts to master April 22, 2024 17:17
@rafpaf rafpaf force-pushed the browse/list branch 2 times, most recently from fc086c8 to 3c0703f Compare April 23, 2024 20:16
@rafpaf rafpaf changed the base branch from master to collection-names April 23, 2024 20:16
@rafpaf rafpaf changed the base branch from collection-names to port-moderation-to-ts April 23, 2024 20:24
@rafpaf rafpaf marked this pull request as ready for review April 23, 2024 20:28
Copy link

replay-io bot commented Apr 23, 2024

Status In Progress ↗︎ 51 / 52
Commit 8a12c69
Results
15 Failed
⚠️ 7 Flaky
2431 Passed

@rafpaf rafpaf changed the title Add list of models to Browse models Add table of models to the "Browse models" page Apr 24, 2024
@rafpaf rafpaf marked this pull request as draft April 24, 2024 13:20
@rafpaf rafpaf changed the base branch from port-moderation-to-ts to custom-columns-in-ItemsTable April 24, 2024 13:26
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 1dc0df9 to 0b35201 Compare April 24, 2024 14:30
rafpaf added a commit that referenced this pull request May 3, 2024
Lets the `ItemsTable` component have customizable columns.

The logic for this is contained in `BaseItemsTable`. This is preliminary work for #41614

This doesn't introduce any new UI, but there is a unit test for the new logic.

The main thing to check is whether the table on the collections page stills work correctly. Note how the columns adjust as you resize the viewport horizontally. (In fact, the columns will sometimes adjust as you close and open the sidebar, because the width they are paying attention to is the width of the area to the right of the sidebar.)

Closes #41908
Base automatically changed from browse/no-tabs to browse/nav May 3, 2024 18:33
@rafpaf rafpaf merged commit 62e09eb into browse/nav May 3, 2024
22 of 23 checks passed
@rafpaf rafpaf deleted the browse/list branch May 3, 2024 18:42
@rafpaf rafpaf added this to the 0.50 milestone May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/AdminWebapp Admin and Webapp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants