ckan / ckan

CKAN is an open-source DMS (data management system) for powering data hubs and data portals. CKAN makes it easy to publish, share and use data. It powers catalog.data.gov, open.canada.ca/data, data.humdata.org among many other sites.

Home Page:https://ckan.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leverage HTMX in CKAN's Activity Stream

pdelboca opened this issue · comments

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

commented

@pdelboca should the url change without reloading the page?

@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/