Doist / Doist/ui-extensions

ChoiceSet expanded style does not show as radio

Open
#71 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3
Forks
1
Avg merge
1d 6h
Merged PRs (30d)
21

Description

The style attribute of ChoiceSet does not influence the appearance of the rendered object. The expected behavior is for the choices to appear as a group of radio buttons. The current behavior shows the rendered object as a dropdown for both compact and expanded values.

Examples

From the Todoist Integration Examples Lorem Ipsum example:

const choiceSet = new ChoiceSetInput()
choiceSet.id = 'Input.Choice'
choiceSet.style = 'expanded'
choiceSet.choices = [
    new Choice('1'),
    new Choice('2'),
    new Choice('3'),
]
choiceSet.defaultValue = '1'

card.addItem(choiceSet)

image

From an integration I'm currently working on:

{
  "type": "Input.ChoiceSet",
  "id": "dayChoice",
  "label": "Expires",
  "style": "expanded",
  "choices": [
      {
          "title": "Today",
          "value": "today"
      },
      {
          "title": "Tomorrow",
          "value": "tomorrow"
      }
  ]
}

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing ChoiceSetInput rendering and how its style attribute is handled. Verify the behavior using the TypeScript and JSON examples in the issue; done means expanded choices render as radio buttons while compact choices remain a dropdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.