-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(webflow): fix collection & site dropdown in webflow triggers #2849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR fixes Webflow trigger configuration by replacing manual text inputs with dynamic dropdowns for site and collection selection. The changes improve UX by fetching and displaying available sites and collections from the user's Webflow account. Key changes:
Important architectural change: Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant UI as Trigger UI
participant API as Webflow API
participant Webhook as Webhook Handler
participant Processor as Webhook Processor
User->>UI: Select Webflow credential
UI->>API: POST /api/tools/webflow/sites
API-->>UI: Return sites list
User->>UI: Select site from dropdown
UI->>API: POST /api/tools/webflow/collections
API-->>UI: Return collections list
User->>UI: Select collection (optional)
User->>UI: Save trigger
UI->>Webhook: Create webhook subscription
Webhook->>API: POST /v2/sites/{siteId}/webhooks
Note over Webhook,API: Filter by formName for form_submission<br/>No filter for collection triggers
API-->>Webhook: Webhook created
Note over Processor: When webhook fires
API->>Processor: POST webhook event
Processor->>Processor: Check if collectionId matches<br/>(for collection triggers)
alt Collection matches or no filter
Processor->>Processor: Format webhook input
Processor->>Processor: Trigger workflow
else Collection doesn't match
Processor->>Processor: Skip event
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 files reviewed, 7 comments
Summary
Type of Change
Testing
Tested manually
Checklist