Skip to content

Theming 9/11: Stop the root views from building UiTheme - #1542

Open
DavDo wants to merge 3 commits into
feature/MOB-5045-theme-migration-phase_8from
feature/MOB-5045-theme-migration-phase_9
Open

Theming 9/11: Stop the root views from building UiTheme#1542
DavDo wants to merge 3 commits into
feature/MOB-5045-theme-migration-phase_8from
feature/MOB-5045-theme-migration-phase_9

Conversation

@DavDo

@DavDo DavDo commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Jira issue:
https://glia.atlassian.net/browse/MOB-5045

What was solved?

Part 9/11. The root views (ChatView, CallView, MessageCenterView, MessageView, ConfirmationScreenView, SurveyView, WebBrowserView, VisitorCodeView, ChatHeadView) stop building UiTheme — after PRs 5–8 nothing downstream consumed it. The few values with no layout to fall back on (Lottie typing-indicator colour, <merge> root background, bind-time call-button icons) resolve attributes directly. Constructors collapse to @JvmOverloads with defStyleAttr = 0; ChatHeadConfiguration deleted with its last reader.

Additional info:

  • Is the feature sufficiently tested? All tests fixed? Necessary unit, acceptance, snapshots added? Check that at least new public classes & methods are covered with unit tests
  • Did you add logging beneficial for troubleshooting of customer issues?
  • Did you add new logging? We would like the logging between platforms to be similar. Refer to Logging from Android SDKsThings to consider for newly added logs in Confluence for more information.

Screenshots:

No visual change by design — ./gradlew widgetssdk:verifySnapshots passes with every pre-existing golden byte-identical.

@DavDo
DavDo requested a review from a team as a code owner August 13, 2026 09:17
@snyk-io

snyk-io Bot commented Aug 13, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

DavDo added 3 commits August 13, 2026 14:21
Nine root views (chat, call, message center + confirmation, survey, web
browser, visitor code, chat head) resolved a UiTheme snapshot on top of
layouts that already read the same glia* attributes. Delete that second
application everywhere the layout already carries the value, and resolve
the handful of attributes a layout genuinely cannot express (a Lottie tint,
a merge-root background, a per-state icon, a typeface) straight from the
composed theme instead.

ChatHeadConfiguration is deleted along with it - ChatHeadView was its last
reader - so view/configuration/ now only holds Phase 8's remaining classes.
UploadAttachmentAdapter fell back to hardcoded glia_primary_color /
glia_normal_color literals whenever there was no JSON theme override,
instead of the ?attr/glia* value the layout itself already resolves. Under
the default theme this looked identical to the customized case, so a
legacy overlay or GliaTheme brand-colour change silently skipped the file
upload progress bar, its type-indicator badge, and the title text while
every other themed surface picked it up.
Dokka cannot resolve the ColorStateList link, and the API-docs CI step
fails on any warning.
@DavDo
DavDo force-pushed the feature/MOB-5045-theme-migration-phase_9 branch from 19bda64 to a143b9a Compare August 13, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant