Skip to content
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

Filter connectors better and make connector search page safer #699

Merged
merged 11 commits into from
Feb 24, 2025

Conversation

travjenkins
Copy link
Member

@travjenkins travjenkins commented Feb 21, 2025

Changes

  • Add handling to remove connectors like kelkoo
  • Make connector logo loading more safe since there is a chance they'll be missed

Tests / Screenshots

Kelkoo cannot be found

Prod

image

Local

image

Comment on lines +73 to +80
{!logo?.childImageSharp?.gatsbyImageData ? (
<div
className={clsx(
connectorPostCardImage,
'icon-wrapper'
)}
/>
) : (
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logo was 100% missing while running a quick search. So making this safer. Eventually we might want to add a placeholder or something while this is loading.

{showType ? (
<>
{recommended ? <div style={{ flexBasis: 4 }} /> : null}
}: ReturnType<typeof normalizeConnector> & { showType?: boolean }) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This didn't change much but looks like it did because I added a explicit return.

showType={showAllConnectors}
/>
)
(connector) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another explicit return

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now check this in normalizeConnector.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should never happen - but being safe

src/utils.ts Outdated
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add all the filter into the normalizer so that things like search results do not get fed wrong connectors

@travjenkins travjenkins changed the title Travjenkins/bug/fix broken connector rendering Filter connectors better and make connector search page safer Feb 21, 2025
Brenosalv
Brenosalv previously approved these changes Feb 21, 2025
Copy link
Collaborator

@Brenosalv Brenosalv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@travjenkins travjenkins added the generate-pr-preview Used to kick off a preview build for a PR label Feb 21, 2025
setting maximum parallel requests to stop hammering strapi
Copy link

github-actions bot commented Feb 21, 2025

Visit the preview URL for this PR (updated for commit b228685):

https://estuary-marketing--pr699-travjenkins-bug-fix-6h6w2zsd.web.app

(expires Tue, 11 Mar 2025 15:48:14 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 76f6b095a0752e5d9c6c890267f9fdc3e392161e

Copy link
Collaborator

@Brenosalv Brenosalv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@travjenkins travjenkins merged commit 1d11d23 into master Feb 24, 2025
1 check passed
@travjenkins travjenkins deleted the travjenkins/bug/fix-broken-connector-rendering branch February 24, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generate-pr-preview Used to kick off a preview build for a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants