refacto(*): rename hostname to custom domain (#10100)

This commit is contained in:
Antoine Moreaux
2025-02-10 16:12:36 +01:00
committed by GitHub
parent 2a0f937899
commit f733307517
51 changed files with 285 additions and 4757 deletions

View File

@ -20,7 +20,7 @@ export type CurrentWorkspace = Pick<
| 'isPasswordAuthEnabled'
| 'hasValidEnterpriseKey'
| 'subdomain'
| 'hostname'
| 'customDomain'
| 'workspaceUrls'
| 'metadataVersion'
>;

View File

@ -161,7 +161,7 @@ export const queries = {
isPasswordAuthEnabled
subdomain
hasValidEnterpriseKey
hostname
customDomain
workspaceUrls {
subdomainUrl
customUrl
@ -190,7 +190,7 @@ export const queries = {
logo
displayName
subdomain
hostname
customDomain
workspaceUrls {
subdomainUrl
customUrl
@ -308,7 +308,7 @@ export const responseData = {
},
workspaceMembers: [],
currentUserWorkspace: {
settingsPermissions: ['DATA_MODEL']
settingsPermissions: ['DATA_MODEL'],
},
currentWorkspace: {
id: 'test-workspace-id',
@ -323,7 +323,7 @@ export const responseData = {
isMicrosoftAuthEnabled: false,
isPasswordAuthEnabled: true,
subdomain: 'test',
hostname: null,
customDomain: null,
workspaceUrls: {
customUrl: undefined,
subdomainUrl: 'https://test.twenty.com/',

View File

@ -6,7 +6,7 @@ import { ExpandableList } from '@/ui/layout/expandable-list/components/Expandabl
import { isDefined } from 'twenty-shared';
import { checkUrlType } from '~/utils/checkUrlType';
import { getAbsoluteUrl } from '~/utils/url/getAbsoluteUrl';
import { getUrlHostName } from '~/utils/url/getUrlHostName';
import { getUrlHostname } from '~/utils/url/getUrlHostname';
type LinksDisplayProps = {
value?: FieldLinksValue;
@ -29,7 +29,7 @@ export const LinksDisplay = ({ value }: LinksDisplayProps) => {
const absoluteUrl = getAbsoluteUrl(url);
return {
url: absoluteUrl,
label: label || getUrlHostName(absoluteUrl),
label: label || getUrlHostname(absoluteUrl),
type: checkUrlType(absoluteUrl),
};
}),

View File

@ -40,7 +40,7 @@ export const USER_QUERY_FRAGMENT = gql`
isPasswordAuthEnabled
subdomain
hasValidEnterpriseKey
hostname
customDomain
workspaceUrls {
subdomainUrl
customUrl
@ -69,7 +69,7 @@ export const USER_QUERY_FRAGMENT = gql`
logo
displayName
subdomain
hostname
customDomain
workspaceUrls {
subdomainUrl
customUrl

View File

@ -4,7 +4,7 @@ export const UPDATE_WORKSPACE = gql`
mutation UpdateWorkspace($input: UpdateWorkspaceInput!) {
updateWorkspace(data: $input) {
id
hostname
customDomain
subdomain
displayName
logo

View File

@ -1,9 +1,9 @@
import { gql } from '@apollo/client';
export const GET_CUSTOM_HOSTNAME_DETAILS = gql`
query GetCustomHostnameDetails {
getCustomHostnameDetails {
hostname
export const GET_CUSTOM_DOMAIN_DETAILS = gql`
query GetCustomDomainDetails {
getCustomDomainDetails {
customDomain
records {
type
key