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

Reduce JS libs dependencies via HTMX 2 #2735

Open
1 task done
phillxnet opened this issue Nov 9, 2023 · 5 comments
Open
1 task done

Reduce JS libs dependencies via HTMX 2 #2735

phillxnet opened this issue Nov 9, 2023 · 5 comments
Labels
UI-enhancement Enhancement, renovation, update within Web-UI.

Comments

@phillxnet
Copy link
Member

phillxnet commented Nov 9, 2023

HTMX looks to be the right way to go on this front, especially given:

See/hear: https://talkpython.fm/episodes/show/437/htmx-for-django-developers-and-all-of-us

There is also Django middleware and PyCharm plugins.
PyPi: https://pypi.org/project/django-htmx/
Project Changelog: https://django-htmx.readthedocs.io/en/latest/changelog.html

The aim here would be to swap out the entirety of our rockstor-jslibs for whatever is required to do the same but via HTMX. And in the process eradicate our hands-on JS need entirely; hopefully.

This would be a piecemeal approach where we do one page/section at a time type as we gain familiarity, so likely an initial enlargement of our dependencies: but ultimately the proposed aim here is to standardise on HTMX entirely.

Required Dependencies

@phillxnet
Copy link
Member Author

phillxnet commented Nov 9, 2023

This issue depends on: "Update Django to next LTS" #2734

Context: https://django-htmx.readthedocs.io/en/latest/changelog.html#id9

1.11.0 (2022-05-10)
Drop support for Django 2.2, 3.0, and 3.1.

@phillxnet
Copy link
Member Author

Re:

This issue depends on: "Update Django to next LTS" #2734

#2734 has now been resolved via PR: "Update Django to next LTS #2734" #2737

With a follow-up further Django update via PR: "Update Django to latest 4.2 LTS #2750" #2752

@phillxnet
Copy link
Member Author

Adding contextual link back to our Django Server Side Events issue: #2739

@phillxnet phillxnet changed the title Reduce JS libs dependencies via HTMX Reduce JS libs dependencies via HTMX 2 Jun 19, 2024
@phillxnet
Copy link
Member Author

As of this comment, we have a release announcement for htmx 2.0.0, initially known as the next variant as latest is to remain reference for compatibility purposes to the original 1 series untill Jan 1, 2025.

https://htmx.org/posts/2024-06-17-htmx-2-0-0-is-released/

We should skate to where the puck will be on this front: given we are starting out fresh with htmx in our pending testing phase (hopefully).

@phillxnet
Copy link
Member Author

phillxnet commented Jun 19, 2024

@phillxnet phillxnet added the UI-enhancement Enhancement, renovation, update within Web-UI. label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI-enhancement Enhancement, renovation, update within Web-UI.
Projects
None yet
Development

No branches or pull requests

1 participant