Skip to content

Commit 2b3f49d

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

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/app/features/projects/components/project-list/project-list.component.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ <h2>All Projects</h2>
118118
<p-columnFilter type="date" field="lastModifiedAt" display="menu"></p-columnFilter>
119119
</div>
120120
</th>
121+
<th style="min-width: 12rem;">
122+
<div class="column-head">
123+
Last Updated By
124+
<p-columnFilter type="text" field="lastModifiedByUserName" display="menu"></p-columnFilter>
125+
</div>
126+
</th>
121127
<th style="min-width: 8rem;">
122128
<div class="column-head">
123129
Tasks
@@ -150,6 +156,12 @@ <h2>All Projects</h2>
150156

151157
<td>{{ project.createdAt | date: 'MMM d, y' }}</td>
152158
<td>{{ project.lastModifiedAt | date: 'MMM d, y' }}</td>
159+
<td>
160+
<div class="owner-cell">
161+
<p-avatar [label]="(project.lastModifiedByUserName || 'U').charAt(0)" shape="circle"></p-avatar>
162+
<span>{{ project.lastModifiedByUserName || 'Unknown' }}</span>
163+
</div>
164+
</td>
153165

154166
<td>
155167
<p-chip [label]="getProjectTaskCount(project).toString()"></p-chip>
@@ -175,7 +187,7 @@ <h2>All Projects</h2>
175187

176188
<ng-template pTemplate="emptymessage">
177189
<tr>
178-
<td colspan="7" class="empty-cell">
190+
<td colspan="8" class="empty-cell">
179191
<div class="empty-state">
180192
<i class="pi pi-folder-open"></i>
181193
<p>No projects found for your current scope.</p>

0 commit comments

Comments
 (0)