Selecting static item (model/brand) will now populate search history
Selecting search history will directly navigate to desired result, namely
model 👉🏿 model detail page
brand 👉🏿 all devices page, pre-selected brand filter
random query 👉🏿 all devices page, with query result shown
Selecting older search history item will make it a new search history item (appear on top of search bar)
Known issue
Note how code are duplicated in both files home.js & device.js, this will be refactored in incoming PRs after script imports intergration with astro is resolved
Notes
Known issue
Note how code are duplicated in both files
home.js
&device.js
, this will be refactored in incoming PRs after script imports intergration with astro is resolvedPreview
https://github.com/oursky/mockuphone.com/assets/74223769/9b97bad7-bc79-4af5-b167-40dc23e7c452