From 53f9fd857cd3ea5e78eff1fb19d07ba43be65c61 Mon Sep 17 00:00:00 2001 From: Flora Thiebaut Date: Thu, 19 Dec 2024 13:25:25 +0100 Subject: [PATCH 1/2] fix: use hash links for new projects/groups Fixes #3456. --- client/src/features/dashboardV2/DashboardV2.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/features/dashboardV2/DashboardV2.tsx b/client/src/features/dashboardV2/DashboardV2.tsx index d3ebecddb..9b044ae27 100644 --- a/client/src/features/dashboardV2/DashboardV2.tsx +++ b/client/src/features/dashboardV2/DashboardV2.tsx @@ -65,6 +65,7 @@ import UserAvatar from "../usersV2/show/UserAvatar"; import DashboardV2Sessions from "./DashboardV2Sessions"; import DashboardStyles from "./DashboardV2.module.scss"; +import { PROJECT_CREATION_HASH } from "../projectsV2/new/createProjectV2.constants"; export default function DashboardV2() { const userLogged = useLegacySelector( @@ -606,7 +607,10 @@ function ViewAllLink({ function EmptyProjectsButtons() { return (
- + Create my first project From c1f438428f352b067cc0a549f975efe17066046d Mon Sep 17 00:00:00 2001 From: Flora Thiebaut Date: Thu, 19 Dec 2024 13:50:33 +0100 Subject: [PATCH 2/2] for group --- client/src/features/dashboardV2/DashboardV2.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/features/dashboardV2/DashboardV2.tsx b/client/src/features/dashboardV2/DashboardV2.tsx index 9b044ae27..0714e9306 100644 --- a/client/src/features/dashboardV2/DashboardV2.tsx +++ b/client/src/features/dashboardV2/DashboardV2.tsx @@ -48,6 +48,7 @@ import { RtkOrNotebooksError } from "../../components/errors/RtkErrorAlert"; import { Loader } from "../../components/Loader"; import { ABSOLUTE_ROUTES } from "../../routing/routes.constants"; import useLegacySelector from "../../utils/customHooks/useLegacySelector.hook"; +import { GROUP_CREATION_HASH } from "../groupsV2/new/createGroup.constants"; import CreateGroupButton from "../groupsV2/new/CreateGroupButton"; import { GetGroupsApiResponse, @@ -55,6 +56,7 @@ import { useGetGroupsQuery, useGetProjectsQuery, } from "../projectsV2/api/projectV2.enhanced-api"; +import { PROJECT_CREATION_HASH } from "../projectsV2/new/createProjectV2.constants"; import CreateProjectV2Button from "../projectsV2/new/CreateProjectV2Button"; import GroupShortHandDisplay from "../projectsV2/show/GroupShortHandDisplay"; import ProjectShortHandDisplay from "../projectsV2/show/ProjectShortHandDisplay"; @@ -65,7 +67,6 @@ import UserAvatar from "../usersV2/show/UserAvatar"; import DashboardV2Sessions from "./DashboardV2Sessions"; import DashboardStyles from "./DashboardV2.module.scss"; -import { PROJECT_CREATION_HASH } from "../projectsV2/new/createProjectV2.constants"; export default function DashboardV2() { const userLogged = useLegacySelector( @@ -520,7 +521,10 @@ function GroupsList({ data, error, isLoading }: GroupListProps) { ) : (
- + Create my first group