-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
fix: Now you can't type more than 255 characters in the bio field of user settings #2615
base: beta
Are you sure you want to change the base?
Conversation
β¦d after 255 characters (70) Now, it Can't keep typing in the bio field of user settings after 255 characters. Changed the code in user-sttings-page.tsx fix open-sauced#2612
π· Deploy request for oss-insights pending review.Visit the deploys page to approve it
|
β Deploy Preview for design-insights ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
PR Compliance Checks Passed!
{bio?.length}/255 | ||
</p> | ||
)} | ||
<p aria-live="polite" className="text-xs"> |
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.
@BekahHW do you think being unable to type further and seeing 255/255
in the UI is clear enough? If not we can put a message along the lines of max length of bio reached when they hit 255 characters. The browser won't allow anymore characters because of the maxLength
here which is what I proposed in the good first issue linked to this PR.
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.
@nickytonline how about we do the same as #2587 just to be consistent? π
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.
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.
Did we decide on something for this @BekahHW?
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.
@nickytonline I think my last suggestion is the way to go.
255/255 in red
Message: Bio Max Length in red
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.
Thanks for the PR @Pagla-Dasu! Just getting some feedback from my co-worker about the fix I proposed for this issue.
@nickytonline you're welcome ππΌ |
@nickytonline , Any update on the PR? |
There are failures because of linting/prettier.
run |
@nickytonline , The prettier issue is fixed, you can now merge the code. |
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.
@Pagla-Dasu how are things going here? |
oh, I am so sorry @BekahHW, I missed your request for those changes. Will get that done asap. |
@nickytonline @BekahHW, do check the commit. The changes are made accordingly. |
Now, it Can't keep typing in the bio field of user settings after 255 characters. Changed the code in user-sttings-page.tsx
fix #2612
Description
This PR fixes the issue #2612 fixing the maximum character issue of 255 characters.
What type of PR is this? (check all applicable)
Related Tickets & Documents
Please use this format link issue numbers: Fixes #2612
#2612
Mobile & Desktop Screenshots/Recordings
Steps to QA
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?