Add Activepieces integration for workflow automation

- Add Activepieces fork with SmoothSchedule custom piece
- Create integrations app with Activepieces service layer
- Add embed token endpoint for iframe integration
- Create Automations page with embedded workflow builder
- Add sidebar visibility fix for embed mode
- Add list inactive customers endpoint to Public API
- Include SmoothSchedule triggers: event created/updated/cancelled
- Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
poduck
2025-12-18 22:59:37 -05:00
parent 9848268d34
commit 3aa7199503
16292 changed files with 1284892 additions and 4708 deletions

View File

@@ -117,10 +117,7 @@ const HelpSettingsCommunication = React.lazy(() => import('./pages/help/HelpSett
const HelpComprehensive = React.lazy(() => import('./pages/help/HelpComprehensive'));
const StaffHelp = React.lazy(() => import('./pages/help/StaffHelp'));
const PlatformSupport = React.lazy(() => import('./pages/PlatformSupport')); // Import Platform Support page (for businesses to contact SmoothSchedule)
const AutomationMarketplace = React.lazy(() => import('./pages/AutomationMarketplace')); // Import Automation Marketplace page
const MyAutomations = React.lazy(() => import('./pages/MyAutomations')); // Import My Automations page
const CreateAutomation = React.lazy(() => import('./pages/CreateAutomation')); // Import Create Automation page
const Tasks = React.lazy(() => import('./pages/Tasks')); // Import Tasks page for scheduled automation executions
const Automations = React.lazy(() => import('./pages/Automations')); // Import Automations page (Activepieces embedded)
const SystemEmailTemplates = React.lazy(() => import('./pages/settings/SystemEmailTemplates')); // System email templates (Puck-based)
const Contracts = React.lazy(() => import('./pages/Contracts')); // Import Contracts page
const ContractTemplates = React.lazy(() => import('./pages/ContractTemplates')); // Import Contract Templates page
@@ -805,46 +802,22 @@ const AppContent: React.FC = () => {
<Route path="/dashboard/help/settings/embed-widget" element={<HelpSettingsEmbedWidget />} />
<Route path="/dashboard/help/settings/staff-roles" element={<HelpSettingsStaffRoles />} />
<Route path="/dashboard/help/settings/communication" element={<HelpSettingsCommunication />} />
{/* Automations - Activepieces embedded builder */}
<Route
path="/dashboard/automations/marketplace"
path="/dashboard/automations"
element={
canAccess('can_access_automations') ? (
<AutomationMarketplace />
) : (
<Navigate to="/dashboard" />
)
}
/>
<Route
path="/dashboard/automations/my-automations"
element={
canAccess('can_access_automations') ? (
<MyAutomations />
) : (
<Navigate to="/dashboard" />
)
}
/>
<Route
path="/dashboard/automations/create"
element={
canAccess('can_access_automations') ? (
<CreateAutomation />
) : (
<Navigate to="/dashboard" />
)
}
/>
<Route
path="/dashboard/tasks"
element={
canAccess('can_access_tasks') ? (
<Tasks />
<Automations />
) : (
<Navigate to="/dashboard" />
)
}
/>
{/* Redirect old automation routes to new page */}
<Route path="/dashboard/automations/marketplace" element={<Navigate to="/dashboard/automations" replace />} />
<Route path="/dashboard/automations/my-automations" element={<Navigate to="/dashboard/automations" replace />} />
<Route path="/dashboard/automations/create" element={<Navigate to="/dashboard/automations" replace />} />
<Route path="/dashboard/tasks" element={<Navigate to="/dashboard/automations" replace />} />
{/* Email templates are now accessed via Settings > Email Templates */}
<Route path="/dashboard/support" element={<PlatformSupport />} />
<Route