-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
base: main
Are you sure you want to change the base?
Conversation
TODOs/FIXMEs:
|
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.
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
andIconSlash
to TablerIcons for consistent iconography across settings
21 file(s) reviewed, 21 comment(s)
Edit PR Review Bot Settings | Greptile
...ty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx
Show resolved
Hide resolved
...nty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
Show resolved
Hide resolved
...nty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/components/AdvancedSettingsWrapper.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/components/AdvancedSettingsWrapper.tsx
Show resolved
Hide resolved
...ules/settings/data-model/fields/forms/number/components/SettingsDataModelFieldNumberForm.tsx
Show resolved
Hide resolved
...rc/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/hooks/useExpandedAnimation.ts
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/hooks/useExpandedAnimation.ts
Show resolved
Hide resolved
packages/twenty-front/src/pages/settings/security/SettingsSecurity.tsx
Outdated
Show resolved
Hide resolved
...nty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/components/SettingsOptionCardContent.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/components/SettingsOptionCardContent.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/components/SettingsOptionCardContent.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/components/SettingsOptionCardContent.tsx
Outdated
Show resolved
Hide resolved
variant="counter" | ||
Icon={IllustrationIconDecimal} | ||
title="Number of decimals" | ||
description="Set the number of decimal places" |
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.
max should not be 100 here!
fixes - #8195