Skip to content

feat: make bigPage/sidebar/bigTabs/settings/sidebarHelp nestable via id - #27

Merged
ivokwee merged 1 commit into
masterfrom
nestable-bigpage-id
Aug 12, 2026
Merged

feat: make bigPage/sidebar/bigTabs/settings/sidebarHelp nestable via id#27
ivokwee merged 1 commit into
masterfrom
nestable-bigpage-id

Conversation

@ivokwee

@ivokwee ivokwee commented Aug 5, 2026

Copy link
Copy Markdown
Member

This PR makes the main bigdash layout components nestable by supporting an optional id parameter (defaults to a stable BIGDASH_DEFAULT_ID).

Changes

  • New utility scoped_id() in R/utils.R for generating nested/scoped IDs (prevents conflicts when embedding one bigPage inside another).
  • Updated bigPage(), sidebar(), bigTabs(), settings(), sidebarHelp() and related functions to accept and propagate id.
  • JS updates in srcjs/scope.js, sidebar.js, settings.js to handle scoped selectors and events properly.
  • Rebuilt inst/assets/index.js, inst/assets/style.min.css, documentation, and NAMESPACE.
  • Added support for nested dashboards without ID clashes.

This addresses the nestable-bigpage-id feature request.

cc @xavier

Ready for review.

…ble via optional id parameter

- Add BIGDASH_DEFAULT_ID constant and scoped_id() utility in R/utils.R
- Update bigPage(), sidebar(), bigTabs(), settings(), sidebarHelp() to accept and use id (with scoped_id for nesting support)
- Update JS in srcjs/scope.js, sidebar.js, settings.js to handle scoped/nested IDs for tabs, settings panel, and help
- Rebuild assets (JS bundle, CSS, docs)
- This enables nesting bigdash components (e.g. bigPage inside another dashboard) without ID conflicts

Closes nestable-bigpage-id feature request.
@ivokwee
ivokwee requested a review from ESCRI11 August 11, 2026 15:33

@ESCRI11 ESCRI11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude review + manual test on opg. all looks good

@ivokwee
ivokwee merged commit ca6a8f1 into master Aug 12, 2026
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.

2 participants