Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(projects): add New project button to projects list header (#7757)

teo930579fc5d29
diff --git a/apps/web/src/features/projects/views/projects-collection.tsx b/apps/web/src/features/projects/views/projects-collection.tsx
index f71987143f..2c9389fe31 100644
--- a/apps/web/src/features/projects/views/projects-collection.tsx
+++ b/apps/web/src/features/projects/views/projects-collection.tsx
@@ -19,6 +19,7 @@ import { taskGridColumnCount } from '@app/features/tasks-view/components/task-li
import { toast } from '@core/component/Toast/Toast';
import { EntitySelectionToolbarModal } from '@entity/EntitySelectionToolbarModal';
import CalendarIcon from '@phosphor/calendar.svg';
+import PlusIcon from '@phosphor/plus.svg';
import SpinnerIcon from '@phosphor/spinner.svg';
import { PropertyValueIcon } from '@property/component/propertyValue';
import { SYSTEM_PROPERTY_IDS } from '@property/identifiers';
@@ -394,6 +395,14 @@ export function ProjectsCollection(props: {
</div>
</Dropdown.Content>
</Dropdown>
+ <Button
+ variant="outline"
+ class="touch:hidden @max-[720px]/view-shell:hidden"
+ onClick={props.onCreate}
+ >
+ <PlusIcon class="size-4" />
+ New project
+ </Button>
</div>
</div>
</div>