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

Support for Search in IE11 🎉 - #203

Merged
katydecorah merged 6 commits into
masterfrom
search-ui-ie11-friend
Dec 18, 2019
Merged

katydecorah merged 6 commits into
masterfrom
search-ui-ie11-friend

Conversation

@katydecorah

@katydecorah katydecorah commented Dec 15, 2019 •

Copy link
Copy Markdown
Contributor

[email protected] released yesterday along with better support for IE11!

Search will work in IE11 🎉 🎉

  • along with the update, we can remove the babelInclude: ['mimic-fn', 'debounce-fn’], line from every batfish config (search-ui's latest update gets rid of those dependencies so we no longer need to have babel take care of them).
  • removed core-js and runtime-regenerator as polyfills, because they were not doing the necessary polyfill-ing.
    • I tried playing around with the polyfill's settings: I know that we needed to polyfill entries, startsWith, and Promise then after that it stopped giving error message and the search loading would just spin without loading results.
    • After seeing this thread Errors when rendering SearchProvider in IE11 elastic/search-ui#437 (comment) I tried using the recommended react-app-polyfill and search started working on IE11.
    • While react-app-polyfill is suited for create-react-app projects, I haven't found any reason why we shouldn't use it on our search component.
  • This update will likely resolve some common Sentry issues we've been seeing around the search component, I'll look out for them in Sentry.

How to test:

  1. npm ci && npm start
  2. Open http://192.168.7.223:9966/Search in IE11
  3. Successfully perform a search query!

Fixes DOCS-SUBDOMAIN-2JB
Fixes #210

@katydecorah

Copy link
Copy Markdown
Contributor Author

I tested this locally on a repo in IE11 and it worked beautifully!

@katydecorah

Copy link
Copy Markdown
Contributor Author

🐌 This can wait until the new year.

@colleenmcginnis colleenmcginnis 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.

⭐️

Comment thread package.json
"precommit": "lint-staged",
"format": "prettier '**/*.js' --write",
"build": "scripts/build-module-indexes.js && scripts/build-package.js",
"start-legacy": "npm run build-component-index && node scripts/rm-search.js && npm run cp-assembly && budo ./src/test-cases-app/test-cases-app.js --dir ./src/test-cases-app --live --debug --pushstate -- -t babelify"

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.

☺️

@katydecorah
katydecorah merged commit 620073e into master Dec 18, 2019
@katydecorah
katydecorah deleted the search-ui-ie11-friend branch December 18, 2019 01:38
katydecorah pushed a commit that referenced this pull request Dec 20, 2019
* master:
  Add "tag" option to second and third level headings (#212)
  Update style of BetaFlag (#207)
  Add IE11 compatibility for the `Search` component (#203)
  Prepare 0.24.0
  Add groovy highlight option (#201)
  Push text feedback to Sentry (#198)
katydecorah pushed a commit that referenced this pull request Jan 2, 2020
* master:
  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)
  Add IE11 compatibility for the `Search` component (#203)
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
katydecorah pushed a commit that referenced this pull request Jan 7, 2020
* master: (32 commits)
  add missing indices (#219)
  Create `Edit` and `CodeSnippet` components (#197)
  Update CHANGELOG.md
  Update CHANGELOG.md
  create highlight/theme-css
  Create themes component to house shared themes for Tag and Note (#217)
  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)
  ...
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.

TypeError: Property description must be an object: undefined

2 participants