-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[dashboard] give team URLs a dedicated slug #5544
Conversation
c9fa322
to
4ec10a0
Compare
e36b3f5
to
6c01911
Compare
/werft run 👍 started the job as gitpod-build-sefftinge-teams-move-team-urls-5465.5 |
route matchers need to be adjusted as well. for instance in |
6c01911
to
1ac990c
Compare
@@ -58,7 +58,7 @@ export default function () { | |||
const { teams } = useContext(TeamsContext); | |||
const location = useLocation(); | |||
const team = getCurrentTeam(location, teams); | |||
const routeMatch = useRouteMatch<{ teamSlug: string, projectSlug: string }>("/:teamSlug/:projectSlug/configure"); | |||
const routeMatch = useRouteMatch<{ teamSlug: string, projectSlug: string }>("/t/:teamSlug/:projectSlug/configure"); |
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.
I'm afraid there are more instances of useRouteMatch
to adjust, e.g. in Projects.tsx
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.
Ok, thanks. I have updated those. Any other leftovers you see?
It's a little hard to find all the references ...
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.
just searched for all useRouteMatch
usages and it looks good now.
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.
I need to make the /t
optional however. As the page needs to work with user projects as well.
1ac990c
to
7ab510d
Compare
/hold |
Hopefully, I did test all cases. It worked nicely 💯 /lgtm |
LGTM label has been added. Git tree hash: be338cf2c06ea4a5a63f7a1dcb3624d9a01b1526
|
fixes #5465 - [teams] move team URLs in its own slug (namespace)
7ab510d
to
6a9717a
Compare
/werft run 👍 started the job as gitpod-build-sefftinge-teams-move-team-urls-5465.9 |
/lgtm |
LGTM label has been added. Git tree hash: 1aa844010e1e27fd1678ea3d269993c0f41ec9c6
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlexTugarev Associated issue: #5465 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
fixes #5465 - [teams] move team URLs in its own slug (namespace)