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 turbo frame and stream to create element #3053

Merged
merged 3 commits into from
Sep 26, 2024
Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Sep 25, 2024

What is this pull request for?

By responding with a turbo-stream instead of js.erb,
we can replace the old Rail-UJS data-remote with a
turbo-frame.

Notable changes

In order to use alchemy_form_for in turbo_frame_tags,
we need to be able to disable the Ajax remote form feature
from rails-ujs.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

In order to use `alchemy_form_for` in `turbo_frame_tag`s,
we need to be able to disable the Ajax remote form feature
from `rails-ujs`.
@tvdeyen tvdeyen force-pushed the turbo-frames-create-element branch 2 times, most recently from 01e72ae to 9a9c081 Compare September 26, 2024 06:43
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.63%. Comparing base (4c20717) to head (dd93836).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3053   +/-   ##
=======================================
  Coverage   96.63%   96.63%           
=======================================
  Files         236      236           
  Lines        6331     6331           
=======================================
  Hits         6118     6118           
  Misses        213      213           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Handle Turbo related events to support `turbo_frame_tag`s
in Dialogs.
By responding with a turbo-stream instead of js.erb,
we can replace the old Rail-UJS data-remote with a
turbo-frame.
@tvdeyen tvdeyen changed the title Turbo frames create element Use turbo frame and stream to create element Sep 26, 2024
@tvdeyen tvdeyen added this to the 8.0 milestone Sep 26, 2024
@tvdeyen tvdeyen marked this pull request as ready for review September 26, 2024 06:49
@tvdeyen tvdeyen requested a review from a team as a code owner September 26, 2024 06:49
@sascha-karnatz
Copy link
Contributor

Looks pretty good

@tvdeyen tvdeyen merged commit da92ae1 into main Sep 26, 2024
39 of 40 checks passed
@tvdeyen tvdeyen deleted the turbo-frames-create-element branch September 26, 2024 07:00
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