Skip to content

[PersonShow] use fieldDefinition for editable fields#1178

Merged
Weiko merged 3 commits intomainfrom
c--person-show-page-with-field-definition
Aug 11, 2023
Merged

[PersonShow] use fieldDefinition for editable fields#1178
Weiko merged 3 commits intomainfrom
c--person-show-page-with-field-definition

Conversation

@Weiko
Copy link
Copy Markdown
Member

@Weiko Weiko commented Aug 11, 2023

Context

Same as #1171, we now want to use field definitions for the person show page.

Test

locally

Before
Screenshot 2023-08-11 at 15 52 02

After
Screenshot 2023-08-11 at 15 52 33
(I fixed the display in the company chip in a later commit, this should not display domain name here)

) as FieldDefinition<FieldPhoneMetadata>;

// TODO: we could use a hook that would return the field value with the right type
const [fieldValue, setFieldValue] = useRecoilState<string>(
Copy link
Copy Markdown
Member Author

@Weiko Weiko Aug 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component is very similar to textEditMode but we plan to add phone validation at some point

@ergomake
Copy link
Copy Markdown

ergomake bot commented Aug 11, 2023

Hi 👋

Here's a preview environment 🚀

https://front-twentyhq-twenty-1178.env.ergomake.link

Environment Summary 📑

Container Source URL
front Dockerfile https://front-twentyhq-twenty-1178.env.ergomake.link
server Dockerfile https://server-twentyhq-twenty-1178.env.ergomake.link
postgres Dockerfile [not exposed - internal service]

Here are your environment's logs.

For questions or comments, join Discord.

Click here to disable Ergomake.

@Weiko Weiko merged commit a30222f into main Aug 11, 2023
@Weiko Weiko deleted the c--person-show-page-with-field-definition branch August 11, 2023 23:36
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