Skip to content

Commit 45e4163

Browse files
committed
feat(tasks): add last updated by column to all tasks table
1 parent 2b3f49d commit 45e4163

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

src/app/features/task-item/components/task-item-list/task-item-list.component.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ <h2>All Tasks</h2>
126126
<p-columnFilter type="text" field="lastModifiedAt" display="menu"></p-columnFilter>
127127
</div>
128128
</th>
129+
<th style="min-width: 12rem;">
130+
<div class="column-head">
131+
Last Updated By
132+
<p-columnFilter type="text" field="lastModifiedByUserName" display="menu"></p-columnFilter>
133+
</div>
134+
</th>
129135
<th style="min-width: 16rem;">Actions</th>
130136
</tr>
131137
</ng-template>
@@ -163,6 +169,16 @@ <h2>All Tasks</h2>
163169
<span>{{ task.lastModifiedAt | date:'MMM d, y' }}</span>
164170
</td>
165171

172+
<td>
173+
<div class="assignee-cell" *ngIf="task.lastModifiedByUserName as updatedBy; else updatedByUnknownTpl">
174+
<p-avatar [label]="getInitials(updatedBy)" shape="circle"></p-avatar>
175+
<span>{{ updatedBy }}</span>
176+
</div>
177+
<ng-template #updatedByUnknownTpl>
178+
<span class="assignee-cell__empty">Unknown</span>
179+
</ng-template>
180+
</td>
181+
166182
<td>
167183
<div class="task-actions">
168184
<p-dropdown
@@ -214,7 +230,7 @@ <h2>All Tasks</h2>
214230

215231
<ng-template pTemplate="emptymessage">
216232
<tr>
217-
<td colspan="6" class="empty-cell">
233+
<td colspan="7" class="empty-cell">
218234
<div class="empty-state">
219235
<i class="pi pi-inbox"></i>
220236
<p>{{ selectedProjectId ? 'No tasks found for this project.' : 'Select a project to view tasks.' }}</p>

0 commit comments

Comments
 (0)