glasstabs 0.4.2
Final workspace and form additions
- Add opt-in persistent tab ordering (
persist_order,initial_order,order_key), server-approvedclosabletabs and touch/pen drag handles (touch_reorder). - Add native-bound
glassSwitch(),glassRadioGroup()andglassCheckboxGroup(). - Keep dropdown panels within the visible viewport, with a whole-panel scrolling fallback in tight spaces.
- Clear the active state when the final tab is hidden, disabled or removed; support immediate reappend after cancellation.
- Add release and component guides, update existing articles and cheatsheet source, and add focused integration tests.
Navigation and layout
- Add segmented navigation and refine the attached underline presentation.
-
transition = "none"activates the pane and indicator immediately. - Add opt-in spacing, fillable content, equal-width tabs and single-tab hiding.
-
reorderable = TRUEenables desktop drag reordering and Alt+Shift+arrow keyboard reordering without recreating panes. The-tab_orderinput reports all tab values. Rebuilding the widget from R follows the supplied tab order unless browser persistence is enabled. Applications can also restore their own saved order usinginitial_order.
Select appearance and integration
- Add
glass_strength(0 to 1) across tabs and both select widgets, andsizefor compact or large select triggers. Existing defaults remain. Decorative transfer intensity follows glass strength and is skipped at zero. - Add independent
trigger_bganddropdown_bgcustom theme surfaces. - Single-select accepts
dropdown_max_heightfor its option list. - Long single- and multi-select lists show a subtle “Scroll for more” cue while more options remain below. Open panels limit their option area to the available viewport space and update the cue after scrolling, filtering, choice updates and resizing. Rebinding a select keeps one cue and releases its previous scroll listener. Revealing an active option scrolls only the option list, keeping the page and dropdown anchor in place.
- Closed select fields no longer create a positive stacking level. Host overlays and Bootstrap layer changes close portaled dropdowns immediately; ordinary close retains its retract animation. Dropdowns opened inside a Bootstrap 3 or 5 modal or a Bootstrap offcanvas stay within its focus boundary.
- Refresh open portaled panel theme variables on live mode changes. Scope the box-sizing reset to widget areas rather than the entire application.
- Respect explicit select widths below 160px, including narrow embedded filters. Keep the 160px default width when no width is supplied.
- Keep nested tab navigation layouts, shapes, themes and indicator styles independent. Close dropdowns when their pane becomes inactive. Dynamically appended tabs load dependencies and bind Shiny inputs and outputs before exposing the new navigation link; failed or canceled appends leave the previous tab intact. Unrelated UI updates no longer reinitialize existing tab controllers.
- Expand the modernization lab with glass configuration controls, one/three/six tab layouts, lifecycle actions and a labeled native Shiny comparison. Add focused unit/browser regression coverage.
glasstabs 0.4.1
CRAN release: 2026-10-30
0.4.1 is a stabilization release: the dropdowns keep their look and gain predictable behavior. Highlights: the tongue dropdown (the panel unfurls flush from the field), accessible chrome controls (real buttons with arrow-key navigation and full ARIA semantics), selection correctness (one Select-all scope, server disabled choices, an “All” row that survives updates), server reliability (value search, sequenced responses, a stuck-search guard, indexed filtering), and a documentation reorganization (selection semantics, server precision, module and linked-filter recipes, troubleshooting, migration, and an example gallery). The detailed fixes follow.
Fixes
The pkgdown articles now give multi-select its own prominent Selects entry, backed by a complete guide to selection semantics, search, summaries, tag pills, linked filters, server search, transactional updates, accessibility, and migration from native Shiny multi-selects. Cross-links keep the single-select and multi-select documentation equally discoverable.
glassSelect()now supportssearchable = "auto"with a configurablesearch_threshold, matching the multi-select behavior. Short lists can keep the search field hidden and reveal it automatically as choices grow. Both settings can also be changed withupdateGlassSelect().glassSelect()automatic search no longer counts the synthetic “All” row towardsearch_threshold: withinclude_all = TRUE, the search box appears only once the real choice count reaches the threshold.Select and tab constructors now reject invalid logical arguments instead of silently treating values such as
"yes"asFALSE; update helpers validate sessions, disabled state, and missing selections consistently. Choice and integer settings reject missing or out-of-range values before rendering.glassSelect()now honors an explicitdark_selectorin fixed light themes as well as automatic themes, matching tabs and multi-selects. Choice-only updates preserve existing disabled rows unlessdisabled_choicesis explicitly supplied, and server-backed selects no longer resend their already-rendered initial page during registration.Hyphenated tab ids no longer produce a false namespacing warning. Initial and appended tabs now emit the same clean class names, and select dropdown base positioning matches the absolute positioning used while teleported.
Ellipsized single-select trigger text now exposes a viewport-safe label preview through a hover/keyboard tooltip by default. Truncated multi-select options expose the currently hovered or keyboard-active option inside the open dropdown, without combining selected labels into a noisy trigger tip. Single-select options expose the same hover/keyboard preview inside the open dropdown. Set
overflow_tooltip = "never"to disable visual tooltips; full accessible names remain available, and touch users can open the dropdown to read the wrapped option. The formerly dark-only built-in examples now include live light/dark switches and usetheme = "auto"consistently. Example apps now return standard Shiny app objects for automated launchers, and an obsoleteshinyjsscratch app was removed from the installed examples.Select chrome controls are now real buttons reachable by keyboard: the multi-select style switcher, Select-all row, and Clear-all button, and the single-select Clear button, all take arrow-key focus inside the open dropdown (Tab still closes and exits). Multi-select listboxes now report
aria-multiselectable, field labels are associated with their triggers, search fields have accessible names, and the Select-all row reports its tri-state (true/mixed/false) instead of a plain selected flag.The multi-select Select-all indicator now uses the same enabled-and-visible scope as the Select-all click: a disabled option no longer makes the indicator read partial when every selectable option is selected, and the initial indicator uses the same scope. Previously the indicator counted visible options including disabled ones while the click skipped them.
glassSelectServer()andglassMultiSelectServer()now acceptdisabled_choices, so a disabled value takes effect when it first arrives in a server search response instead of only when it was already rendered.NULL(the default) preserves the previous behavior of keeping already-loaded disabled state.glassSelect()choices updates no longer drop the synthetic “All” row: widgets created withinclude_all = TRUEkeep the row — and an active “All” selection — acrossupdateGlassSelect()calls.Client-side search now matches option values as well as labels, matching server-side search: typing a value finds its option even when the label does not contain it.
Server search responses now carry the sequence of the search they answer, and the browser ignores a response older than the latest search issued for that widget, so rapid typing cannot leave stale results on screen. The sequence replaces the old timestamp nonce, which served the same retriggering purpose.
A server search that never receives a response no longer leaves the “Searching…” status stuck: it clears on its own after ten seconds. A late response still applies normally.
Search filtering no longer scans all choices for every visible row: the option-visibility pass uses a value-to-choice index rebuilt on every choices update.
Documentation: the multi-select guide gains an “All, Some, and None” selection section with explicit empty-means-none and empty-means-all patterns, and the server-search section now states the two independent limits (
server_limitfor the initial slice, the*Server()helper’slimitper search) and the bounded-not-paginated result model; the wrongserver_limitwording (“returned for each server-side search”) is corrected in both roxygen blocks and both help files. New recipe articles cover Shiny modules and dependent dropdowns / dynamic UI, and the single-select guide documents the “All” option’s behavior, invalid-selection clearing, and server edge cases.Select field titles now default to a distinct 14px semibold treatment and accept
label_sizealongsidelabel_bold. Dropdown search uses a quieter neutral focus treatment by default;search_focus_ring = TRUEopts into the accent outline. The native-comparison lab groups shared settings separately from the feature controls for each demonstration.Select dropdowns match their trigger width, wrap longer option labels inside that shared width, and clamp safely to narrow viewports. The multi-select Check / Box / Fill switcher also falls back to compact text-only buttons on extremely narrow screens, so Fill is never clipped.
Added
runGlassExample("light-mode"), a dedicated light-interface example covering tabs, single-select, multi-select, and intentionally long labels.no_matches_textmoved to the end of theglassSelect()andglassMultiSelect()signatures. It was added in the middle, so existing positional calls could silently bind the wrong arguments.The full-screen overlay observer now watches the whole document subtree and scans descendants of inserted nodes, so overlays nested inside app wrappers and hidden overlays revealed by class/style toggles also dismiss open select dropdowns. Browser tests cover the nested and toggled cases.
glassTabsUI(content_min_height = NULL)(the new default) no longer writes an inline--gt-content-min-height, restoring the60pxcompact minimum: compact widgets use60px, regular widgets120px, and an explicitly supplied value still wins.Attached vertical tabs in RTL layouts now fully reset to the stacked top-bar layout below 760px (the base
[dir="rtl"]rules previously outranked the narrow-screen reset, leaving side borders and corner radii active).%||%is internal again instead of exported: its length-zero fallback semantics differ fromrlang::%||%, and exporting it risked masking between the two. Vignettes and example apps now use a small localfallback()helper.updateGlassTabBadge()caps huge counts at 100 instead of lettingas.integer()coerce them toNAwith a warning; the browser already renders anything above 99 as"99+".glass_tab_theme()docs no longer claim unset fields always inherit dark defaults; they inherit from themodebase preset. The README function table now listscontent_min_height,style, andtransitionin theglassTabsUI()signature.The
%||%operator is internal (@noRd) rather than a documented export, soR CMD checkhas no|-in-\nameconcern at all.Browser-test and stylesheet tests updated to match intended behavior: open dropdowns reposition (not close) on window resize, and
color-mix()inglass.cssis used only where unsupported browsers degrade gracefully.The spelling wordlist now covers package vocabulary (
mojibake,rlang,shinytest,ungrouped), and browser tests clean up Chrome’s temp directories soR CMD checkreports no detritus.Vignettes and example apps that used
%||%now define a small localfallback()helper instead; the operator stays internal to the package.updateGlassTabBadge()no longer crashes oncount = NULL;NULLand empty vectors hide the badge likeNAdoes. Non-numeric, multi-length, negative, or infinite counts now raise a clearglasstabs_error_bad_argumenterror instead of producing corrupt messages.glassTabPanel()validates thatvalueandlabelare single strings, replacing cryptic downstream errors (empty labels remain allowed for icon-only tabs).glass_tab_theme()gains amodeargument ("dark"/"light"). Unset fields now inherit from the mode’s base preset, and light-mode custom themes receive the structuraltheme-lightclass inglassTabsUI()(previously a dead branch).Invalid tab theme presets no longer list
"auto"as valid;"auto"is resolved byglassTabsUI()before theme resolution runs.glassSelect()andglassMultiSelect()reject duplicate choice values with a clear error instead of rendering ambiguous duplicate options.Out-of-range
rgb()/rgba()components are clamped the way browsers do, and malformed components yield a clean fallback instead of invalid CSS.Server-mode
glassMultiSelect()now renders every explicitly selected value outside the initialserver_limitslice as an extra checked row, so pre-selections stay visible (previously only a single out-of-slice value got an extra row). Default selections remain bounded to the slice.Grouped-
choicesdocs now note that a one-element named list is treated as a flat choice, mirroringshiny::selectInput().Vignettes now document the
input$<id>_readysignal emitted once a select widget finishes initializing.Removed the dead
glasstabs_close_selectcustom message handler and its orphanedcloseDropdownById()helper fromglass.js; single-widget closes travel through the widget controllers via input messages.Corrected a stale CSS comment that claimed teleported dropdowns use
position:fixed(they deliberately useposition:absolute).Open select dropdowns no longer slam shut when an unrelated Shiny output updates. Only dropdowns anchored inside the updated output are closed, so dropdowns stay usable next to live outputs like timers and previews.
Window resizes (mobile URL-bar show/hide, the on-screen keyboard) now keep open select dropdowns glued to their trigger via repositioning instead of closing them. Dropdowns still close when their trigger is detached or has no layout box.
Open select dropdowns are now dismissed when a full-screen overlay appears (loading screens, waiter veils, custom overlays), instead of floating above or lingering beneath it. Smaller floating panels do not trigger this.
glassSelect()andglassMultiSelect()gain ano_matches_textargument to customize the “No matches” empty-search message.Tab content now sits in a subtle glass container by default (barely-there background and hairline border) instead of an invisible box, so the tab bar and content read as one component. The old invisible look is still available via
glass_tab_theme(content_bg = "transparent", content_border = "transparent"). Double padding between the tab bar and content is gone (22px instead of 44px) and the tab bar sits slightly closer to the content.glassTabsUI()gainscontent_min_height(defaultNULL, using the regular 120px or compact 60px layout minimum) in place of the fixed 200px minimum; use"0"for none, and an explicitly supplied value always wins.Tabs feel connected to their content: the active tab now shows a subtle inner light on its content-facing edge (bottom for horizontal tabs, side for a vertical rail, RTL-aware) in the halo color, and the content box’s top edge picks up the same halo color to bridge the gap. The underline indicator keeps its own connection cue.
glassTabsUI()gainsstyle = "attached", which docks the tab bar directly onto the content box so they share one border and read as a single unified card ("floating"keeps the default two-piece look).glassTabsUI()gainstransition = "slide", sliding panes horizontally in the direction of travel following tab order ("fade"keeps the default fade-and-rise).Server-side choice search now normalizes the choice set once per widget instead of on every keystroke, making search over large choice sets noticeably snappier.
Server search responses now apply only when they answer the latest issued search for the widget: a stale response can no longer replace current results or disarm the latest search’s loading guard.
Empty-string choice values are now ordinary values in
glassSelect(): selecting one reports"", while clearing the field reportsNULL.updateGlassSelect()withselected = ""now selects the empty-string choice instead of clearing: the server-update path still converted""toNULLbefore the controller saw it.
Docs and examples
- Fixed stale
v0.4.0references, a placeholder GitHub username in the getting-started vignette, mojibake em dashes in the dashboard/bs4dash examples, and a wrong input id in the basic example’s narrative. - The pkgdown reference now indexes
closeGlassMultiSelectandcloseAllGlassSelects;%||%remains an internal helper. - CI now installs stable Chrome so the shinytest2 browser suite actually runs instead of failing on a missing browser.
- The linked-filter recipe no longer teaches silencing intermediates behind a single notification: every input whose server value must sync needs its own notification.
- The migration guide now defines its sample dataset, and its final example runs end to end.
- Both migration examples are now individually runnable: the native example ends in
shinyApp()and the glasstabs example defines its own dataset instead of reusing the before example’s objects. - Server search wording now says bounded, not paged, everywhere.
Select dropdown sizing
- Select dropdowns now open like a tongue from the field: the panel attaches flush against the trigger with no gap, the adjoining corners square off so the two read as one continuous surface, and the panel unfurls with a smooth scale animation anchored at the attached edge. When space is tight below, the panel flips above the field and the tongue retracts upward instead.
-
glassSelect()andglassMultiSelect()dropdown panels now follow their trigger width. Short option lists stay aligned with the field instead of opening a wider fixed panel, while the viewport cap still protects narrow screens. - Long option labels, group headings, and unbroken identifiers now wrap inside the panel instead of being clipped or creating horizontal overflow.
-
glassMultiSelect()gains configurable and automatic search visibility, compact count or label summaries, and a configurable option-list height. -
updateGlassMultiSelect()now applies linked changes as one transaction, preserves or drops selections explicitly, and can notify Shiny only when the effective value changes, always, or never. -
glassMultiSelectValue()now keeps the raw selection while offering a separate resolved value for apps where an empty filter means none, all, orNULL.
glasstabs 0.4.0
CRAN release: 2026-09-11
Responsive and accessible navigation
- This release makes tabs more dependable on small screens and for people who use a keyboard, screen reader, reduced-motion setting, or high-contrast mode.
-
glassTabsUI()gainsoverflowand opt-inswipecontrols. The selected tab stays visible in a scrolling strip, multiline tabs remain available, and menu mode provides a compact native chooser. - Tabs now use roving keyboard focus, Home/End navigation, and explicit ARIA relationships between each tab and its panel.
- Rapid tab changes now settle as one consistent state across the active link, content pane, halo, compact menu, and Shiny input. Interrupted destinations do not trigger transient server work.
-
glass_tab_theme()andglass_select_theme()gain afocus_ringcolor. Tabs, select triggers, and search fields share a deliberate focus treatment, including search fields inside teleported dropdowns. -
glassPage()is an experimental, lightweight wrapper aroundbslib::page_fillable()that loads the glasstabs dependency automatically. - Missing optional packages now report the documented
glasstabs_error_missing_packagecondition class. - Tab clicks and keyboard activation no longer pass through a second fallback initialization, so the glass halo keeps its full movement in vertical and horizontal layouts. The arrival pulse also preserves the halo’s settled alignment with the active tab in both orientations.
- Compact-menu options now use an explicit native dark or light colour scheme, keeping option text readable when the operating system opens the select menu.
-
tab_alignnow places the tab group in both orientations. The newtext_alignargument independently aligns labels and icons inside tab buttons, keeping layout and text choices separate. Non-centered horizontal labels use equal button widths so their alignment remains visible. - Compact menu overflow is now documented and validated as a horizontal-only layout. A vertical tab rail paired with
overflow = "menu"gets a clear error instead of silently ignoring the setting. -
glassSelect()andglassMultiSelect()dropdowns now close reliably on an immediate outside press, including when a loading veil or overlay stops bubbling events. Closing during the opening frame also cancels pending positioning and focus work, preventing a dropdown from reappearing after it has closed. Programmatically opened Bootstrap modals and offcanvas panels also close any open dropdown before the new layer appears. - Dynamically rendered tab widgets now release their timers, browser listeners, observers, and animations when Shiny removes them from the page.
-
glassPage()now declares and checks its minimum supportedbslibversion, so an older optional dependency produces a useful update message.
glasstabs 0.3.4
CRAN release: 2026-07-31
Internal consistency and diagnostics
- Refactored internal rendering, theme CSS, hue generation, serialization, and validation without changing exported signatures, rendered HTML contracts, or Shiny message formats.
- Package-generated errors now inherit from
glasstabs_error, with the leaf classesglasstabs_error_bad_argument,glasstabs_error_bad_choice,glasstabs_error_bad_theme, andglasstabs_error_no_session. This makes errors easier to catch programmatically while retaining instructive messages. - Side-effect update helpers now consistently return
NULLinvisibly, as documented. -
glassTabCondition()now emits valid single-backslash JavaScript escapes for carriage returns, newlines, tabs, and Unicode line separators in tab values. - Added golden HTML and message-payload regression tests, lint configuration, and a coverage workflow.
Vertical orientation
- New
orientationargument forglassTabsUI():"vertical"stacks the tab buttons in a left-hand rail beside the content pane. ArrowUp/ArrowDown navigate in vertical mode,aria-orientationis set on the tablist, andindicator = "underline"renders as a slim side bar adjacent to the content. Falls back to stacked layout under 760px. - New
tab_alignargument forglassTabsUI():"center"(default),"left", or"right"aligns tab button text and icons.
bslib / Bootstrap 5 auto theming
- New
theme = "auto"preset bridges to Bootstrap 5 color modes: light variables apply by default and dark variables apply underdata-bs-theme="dark", toggled live in the browser (works withbslib::input_dark_mode()/toggle_dark_mode()with no server code). -
glassSelect()andglassMultiSelect()also supporttheme = "auto"so their triggers and dropdown panels keep the glass look in both light and dark Bootstrap 5 color modes.
New example and article
-
runGlassExample("indicators")demos the three indicator styles, vertical orientation, and auto theming side by side. - New “Indicator Styles, Vertical Tabs, and Auto Theming” article.
-
runGlassExample("connect-workflow")provides a Posit Connect-ready workflow review page showing filters, badges, server-driven tab changes, horizontal/vertical tabs, tab text alignment, and auto theming in one deployable Shiny app. - The Connect workflow example now has stronger dark-mode contrast, auto-themed glass select dropdowns, neutral quick-action buttons with selected state, indicator and tab shape controls, and a responsive controls grid for narrower browsers. Closed
glassSelect()andglassMultiSelect()fields remain readable when the page is in dark mode. - New “Publishing a glasstabs Workflow to Posit Connect” article.
Select dropdown positioning
- Teleported
glassSelect()andglassMultiSelect()dropdowns now clamp to the viewport, so narrow browser widths no longer cut off the left or right edge of the dropdown panel.
Tab indicator
- New
indicatorargument forglassTabsUI():"glass"(default),"solid"(flat opaque sliding pill, nobackdrop-filteror shimmer - lighter on the GPU and better suited to plain dashboards), and"underline"(slim sliding bar under the active tab).
Halo alignment fixes
- The halo now fits the active tab exactly from its rendered edges, avoiding the right-side spill that could appear after initial load or tab changes.
- Initial halo placement now starts at the full tab size instead of briefly rendering a smaller centered outline before the first tab change.
- Default and compact tab buttons are larger and easier to hit.
- Halo position now accounts for container borders (
clientLeft/clientTop), fixing a horizontal shift inside bordered fallback containers such as bs4Dash.card-body. - A
ResizeObserverre-aligns the halo whenever tab geometry changes without a window resize: badge count updates, label changes viarenderUI, font swaps, or sidebar collapse.
Dropdown lifecycle
- Added
closeGlassSelect(),closeGlassMultiSelect(), andcloseAllGlassSelects()so apps can explicitly close dropdowns before tab switches, modal changes, or dynamic UI replacement. -
glassSelect()andglassMultiSelect()now expose open state asinput$<inputId>_open. - Open dropdowns now close on additional lifecycle events, including outside pointer-down, window resize, Bootstrap tab/modal/collapse hiding, sidebar/offcanvas transitions, Shiny value replacement, and Shiny disconnect.
glasstabs 0.3.3
CRAN release: 2026-06-25
Released to CRAN.
Native-layout parity
-
glassSelect()andglassMultiSelect()gained awidthargument (passed toshiny::validateCssUnit()) so the widgets can fill a column or match a fixed layout, like nativeselectizeInput(). - Both selects now accept grouped choices as a named list, selectInput()-style (e.g.
list(Fruit = c(Apple = "apple"), Veg = c(...))), rendering non-interactive group headers. Search hides headers whose options are all filtered out. - Added disabled support:
disabled = TRUEgreys out and blocks the whole widget, anddisabled_choicesrenders individual options as non-selectable. Both are also reachable at runtime viaupdateGlassSelect()/updateGlassMultiSelect()(disabled,disabled_choices). Disabled options are skipped by “Select all”. -
glassTabsUI()gained ashapeargument ("rounded"default or"square") so the tab bar and content corners can matchshape = "square"selects for a cohesive, selectize-style layout.
Square corners
- Added a
shapeargument toglassSelect()andglassMultiSelect(). The defaultshape = "rounded"keeps the signature glass look, whileshape = "square"applies crisp, selectize-style corners so the widgets sit flush next to nativeselectizeInput()controls without looking out of place. -
updateGlassSelect()andupdateGlassMultiSelect()gained ashapeargument so the corner style can be switched at runtime from the server without re-rendering the widget (open dropdowns and selection state are preserved). - Added a
runGlassExample("square-corners")example app that demonstrates the square shape live alongside nativeselectizeInput(), including a runtime rounded-vs-square toggle viaupdate*()and a light-theme variant. - Added a
runGlassExample("bslib")example app that shows squareglassSelect()andglassMultiSelect()controls inside a Bootstrap 5bsliblayout.
Large choice sets
- Added opt-in server-side search support for large
glassSelect()andglassMultiSelect()choice sets viaserver = TRUE,glassSelectServer(), andglassMultiSelectServer(). - Added loading and no-results states for select search results, including server-backed search responses.
- Added a runnable
runGlassExample("server-select")example and vignette sections for server-backed single- and multi-select controls.
Bug fixes
- Fixed
updateGlassMultiSelect()updates being lost when a multi-select is created or replaced byrenderUI()in the same reactive flush. Dynamic updates now target the replacement widget and retry briefly while it binds. - Fixed scalar
selectedvalues being interpreted as an empty selection by the multi-select JavaScript binding.
glasstabs 0.3.2
CRAN release: 2026-05-23
Public dashboard readiness
- Removed all
color-mix()usage from the shipped stylesheet. Select widget alpha colors are now precomputed as CSS custom properties at render time for better compatibility with older embedded browsers. - Added ARIA combobox/listbox/option semantics to
glassSelect()andglassMultiSelect(), with JavaScript keepingaria-expandedandaria-selectedin sync during interaction. - Improved keyboard behavior for select widgets: Escape and Tab close open dropdowns and return focus to the trigger; single-select option clicks also return focus.
- Added CSP nonce support for inline style tags via the
glasstabs.csp_nonceoption. - Added Windows High Contrast (
forced-colors) CSS support and RTL layout support for tabs and select widgets. - Improved narrow-screen select trigger behavior so labels truncate cleanly inside dashboard cards instead of overflowing.
Bug fixes
- Fixed tab initialization for
glassTabsUI()inserted byrenderUI()or dashboard layouts after the initial page boot. - Added a Shiny input binding and delegated activation fallback for tabs so click and keyboard activation remain reliable in public dashboards.
- Bumped the html dependency version so browsers request fresh CSS/JS assets.
glasstabs 0.3.1
New features
- Added
glassTabCondition(id, value)— generates the correct JavaScript condition string for [shiny::conditionalPanel()] without needing to remember theinput[["id-active_tab"]]key pattern. - Added
glasstabs_news()— prints the package changelog to the R console. - Added
ROADMAP.mdtracking planned features and known limitations (not shipped in the package).
Improvements
- Error messages across all functions are now actionable: they name the bad argument class, show what was received, and suggest the correct fix.
-
glass_tab_theme()andglass_select_theme()now have full@exampleswith interactive app snippets. -
.gt-containerno longer forcesmax-width:960pxormargin:48px auto— the widget now behaves like a normal block element inside Shiny layouts. - Light-mode halo box-shadow replaced with a soft blue-tinted shadow via the
--gt-halo-shadowCSS variable, replacing the harsh dark drop shadow.
glasstabs 0.3.0
New features
Tab widget
- Added
runGlassExample()to launch any of the built-in example apps directly from the R console (runGlassExample("smoke-test"), etc.). - Added
iconargument toglassTabPanel()— accepts any htmltools-compatible tag (e.g.shiny::icon("table")). Renders withgt-tab-icon/gt-tab-labelspans so icon and text can be styled independently. - Added
disableGlassTab()andenableGlassTab()— gray out a tab without hiding it. Completes the visibility/disabled/removal trio alongsideshowGlassTab()/hideGlassTab(). - Added
updateGlassTabBadge()— set a numeric count badge on any tab button. Passcount = 0orcount = NAto hide the badge. Values above 99 display as"99+". -
glassTabsServer()now integrates with Shiny’s URL bookmarking: the active tab is automatically saved and restored whenenableBookmarking = "url"is set on the app. Opt out per widget withbookmark = FALSE. - Added
glassTabsOutput()/renderGlassTabs()for server-driven tab rendering. The JavaScript engine re-initialises automatically after each render via a scopedshiny:valuelistener, so no manualglasstabs_reinitcalls are needed.
Improvements
-
glassTabsUI()now errors early on duplicateglassTabPanel()values, reporting the offending value(s) by name. -
glassTabsUI()gains acompact = FALSEargument. Settingcompact = TRUEapplies the.gt-compactCSS modifier which reduces margins, tab-link padding, font size, and content area padding — ideal for embedding inside bs4Dash cards or any tight dashboard layout. -
glassTabsServer()emits awarning()when theidargument contains"-", which is the most common sign thatns("tabs")was passed instead of the bare"tabs"id. The warning includes corrective guidance. - CSS: added
.gt-tab-disabled,.gt-tab-icon,.gt-tab-label, and.gt-tab-badgerules. Badges adapt their background to the active halo colour via the existing CSS custom property. - CSS: all color values are now consumed via
var(--gt-xxx, fallback)instead of being hardcoded — this was the root cause of light theme appearing invisible. Light theme defaults were also strengthened for better contrast. - CSS: dropdown active-state z-index raised to 9000/9001 so glasstabs dropdowns render above bs4Dash card stacking contexts.
-
shiny:valuelistener limits bootAll re-initialisation to outputs that actually contain glasstabs elements, so ordinary Shiny outputs are unaffected. - Added
inst/cheatsheet/glasstabs-cheatsheet.tex— a printable four-column LaTeX reference card covering the full API, module pattern, bs4Dash integration, theming, and common gotchas.
glasstabs 0.2.1
CRAN release: 2026-04-11
New features
Tab widget
- Added
updateGlassTabsUI()for programmatic tab switching from the server. - Added
showGlassTab()andhideGlassTab()for dynamically showing and hiding tabs at runtime. - Added
appendGlassTab()andremoveGlassTab()for adding and removing tabs at runtime.
Improvements
-
glassTabsUI()now validatesselectedagainst the availableglassTabPanel()values and errors early on invalid tab ids. - The tab widget now reports its initial active tab to Shiny immediately after session startup, so
glassTabsServer()is populated on first render. - Added ARIA roles and selected-state attributes to tab navigation markup.
- Improved tab re-initialization and transition handling for dynamic tab changes, including show/hide, append/remove, and rapid successive updates.
- Improved halo and transfer-trace positioning after runtime tab layout changes.
Bug fixes
Opening a dropdown now closes any other open glasstabs dropdown, fixing a visual stacking issue where multiple dropdowns appeared simultaneously.
Improved widget lifecycle in dynamic UI (
renderUI(),conditionalPanel()). Widgets initialize more reliably and clean up properly when removed.Widgets now emit their initial value to Shiny immediately after rendering, fixing timing issues with
conditionalPanel()and dynamic UI.
Internal improvements
JavaScript engine refactored to use internal state instead of DOM scanning. No changes to the R API — all existing code works without modification.
Added scroll containers for long option lists, debounced search, and
.gt-loading/.gt-disabledCSS utility classes.
Documentation
- Added a dedicated cheatsheet vignette for common widget patterns and server-side helpers.
- Added a smoke-test example app covering programmatic tab switching, dynamic tab visibility, runtime tab insertion/removal, and rapid interaction paths.
- Expanded README and pkgdown navigation to surface the new server-side tab controls and cheatsheet more clearly.
glasstabs 0.1.1
CRAN release: 2026-03-13
New features
Single-select widget
- Added
glassSelect(), an animated single-select dropdown for Shiny. - Added
updateGlassSelect()for server-side updates to choices and selection. - Added
glassSelectValue()as a convenience reactive helper for reading the selected value.
Multi-select widget
- Added
updateGlassMultiSelect()for server-side updates to choices, selection, and checkbox style. - Added
glassMultiSelectValue()as a convenience reactive helper for reading selected values and active style. - Added optional
labelsupport toglassMultiSelect(). - Added configurable
all_labelsupport to control the trigger text shown when all choices are selected.
Improvements
- Aligned
glassSelect()andglassMultiSelect()more closely with standard Shiny input behavior. - Added client-side input bindings so select widgets now support
session$sendInputMessage()update patterns. - Preserved current
glassMultiSelect()default behavior whereselected = NULLinitializes all choices as selected. - Improved choice normalization so named choices retain display labels correctly.
- Improved hue normalization for the
"filled"multi-select style. - Updated vignettes and examples to show direct Shiny input usage and server-side update patterns.
Documentation
- Added a new vignette for
glassSelect(). - Updated the getting started vignette to include
glassSelect(). - Updated the multi-select vignette to document
updateGlassMultiSelect()andglassMultiSelectValue().
Internal changes
- Added tests for
glassSelect(),updateGlassSelect(), andglassSelectValue(). - Expanded tests for
glassMultiSelect()server-side updates and helper utilities.
glasstabs 0.1.0
CRAN release: 2026-03-11
Initial release.
New features
Tab widget
-
glassTabsUI()— animated glassmorphism-style tab navigation with a sliding glass halo and transfer trace between tabs. -
glassTabPanel()— defines a single tab button and its content pane. -
glassTabsServer()— reactive helper that tracks the active tab value. -
glass_tab_theme()— custom color theme forglassTabsUI()with eight independent handles:tab_text,tab_active_text,halo_bg,halo_border,content_bg,content_border,card_bg,card_text. - Built-in
"dark"(default) and"light"presets forglassTabsUI(). - Keyboard navigation using the Left and Right arrow keys.
- Full
bs4Dashcompatibility viawrap = FALSE.
Multi-select filter widget
-
glassMultiSelect()— dropdown filter with live search, select-all with indeterminate state, and three checkbox indicator styles:"checkbox","check-only", and"filled". -
glassFilterTags()— tag-pill display area that stays in sync with aglassMultiSelect()automatically via JavaScript; clicking × on a pill deselects that option. -
glass_select_theme()— custom color theme with four handles:bg_color,border_color,text_color,accent_color. - Built-in
"dark"and"light"presets forglassMultiSelect(). -
show_style_switcher,show_select_all,show_clear_allflags to hide UI chrome (all defaultTRUE). - Per-option HSL hue angles for the
"filled"style via thehuesargument (auto-assigned if omitted).
General
-
useGlassTabs()— injects CSS and JavaScript viahtmltools::htmlDependency, which is deduplicated automatically by Shiny. - All theming uses pre-computed CSS variables (no
color-mix()), ensuring compatibility with Shiny’s embedded browser. - Multiple instances of either widget on the same page work independently; each instance is scoped to its own
id.