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

docs(Search): remove imports of other examples #3494

Merged
merged 6 commits into from
Mar 13, 2019

Conversation

Fabianopb
Copy link
Member

As discussed in #3479 , this PR remove imports in Search examples of other examples. This creates a bit of repetition, which doesn't feel very nice, but all sandboxes work now.

I wonder if it would make sense to add some kind of general test to assure that this won't repeat in other examples... 🤔

@codecov-io
Copy link

Codecov Report

Merging #3494 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3494   +/-   ##
=======================================
  Coverage   99.82%   99.82%           
=======================================
  Files         172      172           
  Lines        2804     2804           
=======================================
  Hits         2799     2799           
  Misses          5        5

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a0c71d9...b6adbd6. Read the comment docs.

@levithomason
Copy link
Member

I wonder if it would make sense to add some kind of general test to assure that this won't repeat in other examples... 🤔

Perhaps. We have examples-test.js which ensures all examples render without errors. Wonder if we could extend that.

This may also be something we can do with lint rules. There is an eslint import plugin. We might be able to restrict imports via an .eslintrc in the doc examples directory. That would be easier to maintain.

We can merge this for now 👍

@@ -18,7 +18,7 @@ const SearchVariationsExamples = () => (
/>
<ShorthandExample
title='Input'
description='A search can be passed an input via shorthand props.'
description='A search can receive an input via shorthand props.'
Copy link
Member

Choose a reason for hiding this comment

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

👍

@levithomason levithomason merged commit 15f8285 into master Mar 13, 2019
@delete-merged-branch delete-merged-branch bot deleted the docs/remove-imports-search branch March 13, 2019 04:27
@levithomason
Copy link
Member

Released in [email protected].

@Fabianopb
Copy link
Member Author

This may also be something we can do with lint rules. There is an eslint import plugin. We might be able to restrict imports via an .eslintrc in the doc examples directory. That would be easier to maintain.

@levithomason I've been fiddling with this idea for a while, I can submit a PR soon!

mbakiev pushed a commit to mbakiev/Semantic-UI-React that referenced this pull request Jun 17, 2019
* docs(Search): Implement own standard custom.

* docs(Search): Implement own category custom example.

* docs(Search): Implement own example for fluid search.

* docs(Search): Implement own example for aligned search.

* docs(Search): Implement own example for input search and fix typo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants