-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Remove deprecated EMAIL, PHONE, LINK #7551
Changes from all commits
6b5f917
a5f17af
1361803
5b8af3b
2f2a562
706a301
0a60ff9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,8 @@ export const mapFieldMetadataToGraphQLQuery = ({ | |
const fieldIsSimpleValue = [ | ||
FieldMetadataType.Uuid, | ||
FieldMetadataType.Text, | ||
FieldMetadataType.Phone, | ||
FieldMetadataType.DateTime, | ||
FieldMetadataType.Date, | ||
FieldMetadataType.Email, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Link bellow in that file |
||
FieldMetadataType.Number, | ||
FieldMetadataType.Boolean, | ||
FieldMetadataType.Rating, | ||
|
@@ -97,14 +95,6 @@ ${mapObjectMetadataToGraphQLQuery({ | |
}`; | ||
} | ||
|
||
if (fieldType === FieldMetadataType.Link) { | ||
return `${field.name} | ||
{ | ||
label | ||
url | ||
}`; | ||
} | ||
|
||
if (fieldType === FieldMetadataType.Links) { | ||
return `${field.name} | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ import { isFieldIdentifierDisplay } from '@/object-record/record-field/meta-type | |
import { isFieldActor } from '@/object-record/record-field/types/guards/isFieldActor'; | ||
import { isFieldArray } from '@/object-record/record-field/types/guards/isFieldArray'; | ||
import { isFieldBoolean } from '@/object-record/record-field/types/guards/isFieldBoolean'; | ||
import { isFieldDisplayedAsPhone } from '@/object-record/record-field/types/guards/isFieldDisplayedAsPhone'; | ||
import { isFieldEmails } from '@/object-record/record-field/types/guards/isFieldEmails'; | ||
import { isFieldLinks } from '@/object-record/record-field/types/guards/isFieldLinks'; | ||
import { isFieldPhones } from '@/object-record/record-field/types/guards/isFieldPhones'; | ||
|
@@ -27,13 +26,10 @@ import { ChipFieldDisplay } from '../meta-types/display/components/ChipFieldDisp | |
import { CurrencyFieldDisplay } from '../meta-types/display/components/CurrencyFieldDisplay'; | ||
import { DateFieldDisplay } from '../meta-types/display/components/DateFieldDisplay'; | ||
import { DateTimeFieldDisplay } from '../meta-types/display/components/DateTimeFieldDisplay'; | ||
import { EmailFieldDisplay } from '../meta-types/display/components/EmailFieldDisplay'; | ||
import { FullNameFieldDisplay } from '../meta-types/display/components/FullNameFieldDisplay'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: EmailFieldDisplay, LinkFieldDisplay, and PhoneFieldDisplay components were removed. Verify if they're replaced by other components or if this removal is intentional. |
||
import { JsonFieldDisplay } from '../meta-types/display/components/JsonFieldDisplay'; | ||
import { LinkFieldDisplay } from '../meta-types/display/components/LinkFieldDisplay'; | ||
import { MultiSelectFieldDisplay } from '../meta-types/display/components/MultiSelectFieldDisplay'; | ||
import { NumberFieldDisplay } from '../meta-types/display/components/NumberFieldDisplay'; | ||
import { PhoneFieldDisplay } from '../meta-types/display/components/PhoneFieldDisplay'; | ||
import { RelationToOneFieldDisplay } from '../meta-types/display/components/RelationToOneFieldDisplay'; | ||
import { SelectFieldDisplay } from '../meta-types/display/components/SelectFieldDisplay'; | ||
import { TextFieldDisplay } from '../meta-types/display/components/TextFieldDisplay'; | ||
|
@@ -42,12 +38,9 @@ import { isFieldAddress } from '../types/guards/isFieldAddress'; | |
import { isFieldCurrency } from '../types/guards/isFieldCurrency'; | ||
import { isFieldDate } from '../types/guards/isFieldDate'; | ||
import { isFieldDateTime } from '../types/guards/isFieldDateTime'; | ||
import { isFieldEmail } from '../types/guards/isFieldEmail'; | ||
import { isFieldFullName } from '../types/guards/isFieldFullName'; | ||
import { isFieldLink } from '../types/guards/isFieldLink'; | ||
import { isFieldMultiSelect } from '../types/guards/isFieldMultiSelect'; | ||
import { isFieldNumber } from '../types/guards/isFieldNumber'; | ||
import { isFieldPhone } from '../types/guards/isFieldPhone'; | ||
import { isFieldRawJson } from '../types/guards/isFieldRawJson'; | ||
import { isFieldSelect } from '../types/guards/isFieldSelect'; | ||
import { isFieldText } from '../types/guards/isFieldText'; | ||
|
@@ -67,23 +60,16 @@ export const FieldDisplay = () => { | |
<RelationToOneFieldDisplay /> | ||
) : isFieldRelationFromManyObjects(fieldDefinition) ? ( | ||
<RelationFromManyFieldDisplay /> | ||
) : isFieldPhone(fieldDefinition) || | ||
isFieldDisplayedAsPhone(fieldDefinition) ? ( | ||
<PhoneFieldDisplay /> | ||
) : isFieldText(fieldDefinition) ? ( | ||
<TextFieldDisplay /> | ||
) : isFieldUuid(fieldDefinition) ? ( | ||
<UuidFieldDisplay /> | ||
) : isFieldEmail(fieldDefinition) ? ( | ||
<EmailFieldDisplay /> | ||
) : isFieldDateTime(fieldDefinition) ? ( | ||
<DateTimeFieldDisplay /> | ||
) : isFieldDate(fieldDefinition) ? ( | ||
<DateFieldDisplay /> | ||
) : isFieldNumber(fieldDefinition) ? ( | ||
<NumberFieldDisplay /> | ||
) : isFieldLink(fieldDefinition) ? ( | ||
<LinkFieldDisplay /> | ||
) : isFieldLinks(fieldDefinition) ? ( | ||
<LinksFieldDisplay /> | ||
) : isFieldCurrency(fieldDefinition) ? ( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,44 +11,37 @@ import { RawJsonFieldInput } from '@/object-record/record-field/meta-types/input | |
import { RelationFromManyFieldInput } from '@/object-record/record-field/meta-types/input/components/RelationFromManyFieldInput'; | ||
import { SelectFieldInput } from '@/object-record/record-field/meta-types/input/components/SelectFieldInput'; | ||
import { RecordFieldInputScope } from '@/object-record/record-field/scopes/RecordFieldInputScope'; | ||
import { isFieldDate } from '@/object-record/record-field/types/guards/isFieldDate'; | ||
import { isFieldDisplayedAsPhone } from '@/object-record/record-field/types/guards/isFieldDisplayedAsPhone'; | ||
import { isFieldEmails } from '@/object-record/record-field/types/guards/isFieldEmails'; | ||
import { isFieldFullName } from '@/object-record/record-field/types/guards/isFieldFullName'; | ||
import { isFieldLinks } from '@/object-record/record-field/types/guards/isFieldLinks'; | ||
import { isFieldMultiSelect } from '@/object-record/record-field/types/guards/isFieldMultiSelect'; | ||
import { isFieldPhones } from '@/object-record/record-field/types/guards/isFieldPhones'; | ||
import { isFieldRawJson } from '@/object-record/record-field/types/guards/isFieldRawJson'; | ||
import { isFieldRelationFromManyObjects } from '@/object-record/record-field/types/guards/isFieldRelationFromManyObjects'; | ||
import { isFieldRelationToOneObject } from '@/object-record/record-field/types/guards/isFieldRelationToOneObject'; | ||
Comment on lines
14
to
16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: The removal of isFieldDisplayedAsPhone might affect how phone fields are rendered. Ensure this change doesn't break existing functionality. |
||
import { isFieldSelect } from '@/object-record/record-field/types/guards/isFieldSelect'; | ||
import { getScopeIdFromComponentId } from '@/ui/utilities/recoil-scope/utils/getScopeIdFromComponentId'; | ||
|
||
import { ArrayFieldInput } from '@/object-record/record-field/meta-types/input/components/ArrayFieldInput'; | ||
import { RichTextFieldInput } from '@/object-record/record-field/meta-types/input/components/RichTextFieldInput'; | ||
import { isFieldAddress } from '@/object-record/record-field/types/guards/isFieldAddress'; | ||
import { isFieldArray } from '@/object-record/record-field/types/guards/isFieldArray'; | ||
import { isFieldBoolean } from '@/object-record/record-field/types/guards/isFieldBoolean'; | ||
import { isFieldCurrency } from '@/object-record/record-field/types/guards/isFieldCurrency'; | ||
import { isFieldDate } from '@/object-record/record-field/types/guards/isFieldDate'; | ||
import { isFieldDateTime } from '@/object-record/record-field/types/guards/isFieldDateTime'; | ||
import { isFieldEmails } from '@/object-record/record-field/types/guards/isFieldEmails'; | ||
import { isFieldFullName } from '@/object-record/record-field/types/guards/isFieldFullName'; | ||
import { isFieldLinks } from '@/object-record/record-field/types/guards/isFieldLinks'; | ||
import { isFieldMultiSelect } from '@/object-record/record-field/types/guards/isFieldMultiSelect'; | ||
import { isFieldNumber } from '@/object-record/record-field/types/guards/isFieldNumber'; | ||
import { isFieldRating } from '@/object-record/record-field/types/guards/isFieldRating'; | ||
import { isFieldRawJson } from '@/object-record/record-field/types/guards/isFieldRawJson'; | ||
import { isFieldRichText } from '@/object-record/record-field/types/guards/isFieldRichText'; | ||
import { isFieldSelect } from '@/object-record/record-field/types/guards/isFieldSelect'; | ||
import { FieldContext } from '../contexts/FieldContext'; | ||
import { BooleanFieldInput } from '../meta-types/input/components/BooleanFieldInput'; | ||
import { CurrencyFieldInput } from '../meta-types/input/components/CurrencyFieldInput'; | ||
import { DateTimeFieldInput } from '../meta-types/input/components/DateTimeFieldInput'; | ||
import { EmailFieldInput } from '../meta-types/input/components/EmailFieldInput'; | ||
import { LinkFieldInput } from '../meta-types/input/components/LinkFieldInput'; | ||
import { NumberFieldInput } from '../meta-types/input/components/NumberFieldInput'; | ||
import { PhoneFieldInput } from '../meta-types/input/components/PhoneFieldInput'; | ||
import { RatingFieldInput } from '../meta-types/input/components/RatingFieldInput'; | ||
import { RelationToOneFieldInput } from '../meta-types/input/components/RelationToOneFieldInput'; | ||
import { TextFieldInput } from '../meta-types/input/components/TextFieldInput'; | ||
import { FieldInputEvent } from '../types/FieldInputEvent'; | ||
import { isFieldAddress } from '../types/guards/isFieldAddress'; | ||
import { isFieldBoolean } from '../types/guards/isFieldBoolean'; | ||
import { isFieldCurrency } from '../types/guards/isFieldCurrency'; | ||
import { isFieldDateTime } from '../types/guards/isFieldDateTime'; | ||
import { isFieldEmail } from '../types/guards/isFieldEmail'; | ||
import { isFieldLink } from '../types/guards/isFieldLink'; | ||
import { isFieldNumber } from '../types/guards/isFieldNumber'; | ||
import { isFieldPhone } from '../types/guards/isFieldPhone'; | ||
import { isFieldRating } from '../types/guards/isFieldRating'; | ||
import { isFieldText } from '../types/guards/isFieldText'; | ||
|
||
type FieldInputProps = { | ||
|
@@ -84,15 +77,6 @@ export const FieldInput = ({ | |
<RelationToOneFieldInput onSubmit={onSubmit} onCancel={onCancel} /> | ||
) : isFieldRelationFromManyObjects(fieldDefinition) ? ( | ||
<RelationFromManyFieldInput onSubmit={onSubmit} /> | ||
) : isFieldPhone(fieldDefinition) || | ||
isFieldDisplayedAsPhone(fieldDefinition) ? ( | ||
<PhoneFieldInput | ||
onEnter={onEnter} | ||
onEscape={onEscape} | ||
onClickOutside={onClickOutside} | ||
onTab={onTab} | ||
onShiftTab={onShiftTab} | ||
/> | ||
) : isFieldPhones(fieldDefinition) ? ( | ||
<PhonesFieldInput onCancel={onCancel} /> | ||
Comment on lines
80
to
81
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: Phone field input now only handles isFieldPhones, not individual phone fields. Verify this doesn't cause issues with single phone number inputs. |
||
) : isFieldText(fieldDefinition) ? ( | ||
|
@@ -103,14 +87,6 @@ export const FieldInput = ({ | |
onTab={onTab} | ||
onShiftTab={onShiftTab} | ||
/> | ||
) : isFieldEmail(fieldDefinition) ? ( | ||
<EmailFieldInput | ||
onEnter={onEnter} | ||
onEscape={onEscape} | ||
onClickOutside={onClickOutside} | ||
onTab={onTab} | ||
onShiftTab={onShiftTab} | ||
/> | ||
) : isFieldEmails(fieldDefinition) ? ( | ||
<EmailsFieldInput onCancel={onCancel} /> | ||
Comment on lines
90
to
91
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: Email field input now only handles isFieldEmails, not individual email fields. Confirm this change doesn't affect single email input functionality. |
||
) : isFieldFullName(fieldDefinition) ? ( | ||
|
@@ -145,14 +121,6 @@ export const FieldInput = ({ | |
onTab={onTab} | ||
onShiftTab={onShiftTab} | ||
/> | ||
) : isFieldLink(fieldDefinition) ? ( | ||
<LinkFieldInput | ||
onEnter={onEnter} | ||
onEscape={onEscape} | ||
onClickOutside={onClickOutside} | ||
onTab={onTab} | ||
onShiftTab={onShiftTab} | ||
/> | ||
) : isFieldLinks(fieldDefinition) ? ( | ||
<LinksFieldInput onCancel={onCancel} /> | ||
Comment on lines
124
to
125
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: Link field input now only handles isFieldLinks, not individual link fields. Ensure this doesn't break single link input functionality. |
||
) : isFieldCurrency(fieldDefinition) ? ( | ||
|
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.
You did not remove LINK above here