feat: instant package removal #423

Merged
erictapen merged 2 commits from instant-package-removal into main 2024-12-07 00:03:08 +00:00
erictapen commented 2024-12-05 15:52:21 +00:00 (Migrated from github.com)

Depends on #422 as I refactored some stuff there.

Closes #411

Depends on #422 as I refactored some stuff there. Closes #411
fricklerhandwerk commented 2024-12-06 00:58:57 +00:00 (Migrated from github.com)

Draft until #422 is sorted out

Draft until #422 is sorted out
fricklerhandwerk (Migrated from github.com) reviewed 2024-12-06 10:03:20 +00:00
fricklerhandwerk (Migrated from github.com) commented 2024-12-06 10:03:20 +00:00

Doesn't this disable the scriptless workflow?

Doesn't this disable the scriptless workflow?
erictapen (Migrated from github.com) reviewed 2024-12-06 10:06:14 +00:00
erictapen (Migrated from github.com) commented 2024-12-06 10:06:14 +00:00

Yeah thats right. From the commit message:

This means that no-JS users will need to commit a status change when
removing packages, but at least that fact should be communicated well as
the page never reloads on package removal.

Yeah thats right. From the commit message: > This means that no-JS users will need to commit a status change when removing packages, but at least that fact should be communicated well as the page never reloads on package removal.
fricklerhandwerk (Migrated from github.com) reviewed 2024-12-06 10:24:06 +00:00
fricklerhandwerk (Migrated from github.com) commented 2024-12-06 10:24:06 +00:00

Why not just remove the element when scripting is enabled?

Why not just remove the element when scripting is enabled?
erictapen (Migrated from github.com) reviewed 2024-12-06 11:34:22 +00:00
erictapen (Migrated from github.com) commented 2024-12-06 11:34:22 +00:00

I spent some time trying to do that in htmx, but didn't figure out how. Would be cool if htmx had some init event that can be used for hx-on.

For now I included one line of JS code in the base.html file.

I spent some time trying to do that in htmx, but didn't figure out how. Would be cool if htmx had some init event that can be used for `hx-on`. For now I included one line of JS code in the `base.html` file.
fricklerhandwerk (Migrated from github.com) approved these changes 2024-12-06 13:43:12 +00:00
fricklerhandwerk (Migrated from github.com) left a comment

Works, but given the number of conditionals it's time for factoring out the dynamics, as discussed, before moving on with new features in that code.

Works, but given the number of conditionals it's time for factoring out the dynamics, as discussed, before moving on with new features in that code.
fricklerhandwerk (Migrated from github.com) reviewed 2024-12-06 13:43:58 +00:00
fricklerhandwerk (Migrated from github.com) commented 2024-12-06 13:43:58 +00:00

I also had a look into that, but the classic seems to be the only reasonable thing.

I also had a look into that, but the classic seems to be the only reasonable thing.
Sign in to join this conversation.
No description provided.