@cqa-lib/cqa-ui 1.1.512 → 1.1.513

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.
@@ -71,11 +71,24 @@ export interface StepComparison {
71
71
  runBStatus?: 'SUCCESS' | 'FAILURE' | 'ABORTED' | 'NOT_EXECUTED' | 'QUEUED' | 'STOPPED';
72
72
  runBDuration?: number;
73
73
  change: string;
74
+ /** 1-based row index in full comparison list (test plan table; set by compare-runs). */
75
+ _compareRowOrdinal?: number;
74
76
  }
75
77
  export interface ComparisonResponse {
76
78
  summary: ComparisonSummary;
77
79
  stepsComparison: StepComparison[];
78
80
  }
81
+ /** Derived counts for test-plan compare summary cards (from step rows). */
82
+ export interface TestPlanCompareCardSummary {
83
+ totalCases: number;
84
+ passed: number;
85
+ failed: number;
86
+ regressions: number;
87
+ fixed: number;
88
+ newSteps: number;
89
+ removed: number;
90
+ noChange: number;
91
+ }
79
92
  export interface CompareRequest {
80
93
  runAId: number;
81
94
  runBId: number;
@@ -125,6 +138,8 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
125
138
  selectedRunB?: RunData;
126
139
  comparisonSummary?: ComparisonSummary;
127
140
  stepComparisons: StepComparison[];
141
+ /** Populated when test-plan comparison data is loaded; drives summary metric cards. */
142
+ testPlanCardSummary?: TestPlanCompareCardSummary;
128
143
  tableColumns: DynamicTableColumn[];
129
144
  pageIndex: number;
130
145
  pageSize: number;
@@ -158,12 +173,20 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
158
173
  private onTestCaseClick;
159
174
  onExportTestPlanCompare(): void;
160
175
  private renderChangeChip;
176
+ private renderPriorityChip;
177
+ private isFailureAction;
178
+ private getActionLabel;
161
179
  private getRunColumnHeader;
162
180
  private renderStatusIcon;
163
181
  private getStatusLabel;
164
182
  private formatDuration;
165
183
  private getResultStatusColor;
166
184
  private handleComparisonData;
185
+ /**
186
+ * Builds summary card counts for test-plan compare: pass/fail from Run B vs total;
187
+ * change buckets from `change` (REGRESSION, FIXED, NEW STEP, etc.).
188
+ */
189
+ private computeTestPlanCardSummary;
167
190
  onPageChange(event: {
168
191
  pageIndex: number;
169
192
  pageSize: number;
@@ -1,7 +1,9 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ViewCompareButtonComponent {
4
+ label: string;
5
+ isFailureAction: boolean;
4
6
  clicked: EventEmitter<void>;
5
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ViewCompareButtonComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<ViewCompareButtonComponent, "cqa-view-compare-button", never, {}, { "clicked": "clicked"; }, never, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ViewCompareButtonComponent, "cqa-view-compare-button", never, { "label": "label"; "isFailureAction": "isFailureAction"; }, { "clicked": "clicked"; }, never, never>;
7
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.512",
3
+ "version": "1.1.513",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",