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
🧹 Clean up CMS javascript assets #3773
base: master
Are you sure you want to change the base?
Conversation
josemigallas
commented
May 2, 2024
- Reduce/Remove dependency from jQuery to remove technical debt
- Remove mysterious functions from global scope
- Reduce boilerplate
- Remove old, broken and/or unused files and scripts
- Remove duplicated files and code
- Put files where they belong (dev portal ones under lib/developer_portal)
d4d343f
to
50a7d89
Compare
c38d1ec
to
98f2faf
Compare
98f2faf
to
c8b1cde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel very capable of reviewing this but I checked out the branch locally and it seems to work fine for me.
@josemigallas how are you sure these are not breaking changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove this warning:
porta/features/old/cms/versioning.feature
Line 12 in de95283
# FIXME: event handler defined at app/assets/javascripts/provider/admin/cms/templates.js:144 gets |
<%= javascript_include_tag 'codemirror/modes/liquid' %> | ||
|
||
<%= javascript_tag do %> | ||
<% timeout = (Rails.env.development? or Rails.env.test?) ? 10000 : 3000 -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why different timeout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who knows, I decided to let it be (it comes from https://github.com/3scale/porta/blob/1ca3cb2e8f364a4e7f0f17c1bf4263ae36de21c4/app/views/provider/admin/cms/_includes.html.erb)
Super hard to review this, as I don't understand some code well enough. But it seems that the features the changes affect work as expected. |