-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(web): search filter form #6651
Conversation
alextran1502
commented
Jan 26, 2024
•
edited
Loading
edited
Deploying with
|
Latest commit: |
5a4869a
|
Status: | ✅ Deploy successful! |
Preview URL: | https://653f9f53.immich.pages.dev |
Branch Preview URL: | https://feat-new-search-form.immich.pages.dev |
a6aedd0
to
98212c7
Compare
…nto feat/new-search-form
@@ -2,27 +2,37 @@ | |||
// Necessary for eslint | |||
/* eslint-disable @typescript-eslint/no-explicit-any */ | |||
type T = any; | |||
|
|||
export type Type = 'button' | 'submit' | 'reset'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is probably a provided type for this already. HtmlButtonElement['type'] or something
<!-- SEARCH HISTORY BOX --> | ||
{#if showHistory} | ||
<SearchHistoryBox | ||
on:clearAllSearchTerms={clearAllSearchTerms} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably prefer an interface of:
clear: string?
Omitting the term implies clear all. And then just have on:clear={({ detail: term }) => handleClear(term)}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One is for clearing the individual search term, one is for clearing all of the terms.
Are you thinking that if we do not pass in the term, we will clear all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!