@vizzly-testing/cli 0.26.1 → 0.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -405,6 +405,15 @@ export const createTddHandler = (config, workingDir, baselineBuild, baselineComp
405
405
  // Update comparison in report data file
406
406
  updateComparison(newComparison);
407
407
 
408
+ // Log screenshot event for menubar
409
+ // Normalize status to match HTTP response ('failed' -> 'diff')
410
+ let logStatus = comparison.status === 'failed' ? 'diff' : comparison.status;
411
+ output.info(`Screenshot: ${sanitizedName}`, {
412
+ screenshot: sanitizedName,
413
+ status: logStatus,
414
+ diffPercentage: comparison.diffPercentage || 0
415
+ });
416
+
408
417
  // Visual diffs return 200 with status: 'diff' - they're not errors
409
418
  // The SDK/user can decide whether to fail tests based on this
410
419
  if (comparison.status === 'failed') {
@@ -486,7 +495,13 @@ export const createTddHandler = (config, workingDir, baselineBuild, baselineComp
486
495
  diff: null
487
496
  };
488
497
  updateComparison(updatedComparison);
489
- output.info(`Baseline accepted for comparison ${comparisonId}`);
498
+
499
+ // Log screenshot event for menubar
500
+ output.info(`Screenshot: ${comparison.name}`, {
501
+ screenshot: comparison.name,
502
+ status: 'accepted',
503
+ diffPercentage: 0
504
+ });
490
505
  return result;
491
506
  } catch (error) {
492
507
  output.error(`Failed to accept baseline for ${comparisonId}:`, error);
@@ -510,7 +525,13 @@ export const createTddHandler = (config, workingDir, baselineBuild, baselineComp
510
525
  status: 'rejected'
511
526
  };
512
527
  updateComparison(updatedComparison);
513
- output.info(`Changes rejected for comparison ${comparisonId}`);
528
+
529
+ // Log screenshot event for menubar
530
+ output.info(`Screenshot: ${comparison.name}`, {
531
+ screenshot: comparison.name,
532
+ status: 'rejected',
533
+ diffPercentage: comparison.diffPercentage || 0
534
+ });
514
535
  return {
515
536
  success: true,
516
537
  id: comparisonId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly-testing/cli",
3
- "version": "0.26.1",
3
+ "version": "0.26.2",
4
4
  "description": "Visual review platform for UI developers and designers",
5
5
  "keywords": [
6
6
  "visual-testing",