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

feat(approval-domain): add UI for approval domains #10480

Merged
merged 9 commits into from
Feb 25, 2025

Conversation

AMoreaux
Copy link
Contributor

No description provided.

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.
@AMoreaux AMoreaux self-assigned this Feb 25, 2025
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 enhances the UI for approval domains by adding descriptive elements and improving input components for better user experience.

  • Added getItemDescription prop to SettingsListCard 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 using beautifyPastDateRelativeToNow
  • 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

@FelixMalfait
Copy link
Member

Great!

Page is not taking full height/width on my side:
Screenshot 2025-02-25 at 15 58 53

@FelixMalfait
Copy link
Member

Sorry it's this one but both have the same issue and should be fixed:

Screenshot 2025-02-25 at 16 08 06

@AMoreaux
Copy link
Contributor Author

Great!

Page is not taking full height/width on my side: Screenshot 2025-02-25 at 15 58 53

Same for the custom domain page. I check that

Added a CSS rule to make form elements span 100% width. This resolves layout inconsistencies across different sections of the application.
@FelixMalfait
Copy link
Member

Change "Approved Email Domain" to "Approved Domains"

Screenshot 2025-02-25 at 16 09 37

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;
`;

Copy link
Member

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.
@AMoreaux AMoreaux enabled auto-merge (squash) February 25, 2025 15:37
@AMoreaux AMoreaux merged commit 7c9b902 into main Feb 25, 2025
47 checks passed
@AMoreaux AMoreaux deleted the feat/add-ui-for-approval-domains branch February 25, 2025 15:44
Copy link
Contributor

Thanks @AMoreaux for your contribution!
This marks your 102nd PR on the repo. You're top 1% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

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.

2 participants