integration app one component search bar created#1212
integration app one component search bar created#1212ViaSocket-Git wants to merge 1 commit intotestfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <div className={`py-8 ${combosData?.combinations?.length > 0 && 'dotted-background'}`}> | ||
| <div className="container flex flex-col gap-16"> | ||
| <div className="flex flex-col gap-8"> | ||
| {combosData?.combinations?.length > 0 ? ( | ||
| {(pairCombosData ? pairCombosData?.combinations?.length > 0 : combosData?.combinations?.length > 0) ? ( | ||
| <> | ||
| <p className="h2">{`Ready to use ${appOneDetails?.name} automations`}</p> | ||
| <div className="cont gap-3 mb-6"> | ||
| {selectedAppSlug ? ( | ||
| <p className="text-sm text-gray-600">Showing automations for {appOneDetails?.name} + {combosData?.plugins?.[selectedAppSlug]?.name || selectedAppSlug}</p> | ||
| ) : ( | ||
| <label className="text-sm text-gray-600">Search an app to pair with {appOneDetails?.name}</label> | ||
| )} |
There was a problem hiding this comment.
Preserve pair search UI when no combinations exist
When a user selects an app that returns zero pairwise automations, pairCombosData becomes defined but pairCombosData.combinations.length is 0. The condition then falls through to the fallback branch, which hides the entire automation section—including the new search input and clear button—so the user cannot change the selection without reloading. The search UI should remain visible and display an empty-state message instead of removing the whole section.
Useful? React with 👍 / 👎.
No description provided.