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

Small text improvement to number field type #8816

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

FelixMalfait
Copy link
Member

Micro improvement to the number field type text

@FelixMalfait FelixMalfait merged commit ebc381f into main Nov 29, 2024
15 checks passed
@FelixMalfait FelixMalfait deleted the small-text-improvement branch November 29, 2024 17:06
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

Minor text improvements to the number field type settings form in Twenty, enhancing clarity of descriptions for better user understanding.

  • Updated field descriptions in /packages/twenty-front/src/modules/settings/data-model/fields/forms/number/components/SettingsDataModelFieldNumberForm.tsx to be more user-friendly
  • Simplified number type options explanation for better readability
  • Added contextual information about decimal places in the form examples

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

@@ -69,7 +69,7 @@ export const SettingsDataModelFieldNumberForm = ({
<SettingsOptionCardContentCounter
Icon={IconDecimal}
title="Number of decimals"
description={`Example: ${(type === 'percentage' ? 99 : 1000).toFixed(count)} ${type === 'percentage' ? '%' : ''}`}
description={`E.g. ${(type === 'percentage' ? 99 : 1000).toFixed(count)}${type === 'percentage' ? '%' : ''} for ${count} decimal${count > 1 ? 's' : ''}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Long template literal could be split into multiple lines for better readability

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.

1 participant