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
feat(props): update system property priority critical -> urgent (#3574)
teodb79e0adad55
diff --git a/js/app/packages/app/component/next-soup/filters/configs/task.ts b/js/app/packages/app/component/next-soup/filters/configs/task.tsindex e7086ff9eb..af2a9cb9c7 100644--- a/js/app/packages/app/component/next-soup/filters/configs/task.ts+++ b/js/app/packages/app/component/next-soup/filters/configs/task.ts@@ -119,8 +119,8 @@ export const TASK_STATUS_FILTERS = [taskCanceledFilter,] as const;-const taskCriticalFilter = priorityFilter(- 'task-critical',+const taskUrgentFilter = priorityFilter(+ 'task-urgent',PROPERTY_OPTION_IDS.PRIORITY.URGENT,isUrgentPriority);@@ -176,7 +176,7 @@ const taskNoPriorityFilter = config({});export const TASK_PRIORITY_FILTERS = [- taskCriticalFilter,+ taskUrgentFilter,taskHighPriorityFilter,taskMediumPriorityFilter,taskLowPriorityFilter,diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsxindex a2b4a8efd4..346dec3c9c 100644--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx@@ -226,8 +226,8 @@ const TASKS_FILTER_CATEGORIES: FilterCategory[] = [label: 'Priority',options: [{- id: 'task-critical',- label: 'Critical',+ id: 'task-urgent',+ label: 'Urgent',icon: () => (<PropertyValueIconoptionId={PROPERTY_OPTION_IDS.PRIORITY.URGENT}diff --git a/js/app/packages/entity/mocks/mockEntityData.ts b/js/app/packages/entity/mocks/mockEntityData.tsindex 8702203b14..45c43ff7c2 100644--- a/js/app/packages/entity/mocks/mockEntityData.ts+++ b/js/app/packages/entity/mocks/mockEntityData.ts@@ -259,7 +259,7 @@ const MOCK_TASK_COMPLETED: TaskEntity = {const MOCK_TASK_HIGH_PRIORITY: TaskEntity = {type: 'document',id: 'task_urgent_1',- name: 'Fix Critical Security Bug',+ name: 'Fix Urgent Security Bug',ownerId: MOCK_USER_IDS.owner,fileType: 'md',subType: { type: 'task', is_completed: false },diff --git a/js/app/packages/entity/src/extractors-property/property-helpers.ts b/js/app/packages/entity/src/extractors-property/property-helpers.tsindex 5aecca58af..e33ca2dbc3 100644--- a/js/app/packages/entity/src/extractors-property/property-helpers.ts+++ b/js/app/packages/entity/src/extractors-property/property-helpers.ts@@ -64,7 +64,7 @@ const SYSTEM_PROPERTY_OPTIONS: Record<string, PropertyOption[]> = {{id: PROPERTY_OPTION_IDS.PRIORITY.URGENT,property_definition_id: SYSTEM_PROPERTY_IDS.PRIORITY,- value: { type: 'string', value: 'Critical' },+ value: { type: 'string', value: 'Urgent' },display_order: 3,created_at: EPOCH_ZERO.toISOString(),updated_at: EPOCH_ZERO.toISOString(),diff --git a/js/app/packages/entity/src/utils/task-properties.ts b/js/app/packages/entity/src/utils/task-properties.tsindex aec601d7fd..2cf2657a00 100644--- a/js/app/packages/entity/src/utils/task-properties.ts+++ b/js/app/packages/entity/src/utils/task-properties.ts@@ -10,7 +10,7 @@ export const TASK_STATUS_OPTIONS = [] as const;const TASK_PRIORITY_OPTIONS = [- { value: PROPERTY_OPTION_IDS.PRIORITY.URGENT, label: 'Critical' },+ { value: PROPERTY_OPTION_IDS.PRIORITY.URGENT, label: 'Urgent' },{ value: PROPERTY_OPTION_IDS.PRIORITY.HIGH, label: 'High' },{ value: PROPERTY_OPTION_IDS.PRIORITY.MEDIUM, label: 'Medium' },{ value: PROPERTY_OPTION_IDS.PRIORITY.LOW, label: 'Low' },diff --git a/js/app/packages/property/mocks/mockProperties.ts b/js/app/packages/property/mocks/mockProperties.tsindex fede5dc637..44ad6cc92e 100644--- a/js/app/packages/property/mocks/mockProperties.ts+++ b/js/app/packages/property/mocks/mockProperties.ts@@ -73,7 +73,7 @@ const priorityOptions: PropertyOption[] = [{id: PROPERTY_OPTION_IDS.PRIORITY.URGENT,property_definition_id: SYSTEM_PROPERTY_IDS.PRIORITY,- value: { type: 'string', value: 'Critical' },+ value: { type: 'string', value: 'Urgent' },display_order: 3,created_at: EPOCH,updated_at: EPOCH,diff --git a/js/app/packages/queries/soup/items.ts b/js/app/packages/queries/soup/items.tsindex 17e41fc0d0..e5ce2c02b1 100644--- a/js/app/packages/queries/soup/items.ts+++ b/js/app/packages/queries/soup/items.ts@@ -204,7 +204,7 @@ const STATUS_OPTION_ORDER: readonly string[] = [];const PRIORITY_OPTION_ORDER: readonly string[] = [- '00000001-0000-0000-0003-000000000004', // Critical+ '00000001-0000-0000-0003-000000000004', // Urgent'00000001-0000-0000-0003-000000000003', // High'00000001-0000-0000-0003-000000000002', // Medium'00000001-0000-0000-0003-000000000001', // Lowdiff --git a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts b/js/app/packages/service-clients/service-cognition/generated/tools/types.tsindex 2cec13caf0..0aa9ab4350 100644--- a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts+++ b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts@@ -2261,7 +2261,7 @@ export interface SendEmail {* Tasks always have these system properties (use these property_definition_id values directly):* - Assignees (00000001-0000-0000-0000-000000000001): entity type, multi-select. Use entity_refs with entity_type='user' and entity_id='macro|[email protected]'.* - Status (00000001-0000-0000-0000-000000000002): select_string, single. Options: Not Started (00000001-0000-0000-0002-000000000001), In Progress (...0002), In Review (...0003), Completed (...0004), Canceled (...0005).- * - Priority (00000001-0000-0000-0000-000000000003): select_string, single. Options: Low (...0001), Medium (...0002), High (...0003), Critical (...0004). Option IDs: 00000001-0000-0000-0003-0000000000XX.+ * - Priority (00000001-0000-0000-0000-000000000003): select_string, single. Options: Low (...0001), Medium (...0002), High (...0003), Urgent (...0004). Option IDs: 00000001-0000-0000-0003-0000000000XX.* - Due Date (00000001-0000-0000-0000-000000000004): date, single. Use date_value with ISO 8601.* - Parent Task (00000001-0000-0000-0000-000000000005): entity, single. Use entity_ref with entity_type='task'.* - Subtasks (00000001-0000-0000-0000-000000000006): entity, multi. Use entity_refs with entity_type='task'.diff --git a/rust/cloud-storage/macro_db_client/migrations/20260527161610_rename_critical_priority_to_urgent.sql b/rust/cloud-storage/macro_db_client/migrations/20260527161610_rename_critical_priority_to_urgent.sqlnew file mode 100644index 0000000000..9a29ce8f84--- /dev/null+++ b/rust/cloud-storage/macro_db_client/migrations/20260527161610_rename_critical_priority_to_urgent.sql@@ -0,0 +1,5 @@+-- Rename the highest priority option label from "Critical" to "Urgent"+UPDATE property_options+SET string_value = 'Urgent'+WHERE id = '00000001-0000-0000-0003-000000000004'+ AND string_value = 'Critical';diff --git a/rust/cloud-storage/properties/src/inbound/toolset/set_entity_property.rs b/rust/cloud-storage/properties/src/inbound/toolset/set_entity_property.rsindex 58f524624a..8a15ef495a 100644--- a/rust/cloud-storage/properties/src/inbound/toolset/set_entity_property.rs+++ b/rust/cloud-storage/properties/src/inbound/toolset/set_entity_property.rs@@ -41,7 +41,7 @@ pub struct ToolEntityRef {Tasks always have these system properties (use these property_definition_id values directly):- Assignees (00000001-0000-0000-0000-000000000001): entity type, multi-select. Use entity_refs with entity_type='user' and entity_id='macro|[email protected]'.- Status (00000001-0000-0000-0000-000000000002): select_string, single. Options: Not Started (00000001-0000-0000-0002-000000000001), In Progress (...0002), In Review (...0003), Completed (...0004), Canceled (...0005).-- Priority (00000001-0000-0000-0000-000000000003): select_string, single. Options: Low (...0001), Medium (...0002), High (...0003), Critical (...0004). Option IDs: 00000001-0000-0000-0003-0000000000XX.+- Priority (00000001-0000-0000-0000-000000000003): select_string, single. Options: Low (...0001), Medium (...0002), High (...0003), Urgent (...0004). Option IDs: 00000001-0000-0000-0003-0000000000XX.- Due Date (00000001-0000-0000-0000-000000000004): date, single. Use date_value with ISO 8601.- Parent Task (00000001-0000-0000-0000-000000000005): entity, single. Use entity_ref with entity_type='task'.- Subtasks (00000001-0000-0000-0000-000000000006): entity, multi. Use entity_refs with entity_type='task'.diff --git a/rust/cloud-storage/properties_db_client/fixtures/properties.sql b/rust/cloud-storage/properties_db_client/fixtures/properties.sqlindex 95158a104f..69032ecb1c 100644--- a/rust/cloud-storage/properties_db_client/fixtures/properties.sql+++ b/rust/cloud-storage/properties_db_client/fixtures/properties.sql@@ -46,7 +46,7 @@ VALUES('10111111-1111-1111-1111-111111111111', '11111111-1111-1111-1111-111111111111', 0, NULL, 'Low'),('10111111-1111-1111-1111-111111111112', '11111111-1111-1111-1111-111111111111', 1, NULL, 'Medium'),('10111111-1111-1111-1111-111111111113', '11111111-1111-1111-1111-111111111111', 2, NULL, 'High'),- ('10111111-1111-1111-1111-111111111114', '11111111-1111-1111-1111-111111111111', 3, NULL, 'Critical'),+ ('10111111-1111-1111-1111-111111111114', '11111111-1111-1111-1111-111111111111', 3, NULL, 'Urgent'),-- Status options (string)('10222222-2222-2222-2222-222222222221', '22222222-2222-2222-2222-222222222222', 0, NULL, 'Engineering'),('10222222-2222-2222-2222-222222222222', '22222222-2222-2222-2222-222222222222', 1, NULL, 'Marketing'),@@ -91,4 +91,3 @@ VALUES('e0666666-6666-6666-6666-666666666661', 'doc3', 'DOCUMENT', '33333333-3333-3333-3333-333333333333', NULL),('e0666666-6666-6666-6666-666666666662', 'doc3', 'DOCUMENT', '88888888-8888-8888-8888-888888888888', NULL),('e0666666-6666-6666-6666-666666666663', 'doc3', 'DOCUMENT', '55555555-5555-5555-5555-555555555555', NULL);-diff --git a/rust/cloud-storage/soup/src/outbound/pg_soup_repo/expanded/tests.rs b/rust/cloud-storage/soup/src/outbound/pg_soup_repo/expanded/tests.rsindex ed92717ecb..c862d7cce4 100644--- a/rust/cloud-storage/soup/src/outbound/pg_soup_repo/expanded/tests.rs+++ b/rust/cloud-storage/soup/src/outbound/pg_soup_repo/expanded/tests.rs@@ -4908,12 +4908,12 @@ async fn test_property_filter_multiple_and(db: Pool<Postgres>) -> anyhow::Result))]async fn test_property_filter_no_match(db: Pool<Postgres>) -> anyhow::Result<()> {- // Filter for Priority = Critical (no documents have this)+ // Filter for Priority = Urgent (no documents have this)let entity_filters = item_filters::EntityFilters {property_filters: vec![PropertyFilter {property_definition_id: "00000001-0000-0000-0000-000000000003".to_string(), // Priorityentity_type: Some("DOCUMENT".to_string()),- option_ids: vec!["00000001-0000-0000-0003-000000000004".to_string()], // Critical+ option_ids: vec!["00000001-0000-0000-0003-000000000004".to_string()], // Urgententity_ids: vec![],}],..Default::default()@@ -4936,10 +4936,7 @@ async fn test_property_filter_no_match(db: Pool<Postgres>) -> anyhow::Result<()>.filter(|i| matches!(i, SoupItem::Document(_))).count();- assert_eq!(- doc_count, 0,- "No documents should match Priority = Critical"- );+ assert_eq!(doc_count, 0, "No documents should match Priority = Urgent");Ok(())}diff --git a/rust/cloud-storage/system_properties/src/domain/model/constants/options/priority.rs b/rust/cloud-storage/system_properties/src/domain/model/constants/options/priority.rsindex 01d415d1a7..7bb6e57c7b 100644--- a/rust/cloud-storage/system_properties/src/domain/model/constants/options/priority.rs+++ b/rust/cloud-storage/system_properties/src/domain/model/constants/options/priority.rs@@ -10,14 +10,14 @@ pub enum PriorityOption {Low,Medium,High,- Critical,+ Urgent,}impl PriorityOption {pub const LOW_UUID: Uuid = Uuid::from_u128(0x00000001_0000_0000_0003_000000000001);pub const MEDIUM_UUID: Uuid = Uuid::from_u128(0x00000001_0000_0000_0003_000000000002);pub const HIGH_UUID: Uuid = Uuid::from_u128(0x00000001_0000_0000_0003_000000000003);- pub const CRITICAL_UUID: Uuid = Uuid::from_u128(0x00000001_0000_0000_0003_000000000004);+ pub const URGENT_UUID: Uuid = Uuid::from_u128(0x00000001_0000_0000_0003_000000000004);/// Get the UUID for this option.pub const fn uuid(&self) -> Uuid {@@ -25,7 +25,7 @@ impl PriorityOption {Self::Low => Self::LOW_UUID,Self::Medium => Self::MEDIUM_UUID,Self::High => Self::HIGH_UUID,- Self::Critical => Self::CRITICAL_UUID,+ Self::Urgent => Self::URGENT_UUID,}}@@ -35,7 +35,7 @@ impl PriorityOption {Self::Low => "Low",Self::Medium => "Medium",Self::High => "High",- Self::Critical => "Critical",+ Self::Urgent => "Urgent",}}@@ -45,7 +45,7 @@ impl PriorityOption {u if u == Self::LOW_UUID => Some(Self::Low),u if u == Self::MEDIUM_UUID => Some(Self::Medium),u if u == Self::HIGH_UUID => Some(Self::High),- u if u == Self::CRITICAL_UUID => Some(Self::Critical),+ u if u == Self::URGENT_UUID => Some(Self::Urgent),_ => None,}}