Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(delay): ui improvement (#16403)

Talal Jaber3e7c8920c6fd
diff --git a/bun.lock b/bun.lock
index d4223d097f4..23c8b215693 100644
--- a/bun.lock
+++ b/bun.lock
@@ -10510,7 +10510,7 @@
},
"packages/pieces/core/delay": {
"name": "@activepieces/piece-delay",
- "version": "0.3.35",
+ "version": "0.4.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/core/delay/package.json b/packages/pieces/core/delay/package.json
index 6fcdf7b5c6e..b5dff2c251a 100644
--- a/packages/pieces/core/delay/package.json
+++ b/packages/pieces/core/delay/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-delay",
- "version": "0.3.35",
+ "version": "0.4.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/core/delay/src/lib/actions/delay-for-action.ts b/packages/pieces/core/delay/src/lib/actions/delay-for-action.ts
index f28fbfa702b..0837b50281c 100644
--- a/packages/pieces/core/delay/src/lib/actions/delay-for-action.ts
+++ b/packages/pieces/core/delay/src/lib/actions/delay-for-action.ts
@@ -37,6 +37,15 @@ export const delayForAction = createAction({
hide: true,
},
},
+ propertyGroups: [
+ {
+ key: 'duration',
+ display: 'section',
+ label: 'Wait time',
+ icon: 'calendar',
+ props: ['delayFor', 'unit', 'markdown'],
+ },
+ ],
props: {
delayFor: Property.Number({
displayName: 'Amount',
@@ -46,12 +55,13 @@ export const delayForAction = createAction({
unit: Property.StaticDropdown({
displayName: 'Unit',
required: true,
+ display: 'cards',
options: {
options: [
- { value: TimeUnit.SECONDS, label: 'Seconds' },
- { value: TimeUnit.MINUTES, label: 'Minutes' },
- { value: TimeUnit.HOURS, label: 'Hours' },
- { value: TimeUnit.DAYS, label: 'Days' },
+ { value: TimeUnit.SECONDS, label: 'Seconds', description: 'Brief pause', icon: 'calendar' },
+ { value: TimeUnit.MINUTES, label: 'Minutes', description: 'Short wait', icon: 'calendar' },
+ { value: TimeUnit.HOURS, label: 'Hours', description: 'Long wait', icon: 'calendar' },
+ { value: TimeUnit.DAYS, label: 'Days', description: 'Longest wait', icon: 'calendar' },
],
},
defaultValue: TimeUnit.SECONDS,