Skip to content

Dev to staging for 3.11.0 release - #227

Merged
rymorale merged 39 commits into
stagingfrom
dev
Dec 1, 2026
Merged

rymorale merged 39 commits into
stagingfrom
dev

Conversation

@rymorale

@rymorale rymorale commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

joseajimenezjr and others added 30 commits November 4, 2026 17:41
On a cold open, ConciergeChatViewModel seeds the welcome config with mock
prompt image URLs (initializeWelcomeConfig), and ConciergeChat's
LaunchedEffect(currentTheme) swaps in the theme's real URLs right after the
first composition. Because WelcomeCard renders rows with an unkeyed forEach,
the existing AsyncImage composables just receive a new url.

rememberRemoteImage used produceState(initial, key1 = url), but the state
holder is not keyed on url, so it survives the URL change. The producer only
loads when state == Loading. When the in-flight load for the old URL is
cancelled, the caller's catch (e: Exception) swallowed the CancellationException
and set the state to Error. The producer for the new URL then saw Error (not
Loading) and never requested the new URL, leaving the row stuck as a blank
error box.

Fix rememberRemoteImage to reset the load state per URL and to rethrow
CancellationException from the caller-side catch so a cancelled load is not
misreported as Error and does not block the next URL. Also rethrow
CancellationException from DefaultImageProvider.get() so cancellation is not
logged as an unexpected error.

Verified on an Android emulator: welcome images now render on cold open.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds behavior.citations.showCitationNumbers (default true) so themes can
hide the inline citation number badges in concierge message text while
keeping the Sources footer below the message visible.

- ConciergeCitationsBehavior: new flag, defaults to true so existing
  themes are unaffected
- ThemeParser: parse the key with optBoolean default true
- ConciergeResponse: skip citation annotation when flag is false
- ThemeParserTest: coverage for explicit false and missing-key default
- Document the key in style-guide.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds four theme keys so brands can tune message text for readability and
WCAG contrast compliance:

- --message-font-size -> typography.fontSize; applied via
  ConciergeStyles.withThemeTypography (previously only lineHeight was)
- --message-font-weight -> typography.fontWeight; same path
- --message-concierge-link-font-weight -> typography.linkFontWeight;
  honored by renderLink/renderBoldLink/renderItalicLink
- --message-concierge-link-underline -> typography.linkUnderline;
  TextDecoration.Underline was hardcoded in all three link renderers,
  now theme-controlled

All keys default to prior behavior (Material defaults, inherit weight,
underlined) so existing themes are unaffected.

- Tests: 2 new ThemeParserTest cases (explicit values + missing-key
  defaults); 112/112 passing
- Docs: style-guide.md property and implementation tables
The selected feedback thumb now tints with the primary brand color and the
unselected thumb dims, matching iOS behavior. Previously Android kept a single
icon color for all states, so the selected thumb stayed the message text color
while iOS changed to the primary color.

- Add selectedIconColor (primary) and dimmedIconColor (text at 40% alpha) to
  FeedbackButtonsStyle
- Resolve per-state tint in FeedbackComponents ThumbsRow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Address review feedback for showCitationNumbers:

- Add Compose UI tests verifying disabled citation numbers hide inline
  badges while the Sources footer remains visible and expandable
- Cover explicit enabled and default behavior to confirm badges render
- Document the constructor and generated copy signature changes in
  ConciergeCitationsBehavior and the need to recompile binary consumers
- Link release notes from the documentation index

Validation:
- All 3 new Compose UI tests pass on the Android emulator
- Temporarily bypassing the rendering guard causes the disabled-state
  test to fail; restoring it returns all tests to passing
- Android 17 validation required a temporary newer AndroidX test-tooling
  override; no repository dependency changes included
Address review feedback: produceState(key1 = url) restarts the producer
but retains its previous state, preventing replacement images from
loading after an earlier success, error, or cache hit.

- Wrap the image state producer in key(url) so each URL starts with
  its own cached image or fresh Loading state
- Preserve cancellation propagation without invoking the error callback
- Fix coroutine import ordering
- Add Compose UI tests for URL changes during loading, after success,
  after failure, and after an initial cache hit
- Assert the replacement URL is requested and its image pixels render

Validation:
- AsyncImage UI suite: 7 tests passed
- ImageProvider unit suite: 18 tests passed
- Temporarily removing URL-keyed state reproduced failures in the
  success, error, and cache-hit tests; restoring it passed all tests
- Android 17 UI tests used a temporary AndroidX test-tooling override;
  no repository dependency changes included
- Preserve link weight and underline settings through lists,
  blockquotes, and nested Markdown.
- Validate JSON and programmatic message sizes and font weights,
  logging warnings and retaining defaults for invalid values.
- Keep Markdown-bold links at least bold and preserve italics.
- Distinguish absolute pixel line heights from unitless multipliers.
- Apply body line height without overriding headings or fenced code.
- Supply the resolved base font size to paragraph and list responses
  for consistent accessibility font scaling.
- Add renderer, validation, production UI, streaming, and caching
  regression tests.
- Document theme behavior, accessibility guidance, and the public
  typography data class's binary compatibility impact.

Validation:
- 389 focused unit tests passed.
- 138 UI and integration tests passed across two runs.
- Accessibility scaling matrix: 96 combinations passed.
- Kotlin formatting and diff checks passed.

