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

Use TurboStream on Room#show #197

Open
B-Rass opened this issue Jul 24, 2024 · 1 comment
Open

Use TurboStream on Room#show #197

B-Rass opened this issue Jul 24, 2024 · 1 comment

Comments

@B-Rass
Copy link
Collaborator

B-Rass commented Jul 24, 2024

No description provided.

@MBausson
Copy link
Contributor

MBausson commented Jul 24, 2024

About the migration to Turbo stream on Rooms#Show:

  • Setup Turbo for the project
  • Create a show.turbo_stream.erb view and add turbo_stream as a response format in bays#show.
  • In this view, define a turbo_stream update action, targeting #bay-container that renders _show_complete_frame.
  • Make frame overviews links (instead of div) targetting bays#show for turbo_stream
  • Change the url of the background color links & view (front/rear) link to target bays#show for turbo_stream
  • Create a stimulus controller to re-produce the side effects of clicking on a frame (URL update, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants