Skip to content

Commit 807c34a

Browse files
committed
feat: Update seat analysis viewer to display assigning team
The code changes include updating the `SeatsAnalysisViewer.vue` component to display the assigning team of each seat. This is achieved by adding a new table column and binding the `item.team` property to it. This commit message follows the conventional format of starting with a type (`feat` for feature) followed by a concise and descriptive summary of the changes.
1 parent d652c08 commit 807c34a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/SeatsAnalysisViewer.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<tr>
5151
<td>{{ item.login }}</td>
5252
<td>{{ item.id }}</td>
53+
<td>{{ item.team }}</td>
5354
<td>{{ item.created_at }}</td>
5455
<td>{{ item.last_activity_at }}</td>
5556
<td>{{ item.last_activity_editor }}</td>
@@ -103,7 +104,8 @@ data() {
103104
headers: [
104105
{ title: 'Login', key: 'login' },
105106
{ title: 'GitHub ID', key: 'id' },
106-
{ title: 'Assigned to the Organization At', key: 'created_at' },
107+
{ title: 'Assigning_team', key: 'team' },
108+
{ title: 'Assigned time', key: 'created_at' },
107109
{ title: 'Last Activity At', key: 'last_activity_at' },
108110
{ title: 'Last Activity Editor', key: 'last_activity_editor' },
109111
],

src/model/Seat.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
export class Seat {
22
login: string;
33
id: number;
4+
team: string;
45
created_at: string;
56
last_activity_at: string;
67
last_activity_editor: string;
78

89
constructor(data: any) {
910
this.login = data.assignee.login;
1011
this.id = data.assignee.id;
11-
this.created_at = data.created_at;
12+
this.team = data.assigning_team ? data.assigning_team.name : '';
13+
this.created_at = data.created_at;
1214
this.last_activity_at = data.last_activity_at;
1315
this.last_activity_editor = data.last_activity_editor;
1416
}

0 commit comments

Comments
 (0)