Skip to content

Conversation

@pranjal-jately-ld
Copy link
Contributor

@pranjal-jately-ld pranjal-jately-ld commented Dec 1, 2025

Description

What does this PR do?

Implements URL-based state sharing for the LaunchDarkly toolbar, allowing users to share their complete toolbar configuration (flag overrides, contexts, settings, and starred flags) via a shareable link.

  • Share State via URL: Users can click a share button to generate a URL containing their current toolbar state
  • Selective Sharing: Popover UI allows users to choose which elements to include:
    • Flag overrides & starred flags
    • Contexts (including active context)
    • Settings (theme, position, etc.)
  • Auto-Load on Init: Shared state automatically loads from URL when toolbar initializes
  • Size Validation: Warns at 2KB, hard limit at 8KB to ensure URL compatibility
  • Cross-Mode Support: Works in both SDK mode and dev-server mode

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation (changes to documentation only)
  • 🔧 Refactor (code change that neither fixes a bug nor adds a feature)
  • 🎨 Style (formatting, missing semicolons, etc; no production code change)
  • Performance (code change that improves performance)
  • Test (adding missing tests, refactoring tests; no production code change)
  • 🔨 Chore (updating grunt tasks, build process, etc; no production code change)

Screenshots/Videos

image

Related Jira issue: REL-10723: Implement a way to share overrides with others

@launchdarkly-upra launchdarkly-upra bot changed the title feat: implement a way to share overrides with others using urls feat: [REL-10723] implement a way to share overrides with others using urls Dec 1, 2025
@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-10723-share-overrides-using-url branch from 6a9911f to a31c0c1 Compare December 1, 2025 18:43
@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-10723-share-overrides-using-url branch 2 times, most recently from 2b3d51a to 197f0b9 Compare December 19, 2025 10:24
@pranjal-jately-ld pranjal-jately-ld marked this pull request as ready for review December 19, 2025 13:21
@pranjal-jately-ld pranjal-jately-ld requested a review from a team as a code owner December 19, 2025 13:21
Copy link
Contributor

@cspath1 cspath1 left a comment

Choose a reason for hiding this comment

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

This is great and worked like a charm. I do have one general open question about the location of this. I'm wondering if Settings might make more sense for housing this functionality? What are your thoughts?

@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-10723-share-overrides-using-url branch from edd7256 to 61e8f62 Compare December 19, 2025 21:50
@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-10723-share-overrides-using-url branch from 61e8f62 to 1b35499 Compare December 19, 2025 21:54
Includes moving share button to settings section and improving feedback
when sharing.
@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-10723-share-overrides-using-url branch from 0a5c508 to f737352 Compare December 20, 2025 23:14
@pranjal-jately-ld pranjal-jately-ld merged commit 642e962 into main Jan 2, 2026
4 checks passed
@pranjal-jately-ld pranjal-jately-ld deleted the pjately/REL-10723-share-overrides-using-url branch January 2, 2026 17:22
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.

3 participants