insightsengineering / insightsengineering/teal.picks

[Feature Request]: Improve the UI when using a picks object with values

Open
#95 0 comments 1 reaction 0 assignees View on GitHub
core enhancement
Dominant language
R
Stars
4
Forks
0
Avg merge
6d 11h
Merged PRs (30d)
3

Description

### Feature description

Picks objects where users can choose variables and values depending on the variable selected, appear in the app trough `picks_ui`. This UI component might be limited to reproduce some UI patterns, for example the observed in teal.osprey spiderplot or butterfly module, where by using two teal.widgets components we first select a variable, then a value depending on the value.
Here is an example of a use case from [teal.osprey](https://github.com/insightsengineering/teal.osprey/pull/335)

Image

From ADAE dataset. we choose RACE as variable and show the values (with constraints). The screenshot show two connected `teal.widgets`. Ideas to achieve this feature

- Custom wrapper using default `picks_ui`
- Custom picks_ui container
- Improve picks_ui to allow for options for variables or values only

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct.

### Contribution Guidelines

- [x] I agree to follow this project's Contribution Guidelines.

### Security Policy

- [x] I agree to follow this project's Security Policy.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing picks_ui component and the teal.osprey PR 335 example linked in the issue. Compare the proposed wrapper, custom container, and picks_ui options approaches; done should mean the UI supports dependent variable and value selection patterns like the RACE example.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.