@cqa-lib/cqa-ui 1.1.511 → 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;
@@ -109,6 +122,8 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
109
122
  runAId: number;
110
123
  runBId: number;
111
124
  row: StepComparison;
125
+ sourceRunAId: number | null;
126
+ sourceRunBId: number | null;
112
127
  }>;
113
128
  testCaseClick: EventEmitter<number>;
114
129
  /** Test plan modal: export compare results (GET test_plan_results/compare/export). */
@@ -123,6 +138,8 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
123
138
  selectedRunB?: RunData;
124
139
  comparisonSummary?: ComparisonSummary;
125
140
  stepComparisons: StepComparison[];
141
+ /** Populated when test-plan comparison data is loaded; drives summary metric cards. */
142
+ testPlanCardSummary?: TestPlanCompareCardSummary;
126
143
  tableColumns: DynamicTableColumn[];
127
144
  pageIndex: number;
128
145
  pageSize: number;
@@ -156,12 +173,20 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
156
173
  private onTestCaseClick;
157
174
  onExportTestPlanCompare(): void;
158
175
  private renderChangeChip;
176
+ private renderPriorityChip;
177
+ private isFailureAction;
178
+ private getActionLabel;
159
179
  private getRunColumnHeader;
160
180
  private renderStatusIcon;
161
181
  private getStatusLabel;
162
182
  private formatDuration;
163
183
  private getResultStatusColor;
164
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;
165
190
  onPageChange(event: {
166
191
  pageIndex: number;
167
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.511",
3
+ "version": "1.1.513",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",