Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Allow for a configurable connector on search component - #200

Merged
rclark merged 4 commits into
masterfrom
configurable-search
Dec 12, 2019
Merged

rclark merged 4 commits into
masterfrom
configurable-search

Conversation

@rclark

@rclark rclark commented Dec 11, 2019 •

Copy link
Copy Markdown
Contributor

This PR adjusts the search component, allowing you to provide a custom SiteSearchAPIConnector. This allows the same component to be used to search other Swiftype "engines".

Todo

  • write a test for the condition
  • look into whether prop types can assert that the .connector is an instanceOf SiteSearchAPIConnector

@rclark
rclark requested a review from katydecorah December 11, 2019 22:22
Comment thread src/components/search/search.js Resolved

@katydecorah katydecorah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is looking great so far! I left you a couple line comments. Please let me know if you want to talk through any of them.

Comment thread src/components/search/search.js Resolved
@rclark

rclark commented Dec 12, 2019

Copy link
Copy Markdown
Contributor Author

Thanks @katydecorah for the feedback. This all feels a lot better to me now. Final review?

@katydecorah katydecorah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💯 nice work!

We usually update the CHANGELOG.md before merging. Here's an example: f113c36

@rclark
rclark merged commit b8cf021 into master Dec 12, 2019
@rclark
rclark deleted the configurable-search branch December 12, 2019 17:17
katydecorah pushed a commit that referenced this pull request Dec 14, 2019
* master:
  Prepare 0.23.0
  Allow for a configurable connector on search component (#200)
katydecorah pushed a commit that referenced this pull request Jan 3, 2020
* master:
  Update CHANGELOG.md
  Update CHANGELOG.md
  Collapse grayed lines in code block (#206)
  Add a tag component with themes (#216)
  Add new related page component (#213)
  Rework Notes themes (#202)
  Add "tag" option to second and third level headings (#212)
  Update style of BetaFlag (#207)
  allow `feedbackSentryDsn` to accept string (url) or boolean (false)
  Add IE11 compatibility for the `Search` component (#203)
  conditionally set `section` and `preferredLanguage`; send along `environment`
  Prepare 0.24.0
  Add groovy highlight option (#201)
  Push text feedback to Sentry (#198)
  Prepare 0.23.0
  Allow for a configurable connector on search component (#200)
  Update budo
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants