-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat(approval-domain): add UI for approval domains #10480
Conversation
Introduced start and end adornments for TextInputV2 to enhance input functionality and user experience. Updated relevant components to use TextInputV2 with adornments in the security settings page. Added styling and logic to support the adornments seamlessly.
…val-domains # Conflicts: # packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsx
Replaced start and end adornment props with left and right adornment for consistency. Merged separate start and end adornment components into a single reusable styled component to reduce duplication and improve maintainability. Updated related usage and references across the codebase.
Introduced an optional description field for settings list items, allowing additional context or details to be displayed. Updated the approved access domains list to show relative creation dates as item descriptions. This enhances the readability and usability of settings lists.
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 enhances the UI for approval domains by adding descriptive elements and improving input components for better user experience.
- Added
getItemDescription
prop toSettingsListCard
component to display additional information for each list item - Implemented description display in
SettingsListItemCardContent
with styled text to visually distinguish it from labels - Enhanced
SettingsApprovedAccessDomainsListCard
to show formatted creation dates as descriptions usingbeautifyPastDateRelativeToNow
- Improved
TextInputV2
component with left/right adornments for better visual presentation - Updated domain validation in
SettingsSecurityApprovedAccessDomain
with a more accurate regex pattern and clearer error messages
5 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Added a CSS rule to make form elements span 100% width. This resolves layout inconsistencies across different sections of the application.
Renamed the section title from "Approved Email Domain" to "Approved Domains" for better clarity. This change ensures the title accurately reflects the content and functionality of the section.
@@ -31,12 +31,40 @@ const StyledContainer = styled.div< | |||
`; | |||
|
|||
const StyledInputContainer = styled.div` | |||
align-items: center; | |||
background-color: inherit; | |||
display: flex; | |||
flex-direction: row; | |||
position: relative; | |||
`; | |||
|
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.
Could you add it to storybook variants?
Introduce left and right adornments for TextInputV2 to enhance UI flexibility. Adjust line-height dynamically based on sizeVariant to improve visual consistency.
Thanks @AMoreaux for your contribution! |
No description provided.