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

Remove cocoon #4184

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Remove cocoon #4184

merged 1 commit into from
Apr 2, 2024

Conversation

elasticspoon
Copy link
Collaborator

@elasticspoon elasticspoon commented Mar 11, 2024

Fixes #3556

I am working on several PRs to replace cocoon with existing Stimulus behavior.

This PR depends on 2 other PRs. Specifically this one removes the dependency on Cocoon,
previous ones have already replaced cocoon behavior.

About Further Refactoring

After looking at it, I think unless the goal is specifically to remove jquery the code would get more complex by moving stuff like the donations utility javascript to stimulus controllers.

I think it would result in a ton of duplication of setting data-targets in the HTML. Not a big fan, but I am totally open to other ideas on how to further refactor.

Type of change

  • Refactor

How Has This Been Tested?

Passes Existing Tests

@elasticspoon elasticspoon force-pushed the remove-cocoon branch 2 times, most recently from 1f02a5b to 8964227 Compare March 11, 2024 04:51
@elasticspoon elasticspoon force-pushed the remove-cocoon branch 6 times, most recently from 27b1a07 to 9d4478a Compare March 12, 2024 22:39
@elasticspoon elasticspoon marked this pull request as ready for review March 12, 2024 22:49
@elasticspoon elasticspoon force-pushed the remove-cocoon branch 3 times, most recently from 1b369f3 to 3fe1164 Compare March 14, 2024 20:17
@awwaiid awwaiid requested a review from dorner March 31, 2024 16:00
Removes all cocoon code. Depends on rubyforgood#4182.

Needs to clear precompiled assets to work.
@dorner
Copy link
Collaborator

dorner commented Apr 2, 2024

Amazing!

@dorner dorner merged commit e0457da into rubyforgood:main Apr 2, 2024
19 checks passed
@elasticspoon elasticspoon deleted the remove-cocoon branch April 2, 2024 14:00
Copy link
Contributor

github-actions bot commented Apr 8, 2024

@elasticspoon: Your PR Remove cocoon is part of today's Human Essentials production release: 2024.04.07.
Thank you very much for your contribution!

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.

[Investigation] Look into removing Cocoon
2 participants