carloea2 commented on code in PR #4268: URL: https://github.com/apache/texera/pull/4268#discussion_r2938436781
########## frontend/src/app/workspace/component/ui-udf-parameters/ui-udf-parameters.component.html: ########## @@ -0,0 +1,55 @@ +<!-- + 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. +--> +<div + class="ui-udf-param-list" + *ngIf="(model?.length ?? 0) > 0"> + <!-- Optional header row --> + <div class="ui-udf-param-row header"> + <div class="field-cell"><span class="col-title">Value</span></div> + <div class="field-cell"><span class="col-title">Name</span></div> + <div class="field-cell"><span class="col-title">Type</span></div> + </div> + + <div + class="ui-udf-param-row" + *ngFor="let param of (model || []); let i = index; trackBy: trackByParamName"> + <ng-container *ngIf="field.fieldGroup?.[i] as rowField"> + <!-- Value --> + <div class="field-cell"> + <ng-container *ngIf="getValueField(rowField) as valueField"> + <formly-field [field]="valueField"></formly-field> + </ng-container> + </div> + + <!-- Name --> + <div class="field-cell"> + <ng-container *ngIf="getNameField(rowField) as nameField"> + <formly-field [field]="nameField"></formly-field> + </ng-container> + </div> + + <!-- Type --> + <div class="field-cell"> + <ng-container *ngIf="getTypeField(rowField) as typeField"> + <formly-field [field]="typeField"></formly-field> + </ng-container> + </div> + </ng-container> + </div> +</div> Review Comment: I think copilot was too high in vibe coding, the Screenshot is "Value", "Name", "Type", and the HTML is also "Value", "Name", "Type". I do not even think copilot actually use any screenshot at all. -- 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]
