🐛 Fix Storybook skip filtering via vizzly-skip tag (#215)#216
Conversation
## Summary - add support for tag-based skip filtering via vizzly-skip during story discovery - keep parameters.vizzly.skip support for backwards compatibility - add debug logs to show why a story is filtered out - add crawler tests for tag-only and mixed tag+parameter skip cases - update Storybook README and example story to recommend tags: ['vizzly-skip'] ## Test plan - [x] npm test -- tests/crawler.test.js (from clients/storybook) - [ ] Verify against a real Storybook 7+ build with tagged stories
This comment has been minimized.
This comment has been minimized.
Code ReviewSummaryThis PR successfully addresses issue #215 by adding support for the ✅ Strengths1. Correct Problem Resolution
2. Code Quality
3. Test Coverage
4. User Experience
5. Documentation
🔍 Observations & Suggestions1. Filter Order (Minor) Recommendation: This is working as intended. The early return pattern is clear and efficient. 2. Debug Logging to stderr (Question) Recommendation: If this matches the project's logging conventions elsewhere, keep it. 3. Test Assertion Style (Nitpick) 4. Edge Case: Empty Tags Array 5. Documentation Clarity Recommendation: Optional enhancement for future clarity. 🚀 Performance & SecurityPerformance: ✅ No concerns
Security: ✅ No concerns
🧪 Test CoverageTest coverage for the new functionality is excellent:
✅ Final VerdictThis PR is ready to merge. It's a well-executed fix that:
The observations above are minor suggestions for potential future enhancements, not blockers. 📋 Checklist
Great work! 🎉 |
## Summary - add a large sentinel story named WE SHOULD NEVER SEE THIS IN VIZZLY - tag the sentinel story with vizzly-skip in the example Storybook fixture - add an E2E discovery assertion that the sentinel exists in index.json with the tag - assert the sentinel is excluded from discoverStories results ## Test plan - [x] node --test --test-reporter=spec tests/crawler.test.js (from clients/storybook) - [ ] VIZZLY_E2E=1 npm test -- tests/sdk-integration.test.js (requires full Storybook E2E deps)
Vizzly - Visual Test ResultsCLI Reporter - Processing...Build in progress...
|
Summary
Test plan
Closes #215