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

Enable framework extras in backend #1234

Closed
wants to merge 2 commits into from
Closed

Conversation

mjauvin
Copy link
Member

@mjauvin mjauvin commented Oct 18, 2024

Fixes #1233

@mjauvin mjauvin added the needs review Issues/PRs that require a review from a maintainer label Oct 18, 2024
@mjauvin mjauvin self-assigned this Oct 18, 2024
@LukeTowers
Copy link
Member

@mjauvin does this cause any duplication / double handling of existing backend functionality?

@mjauvin
Copy link
Member Author

mjauvin commented Oct 20, 2024

@LukeTowers I checked thoroughly and there is no duplication whatsoever.

@mjauvin
Copy link
Member Author

mjauvin commented Oct 20, 2024

I just realized there may be a need to also include the extras css as well... will check asap and report back here.

@mjauvin
Copy link
Member Author

mjauvin commented Oct 20, 2024

Ok, so the extras styles are already contained in snowboard.extras.css, so no need here.

@mjauvin
Copy link
Member Author

mjauvin commented Oct 20, 2024

@bennothommo what was the reason you included snowboard.extras.css in the backend ?

@bennothommo
Copy link
Member

bennothommo commented Oct 21, 2024

@mjauvin the backend build of Snowboard does use some utilities that need styling (Flash, Stripe Loader, Transition).

Also, I'm thinking it might be better that we try and hook up the original AJAX framework's events to Snowboard, and use the Snowboard Attach Loading utility instead. Should hopefully be doable.

@bennothommo bennothommo removed the needs review Issues/PRs that require a review from a maintainer label Oct 21, 2024
@bennothommo
Copy link
Member

I've submitted an alternate way of handling this - #1235. I've seen one plugin manually including the framework.extras (Test plugin), so I'm leaning towards it was only meant to be included when needed and not globally, but up to you guys if we want to hook it into Snowboard or just use @mjauvin's PR.

@bennothommo bennothommo added the maintenance PRs that fix bugs, are translation changes or make only minor changes label Oct 21, 2024
@LukeTowers
Copy link
Member

@jaxwilko any thoughts?

LukeTowers pushed a commit that referenced this pull request Oct 31, 2024
Replaces #1234, fixes #1233.

Instead of loading framework.extras.css, which appears to be excluded from the Backend, this PR hooks the necessary original AJAX framework events into Snowboard's events, allowing the applicable events to execute UI functionality such as data-attach-loading and the Stripe loader.

This is technically a stop-gap solution for now, since it doesn't emulate a full Snowboard request, so there's the potential for custom Snowboard event listeners to break if they are relying on Snowboard request information, but I'm not aware of that happening yet in core.
@mjauvin
Copy link
Member Author

mjauvin commented Oct 31, 2024

replaced by #1235

@mjauvin mjauvin closed this Oct 31, 2024
@mjauvin mjauvin added duplicate Issues that are a duplicate of another reported issue and removed maintenance PRs that fix bugs, are translation changes or make only minor changes labels Oct 31, 2024
@LukeTowers LukeTowers deleted the framework-combined branch November 1, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues that are a duplicate of another reported issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Framework extras missing in backend
3 participants