Skip to content

feat(inboxes): take hex label colors in labels create and update - #410

Merged
joaopcm merged 5 commits into
preview-inboxesfrom
mes-1842-label-hex-colors
Oct 9, 2026
Merged

joaopcm merged 5 commits into
preview-inboxesfrom
mes-1842-label-hex-colors

Conversation

@joaopcm

@joaopcm joaopcm commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

the API only takes hex label colors now (resend/resend-monorepo#12287), but --color is still limited to the old swatch names through .choices(INBOX_LABEL_COLORS). the CLI rejects hex before sending anything, and the API rejects every name the CLI allows, so setting a label color from the CLI is broken.

what changed

  • --color on labels create and labels update checks for #RRGGBB and fails with Use a hex color like #E93D82.
  • help examples, the labels list output shape and the skill reference show hex, quoted (--color '#E93D82') since an unquoted # starts a shell comment
  • stops importing INBOX_LABEL_COLORS from resend, which feat(inboxes): type inbox label colors as hex resend-node#1144 removes. parseLabelColor casts to InboxLabelColor, so this typechecks against today's 6.32.1-preview-inboxes.5 and against the hex types

release

bumps the CLI to 2.22.0-preview-inboxes.9 and can ship on its own. the resend dep moves to 6.32.1-preview-inboxes.6 once resend/resend-node#1144 is published.

ticket: MES-1842

Comment thread package.json Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread skills/resend-cli/references/inboxes.md Resolved

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 8 files

Auto-approved: Aligns inbox label --color with the API's hex-only #RRGGBB contract, replacing stale swatch-name choices with validation and updating docs/examples/tests; drops the removed INBOX_LABEL_COLORS import. Bounded, behavior-correcting CLI change pinned by tests.

View guided diff | Turn on auto-fix | Re-trigger cubic

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 5 files (changes from recent commits).

Auto-approved: Aligns the inbox label --color flag with the API's hex-only #RRGGBB contract by replacing stale swatch choices with hex validation, updating docs/tests/examples, and bumping the resend preview dependency. Bounded, behavior-correcting CLI change pinned by tests.

View guided diff | Turn on auto-fix | Re-trigger cubic

@joaopcm
joaopcm requested a review from felipefreitag October 9, 2026 17:48
@joaopcm
joaopcm merged commit 843f516 into preview-inboxes Oct 9, 2026
6 of 7 checks passed
@joaopcm
joaopcm deleted the mes-1842-label-hex-colors branch October 9, 2026 18:01
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