
Build Grouped Choices for Schema Column Dropdowns
get_schema_choices_grouped.RdBuilds a named list of named character vectors suitable for selectInput
or selectizeInput with optgroups. Columns are grouped by their category
from the database or hardcoded config.
Arguments
- column_descriptions
Named list of column descriptions (from
.get_column_descriptions()). Each element should be a list with at leastdescriptionand optionallycategory.- schema_columns
Character vector of all valid schema column names.
- user_col
Optional: name of the user column being mapped, used to sort choices within each group by string similarity (most relevant first).