Skip to content

fix(flags): keep long variant values on one truncated line in the flag table - #5329

Merged
shepherdjerred merged 1 commit into
mainfrom
flags-value-truncate
Nov 27, 2026
Merged

shepherdjerred merged 1 commit into
mainfrom
flags-value-truncate

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Why

Since #5163 moved the flag table to console-ui's .ui-data kit classes, which let cell text wrap, a long variant value no longer truncates. On live delivery/prod, delivery-enabled-environments renders as a cell dozens of lines tall. .fl-value had max-width and text-overflow: ellipsis, but it relied on the old table class for white-space: nowrap.

What

.fl-value now sets white-space: nowrap itself, so the existing 26ch cap and ellipsis apply again. The full value is still in the cell's title and in the editor.

Demo

Before (live main) After
trunc-before.png trunc-after.png

Verification

  • A local Flags server with a long delivery-enabled-environments value, rendered in a real browser: every .fl-value computes white-space: nowrap and is one line high (17px).
  • bun run verify:extended -- --filter='...[origin/main...HEAD]': 6/6 tasks pass; no affected workspace has extended steps.
  • bunx lefthook run pre-commit: green.
  • Not yet verified: Woodpecker CI and live Flags.

Part of FM-272 (found while verifying it).

🤖 Generated with Claude Code

https://claude.ai/code/session_011u9pQnKWrycqkZxjQrvL4Q

…g table

Why: since the table moved to the console-ui kit's .ui-data classes (#5163),
cells wrap text, so a long variant value such as delivery-enabled-environments
wrapped into a cell dozens of lines tall instead of truncating with an
ellipsis. .fl-value relied on the old table's nowrap.

What: .fl-value sets white-space: nowrap itself, so the existing max-width and
text-overflow: ellipsis apply again.

Verification: rendered a local Flags server with a long
delivery-enabled-environments value; every .fl-value computes
white-space: nowrap at one line (17px). bunx lefthook run pre-commit passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011u9pQnKWrycqkZxjQrvL4Q
@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shepherdjerred
shepherdjerred marked this pull request as ready for review November 27, 2026 04:39
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for 815274f from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T04:42:42.277028Z 815274f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 815274fe14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shepherdjerred
shepherdjerred merged commit 7b7c2c4 into main Nov 27, 2026
6 of 7 checks passed
@shepherdjerred
shepherdjerred deleted the flags-value-truncate branch November 27, 2026 08:18
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.

1 participant