structure_suggestions: Generate ranked, concept-grouped, actionable UI/UX...

View source: R/structure_suggest.R

structure_suggestionsR Documentation

Generate ranked, concept-grouped, actionable UI/UX suggestions

Description

Creates structured suggestions organized by UX concepts with specific component recommendations and rationales. Suggestions are ranked by relevance and grouped by concept for systematic implementation.

Usage

structure_suggestions(
  previous_stage,
  chosen_layout,
  concepts = NULL,
  quiet = NULL
)

Arguments

previous_stage

A tibble or list output from an earlier BID stage

chosen_layout

Character string with the selected layout type

concepts

Optional character vector of additional concepts to include

Details

The function combines concepts from multiple sources:

  • Stage 1 theory (from Notice)

  • Stage 2 inferred concepts (from keywords in story)

  • Optional user-provided concepts

Each suggestion includes:

  • title: Brief actionable description

  • details: Specific implementation guidance

  • components: R dashboard component recommendations (shiny::, bslib::, etc.)

  • rationale: 1-2 sentence explanation

  • score: Relevance ranking (0-1)

Framework Compatibility: Components prefixed with 'shiny::' require Shiny runtime (either a Shiny app or Quarto dashboard with server: shiny). Components from bslib, DT, plotly, reactable, and leaflet work in both Shiny apps and static/OJS Quarto dashboards.

Value

List of concept groups with ranked suggestions


bidux documentation built on Nov. 20, 2025, 1:06 a.m.