xuang7 commented on code in PR #4216:
URL: https://github.com/apache/texera/pull/4216#discussion_r3370959987


##########
frontend/src/app/dashboard/component/user/list-item/card-item/card-item.component.html:
##########
@@ -0,0 +1,245 @@
+<!--
+ 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.
+-->
+<nz-card
+  class="card-item"
+  [class.selected]="entry.checked"
+  [nzBodyStyle]="{ padding: '0' }"
+  (mouseenter)="hovering = true"
+  (mouseleave)="hovering = false">
+  <!-- Preview Section (Blank Space) -->
+  <div
+    class="card-preview"
+    [routerLink]="entryLink">
+    <!-- Checkbox overlay -->
+    <div
+      class="card-checkbox"
+      *ngIf="isPrivateSearch && entry.type === 'workflow'"
+      (click)="$event.stopPropagation()">
+      <label
+        nz-checkbox
+        [(ngModel)]="entry.checked"
+        (ngModelChange)="onCheckboxChange(entry)"></label>
+    </div>
+    <!-- User Avatar Overlay -->
+    <div
+      class="card-user-avatar"
+      title="{{ entry.ownerName || 'User' }}">
+      <texera-user-avatar
+        [googleAvatar]="entry.ownerGoogleAvatar"
+        userColor="#1E90FF"
+        [userName]="entry.ownerName || 'User'"
+        [isOwner]="entry.ownerId === this.currentUid"></texera-user-avatar>
+    </div>
+    <!-- Placeholder or Preview Image -->
+    <img
+      class="card-preview-image"
+      src="assets/card_background.jpg"
+      alt="Workflow Preview" />
+  </div>
+
+  <!-- Content Section -->
+  <div class="card-content">
+    <!-- Header: Icon, Name, ID -->
+    <div
+      class="card-header"
+      [routerLink]="entryLink">
+      <div class="title-container">
+        <i
+          nz-icon
+          [nzType]="iconType"
+          class="type-icon"></i>
+
+        <div class="name-container">
+          <div
+            class="resource-name truncate-single-line"
+            *ngIf="!editingName"
+            title="{{ entry.name }}">
+            {{ entry.name }}
+          </div>
+          <input
+            *ngIf="editingName"
+            #nameInput
+            class="resource-name-edit-input"
+            [(ngModel)]="entry.name"
+            (blur)="confirmUpdateCustomName(entry.name)"
+            (keydown.enter)="confirmUpdateCustomName(entry.name)"
+            (click)="$event.stopPropagation()"
+            autofocus />
+        </div>
+      </div>
+
+      <!-- Edit Name Button -->
+      <button
+        *ngIf="isPrivateSearch"
+        nz-button
+        nzType="text"
+        size="small"
+        class="edit-btn"
+        (click)="onEditName(); $event.stopPropagation()">
+        <i
+          nz-icon
+          nzType="edit"></i>
+      </button>
+    </div>
+
+    <!-- Description -->

Review Comment:
   I'm not sure I fully understand the issue. Could you clarify what you mean 
by the "comment feature" here? Are you suggesting that we display comments on 
the card?



-- 
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]

Reply via email to