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

Hiding patterns is not working #165

Closed
ivancamilov opened this issue Oct 14, 2015 · 6 comments
Closed

Hiding patterns is not working #165

ivancamilov opened this issue Oct 14, 2015 · 6 comments

Comments

@ivancamilov
Copy link

According to the docs, if you append an underscore (_) to the pattern name it should "no longer show up in the drop-down navigation, the media pattern sub-type "view all" page, nor the style guide".

However, if you do this in patternlab-node the pattern still shows up in the "view all" page. I fixed this in my local copy by editing /builder/patternlab_assembler.js and adding this check around line 107:

// ignore files prepended with _
if(filename[0] == '_'){
  return;
}

Should I do a PR with this change?

@bmuenzenmeyer
Copy link
Member

Hi @ivancamilov I can investigate on my end too.

Can you tell me which version you are running?

@ivancamilov
Copy link
Author

Hi @bmuenzenmeyer, I'm using the latest stable release, v0.13.0. I downloaded it here.

@bmuenzenmeyer
Copy link
Member

@ivancamilov thanks for checking. This logic was changed recently and I could swear I tested it, but might have missed the view all use case. will take a look as time allows.

@bmuenzenmeyer
Copy link
Member

@ivancamilov confirmed this is a regression on my part, introduced during a reshuffling. apologies, but thanks for the catch. if you'd like to submit a PR, please do so. if you can get a unit test on this too that would be wonderful

@ivancamilov
Copy link
Author

ok cool, I'll send you a PR this weekend with a test for it.

@bmuenzenmeyer
Copy link
Member

@ivancamilov any progress on this? otherwise i plan to look into it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants