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

Revamp messaging with Hotwire #334

Merged
merged 9 commits into from Mar 21, 2022
Merged

Revamp messaging with Hotwire #334

merged 9 commits into from Mar 21, 2022

Conversation

joemasilotti
Copy link
Owner

@joemasilotti joemasilotti commented Mar 17, 2022

This PR closes #333. It uses a Turbo Stream to send messages and append to the list.

Pull request checklist

  • Your code contains tests relevant for code you modified
  • You have linted and tested the project with bin/check

@joemasilotti joemasilotti force-pushed the hotwire-messaging branch 2 times, most recently from d1d509a to e562b58 Compare March 21, 2022 02:45
@joemasilotti joemasilotti marked this pull request as ready for review March 21, 2022 02:50
Copy link
Contributor

@KonnorRogers KonnorRogers left a comment

Choose a reason for hiding this comment

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

This looks great! Streams look good! Nice work Joe!

app/controllers/messages_controller.rb Outdated Show resolved Hide resolved
app/views/conversations/show.html.erb Outdated Show resolved Hide resolved
app/controllers/messages_controller.rb Show resolved Hide resolved
@joemasilotti
Copy link
Owner Author

Thank you! I appreciate the review - merging in your changes after CI passes. :D

@joemasilotti joemasilotti merged commit c1b2af0 into main Mar 21, 2022
5 checks passed
@joemasilotti joemasilotti deleted the hotwire-messaging branch March 21, 2022 17:13
topdeveloper-dev added a commit to topdeveloper-dev/railsdev.com that referenced this pull request Feb 13, 2023
* First pass at sending a message via Hotwire

* Redesign message form to show inline error message

* Client-side validation

* Remove unused translation

* Add test for sending messages via Turbo Stream

* Memoize conversation

* Remove redundant role="list"

joemasilotti/railsdevs.com#334 (comment)

* Add feature to CHANGELOG
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.

Hotwire-ify messaging
2 participants