Closed Poafs1 closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
celatone-frontend-staging | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 17, 2024 5:13am |
The changes involve a significant refactor of various components within the codebase, particularly focusing on the select input functionality. The SelectInput
component has been replaced with SelectInputBase
in multiple files, indicating a shift towards a more standardized implementation. Additionally, several components have been updated to utilize a new structure for handling asset options, enhancing type safety and clarity. The refactor also includes modifications to props and the introduction of new interfaces, streamlining the overall component architecture.
Files | Change Summary |
---|---|
src/lib/components/TxRelationSelection.tsx , src/lib/components/forms/FilterByPermission.tsx , src/lib/components/forms/index.ts , src/lib/components/fund/index.tsx , src/lib/pages/pools/components/FilterByPoolType.tsx , src/lib/pages/proposal-details/components/vote-details/voting-period/validator-votes-table/index.tsx , src/lib/pages/proposal-details/components/vote-details/voting-period/votes-table/index.tsx , src/lib/pages/validator-details/components/tables/voted-proposals/index.tsx , src/lib/pages/validators/components/ActiveFilter.tsx , src/lib/pages/validators/components/OrderSelect.tsx |
Renamed SelectInput to SelectInputBase , indicating a shift in the underlying implementation or functionality. |
src/lib/components/forms/SelectInput.tsx , src/lib/components/forms/SelectInputBase.tsx |
Refactored SelectInput to utilize the Select component from chakra-react-select , simplifying the structure and enhancing usability. Introduced SelectInputBase as a new customizable select input component with internal state management and enhanced props for better functionality. |
src/lib/components/forms/asset-input/AssetInputFormatOptionLabel.tsx , src/lib/components/forms/asset-input/AssetInputMenuList.tsx , src/lib/components/forms/asset-input/AssetInputNoOptionsMessage.tsx , src/lib/components/forms/asset-input/AssetInputOption.tsx , src/lib/components/forms/asset-input/index.tsx |
Updated to work with a new structured option type, enhancing type safety and clarity in handling asset options. |
src/lib/components/modal/wasm-verify-submit/WasmVerifySubmitFormSelect.tsx , src/lib/components/modal/wasm-verify-submit/WasmVerifySubmitFormSelectNoOptionsMessage.tsx , src/lib/components/modal/wasm-verify-submit/WasmVerifySubmitFormSelectOption.tsx |
Refactored to utilize the new SelectInput component and updated type definitions for options, enhancing flexibility and maintainability. |
src/lib/types/asset.ts |
Introduced a new interface AssetOptionValue for a more detailed representation of asset options and modified the AssetOption type to be based on SelectInputOption . |
src/lib/components/forms/forms/FilterByPermission.tsx |
Updated import statements and component usage to reflect the new structure and naming conventions. |
sequenceDiagram
participant User
participant FilterComponent
participant SelectInputBase
participant AssetOptions
User->>FilterComponent: Select an option
FilterComponent->>SelectInputBase: Trigger selection change
SelectInputBase->>AssetOptions: Fetch available options
AssetOptions-->>SelectInputBase: Return options
SelectInputBase-->>FilterComponent: Update selected option
FilterComponent-->>User: Display updated selection
🐇 In the code, we hop and play,
New inputs lead the way!
With options bright and clear,
Selecting brings us cheer!
A refactor, oh so neat,
Makes our forms a tasty treat! 🥕
SelectInput
component, which is directly related to the changes in the SelectInputBase
component, as it indicates a transition from SelectInput
to SelectInputBase
in multiple components.getFirstQueryParam
function with Zod validation, which is relevant as it indicates improvements in validation processes that may relate to the overall enhancements mentioned in the main PR.
Summary by CodeRabbit
Release Notes
New Features
SelectInputBase
, a customizable select input component for improved user interaction.Bug Fixes
Refactor
SelectInputBase
, enhancing maintainability and performance.Select
component in several areas.Documentation