insightsengineering / insightsengineering/teal.picks

[Feature Request]: Have popup box opened and fixed

Open
#74 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
R
Stars
4
Forks
0
Avg merge
6d 11h
Merged PRs (30d)
3

Description

### Feature description

Current UI is simple and minimal, but doesn't allow for easy option to keep the contents of the popup expanded.

Users might require this to avoid having to perform multiple clicks to change a popular option of the module

It should be easy as the screenshot below achieved with the following diff. The actual solution would need to be parameterized.

```diff
diff --git a/R/module_picks.R b/R/module_picks.R
index 3efc37c..1dfbbb9 100644
--- a/R/module_picks.R
+++ b/R/module_picks.R
@@ -64,7 +64,8 @@ picks_ui.picks <- function(id, picks, container) {
if (all(vapply(picks, is_pick_fixed, logical(1)))) {
fixed_picks(id = ns("inputs"), badge_label)
} else {
- badge_dropdown(id = ns("inputs"), label = badge_label, htmltools::tagList(content))
+ htmltools::tagList(content)
+ # badge_dropdown(id = ns("inputs"), label = badge_label, htmltools::tagList(content))
}
} else {
if (!any(sapply(htmltools::tags, identical, container))) {

```

Image

### 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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.