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

fix(masthead): customtypeahead api fix #5168

Merged
merged 2 commits into from
Feb 12, 2021
Merged

fix(masthead): customtypeahead api fix #5168

merged 2 commits into from
Feb 12, 2021

Conversation

kennylam
Copy link
Member

@kennylam kennylam commented Feb 12, 2021

Description

Updates masthead search customTypeAheadApi to be fully on the application side. When using a custom API, it will no longer pass through SearchTypeaheadAPI at all. This allows users to pass a full API including any necessary query params that were not defined in SearchTypeaheadAPI. With this change the use of environment variables is no longer necessary.

Changelog

Changed

  • moves customTypeAheadApi out of SearchTypeaheadAPI
  • update jest environment variables
  • section titles no longer appear when there are no section items

@kennylam kennylam added the package: react Work necessary for the Carbon for IBM.com react components package label Feb 12, 2021
@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Feb 12, 2021

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Feb 12, 2021

Copy link
Member

@annawen1 annawen1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Feb 12, 2021

@kennylam kennylam added the Ready to merge Label for the pull requests that are ready to merge label Feb 12, 2021
@kodiakhq kodiakhq bot merged commit 1603e63 into carbon-design-system:master Feb 12, 2021
@kennylam kennylam deleted the fix/masthead-typeahead-api branch February 12, 2021 23:21
IgnacioBecerra pushed a commit to IgnacioBecerra/ibm-dotcom-library that referenced this pull request Feb 22, 2021
### Description

Updates masthead search `customTypeAheadApi` to be fully on the application side. When using a custom API, it will no longer pass through `SearchTypeaheadAPI` at all. This allows users to pass a full API including any necessary query params that were not defined in `SearchTypeaheadAPI`. With this change the use of environment variables is no longer necessary.

### Changelog

**Changed**

- moves `customTypeAheadApi` out of `SearchTypeaheadAPI`
- update jest environment variables
- section titles no longer appear when there are no section items


<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "package: styles": Carbon Expressive -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: react Work necessary for the Carbon for IBM.com react components package Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants