From 56ebd31ce316a584cc79cd6503b264a4f2d718dc Mon Sep 17 00:00:00 2001 From: kylecarbs Date: Mon, 6 Jun 2022 19:16:43 +0000 Subject: [PATCH] fix: Make the workspace URL pretty This adds the `@username/workspacename` format to the workspace page! --- site/src/AppRouter.tsx | 36 +++++++++---------- site/src/components/NavbarView/NavbarView.tsx | 9 +++-- .../WorkspacePage/WorkspacePage.test.tsx | 18 ++++++---- .../src/pages/WorkspacePage/WorkspacePage.tsx | 9 ++--- .../WorkspacesPage/WorkspacesPageView.tsx | 2 +- .../xServices/workspace/workspaceXService.ts | 6 ++-- site/webpack.dev.ts | 2 +- 7 files changed, 46 insertions(+), 36 deletions(-) diff --git a/site/src/AppRouter.tsx b/site/src/AppRouter.tsx index e2b1a828da266..8faffb5061bc9 100644 --- a/site/src/AppRouter.tsx +++ b/site/src/AppRouter.tsx @@ -65,25 +65,6 @@ export const AppRouter: FC = () => ( } /> - - - - - - } - /> - - - - } - /> - @@ -142,6 +123,23 @@ export const AppRouter: FC = () => ( + + + + } + /> + + + + } + /> + = ({ user, onSignOut }) => { const styles = useStyles() + const location = useLocation() return (