-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create
BlockNumber
filter (#522)
* refactor(web): create Option type for Dropdown options * chore(web): update changeset * refactor(web): use label in Dropdown selected option display * refactor(web): update Dropdown component main filename * refactor(web): remove nested /components folder in Dropdown * feat(web): render value when no label in Dropdown * feat(web): add prefix slot to Dropdown option * feat(web): add filter panel with rollup filter in PaginatedTable * chore(web): update changeset * refactor(web): rename main PaginedTable filename * refactor(web): rename main FilersPanel filename * refactor(web): update RollupFilter component to fetch rollups from API * feat(web): add filters to query params * fix(web): pages number calculation in PaginatedTable * fix(web): pages number calculation in PaginatedTable * feat(web): install React DatePicker Tailwind library * feat(web): add full width prop to Button * feat(web): add custom height prop to Dropdown * feat(web): add Timestamp filter to FilterPanel * chore(web): update changeset * feat(web): add timestamp filters to URL * fix(web): Skeleton custom height not working * refactor(web): simplify dropdowns options * refactor(web): reduce contitions to filter in Filters * fix(web): reset filters when all are reset after being filtered * feat(web): create BlockNumber filter * feat(web): move block number validations to filters form * chore(web): update changeset * fix(web): reset filters when all are reset after being filtered * feat(web): add clear button for filter * fix(web): clear/filter buttons responsiveness * fix(web): clear/filter buttons responsiveness for desktop * fix(web): fix block number filter responsiveness * refactor(web): decouple Filters from PaginatedTable * fix(web): fix filters reponsiveness * fix(web): align timestamp filter input style with the dropdown component for consistency * fix(web): convert filter dates to ISO format before adding them as query parameters * fix(web): rollback global styles * refactor(web): refactor input components - Separate number input into its own component. - Perform number input validation logic within the component directly. - Set up input style variants. * fix(web): fix hint light color * fix(web): align inputs styles * chore(web): remove unused filters utilities * fix(web): separate `Header` and `Filters` from `PaginatedTable` * feat(web): enhance block number filter with responsive design * feat(web): enhance filters bar with responsive design * refactor(web): resolve review comments * refactor(web): encapsulate `Filters` state management into a reducer * fix(web): align input clear icons colors --------- Co-authored-by: Luis Herasme <[email protected]> Co-authored-by: PJColombo <[email protected]>
- Loading branch information
1 parent
d0b07e1
commit 9c56d5b
Showing
20 changed files
with
508 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@blobscan/web": minor | ||
--- | ||
|
||
Added BlockNumber filter to PaginatedTable filter panel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { FC } from "react"; | ||
|
||
import type { NumberRangeInputProps } from "../Inputs/NumberRangeInput"; | ||
import { NumberRangeInput } from "../Inputs/NumberRangeInput"; | ||
|
||
type BlockNumberFilterProps = Pick<NumberRangeInputProps, "range" | "onChange">; | ||
|
||
export const BlockNumberFilter: FC<BlockNumberFilterProps> = function (props) { | ||
return ( | ||
<NumberRangeInput | ||
className="w-full" | ||
type="uint" | ||
inputStartProps={{ placeholder: "Start Block" }} | ||
inputEndProps={{ placeholder: "End Block" }} | ||
{...props} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.