Added filter/sort/search to /minifigures and /parts #86

Merged
FrederikBaerentsen merged 1 commits from feature/sort-search-filter into master 2025-09-16 09:37:33 +02:00

Added search/filter/sort option to the /minifigures and /parts pages.

Issue #85 asks for an option to filter by owner. This is implemented by selecting an owner (like on the /sets page) and then running a new query for minifigures by this owner. Search/sort works the same as before.
Same principle is done on /parts. This wasn't requested but it seemed logical to implement it the same way.

The styling is the same as /sets.

If theres no owner created, the filters wont be shown.

Single annoyance exists. Where as the parts table can show a square of the color and then the color name, the way <option> works in html, it isn't possible to have multiple stylings in the same option. Therefore there's only shown the color name in black.

Added search/filter/sort option to the /minifigures and /parts pages. Issue #85 asks for an option to filter by owner. This is implemented by selecting an owner (like on the /sets page) and then running a new query for minifigures by this owner. Search/sort works the same as before. Same principle is done on /parts. This wasn't requested but it seemed logical to implement it the same way. The styling is the same as /sets. If theres no owner created, the filters wont be shown. Single annoyance exists. Where as the parts table can show a square of the color and then the color name, the way `<option>` works in html, it isn't possible to have multiple stylings in the same option. Therefore there's only shown the color name in black.
FrederikBaerentsen added 1 commit 2025-09-15 20:40:03 +02:00
FrederikBaerentsen merged commit 40b63fff6a into master 2025-09-16 09:37:33 +02:00
Sign in to join this conversation.