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

Linkify rows in Browse models table #42111

Merged
merged 1 commit into from May 10, 2024
Merged

Linkify rows in Browse models table #42111

merged 1 commit into from May 10, 2024

Conversation

rafpaf
Copy link
Contributor

@rafpaf rafpaf commented May 1, 2024

TL;DR

This PR makes the rows of the ModelsTable component clickable, routing to the respective item's url.

What changed?

Created a new styled component, ModelTableRow, to encapsulate the styling code for table rows in ModelsTable. Now, when a user clicks on a row in the table, they are redirected to the URL of the item that row represents. It also prevents click propagation when the collection is clicked.

How to test?

Visual testing can be performed by checking if clicking on table rows redirects to correct URL and whether the styling behaves as expected.

Why make this change?

This change enhances the user experience by allowing easier navigation.

(Graphite's AI wrote this PR description btw)

Copy link
Contributor Author

rafpaf commented May 1, 2024

@rafpaf rafpaf marked this pull request as ready for review May 1, 2024 16:51
@metabase-bot metabase-bot bot added the .Team/AdminWebapp Admin and Webapp team label May 1, 2024
Copy link

replay-io bot commented May 1, 2024

Status Complete ↗︎
Commit 1d56f81
Results
⚠️ 10 Flaky
2474 Passed

Copy link

github-actions bot commented May 1, 2024

Codenotify: Notifying subscribers in CODENOTIFY files for diff d2e2ae4...27244ea.

Notify File(s)
@kdoh frontend/src/metabase/ui/components/icons/Icon/Icon.tsx

@rafpaf rafpaf force-pushed the browse/linkify-row branch 2 times, most recently from 17408e3 to 29ffce1 Compare May 2, 2024 11:06
@rafpaf rafpaf requested a review from camsaul as a code owner May 2, 2024 11:06
Copy link
Contributor

@iethree iethree left a comment

Choose a reason for hiding this comment

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

only blocker is the variant issue

Base automatically changed from browse/sort to master May 9, 2024 15:04
@rafpaf rafpaf merged commit aec41f4 into master May 10, 2024
111 of 112 checks passed
@rafpaf rafpaf deleted the browse/linkify-row branch May 10, 2024 16:03
Copy link
Contributor Author

rafpaf commented May 10, 2024

Merge activity

Copy link

@rafpaf Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone?

@rafpaf rafpaf added this to the 0.50 milestone May 10, 2024
uladzimirdev pushed a commit that referenced this pull request May 11, 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