Skip to content

Add chart ordering via YAML and fix DataTables issue in Participant Selector.#505

Merged
jwildfire merged 2 commits intofix-441from
fix-data-tables
Apr 13, 2021
Merged

Add chart ordering via YAML and fix DataTables issue in Participant Selector.#505
jwildfire merged 2 commits intofix-441from
fix-data-tables

Conversation

@samussiah
Copy link
Contributor

@samussiah samussiah commented Mar 23, 2021

Also remove the majority of inst/htmlwidgets/lib (#506). Not sure why we still need the inst/htmlwidgets folder unless part of the UI is htmlwidgets-driven.

@samussiah samussiah requested review from jwildfire and xni7 March 23, 2021 19:40

charts <- charts[order(purrr::map_dbl(charts, function(chart) chart$order))]

names(charts) <- yaml_files %>% file_path_sans_ext %>% basename
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need to call names() before order() since yaml_files isn't getting reordered. looks good otherwise!

@jwildfire jwildfire merged commit 7aa04fe into fix-441 Apr 13, 2021
@jwildfire
Copy link
Contributor

Merging - Looks good. Will test a bit before finalizing #494.

@jwildfire jwildfire deleted the fix-data-tables branch April 13, 2021 13:22
@xni7
Copy link
Contributor

xni7 commented Apr 13, 2021

@samussiah @jwildfire this looks good. However, I will open a new issue as this will affect the "add a new chart" workflow #472. I think we can also add this to the RStudio add-in to allow users to sort the charts

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.

3 participants