Skip to content

feat: user-controlled page context toggle - #21

Merged
neuromechanist merged 2 commits into
mainfrom
develop
Jan 9, 2026
Merged

neuromechanist merged 2 commits into
mainfrom
develop

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Summary

Convert the page context notice from a static info display to an interactive checkbox that users can toggle.

Changes

  • Replace static "Page context enabled" notice with a toggleable checkbox
  • Users can opt in/out of sharing their page URL with the assistant
  • Preference is persisted in localStorage
  • Default: enabled (to help provide better answers)

UX Improvement

  • Before: Static notice that just informed users
  • After: Checkbox with label "Share page URL to help answer questions"
  • Users have control over their privacy preference

Config Options

allowPageContext: true,           // Show the checkbox option
pageContextDefaultEnabled: true,  // Default state
pageContextStorageKey: 'osa-page-context-enabled',
pageContextLabel: 'Share page URL to help answer questions'

- Replace static info notice with user-controlled checkbox
- Persist user preference in localStorage
- Default to enabled but allow users to opt out
- Cleaner UI with simpler label text
Match footer font size (11px) for less visual prominence
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.

[FEATURE] Want flexibility in the docs that are used.

1 participant