Add event status trigger, improve test coverage, and UI enhancements

- Add event-status-changed trigger for SmoothSchedule Activepieces piece
- Add comprehensive test coverage for payments, tickets, messaging, mobile
- Add test coverage for core services, signals, consumers, and views
- Improve Activepieces UI: templates, billing hooks, project hooks
- Update marketing automation showcase and workflow visual components
- Add public API endpoints for availability

🤖 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-20 00:19:12 -05:00
parent f3e1b8f8bf
commit 2417bb8313
51 changed files with 13823 additions and 340 deletions

View File

@@ -57,15 +57,21 @@ export const projectHooks = {
return useQuery<ProjectWithLimits[], Error>({
queryKey: ['projects', params],
queryFn: async () => {
const results = await projectApi.list({
cursor,
limit,
displayName,
...restParams,
});
return results.data;
try {
const results = await projectApi.list({
cursor,
limit,
displayName,
...restParams,
});
return results.data;
} catch {
// Return empty array if endpoint doesn't exist (embedded mode)
return [];
}
},
enabled: !displayName || displayName.length > 0,
retry: false,
});
},
useProjectsInfinite: (limit = 20) => {
@@ -77,11 +83,18 @@ export const projectHooks = {
queryKey: ['projects-infinite', limit],
getNextPageParam: (lastPage) => lastPage.next,
initialPageParam: undefined,
queryFn: ({ pageParam }) =>
projectApi.list({
cursor: pageParam as string | undefined,
limit,
}),
queryFn: async ({ pageParam }) => {
try {
return await projectApi.list({
cursor: pageParam as string | undefined,
limit,
});
} catch {
// Return empty page if endpoint doesn't exist (embedded mode)
return { data: [], next: null, previous: null };
}
},
retry: false,
});
},
useProjectsForPlatforms: () => {