Skip to content
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

399 pool form touchup #456

Merged
merged 13 commits into from
Oct 10, 2024
Merged

399 pool form touchup #456

merged 13 commits into from
Oct 10, 2024

Conversation

Corantin
Copy link
Contributor

@Corantin Corantin commented Oct 6, 2024

close #399

This pull request involves several updates to the forms and components in the apps/web directory, focusing on improving user experience and code maintainability. The key changes include the addition of a tooltip component, updates to form input handling, and various UI improvements.

Tooltip Component Integration:

Form Input Enhancements:

Form Component Updates:

Additional Changes:

These changes enhance the user interface and improve the maintainability of the codebase by introducing reusable components and updating form handling logic.

- Refactor the CommunityCard component to include TooltipIfOverflow for efficient tooltip display of the name.
- Added a tooltip for better overflow handling on the "Switch to" button in the Connect Wallet component.
- Added a tooltip to display the title in the FormPreview component to handle text overflow.
- Added a tooltip for overflow text on the proposal title in the ProposalCard component and removed an unused prop.
- Added a tooltip component to handle overflow text in the proposals component.
- Added a new TooltipIfOverflow component to display tooltips for overflowing text.
- Enhanced the styling of the address input by adding text size and font properties.
- Updated the styling of the input field to include a monospace font and smaller text size.
- Added a new font family option for monospaced text in the Tailwind configuration.
- Added an optional inline display prop to the FormRadioButton component to allow flexible layout options.
- Refactor the voting weight system selection in the form to use radio buttons with descriptions instead of a select dropdown and integrate the corresponding input conditionally.
- Updated ESLint configuration to allow avoiding escape for quotes in TypeScript.
- Refactor form input components to utilize a suffix prop instead of span elements for symbol and percentage display.
- Refactor the implementation of the address input handling to use a more streamlined input variable instead of a reference.
- Enhanced the FormCheckBox component by adding optional tooltip support, error handling, and value management.
- Remove the unused children prop and add a suffix prop to enhance the FormInput component.
- Refactor the FormSelect component to make the errors prop optional and change the fragment to a div for improved structure.
- Refactor the PoolEditForm component by replacing span suffix elements with a new suffix prop in the FormInput component for cleaner code.
- Enhance the PoolForm component by adding ruling time functionality and streamlining user input fields for proposal and dispute collateral.
- Introduced a utility for parsing time units and conversions.
Copy link

vercel bot commented Oct 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gardens-v2 ✅ Ready (Inspect) Visit Preview 4 resolved Oct 10, 2024 0:07am

Copy link

github-actions bot commented Oct 6, 2024

Gemini Code Review encountered an error. Here is the step log:


- Refactor the FormAddressInput component to simplify state management and streamline avatar URL assignment logic.
- Removed a default value for the `defaultChecked` property in the FormCheckBox component.
- The changes primarily focus on enhancing the PoolEditForm component by refining input handling, adding new fields for ruling time and tribunal options, and improving the overall structure for better user experience.
- Refactor the time parsing logic in the PoolForm component to convert days into a more readable format while ensuring the display adapts for singular and plural units.
- Added a new property for default ruling timeout to the component's props and utilized it within the component logic.
- Refactor the calculation of default ruling timeout and adjust field properties for improved precision in the pool edit form.
- Updated the number input configuration in the PoolForm component to simplify the step value for better user input.
- Updated the input component to allow for more precise step values in the PoolForm.
# Conflicts:
#	apps/web/components/Forms/PoolEditForm.tsx
#	apps/web/components/PoolHeader.tsx
#	pnpm-lock.yaml
@Corantin Corantin merged commit 1a6e1c4 into dev Oct 10, 2024
2 of 3 checks passed
@Corantin Corantin deleted the 399-pool-form-touchup branch October 10, 2024 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants