Skip to content

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Dec 4, 2025

Description

Update our core Link component for improved UI. Migrate various places around the app onto the Link component.

Related Issue and Pull requests

Type of Change

  • Cleanup/Refactor

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

All links should work as expected!

Additional Comments

Given I passed through a variety of components I made an effort NOT to start refactoring everything I saw onto UI primitives. I will deal with that later. This PR is solely focussed on <a /> and <Link />

<TableCell className="text-sm flex items-center gap-2">
<StatusIcon status={getRunStatus(statusCounts)} />
<Link {...LinkProps}>{name}</Link>
<Paragraph>{name}</Paragraph>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The row already has a handler to navigate to the url, so an embedded link to the same location is unnecessary

primary: "text-primary hover:underline",
disabled: "text-muted-foreground cursor-not-allowed pointer-events-none",
classic: "text-sky-500 hover:text-sky-600 hover:underline",
block: "text-inherit",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for when the link wraps around a block of content such as a table row or an icon

>
{children}
{external && <ExternalLink className={cn("h-4", iconClassName)} />}
{download && <DownloadIcon className={cn("h-4", iconClassName)} />}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

completely unused

@camielvs camielvs marked this pull request as ready for review December 5, 2025 01:59
<footer
className="footer w-full px-4 text-center bg-gray-50"
style={{ height: `${BOTTOM_FOOTER_HEIGHT}px` }}
>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know you didn't change it but can we make the footer component? I noticed, for some reason, these changes made the text on the footer sit a little high and this fixed it.

<footer
className={`footer w-full px-4 text-center items-center bg-grey-50 h-[${BOTTOM_FOOTER_HEIGHT}px]`}
>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Are you sure? The text looks fine to me. Do you have a screenshot?
From my understanding of Tailwind embedding a variable into the tailwind string doesn't work.

I am going to merge and if this truly is an issue we can fix separately.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

its small but this is what I was seeing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this is inadvertently fixed by #1484

Copy link
Collaborator Author

camielvs commented Dec 5, 2025

Merge activity

  • Dec 5, 8:26 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 5, 8:26 PM UTC: Graphite rebased this pull request as part of a merge.
  • Dec 5, 8:28 PM UTC: @camielvs merged this pull request with Graphite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants