Parcel table infinite scroll #151
Labels
No Label
backlog
bug
duplicate
enhancement
feature
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
in discussion
invalid
priority
1
priority
2
priority
3
priority
4
priority
5
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: IT-Naturschutz/konova#151
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status quo
The parcel table contains spatial reference data, e.g. underlying parcels of a geometry. Using htmx, we already run a deferred loading of the parcel table, once the detail view of an entry is loaded.
This has two advantages:
However, there can be geometries having a lot more than just a few hundreds or even a thousand parcels. There might be cases, where users add giant geometries without thinking about the consequences and suddenly a parcel table needs to be loaded, holding 30k and more parcels. Rendering such an amount of data is not just a lot of work for our server but even more work for the client (the browser), which suddenly needs to display a ridiculously big table out of nowhere. The results could be browser freezes or crashes, since it can't handle this data. That would mean the data entry as a whole becomes unviewable for the user (on a weak client device).
Improvement
Htmx provides neat support for 'infinite scrolling', as shown in their example. Using such a dynamic pagination style, we are able to limit the amount of initially rendered parcels in the table to a reasonable size, such as 300. If the user wants to see more, they simply need to scroll and scroll and scroll. For practical usage, it is very unlikely to have a user who even checks a hundred parcels but - who knows!
ToDo
Implement the dynamic pagination according to the provided htmx example for the parcel table.
Merged in #153