-
Notifications
You must be signed in to change notification settings - Fork 9
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
Network proposal votes: add search by validator name #1357
Conversation
2d971f4
to
c6913a8
Compare
2f3359a
to
5ceb728
Compare
5ceb728
to
f4a54ba
Compare
Deployed to Cloudflare Pages
|
f4a54ba
to
832d974
Compare
9b2a36a
to
b7a4710
Compare
src/app/hooks/useTypedSearchParam.ts
Outdated
export function useTypedSearchParam<T = string>( | ||
paramName: string, | ||
defaultValue: T, | ||
defaultSetterOptions: UrlSettingOptions = {}, | ||
): [T, SetterFunction<T>] { |
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.
Instead of T = string
, lets do something like
explorer/src/app/utils/storage.ts
Line 18 in 61c87ee
const get = <T extends keyof StorageType>(key: T): StorageType[T] | undefined => { |
d0a7a79
to
0ca0f1c
Compare
This has been extensively reviewed by @donouwens . Everything has been adjusted as he requested. I am open to changes though, if there are any specific requests. |
92fa16d
to
4c5ddca
Compare
I don't recall this tbh. It does not seem logical to highlight sections that are not part of the search query |
I would say the search bar here is self-explanatory. Users are 'deep' into the Explorer so we can reasonably expect them to know what they'd be searching for (unlike with the main search bar of the Explorer). My vote would be to not include suggestions. |
The width and radius of the dropdown do not seem to match in the screenshot indeed. Could you match the width and radius to match the input field (visually), please? |
@donouwens , I think @lubej was actually speaking about the main search bar of the Explorer. Right? (However, Don, your interpretation is also understandable, since PR is about adding another search bar besides that one...) |
Ahhh, misinterpreted the message indeed. Sorry. We can add it, on desktop it's no problem, but mobile might make it tricky with the width (I would not want this to go over 2 lines tbh). Send you design on Slack @csillag |
b3ac251
to
aec6efc
Compare
On further discussion, @donouwens 's verdict is:
So I guess we don't need to do anything about this, for now. |
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.
Apart from few small nits, LGTM
953f2ce
to
3111f56
Compare
Also tune how de display CardEmptyState, so that the action can cleanly wrap into the next line when needed.
28b2481
to
c4dd5d1
Compare
Also, handle situation when there are 0 votes
c4dd5d1
to
9dc098c
Compare
This adds the search feature for the network proposal vote list.