UTDallasEPICS / Comet-Cupboard

4 stars 3 forks source link

Search autocomplete #74

Closed emoryjgrubbs closed 3 weeks ago

emoryjgrubbs commented 1 month ago

the autocomplete functionality should be working for both items and carts (the correct component is on both pages), but the searchterm isn't displayed on the verify carts page because there is already content there.

for both carts and items it's returning the id that will be searched for

the filtering is done through api calls .../filtered[resultType].get.ts i've turned off the date check on the cart calls, so that can be implemented with the list of carts solution

i'm not sure about the styling right now, it's inline with the sources, but leaves a lot of whitespace on the sides. i may take another look at it later

changed selection highlight color. for now it's utd-orange, but i'd be happy with pretty much anything from our color palate (i was just tired of looking at the blue that didn't match)

emoryjgrubbs commented 4 weeks ago

left aligned the autocomplete results, with some padding and increased size so they line up with what you type 2024-10-30T17:59:59,006677140-05:00

i also merged the two api calls in the search module (every record contains '') but i'm going to wait to merge with pendingCarts.get till i talk to you tomorrow so we can figure out what's best