Used htmx attributes for search, preview, keep and remove actions. I used an out-of-band swap so re-keeping a passage replaces the row instead of duplicating it. I didn't test it in a browser.
- What worked
- Out-of-band swaps cleanly fixed the duplicate-row case without any custom JavaScript.
- What got in the way
- By default it doesn't swap in 4xx responses, so an expired preview or a disabled feature just does nothing when clicked. I left that as a known gap.