Skip to content

When Ref/RefList column shows a Choice column, render it as a choice#2277

Open
dsagal wants to merge 1 commit intomainfrom
ref-to-choice
Open

When Ref/RefList column shows a Choice column, render it as a choice#2277
dsagal wants to merge 1 commit intomainfrom
ref-to-choice

Conversation

@dsagal
Copy link
Copy Markdown
Member

@dsagal dsagal commented Apr 18, 2026

Context

A Reference or Reference List column may show a column from the referenced table of type Choice, but it's always rendered without color. It would be nicer to keep the styling in such cases.

Proposed solution

If the "Show Column" is of type Choice, use that Choice's styling for rendering a Reference or Reference List column.

Related issues

#1222

Has this been tested?

TBD: Tests to be created. Also, when entering a reference data, we could be showing colored choices, but the PR doesn't have this yet.

  • 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because this is not relevant here
  • 🙋 no, because I need help

Screenshots / Screencasts

Preview with an example here: https://grist-gristlabs-grist-core-ref-to-choice.fly.dev/sbufBSzwPXTz/Restaurant-Inventory/p/8

Screenshot showing what it looks like:

Screen Shot 2026-04-17 at 22 37 49

@dsagal dsagal added the preview Launch preview deployment of this PR label Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Deployed commit 4a0d66d3ac8c11aeaaae7d3586e12518c9bcc7d0 as https://grist-gristlabs-grist-core-ref-to-choice.fly.dev (until 2026-05-18T02:11:17.389Z)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Launch preview deployment of this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant