Skip to content

Add ability to share features in URL param in local editing#808

Merged
garrettjstevens merged 2 commits into
mainfrom
share_local_features
Jun 30, 2026
Merged

Add ability to share features in URL param in local editing#808
garrettjstevens merged 2 commits into
mainfrom
share_local_features

Conversation

@garrettjstevens

Copy link
Copy Markdown
Contributor

With local editing, the annotations are stored in the user's browser indexedDb. (The annotations can't be in the session, that would make the session too big very quickly.) Because they are not in the session, if you share a session at a particular location, the person you share it with won't see your Apollo track annotations, since they don't have them in their indexedDb.

This provides a way to encode one or more features in a URL parameter so when you open a link with that URL parameter, it automatically adds the feature to your indexedDb. If it detects the feature has already been loaded (e.g. the user has clicked on that link in the past), it gives the option to keep the new annotation, the old annotation, or both.

This motivation came up when trying to write more entries for the user guide. This way we can create links in the user guide that will take users to a session with the Apollo annotation already loaded and in the correct state. It makes following the user guide much simpler, since the user doesn't have to set anything up, they just click the link it's ready to go.

This could also be extended in the future to allow a "Share this feature" menu item in the UI.

@garrettjstevens garrettjstevens self-assigned this Jun 24, 2026
@garrettjstevens garrettjstevens merged commit 7a2efd7 into main Jun 30, 2026
7 checks passed
@garrettjstevens garrettjstevens deleted the share_local_features branch June 30, 2026 22:28
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.

1 participant