Skip to content

TDH-4292 : Improve agent app form UI - #706

Open
ayushsharmakm wants to merge 2 commits into
developmentfrom
TDH-4292
Open

ayushsharmakm wants to merge 2 commits into
developmentfrom
TDH-4292

Conversation

@ayushsharmakm

@ayushsharmakm ayushsharmakm commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Improves the forms in the chat SDK: the rich message form, the pre-chat lead form with its country code picker, and the star-rating feedback sheet.

Changes

Rich message form

  • Fields fill the card with a 42dp minimum height, instead of a fixed 240dp width and 32dp height.
  • Rounded 8dp fields: theme-colored border on focus, red border on validation errors.
  • Larger text and consistent spacing.
  • Colors moved to km_form_* resources with light and dark values, via a new KmFormStyleHelper.

Pre-chat form

  • Rounded 12dp outlined fields with a label above and the placeholder inside, replacing the underline style.
  • The focus border and cursor use the app's primary color.
  • Errors show under the field.
  • Dropdowns get a label and a matching rounded box.

Country code picker

  • Opens below the phone field and resizes to fit above the keyboard.
  • Rounded popup with a search pill; the selected country is highlighted in the primary color.

Feedback form (stars)

  • Fixed dark mode: the comment box was white text on a white background.

Screenshots

Rich message form Pre-chat form
image image

Notes

  • KmPrechatInputAdapter has a new constructor that takes the theme color; the old one still works.
  • :kommunicateui is also used by the Agent App.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d55d645c-bfc0-4bba-a78f-6d37f0e837d3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

return false;
}
});
editText.setActivated(validationArray.get(position) == 1);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this check?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It marks the field as invalid so it gets a red border.

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.

2 participants