Make start session and finish session not reload the whole page #52
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Depends on
#53 Render session list as table
lukas/timetracker
Reference: lukas/timetracker#52
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
This is very slow.
Not closing yet because the current solution is POC at best.
Using HTMX (https://htmx.org) we start/end session using AJAX and then replace parts of the page without reloading.
However, these need to be fixed/improved before it would be considered fixed:
hx-select
are suuuper ugly and hacky** This is because the session list "table" is rendered using grid
*** This means instead of being able to replace a single row, we have to use 2x
:nth-child
CSS selectors to select a range ofdiv
s. VERY BAD. #53*** This also means we cannot use HTMX to only get nice partial HTML, instead we render the whole page and select only part of it. Probably still slow despite not reloading the whole page.
I've already did a POC of returning HTML partials with Django in
3f037b4c7c
, additionally there are packages for improving working with partials.Further reading:
Done properly in
0cf3411f63
and44f49e5974