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(tasks): pin due date by default (#9239)
dev-rb1c2e80b945d7
diff --git a/apps/web/src/features/property/constants.ts b/apps/web/src/features/property/constants.tsindex 5f57aa5a3f..fa84a5aa59 100644--- a/apps/web/src/features/property/constants.ts+++ b/apps/web/src/features/property/constants.ts@@ -46,7 +46,7 @@ const BUILTIN_PROPERTIES_BY_BLOCK: Partial</*** Default pinned properties by block type.- * These are automatically pinned when a new entity of this block type is created.+ * Used while the entity has no saved pin list; explicit pins override these defaults.*/const DEFAULT_PINNED_PROPERTIES_BY_BLOCK: Partial<Record<BlockName | BlockAlias, readonly string[]>@@ -55,6 +55,7 @@ const DEFAULT_PINNED_PROPERTIES_BY_BLOCK: Partial<SYSTEM_PROPERTY_IDS.STATUS,SYSTEM_PROPERTY_IDS.PRIORITY,SYSTEM_PROPERTY_IDS.ASSIGNEES,+ SYSTEM_PROPERTY_IDS.DUE_DATE,],company: [SYSTEM_PROPERTY_IDS.STAGE,diff --git a/apps/web/src/features/task-composer/primitives/task-composer.ts b/apps/web/src/features/task-composer/primitives/task-composer.tsindex 6c89f5df78..2edd2bb98d 100644--- a/apps/web/src/features/task-composer/primitives/task-composer.ts+++ b/apps/web/src/features/task-composer/primitives/task-composer.ts@@ -28,6 +28,7 @@ import { initializeEditorEmpty } from '@core/component/LexicalMarkdown/utils';import type { PortalScope } from '@core/component/ScopedPortal';import { toast } from '@core/component/Toast/Toast';import { registerHotkey, useHotkeyDOMScope } from '@core/hotkey/hotkeys';+import { isTouchDevice } from '@core/mobile/isTouchDevice';import { fireAndForget } from '@core/util/fireAndForget';import { Telemetry } from '@macro-inc/observability';import { SYSTEM_PROPERTY_IDS } from '@property/constants';diff --git a/docs/agent-guide/documents.md b/docs/agent-guide/documents.mdindex 18c9ce159f..c7ee33f21f 100644--- a/docs/agent-guide/documents.md+++ b/docs/agent-guide/documents.md@@ -150,9 +150,9 @@ Long keys wrap without displacing the Unpin button.**Delete from item** stays below, where removal is allowed (removes theassignment without deleting the shared property definition). Task builtins cannotbe deleted from these pills. Pins are saved with the document, including an-explicitly empty pin list. Tasks initially show Status, Priority, Assignees, and-Project when enabled; changing pins keeps the other defaults unless they are-explicitly unpinned.+explicitly empty pin list. Tasks initially show Status, Priority, Assignees, Due Date,+and Project when enabled. Defaults apply only without a saved pin list; customized+pins stay unchanged. Changing pins keeps the other defaults unless explicitly unpinned.Markdown code blocks have a **Copy Code** button in both editable and read-onlyviews. Successful copies briefly animate the icon to a solid green check-circle;diff --git a/docs/agent-guide/tasks.md b/docs/agent-guide/tasks.mdindex e10d15c4d5..225f81bd69 100644--- a/docs/agent-guide/tasks.md+++ b/docs/agent-guide/tasks.md@@ -108,9 +108,10 @@ or **Unpin from title**. Pinning adds the property to the title row; unpinning kits saved value and the side-panel row. The title pill's hover card also offers**Unpin** as a filled icon-only button with a gap: beside the value in a row,or beside the key above a full-width divider in a column.-Status, Priority, and Assignees are pinned by default, with Project when-enabled. Unpinning a default preserves the other pins, and clearing all pins stays-cleared after reopening. The empty Project placeholder can also be pinned or+Status, Priority, Assignees, and Due Date are pinned by default, with Project when+enabled. Defaults apply only when the task has no saved pin list; customized pins+stay unchanged. Unpinning a default preserves the other pins, and clearing all pins+stays cleared after reopening. The empty Project placeholder can also be pinned orunpinned without creating an assignment; its pin follows the real assignment whenone is saved. Builtin task properties cannot be deleted from the title or side panel.@@ -942,10 +943,11 @@ the server returns the new item ID. Use disposable tasks/folders for these check## View and edit task properties-An open task shows Status, Priority, and Assignees as property pills below its title. Task-mentions and document references also show the same three pills in their hover-card preview,-including properties that do not have a value yet. Click a preview pill to edit it without-opening the task; the property picker keeps the preview open while you make a selection.+An open task shows its pinned properties below the title, with Status, Priority,+Assignees, and Due Date by default, plus Project when enabled. Task mentions and+document references show Status, Priority, and Assignees in their hover-card preview,+including properties that do not have a value yet. Click a preview pill to edit it+without opening the task; the property picker keeps the preview open while you make a selection.Users with view or comment access see the same pills read-only.Each GitHub pull request linked to an open task shows a pill beside its property pills