-
Notifications
You must be signed in to change notification settings - Fork 543
[TOOL-2891] Fix Team dashboard not loading if team slug contains special characters #5867
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
[TOOL-2891] Fix Team dashboard not loading if team slug contains special characters #5867
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 #5867 +/- ##
=======================================
Coverage 55.18% 55.18%
=======================================
Files 1123 1123
Lines 59611 59611
Branches 5031 5031
=======================================
Hits 32895 32895
Misses 25996 25996
Partials 720 720
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
e636ded
to
489ba7c
Compare
489ba7c
to
945b0d1
Compare
Merge activity
|
…ial characters (#5867) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving the handling of `team_slug` and validating the `teamSlug` input in the settings UI. It enhances the URL decoding process and adds error handling for invalid team URLs. ### Detailed summary - Updated `team_slug` retrieval to decode the URL component in `layout.tsx`. - Modified project retrieval logic to decode `team_slug`. - Replaced `isTeamTaken` state with `errorMessage` state for better error handling. - Added validation for `teamSlug` input to check for empty values and invalid characters. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
945b0d1
to
8b1a60d
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on improving the handling of team slugs in the application by decoding the slug from the URL and enhancing user feedback during team URL updates.
Detailed summary
team
retrieval to usedecodeURIComponent
forparams.team_slug
.decodeURIComponent
forparams.team_slug
.isTeamTaken
state witherrorMessage
for better error handling.