fix(teams): color invitation status badges by state#144
Merged
Conversation
The lifecycle-status and email-delivery badges in InvitationsPanel rendered every value in the same neutral gray, so accepted, pending, expired and revoked invites were distinguishable only by reading the label. Map each status to the design-system surface tokens: accepted → success, pending/not-sent → warning, revoked/failed → danger, expired → muted, sent → muted. Also switch the failed-email styling off the undefined --text-danger token (which resolved to no color) onto --surface-danger-text.
tangletools
approved these changes
Jun 25, 2026
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — 9eca7e01
Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-25T05:38:58Z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In
InvitationsPanel, both the lifecycle-status badge (pending | accepted | expired | revoked) and the email-delivery badge (not_sent | sent | failed) rendered every value in the same neutral gray. The only thing that changed between an ACCEPTED invite and a PENDING one was the text — no semantic color — so the history list is hard to scan and ambiguous to users.There was also a latent bug: the failed-email styling used
var(--text-danger), which isn't defined in the consuming apps' token sets, so the "failed" state and the "Email was not sent" notice rendered with no color at all.Change
Map each status to the shared design-system surface tokens (the same
--surface-*family theBadgeprimitive uses), keeping the existing token-only styling approach the panel already follows:acceptedpendingrevokedexpiredsentnot_sentfailedAlso repoints the failed-email text off the undefined
--text-dangeronto--surface-danger-text.Notes
--surface-{success,warning,danger,info}-*are already defined in the consuming apps' themes, so the badges resolve to real colors in both light and dark mode.pnpm typecheckpasses;pnpm buildsucceeds.Draft
Opened as a draft pending a quick visual check in a consuming app (gtm-agent) after a local package link / version bump.