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

Use Tailwind layers, rename workflow status classes #1584

Merged
merged 15 commits into from
Aug 31, 2023

Conversation

stevekinney
Copy link
Member

  • Moves base styles into the appropriate Tailwind layer.
  • Makes workflow status classes generally available.
  • Renames workflow status classes for semantic meaning.
  • Removes reactive statements in favor of view layer reactivity.

@stevekinney stevekinney requested review from rossedfort and a team as code owners August 23, 2023 20:54
@vercel
Copy link

vercel bot commented Aug 23, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
holocene ⬜️ Ignored (Inspect) Visit Preview Aug 31, 2023 1:50pm


$: color = colors[status];
$: label = humanFriendlyNames[status];
$: isRunning = label === humanFriendlyNames.Running;
</script>

<span class="flex text-center text-sm font-medium leading-4">
Copy link
Contributor

Choose a reason for hiding this comment

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

We could just use <Badge /> here and get rid of those extra color styles

<Badge type={color}>
  <span class="whitespace-nowrap">{label}</span>
  {#if isRunning}
    <HeartBeat {delay} />
  {/if}
</Badge>

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's give it a shot.

@stevekinney stevekinney merged commit 2ac2399 into main Aug 31, 2023
@stevekinney stevekinney deleted the semantic-workflow-statuses branch August 31, 2023 13:57
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.

2 participants