Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rich message buttons #60

Merged
merged 20 commits into from
May 16, 2024
Merged

Add rich message buttons #60

merged 20 commits into from
May 16, 2024

Conversation

Gerben-T
Copy link
Collaborator

@Gerben-T Gerben-T commented May 8, 2024

This PR adds the buttons rich text message to the conversation.

image

The types of buttons are explained here: https://developers.parley.nu/docs/rich-messages#buttons

@daanleenders daanleenders self-requested a review May 10, 2024 09:41
src/UI/Chat.jsx Outdated Show resolved Hide resolved
src/UI/Message.jsx Outdated Show resolved Hide resolved
src/UI/Message.jsx Outdated Show resolved Hide resolved
src/UI/Message.jsx Outdated Show resolved Hide resolved
src/UI/MessageButtons/WebUrlButton.jsx Outdated Show resolved Hide resolved
There is no need to try and reuse the "submitHandler" from ResultActions, because the reply button doesn't need to
- disable the text field
- check if the payload is empty (it is never empty thanks to the validation done in the api)
- put focus on the text area (that wasn't the last place the client focused on)
daanleenders
daanleenders previously approved these changes May 13, 2024
Copy link
Member

@daanleenders daanleenders left a comment

Choose a reason for hiding this comment

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

Alle changes sinds vorige review zijn goed. Er zijn wel nog 2 niet resolved comments.

@Gerben-T Gerben-T merged commit 9b985c8 into master May 16, 2024
4 checks passed
@Gerben-T Gerben-T deleted the feature/addButtons branch May 16, 2024 08:09
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.

None yet

2 participants