Skip to content

Conversation

@david-crespo
Copy link
Collaborator

Closes #1178. This gets rid of the only remaining instance of polling outside of the sliding metrics windows.

  • Remove refetch interval on instance table query
  • Add refetch button on instances page (partial implementation of latest design here)
    image
  • Update ghost button color to match design (border and hover are no longer green)
    image
  • <Button> now takes a narrowed-down selection of props from <button> instead of all of them

@vercel
Copy link

vercel bot commented Nov 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
console-ui-storybook ✅ Ready (Inspect) Visit Preview Nov 10, 2022 at 5:13PM (UTC)

// meant for buttons that only contain a single icon
icon: 'h-8 w-8 text-mono-sm svg:w-4',
base: 'h-10 px-3 text-mono-md svg:w-5',
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was going to make icon? a separate boolean prop, but unless it put on all the relevant size styles, it would rely on the caller also passing size="sm", which is stupid. And if it does put all the relevant size styles, it's a size. So I made it a size.

| 'type'
| 'title'
| 'form'
> &
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is not at all necessary, and maybe this is a me thing, but 256 more drives me crazy. I feel like I'm staring into the abyss.

image

Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose it's fine. It's a code change to address tooltip content though which seems to be a bit of a smell, but I agree the tooltip isn't incredibly helpful.

We should probably change these to interfaces anyway. Doing so it basically just won't show anything in the tooltip anyway, ha. That doesn't make the tooltip experience any better, but maybe it would assuage the aesthetic concern of the ... 256 more ... message without the prop restriction.

Copy link
Collaborator Author

@david-crespo david-crespo Nov 10, 2022

Choose a reason for hiding this comment

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

It's not just the tooltip content, it's also the real possibility that there could be buttons out there with any of those props. I like being able to rule that out.

@david-crespo
Copy link
Collaborator Author

@zephraph and I noticed our button color and variant implementation is now out of step with the design. I will follow up with a PR to fix that.

@david-crespo david-crespo merged commit b278c92 into main Nov 10, 2022
@david-crespo david-crespo deleted the refetch-button branch November 10, 2022 18:33
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.

Turn off all automatic refetching

3 participants