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

fixed #10066, updating formattedInput selectively #10085

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

Conversation

atharvParlikar
Copy link
Contributor

@atharvParlikar atharvParlikar commented Feb 8, 2025

When updating field, current implementation was updating both name and label so in the case where only the formatting of field were to be updated (for eg, instagram -> Instagram) you couldn't because the name would still be the same.

The fix was simply checking if the name was unchanged, and if it was, updating only the label.
 
fixes: #10066

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

Optimized field metadata updates in the settings page by implementing selective label-only updates when field names remain unchanged.

  • Modified /packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx to handle label-only updates separately from full field updates
  • Added navigation to object detail page before update execution which could potentially cause UI inconsistencies if update fails
  • Implemented optimization to prevent unnecessary field metadata updates when only labels are changed

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

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

@atharvParlikar
Copy link
Contributor Author

Hey @FelixMalfait can you review this PR, if you have time. It's only a couple of lines...

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.

Renaming a property for capitalization
1 participant