-
Notifications
You must be signed in to change notification settings - Fork 559
[TOOL-4028] Dashboard: Limit team name to 32 chars #6685
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6685 +/- ##
=======================================
Coverage 55.05% 55.05%
=======================================
Files 889 889
Lines 55858 55858
Branches 3823 3823
=======================================
Hits 30751 30751
Misses 25012 25012
Partials 95 95
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a maximum length restriction for the `teamName` input field in the `TeamGeneralSettingsPageUI` component and applies this restriction to the `TeamInfoFormUI` component as well, enhancing user experience by preventing excessively long team names. ### Detailed summary - Added `maxLength` attribute with a value of `32` to the `teamName` input in `TeamGeneralSettingsPageUI`. - Updated the `onChange` handler in `TeamGeneralSettingsPageUI` to set the `teamName` directly from the input value. - Introduced a new constant `maxTeamNameLength` in `TeamInfoForm.tsx` set to `32`. - Added `maxLength={maxTeamNameLength}` to the input field in `TeamInfoFormUI`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
83d13a3
to
60235ad
Compare
PR-Codex overview
This PR focuses on improving the handling of team name input by enforcing a maximum length and ensuring that the input value respects this limit.
Detailed summary
TeamGeneralSettingsPageUI.tsx
, addedmaxLength
prop to the<Input>
component forteamName
.onChange
handler to setteamName
directly from the input value without slicing.maxTeamNameLength
with a value of32
inTeamInfoForm.tsx
for consistency.