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 Turbo from Dashboard #309

Merged
merged 22 commits into from Dec 31, 2023
Merged

Remove Turbo from Dashboard #309

merged 22 commits into from Dec 31, 2023

Conversation

jamesvandyne
Copy link
Owner

@jamesvandyne jamesvandyne commented Nov 27, 2023

This PR removes Turbo from the Tanzawa dashboard. HTMX is better supported amongst Django projects and this aims to simplify how the admin works so it's more maintainable.

While removing Turbo, I was able able to remove a few different Stimulus controllers as well. Functionally with this PR, there should be no breaking changes. However, as the File picker modal has moved to using the common modal in the dashboard, it's now narrower than before and could use some refinements in the design. That has been left out of this PR.

So we can determine what is relying on Turbo under the hood easily.
As we no longer need to use it since we're doing full page loads when navigating between tabs.
Adds a next button, rather than auto-submitting the form to let it be powered by just htmx. Auto submit can likely be done with htmx or hyperscript, but I do not want it to become a blocker.
As a full page reload is fine.
Because 303 is Turbo specific and 302 is standard http
Really this should be a commit per change and broken up into a lot of smaller commits...but I was doing a lot of experimenting figuring out how to implement this during development.
@jamesvandyne jamesvandyne marked this pull request as ready for review December 31, 2023 02:06
@jamesvandyne jamesvandyne self-assigned this Dec 31, 2023
@jamesvandyne jamesvandyne merged commit 416d434 into main Dec 31, 2023
1 check passed
@jamesvandyne jamesvandyne deleted the admin-no-turbo branch December 31, 2023 02:10
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.

None yet

1 participant