Repository navigation
Add theme-configurable collapsible privacy notice - #214
Merged
Merged
Conversation
- Add opt-in inline expansion with Read more and Show less controls - Support an optional summary or configurable line-limited preview - Show expansion controls only when additional content exists - Preserve linked text in the expanded notice - Keep existing notices fully expanded by default - Add accessibility support, tests, documentation, and demo configuration
Keep Show less visible whenever the notice is expanded, even when the overflow flag resets after state restoration or lazy-list disposal. Add regression tests for both scenarios, verifying that the notice stays expanded and can still be collapsed.
Collaborator
Author
|
Addressed the missing Show less control after state restoration or lazy-list item disposal in commit f803a33. The toggle now remains available whenever the privacy notice is expanded, regardless of the reset overflow flag. Added two regression tests without a summary: one for saved-state restoration and one that verifies the lazy item actually leaves composition before returning. Both reproduce the failure on the original code and pass with the correction. All 11 privacy UI tests passed locally, along with spotlessCheck and git diff --check. Saved-state restoration was tested programmatically; a manual toolbar rotation was not performed. No theme or dependency changes are included. |
BNanda99
approved these changes
Nov 19, 2026
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add opt-in inline collapse for the conversation privacy notice so lengthy privacy copy does not dominate the chat.
behavior.privacyNotice.presentationto"collapsible"to start with a compact notice.summary, or a line-limited preview controlled bycollapsedMaxLines(default: 3)."inline".The notice remains informational: it does not collect consent or block conversation submission.
Configuration
{ "behavior": { "privacyNotice": { "title": "Privacy Notice", "text": "Full approved privacy copy...", "presentation": "collapsible", "collapsedMaxLines": 3 } } }Optional keys:
summary,readMoreLabel, andshowLessLabel.Validation
:concierge:spotlessCheckandgit diff --checkpassed.The installed API 36 emulator required a temporary AndroidX Test/Espresso runtime override for instrumentation tests. This was local test configuration only; no shipping or repository dependency versions were changed.
Scope
Based on
dev, including PRs #210 and #211. This PR contains only the privacy enhancement, its tests, SDK demo configuration, and documentation; external sample-app changes are not included.