✨ Add --org flag to builds and comparisons commands#212
Conversation
When two projects across different orgs share the same slug, --project alone returns mixed results with no way to tell them apart. The new --org flag passes an organization filter to the API to disambiguate.
This comment has been minimized.
This comment has been minimized.
Code ReviewThis is a clean, well-executed feature addition that follows existing patterns in the codebase. The implementation is consistent and properly tested. ✅ Strengths1. Consistent with existing patterns
2. Thorough test coverage
3. Good documentation
4. Code quality
🔍 Minor observations1. Naming consistency
This matches other patterns in the codebase where CLI flags are often abbreviated. 2. No validation on the org parameter 3. JSDoc update 📋 Test plan completionThe PR checklist shows two items as incomplete:
These can be verified with: npm run build
./bin/vizzly builds --help | grep -A1 "org"
./bin/vizzly comparisons --help | grep -A1 "org"✅ RecommendationApprove and merge. This is a straightforward feature addition that solves a real problem (disambiguating projects with identical slugs across different orgs). The implementation is solid, well-tested, and follows all project conventions. The changes are minimal (58 additions, 2 deletions across 6 files), reducing risk. All existing tests pass, and new tests provide good coverage of the feature. |
Vizzly - Visual Test ResultsCLI Reporter - 10 changes need review
Changes needing review (10)filter-failed-only · Firefox · 1920×1080 · 0.2% diff fullscreen-viewer · Firefox · 1920×1080 · 0.1% diff bulk-accept-dialog · Firefox · 1920×1080 · 10.4% diff viewer-toggle-mode · Firefox · 1920×1080 · 0.1% diff viewer-slide-mode · Firefox · 1920×1080 · 0.5% diff viewer-zoomed-100 · Firefox · 1920×1080 · 0.5% diff ...and 4 more in Vizzly. CLI TUI - Processing...Build in progress...
|






Summary
When two projects across different orgs share the same slug (e.g., "storybook"),
vizzly builds --project storybookreturns builds from both projects with no way to tell them apart. This adds an--orgflag to disambiguate.--org <slug>option tobuildsandcomparisonscommandsorganizationquery parameter through to the APIorganizationin thesearchComparisonsendpoint paramsvizzly builds --project storybook --org gq vizzly comparisons --name "Button" --project storybook --org my-orgTest plan
vizzly builds --helpshows--orgoptionvizzly comparisons --helpshows--orgoption--project storybook --org <slug>to confirm scoped results