Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
5949c23
Fix welcome images not reloading when the URL changes mid-download
joseajimenezjr Nov 4, 2026
3e9eeac
Add showCitationNumbers theme flag to toggle inline citation badges
josej-ea Nov 5, 2026
c5deba2
Add message typography and inline link styling theme keys
josej-ea Nov 6, 2026
98fd580
Align feedback thumb icon colors with iOS after interaction
josej-ea Nov 6, 2026
ab6b8c5
Add citation toggle UI regression tests and compatibility notes
josej-ea Nov 10, 2026
e0ed28c
Reset async image state per URL and add regression tests
josej-ea Nov 10, 2026
74ae7c3
Fix message typography validation and nested rendering
josej-ea Nov 11, 2026
ee33105
Expose citation toggle in test-app themes and align documentation
josej-ea Nov 11, 2026
63fa151
Align feedback thumb dimming with iOS and add tint regression tests
josej-ea Nov 11, 2026
80f7bdc
Fix typography spacing test wrapping on narrow CI viewports
josej-ea Nov 11, 2026
0f086bc
Merge pull request #209 from josej-ea/feature/theme-citation-numbers-…
josej-ea Nov 11, 2026
d05a71b
Merge pull request #208 from josej-ea/fix/welcome-image-cancellation
josej-ea Nov 11, 2026
0673815
Remove unused legacy line-height parser
josej-ea Nov 11, 2026
76445e1
Match feedback thumb dimming to SwiftUI system gray
josej-ea Nov 12, 2026
04b1fa2
Make feedback tint pixel checks robust at CI resolution
josej-ea Nov 12, 2026
466c943
Strengthen feedback icon color assertions
josej-ea Nov 13, 2026
1e0084e
Scale message line height with themed font size
josej-ea Nov 13, 2026
49258da
Account for antialiasing in feedback tint tests
josej-ea Nov 13, 2026
43dec3a
Fix typography overflow fallback regression test
josej-ea Nov 14, 2026
1b39817
Merge pull request #211 from josej-ea/feature/feedback-icon-colors
josej-ea Nov 14, 2026
5af0515
Preserve inherited em line heights when theming message size
josej-ea Nov 17, 2026
cf07643
Merge pull request #210 from josej-ea/feature/theme-message-typography
josej-ea Nov 17, 2026
c18fc64
feat: add theme-configurable collapsible privacy notice
josej-ea Nov 17, 2026
08ccc9e
Add configurable input clear-icon color on iOS and Android
josej-ea Nov 17, 2026
78114c9
Fix modal feedback keyboard handling and add blurred backdrop
josej-ea Nov 18, 2026
d79c777
Fix feedback backdrop test coordinates after keyboard resize
josej-ea Nov 18, 2026
73cf0c0
Use touchscreen input for feedback keyboard regression tests
josej-ea Nov 18, 2026
84318e3
Add native card renderers for custom response element types (#196)
BNanda99 Nov 18, 2026
f803a33
fix: preserve privacy notice collapse control after state restoration
josej-ea Nov 19, 2026
f66bc0c
Address modal feedback review findings
josej-ea Nov 19, 2026
67da1bf
Fix API 29 feedback keyboard test host configuration
josej-ea Nov 19, 2026
9bbe362
Merge pull request #215 from adobe/feature/input-clear-icon-color
josej-ea Nov 19, 2026
81ebd87
Merge pull request #214 from adobe/feature/privacy-notice-collapse-dev
josej-ea Nov 19, 2026
91c89e6
Address remaining modal feedback review findings
josej-ea Nov 19, 2026
f1dc43f
Fix dialog sizing and modal keyboard focus navigation
josej-ea Nov 20, 2026
4c1d048
Merge pull request #216 from adobe/fix/feedback-modal-keyboard-android
josej-ea Nov 20, 2026
f247552
Add request-time XDM timestamps to chat (#221)
BNanda99 Nov 25, 2026
5faf050
Updating version to 3.11.0
github-actions[bot] Dec 1, 2026
54198fc
Merge pull request #226 from adobe/update-version-3.11.0
rymorale Dec 1, 2026
86e6c01
Merge pull request #227 from adobe/dev
rymorale Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ Documentation for integrating and customizing the Adobe Experience Platform Bran

- [Implementation Guide](implementation-guide.md) - Learn how to integrate Brand Concierge into your Android app
- [Data handoff](implementation-guide.md#data-handoff) - Send application data to Brand Concierge without a chat message
- [Native card renderers (preview)](implementation-guide.md#native-card-renderers-preview) - Render `custom` elements with your own Compose cards, matched by `rendererId`
- [Style Guide](style-guide.md) - Complete reference for theming and customization options
- [Release notes](release-notes.md) - Changes and compatibility considerations
114 changes: 109 additions & 5 deletions Documentation/implementation-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,25 @@ Concierge.updateXDMContext(mapOf("loyalty" to mapOf("tier" to null)))
- **Merging:** Each update is applied as an RFC 7396 JSON Merge Patch. Maps merge recursively,
lists and scalar values replace the existing value, and a `null` map value removes that key.
There is no reset API. To remove context, send `null` values.
- **Request timestamps:** The SDK sets `timestamp`, `placeContext.localTime`, and
`placeContext.localTimezoneOffset` from one fresh instant for every chat, handoff, and feedback
request. The offset is minutes west of UTC, matching the Web SDK (UTC+05:30 is -330). These fields
are SDK-owned and override matching caller values; other `placeContext` fields, such as `geo`,
are preserved.
- **Allowed values:** strings, booleans, finite `Byte`, `Short`, `Int`, `Long`, `Float`, or
`Double` values, maps with string keys, and lists of these values. A `null` inside a list is
sent as JSON null. Nesting is limited to 20 levels below each top-level value. The top-level
`identityMap` key is reserved for the SDK. Invalid input, including cyclic input, throws
`IllegalArgumentException`.
`identityMap` key is reserved for the SDK. `placeContext` must be a map, or `null` to remove it.
Invalid input, including cyclic input, throws `IllegalArgumentException`.
- **Lifetime:** Context is held in memory for the current Concierge session (30 minutes of
inactivity). Updating it doesn't start or extend a session. If no session exists yet, the next
request adopts the context. When a session expires, its context is not sent with later requests,
and the next update starts from an empty context. `MobileCore.resetIdentities()` also clears it.
- **Timing:** A chat message or handoff captures the context when it's submitted. Updates made
after that don't change requests that are already queued.
- **Data handoffs:** The handoff's `xdmFields` are deep-merged over the held context using the same
rules, and the handoff values win. The held context itself isn't changed.
rules, and the handoff values win. SDK-owned request timestamp fields override both. The held
context itself isn't changed.
- **Visibility:** The context is included in the **Brand Concierge Query Submitted** Event Hub
event, so Assurance and other listening extensions can read it. The SDK doesn't forward it to
Edge tracking and doesn't write it to the SDK log.
Expand Down Expand Up @@ -239,7 +245,8 @@ Concierge.sendDataHandoff(
`mapOf("commerce" to mapOf("order" to mapOf("purchaseID" to "123")))`. The map must be non-empty;
every key must be a `String`; and values follow the [XDM context](#xdm-context) value rules,
except that `null` is allowed only inside lists. Do not use `identityMap` as a top-level key
because the SDK owns and populates it. These fields are deep-merged over any held XDM context.
because the SDK owns and populates it. If supplied, `placeContext` must be a map. These fields
are deep-merged over any held XDM context; the SDK-owned request timestamp fields take precedence.
- **`localMessage`**: Optional text for a local, non-networked chat message distinct from the data
forwarded to Brand Concierge. The SDK renders it immediately before an accepted handoff starts,
as an agent-attributed message rather than a user message.
Expand All @@ -257,7 +264,7 @@ Concierge.sendDataHandoff(
| `EMPTY_XDM_FIELDS` | `xdmFields` was empty. |
| `INVALID_XDM_FIELD_KEY` | `xdmFields` contained a key that was not a string. |
| `RESERVED_KEY_COLLISION` | `xdmFields` used an SDK-reserved top-level key such as `identityMap`. |
| `INVALID_XDM_FIELD_VALUE` | `xdmFields` contained a value that cannot be serialized as JSON. |
| `INVALID_XDM_FIELD_VALUE` | `xdmFields` contained a value that cannot be serialized as JSON or an invalid `placeContext`. |
| `NO_ACTIVE_SESSION` | No rendered Concierge chat session was available to receive the handoff. |
| `CHAT_IN_PROGRESS` | A chat turn or another handoff is active or waiting. Retry after it completes. |
| `DELIVERY_FAILED` | Brand Concierge returned an error or the service request could not complete. |
Expand All @@ -274,6 +281,103 @@ app owns any failure UI based on the completion result.

---

## Native card renderers (preview)

Register a Compose renderer for a `rendererId`. Brand Concierge marks custom UX elements with
`"type": "custom"` and names the client renderer in `rendererId`. When an element in
`multimodalElements.elements` is `custom` and its `rendererId` is registered, the chat renders your
card inline in the transcript, after its assistant turn completes.

```json
{
"id": "1364190",
"type": "custom",
"rendererId": "catalogRenderer",
"rendererContext": { "eventId": "event-12345" },
"entity_info": { "productName": "Veggie Nachos" }
}
```

Only `custom` elements are matched; other element types always keep their built-in rendering, even
if their `type` equals a registered id. Custom `entity_info` is opaque to the SDK and is never
parsed as a built-in card. A custom element is omitted with a warning if its `rendererId` is
missing, blank, or unregistered, or if native activation rejects it. If that leaves a typed chat
response with no text and nothing else to show, the chat shows its standard error message with the
response's prompt suggestions; a data handoff reports `EMPTY_RESPONSE` instead and adds nothing to
the transcript. `ctaButton` elements use CTA
parsing; other non-custom types use the existing card parser.
`rendererId` matching is exact and case-sensitive.
Within one response, the same element ID may be used by different renderers, but repeated IDs for
the same renderer are rejected for native rendering.
Replacing a registration affects subsequently activated cards; existing cards retain their renderer.
Native cards and CTAs have separate transcript rows; built-in cards are grouped into a carousel
at the first built-in card's position, so mixed responses do not preserve every element's interleaving.
Prompt suggestions are shown under the built-in card carousel, else the last native card, else the
last CTA, else the response text.
Native cards do not emit the SDK's `CardsRendered` analytics event; tracking native-card impressions
and other app-specific interactions is the host app's responsibility. The SDK does not send native
card payloads through product-oriented card analytics.

```kotlin
// Once at app start, after MobileCore setup. The last registration for a rendererId wins.
Concierge.registerCardRenderer("catalogRenderer") { element, context, saveState ->
CatalogCard(element, context, saveState)
}
```

- **`element`**: the complete, deeply read-only element dictionary, including null values.
`entity_info` (the renderer-owned entity data) and `rendererContext` (optional metadata such as
an `eventId` for later interactions) are passed through unchanged. Their schemas are not
validated: either may be null or absent, and the renderer must handle that safely. Elements are copied with depth-64 and 100,000-node limits;
invalid or over-limit elements are rejected and logged before rendering.
- **`context`**: the SDK's card context, not the element's `rendererContext`. Updated when card state or the busy/latest flags change. `cardId`; `sessionId`, `conversationId`,
`interactionId` (each may be absent); `sequence` (Int, this card's activation order in the chat);
`isBusy` (a chat or handoff turn is queued or in progress, or identity reset is in progress);
`isStale` (currently always `false`; reserved for possible future session-expiry handling); `isLatest`
(this is the most recently activated card of its `rendererId` in the chat); `state` (this card's last
saved state, if any).
- **`saveState(map)`**: replaces this card's private, in-memory state while its chat ViewModel
survives (including scrolling, hiding the chat, and configuration changes that retain that
ViewModel). It is not persisted across process death or a new ViewModel. Callable from any
thread; applied on the main thread and never sent to Brand Concierge. Values must be JSON data
within the same depth/node limits; invalid saves are logged and ignored.

Cards are disposed when their rows are rolled back, on identity reset, and on
ViewModel teardown. Identity reset removes cards from the transcript. Disposal discards the card's
saved state, and saves after disposal are ignored. Session expiry or replacement does not mark cards stale.

Cards talk back with the existing APIs: `Concierge.sendDataHandoff` to start a turn with data, and
`Concierge.updateXDMContext` for committed facts later turns need.
The `sendDataHandoff` completion runs on a background thread, and the SDK doesn't deduplicate calls.
`Delivered` means the response supplied nonblank text or accepted render targets, not that a
custom renderer's business payload is valid or its UI shows useful content. A renderer that
shows its own unavailable placeholder does not change that result.

Each card gates its own controls: disable handoff controls while `isBusy` or `isStale`, and on tap,
since `isBusy` can lag it. `isStale` is always `false` today; checking it prepares for possible
future staleness support but does not currently cancel asynchronous actions. Manage cancellation in
the app when needed. Read both from the current `context` rather than copying them into `remember`.
The SDK keeps older cards active when newer ones arrive; keep workflow flags such as `submitted` in
`saveState`. Put only business facts Brand Concierge needs in `updateXDMContext`.

Card order comes from the SDK, never from composition: Compose doesn't compose transcript rows in
transcript order (lazy rows, recomposition), so "the last card my effect saw" is not the newest card.
- `isLatest` covers the common rule "only the newest card of a renderer is actionable": gate controls on
`isLatest && !isStale && !isBusy`. It reports order, not availability, so a future stale card could
still be latest. Activating a newer card with the same `rendererId` flips the older one to `false`. If the newest card
is rolled back, the newest remaining card of that `rendererId` becomes latest again.
- `sequence` supports other cross-card rules (for example, newest per location): it strictly increases in
transcript order (including element order within one response), is fixed for the card's lifetime,
and is never reused in the chat. Rejected elements don't use a number. Compare it only between cards of
the same chat; it is not meaningful across chats or app launches.

The SDK draws no card surface: cards
render at their natural height, full width.
Renderers must not throw, must not start work during composition, and, since they are held for
the life of the process, must not capture an `Activity` or a `View`.

---

## Integration

### Managed Integration
Expand Down
28 changes: 28 additions & 0 deletions Documentation/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Release notes

## Unreleased

### Message typography

Added optional message body size/weight and inline link weight/underline theme
overrides. Defaults preserve existing behavior. Invalid CSS sizes and weights
are ignored with a warning, including programmatic typography supplied to
`ConciergeTheme`. Link overrides also apply in lists and blockquotes;
Markdown-bold links retain at least bold weight. Explicit body line height is
preserved through response paragraph rendering; omitted line height retains
existing response spacing. When `--message-font-size` is set without an explicit
line height, inherited `sp` message bubble line heights scale proportionally;
inherited `em` line heights remain unchanged because they already scale with font
size. Pixel line heights (for example `"24px"` or `"24PX"`) are absolute
scaled sizes rather than multipliers, and the `px` suffix is case-insensitive.
Body paragraph line height no longer
overrides headings or fenced code, including nested blocks.
Response paragraphs and list items also supply their resolved body font size to
Compose so explicit line heights scale consistently at accessibility font sizes.

**Binary compatibility:** Adding parameters to the public `ConciergeTypography`
Kotlin data class, including `lineHeightPx` for absolute line height, changes its
constructor and generated `copy` signatures.
Default parameter values preserve ordinary source calls that omit the new
parameters, but do not preserve binary compatibility. Applications and libraries
compiled against the previous class must be recompiled when upgrading.
Loading
Loading