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

AF-127 Text Trimming #92

Merged
merged 5 commits into from
Jul 28, 2023
Merged

AF-127 Text Trimming #92

merged 5 commits into from
Jul 28, 2023

Conversation

nikorev
Copy link
Contributor

@nikorev nikorev commented Jul 21, 2023

Currently trims leading and trailing whitespace via .trim(). I see there is a future ticket (AF-170) to handle single vs multi-line text fields. Should I strip all newline characters for now, or in the future will the UI prevent users from creating new lines (i.e. hitting enter) inside of single-line text fields?

Still testing to verify I hit all spots where we're looking to trim, marking as draft for now.

@nikorev nikorev requested a review from mikecarenzo July 21, 2023 18:57
@nikorev nikorev changed the title Af-127 Text Trimming AF-127 Text Trimming Jul 21, 2023
@mikecarenzo
Copy link
Contributor

mikecarenzo commented Jul 24, 2023

Should I strip all newline characters for now, or in the future will the UI prevent users from creating new lines (i.e. hitting enter) inside of single-line text fields?

No. For now, simply trim trailing and leading whitespace. In the future, users won't be able to use the enter key on fields flagged as single line.

@nikorev
Copy link
Contributor Author

nikorev commented Jul 24, 2023

Was missing one trim call. Marking branch as ready:

image

image

image

image

@nikorev nikorev marked this pull request as ready for review July 24, 2023 19:38
@sonarcloud
Copy link

sonarcloud bot commented Jul 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mikecarenzo mikecarenzo merged commit 733996d into main Jul 28, 2023
4 of 6 checks passed
@mikecarenzo mikecarenzo deleted the AF-127_text_trimming branch July 28, 2023 15:44
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.

2 participants