Skip to contents

Creates the user interface for the modBrowse collection browsing module. Renders a filterable, sortable grid of artwork cards with collection selection and statistics display. Designed to be embedded in parent Shiny applications via `appPlatform`.

Use this when building collection browse pages in the main platform app. For standalone testing, use [run_app()]. The module requires reactive data from the parent app containing artist context and artwork collections.

The UI includes: - Collection selector dropdown with artwork counts per collection - Statistics dashboard showing collection metrics via [enhancedStatsUI()] - Filter controls (NFT, prints, variants, listed status) - Sort controls (date, strokes, time) with ascending/descending toggle - Responsive artwork card grid using [artDisplayCard()]

Usage

modBrowseUI(id)

Arguments

id

Character. Shiny namespace ID for the module instance. Used by [shiny::NS()] to create unique element IDs and prevent naming conflicts when multiple browse instances exist in the same app.

Value

A `shiny.tag.list` containing the complete browse UI structure, including collection selector, filter controls, sort controls, stats display, and artwork card grid. Return value is passed directly to the app UI definition.

See also

* [modBrowseServer()] for the corresponding server function * [enhancedStatsUI()] for the statistics display component * [run_app()] for standalone testing

Other browse-core: modBrowseServer()

Examples

if (FALSE) { # \dontrun{
# In your Shiny app UI
ui <- bslib::page_fluid(
  modBrowseUI("browse")
)
} # }