Full Java lint and coverage verification remain limited by existing
JDK/tooling incompatibilities.
Add explicit showCitationNumbers defaults to both bundled test-app themes. Remove the standalone release notes and index link, retaining the SDK binary-compatibility warning in the style guide.
Use fixed neutral gray at 40% opacity for the unchosen thumb.
Extract shared tint selection and clarify selected-color documentation.

Add state-selection unit tests and rendered-color coverage across
feedback states, placements, and default/custom/translucent themes.
Document feedback tint behavior in the style guide.
Compare identical two-line text in response and reference layouts.
Assert line counts and expand the accessibility matrix to cover
narrow and wide layouts without weakening spacing checks.
…toggle

Add showCitationNumbers theme flag to toggle inline citation badges
Fix welcome images not reloading when the URL changes mid-download
Delete parseLineHeight, which is no longer used in production and
silently defaults invalid values to 1.5. Remove its obsolete tests;
the active line-height parsing behavior is unchanged.
Use #8E8E93 at 40% opacity for the unselected thumb. Update the
style guide and tighten rendered-color assertions to check a fraction
of foreground icon pixels.
Compare sampled opaque foreground colors instead of requiring a
large fraction of exact-color pixels, which varies with anti-aliasing
and emulator density. Retain exact tint assertions in the style test.
Require multiple foreground samples and tighten tint tolerance in the rendered feedback color test. Assert a minimum sample count before calculating the sampled color.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
When only a message font size is configured, scale the inherited line height
proportionally to avoid cramped message text. Also accept case-insensitive
px suffixes when parsing and classifying absolute line heights.

Add regression tests for font-size-only line-height scaling and mixed-case
pixel units, and update the style guide and release notes.
Measure icon coverage using independent black-on-white reference renders and compare each sampled pixel against its coverage-adjusted expected tint. Keep the 0.05 channel tolerance and require at least eight reference samples.

Add regression checks rejecting the wrong dimmed gray and insufficient reference samples. No production code or dependency changes.
Replace the incorrect previous-multiplier expectation with explicit
checks for unspecified line height and no paragraph override.

Compare fallback dimensions and baselines against a Material text
reference while retaining multiplier and absolute-height precedence
checks.

Test-only change; no production code or dependency changes.

Validation: all 11 typography UI tests passed locally. Kotlin formatting
and instrumentation-test compilation passed.
Align feedback thumb icon colors with iOS after interaction
Scale only sp values when theming message size, retaining inherited em values and explicit overrides. Add a regression layout test for the preserved line heights.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add message typography and inline link styling theme keys
- 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
Support --input-clear-icon-color to customize the X icon beside
the send button. Preserve existing defaults and update theme
documentation, examples, and tests.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add native card renderers for custom response element types

Apps can register a Compose renderer per element type with
Concierge.registerCardRenderer. Matching elements render as their own
transcript rows with the complete element JSON, saved card state and
session/busy/stale context. Cards are disposed on rollback, transcript
clear, identity reset and view model teardown. Once any renderer is
registered, unknown element types without a renderer are hidden while
productCard, horizontalCard, ctaButton and untyped elements keep their
built-in rendering.
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.
- Clear composer focus and block background keyboard navigation.
- Dismiss feedback with Back without closing the chat.
- Hide backdrop click semantics from accessibility services.
- Remove redundant IME padding and adapt padding on short layouts.
- Test the real action sheet and blocked background controls.
- Update modal feedback documentation.

Validation: 131 unit tests and 12 native tests passed.
Repository lint checks passed. API 29 CI validation pending.
josej-ea and others added 9 commits November 19, 2026 14:34
- Match the test host to production's adjustResize policy.
- Verify complete Submit and Cancel button bounds above the keyboard.
- Include button and viewport bounds in assertion failures.

Validation: 468 API 29 functional tests and 12 API 37
regression tests passed. Lint and whitespace checks passed.
Add configurable input clear-icon color
Add theme-configurable collapsible privacy notice
- Redirect background keyboard focus into the feedback form.
- Guard Back handling when no dispatcher owner is available.
- Preserve usable form space on short layouts.
- Correct fullscreen dialog insets for landscape keyboard use.
- Add populated-conversation and real-dialog regressions.
- Update modal feedback documentation.

Validation: 472 API 29 functional tests, 15 API 37 regressions,
and 131 unit tests passed. Lint and debug/release app builds passed.
- Preserve full-screen dialog sizing without the Compose width override.
- Remove invisible focus stops from tap-dismiss surfaces.
- Preserve Notes focus when switching to a hardware keyboard.
- Expand window-sizing and focus-navigation regression coverage.

Validation: 477 API 29 functional tests, 41 focused UI tests,
20 API 37 regressions, and 131 unit tests passed.
Lint, debug/release test-app builds, and whitespace checks passed.
Fix modal feedback keyboard handling and add blurred backdrop
@rymorale
rymorale requested a review from cdhoffmann December 1, 2026 21:57
@rymorale
rymorale changed the base branch from main to staging December 1, 2026 22:12
@rymorale
rymorale merged commit 86e6c01 into staging Dec 1, 2026
10 checks passed
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.

5 participants