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

Settings Option Card component #8456

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

ehconitin
Copy link
Contributor

fixes - #8195

Copy link

github-actions bot commented Nov 11, 2024

TODOs/FIXMEs:

  • // TODO: temporary fix - disabling edition because after editing the defaultValue,: packages/twenty-front/src/modules/settings/data-model/fields/forms/boolean/components/SettingsDataModelFieldBooleanForm.tsx
  • // TODO: temporary fix - disabling edition because after editing the defaultValue,: packages/twenty-front/src/modules/settings/data-model/fields/forms/boolean/components/SettingsDataModelFieldBooleanForm.tsx

Generated by 🚫 dangerJS against cac20d7

@ehconitin ehconitin marked this pull request as ready for review November 12, 2024 21:17
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR standardizes settings options UI across the application by introducing a new SettingsOptionCardContent component with consistent design patterns.

  • Added new SettingsOptionCardContent component in /settings/components/SettingsOptionCardContent.tsx supporting toggle, counter, and select variants with standardized styling
  • Added AdvancedSettingsWrapper component in /settings/components/AdvancedSettingsWrapper.tsx for consistent advanced mode animations
  • Replaced custom toggle/input components with standardized SettingsOptionCardContent in calendar, message, and data model settings
  • Added new useExpandedAnimation hook in /settings/hooks/useExpandedAnimation.ts to handle both width/height animations, replacing the previous height-only hook
  • Added IconDecimal and IconSlash to TablerIcons for consistent iconography across settings

21 file(s) reviewed, 21 comment(s)
Edit PR Review Bot Settings | Greptile

variant="counter"
Icon={IllustrationIconDecimal}
title="Number of decimals"
description="Set the number of decimal places"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max should not be 100 here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants