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

Leverage HTMX in CKAN's Activity Stream #8129

Open
2 tasks
pdelboca opened this issue Mar 21, 2024 · 2 comments · May be fixed by #8160
Open
2 tasks

Leverage HTMX in CKAN's Activity Stream #8129

pdelboca opened this issue Mar 21, 2024 · 2 comments · May be fixed by #8160
Assignees

Comments

@pdelboca
Copy link
Member

CKAN version

master

Details

The current UI to display activity stream is a really good place to leverage HTMX. This will require some refactor on how the templates but both the pagination and the filters could be improved.

Tasks

  • Use an hx-get attribute in our Activity type select element to apply the filters.
  • Use as well hx-get to move between pages instead of full page reload.

Screenshot of the view to refactor

image

@aleeexgreeen
Copy link

@pdelboca should the url change without reloading the page?

@pdelboca
Copy link
Member Author

@aleeexgreeen since our view logic depends on URL parameters you can push the URL to the browser history with hx-push-url:

https://htmx.org/attributes/hx-push-url/

@aleeexgreeen aleeexgreeen linked a pull request Apr 6, 2024 that will close this issue
5 tasks
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 a pull request may close this issue.

3 participants