Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(projects): preserve sidebar when switching projects (#7455)
teo1099be5b7e82
diff --git a/apps/web/src/features/tasks-view/components/TasksSidebar.tsx b/apps/web/src/features/tasks-view/components/TasksSidebar.tsxindex 36f8792187..f0df384f85 100644--- a/apps/web/src/features/tasks-view/components/TasksSidebar.tsx+++ b/apps/web/src/features/tasks-view/components/TasksSidebar.tsx@@ -10,7 +10,7 @@ import { openProject } from '@app/features/projects/open-project';import { ProjectsSidebarSection } from '@app/features/projects/projects';import { useFeatureFlag } from '@app/lib/analytics/posthog';import { useNavigate, useParams } from '@app/lib/split-router';-import { reviewsSplitRoute } from '@app/routes/routes';+import { projectDetailRoute, reviewsSplitRoute } from '@app/routes/routes';import {favoriteSplitContent,useFavoriteDisplayName,@@ -225,9 +225,16 @@ export function TasksSidebar() {onCreate={() =>layout.popoverSplit({ type: 'component', id: 'project-compose' })}- onOpen={(id, event) =>- openProject(layout, id, { newSplit: event.shiftKey })- }+ onOpen={(id, event) => {+ if (event.shiftKey) {+ openProject(layout, id, { newSplit: true });+ return;+ }+ navigate({+ route: projectDetailRoute,+ params: { projectId: id, section: 'overview' },+ });+ }}/></Show><div ref={tourTarget(TASKS_TOUR.tags)}>diff --git a/docs/AGENT_GUIDE/tasks.md b/docs/AGENT_GUIDE/tasks.mdindex 158171e991..54fec92bcf 100644--- a/docs/AGENT_GUIDE/tasks.md+++ b/docs/AGENT_GUIDE/tasks.md@@ -20,7 +20,8 @@ AI box.Task creation is available from the `New` button in the Tasks sidebar. With Projectsenabled, `My projects` appears below the tabs and favorites, above Tags. It listsaccessible projects by most recently updated, with a capped height and its own scroll-area. Click a project to open its overview, or Shift-click to open it in a new split.+area. Click a project to open its overview within the current Tasks view, keeping+the sidebar mounted, or Shift-click to open it in a new split.The current project is highlighted. Collapse the heading to hide the list; thispreference persists. `Load more projects` fetches the next page when available.The plus button beside `My projects` opens the project composer, even while the