Skip to content

Conversation

tyb-talks
Copy link
Contributor

@tyb-talks tyb-talks commented Aug 13, 2025

Related to #34208.

Previously, missing name properties for a selected user search result would fail silently which made it difficult to tell if something had gone wrong with the user autocomplete.

This PR adds some error handling to make it more obvious that an error has occurred. I've opted for using toasts here since it's less intrusive compared to the dialog modal. Also left out translation as it's not actually actionable by the user other than reporting it to us. added it anyway ✨

issue.mov

@github-actions github-actions bot added chat PRs which include a change to Chat plugin discourse-ai labels Aug 13, 2025
@github-actions github-actions bot added the i18n PRs which update English locale files or i18n related code label Aug 13, 2025
@tyb-talks tyb-talks requested a review from CvX August 13, 2025 15:54
@tyb-talks tyb-talks merged commit 282a544 into main Aug 14, 2025
17 checks passed
@tyb-talks tyb-talks deleted the dev-raise-error-on-missing-username-for-user-autocomplete branch August 14, 2025 01:12
yuriyaran pushed a commit that referenced this pull request Aug 21, 2025
…ults (#34283)

Related to #34208.

Previously, missing name properties for a selected user search result
would fail silently which made it difficult to tell if something had
gone wrong with the user autocomplete.

This PR adds some error handling to make it more obvious that an error
has occurred. I've opted for using `toasts` here since it's less
intrusive compared to the `dialog` modal.

https://github.com/user-attachments/assets/92f585d8-95bf-4c5b-a08a-698c1a527b79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin discourse-ai i18n PRs which update English locale files or i18n related code
Development

Successfully merging this pull request may close these issues.

2 participants