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(settings): review custom domain #10393

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

Conversation

AMoreaux
Copy link
Contributor

@AMoreaux AMoreaux commented Feb 21, 2025

Introduce improved validation logic for custom domains, including regex validation with descriptive error messages. Implement asynchronous domain update functionality with a loading indicator and polling to check record statuses. Refactor components to streamline functionality and align with updated state management.

Fix twentyhq/core-team-issues#453

Introduce improved validation logic for custom domains, including regex validation with descriptive error messages. Implement asynchronous domain update functionality with a loading indicator and polling to check record statuses. Refactor components to streamline functionality and align with updated state management.
@AMoreaux AMoreaux self-assigned this Feb 21, 2025
Removed leftover console debug statement in the workspace service file. This ensures cleaner logs and avoids unintended output in production environments.
Removed a redundant null check for records in custom-domain.service. The check was unnecessary as the code already ensures valid records are processed.
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 custom domain management with improved validation, status handling, and user feedback mechanisms across both frontend and backend components.

  • Added comprehensive regex validation in SettingsDomain.tsx requiring subdomains and preventing invalid characters with descriptive error messages
  • Implemented 10-second delay before CNAME verification in custom-domain.service.ts to prevent false negatives during DNS propagation
  • Added loading states and polling mechanism in SettingsCustomDomainEffect.tsx for real-time domain validation status updates
  • Enhanced error handling with specific error codes and rollback mechanisms for domain operations in workspace service
  • Introduced debounced clipboard functionality in SettingsCustomDomainRecords.tsx for better UX when copying domain records

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

Simplified the map functions in SettingsCustomDomainRecords and SettingsCustomDomainRecordsStatus by removing unnecessary return statements and braces. This improves readability and aligns with cleaner coding practices.
Moved records array definition outside the component for better readability and performance. Simplified table row mapping by directly iterating through rows array.
Improve custom domain status display with styling updates and added capitalized text. Introduce loading indicators and adjust polling interval for better feedback. Implement additional UI enhancements such as padding adjustments and consistency across components.
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.

Custom domain fast-follows
1 participant