skills icon indicating copy to clipboard operation
skills copied to clipboard

Skills-Search rework: Clean up views

Open RandomTannenbaum opened this issue 10 months ago • 0 comments

At the moment the skill search consists of multiple turbo frames and partials. We want to clean this up if possible. The current plan is to use the new (since Turbo 8) refresh Turbo Stream with morphing. When a filter is changed the form is submitted. The controller responds with the refresh Turbostream, which morphs the changed elements on the page and displays the updated results from the filter_params class.

The new button can be handled with something like a new query param, which causes the filter form controller to add a new filter to the filter params.

Similarly, the delete button could do the same and pass the row number to delete with the query param.

After these actions the controller also responds with the refresh turbo stream.

ToDo

  • [ ] Clean up the views, partials, stimulus controllers and turboframes as much as possible to have a clean, new solution
  • [ ] Make sure to use the morphing option when working with the refresh turbo stream to not cause full page reloads
  • [ ] Tests still run

RandomTannenbaum avatar Mar 04 '25 14:03 RandomTannenbaum