scottyaslan commented on code in PR #10473: URL: https://github.com/apache/nifi/pull/10473#discussion_r2478369385
########## nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/flow/flow-diff-dialog/flow-diff-dialog.html: ########## @@ -0,0 +1,123 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one or more + ~ contributor license agreements. See the NOTICE file distributed with + ~ this work for additional information regarding copyright ownership. + ~ The ASF licenses this file to You under the Apache License, Version 2.0 + ~ (the "License"); you may not use this file except in compliance with + ~ the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<h2 mat-dialog-title> + Flow Version Diff - {{ flowName }} +</h2> +<div class="flow-diff"> + <mat-dialog-content> + <div class="dialog-content flex flex-col gap-y-4"> + <div + class="flow-diff-message" + data-qa="flow-diff-message" + *ngIf="comparisonSummary.length > 0"> + <div class="flow-diff-message-title">Comparing versions:</div> + <ul class="flow-diff-message-list"> + <li *ngFor="let summary of comparisonSummary"> + <span class="flow-diff-version">Version {{ summary.version }}</span> + <span *ngIf="summary.created" class="flow-diff-created"> + ({{ summary.created }}) + </span> + </li> + </ul> + </div> + + <div class="flow-diff-controls flex flex-wrap gap-4"> + <mat-form-field class="flow-diff-select" appearance="outline"> + <mat-label>Current Version</mat-label> + <mat-select [formControl]="currentVersionControl" data-qa="current-version-select"> + <mat-option *ngFor="let version of versionOptions" [value]="version"> + {{ formatVersionOption(version) }} + </mat-option> + </mat-select> + </mat-form-field> + + <mat-form-field class="flow-diff-select" appearance="outline"> + <mat-label>Selected Version</mat-label> + <mat-select [formControl]="selectedVersionControl" data-qa="selected-version-select"> + <mat-option *ngFor="let version of versionOptions" [value]="version"> + {{ formatVersionOption(version) }} + </mat-option> + </mat-select> + </mat-form-field> + + <mat-form-field class="flow-diff-filter" appearance="outline"> + <mat-label>Filter</mat-label> + <input + matInput + type="text" + [formControl]="filterControl" + placeholder="Filter differences" + data-qa="flow-diff-filter" /> + </mat-form-field> + </div> + + <div class="flow-diff-table flex-1"> + <div class="flow-diff-loading" *ngIf="isLoading"> + <mat-progress-spinner diameter="36" mode="indeterminate"></mat-progress-spinner> + </div> Review Comment: The listings in nifi do not show mat-progress-spinner or any other loading UX. ```suggestion ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
