@@ -81,6 +81,9 @@ export class TeamsComponent implements OnInit, AfterViewInit {
8181 if ( property === 'Activity' ) {
8282 return item . activity ?. name || '' ;
8383 }
84+ if ( property === 'SubDimension' ) {
85+ return item . activity ?. dimension || '' ;
86+ }
8487 // For progress columns, sort by date string or timestamp
8588 if ( this . progressColumnNames . includes ( property ) ) {
8689 // If your progress is a date string, you may want to convert to Date for proper sorting
@@ -104,7 +107,7 @@ export class TeamsComponent implements OnInit, AfterViewInit {
104107 let progressStore : ProgressStore | null = this . dataStore ?. progressStore ;
105108 this . progressColumnNames = progressStore ?. getInProgressTitles ( ) || [ ] ;
106109 this . progressTitleImplemented = progressStore ?. getCompletedProgressTitle ( ) || 'Implemented' ;
107- this . allColumnNames = [ 'Team' , 'Activity' , ... this . progressColumnNames ] ;
110+ this . updateColumnNames ( ) ;
108111 }
109112
110113 displayMessage ( dialogInfo : DialogInfo ) {
@@ -125,6 +128,12 @@ export class TeamsComponent implements OnInit, AfterViewInit {
125128 this . info [ this . infoTitle ] = this . makeTeamSummary ( this . infoTitle , this . infoTeams ) ;
126129 }
127130 this . dataSource . data = this ?. info [ this . infoTitle ] ?. activitiesInProgress || [ ] ;
131+ this . updateColumnNames ( ) ;
132+ }
133+
134+ updateColumnNames ( ) {
135+ const baseColumns = this . infoTeams . length > 1 ? [ 'Team' ] : [ ] ;
136+ this . allColumnNames = [ ...baseColumns , 'SubDimension' , 'Activity' , ...this . progressColumnNames ] ;
128137 }
129138
130139 onTeamsChanged ( event : TeamsGroupsChangedEvent ) {
@@ -143,6 +152,7 @@ export class TeamsComponent implements OnInit, AfterViewInit {
143152 this . dataSource . data = this ?. info [ this . infoTitle ] ?. activitiesInProgress || [ ] ;
144153
145154 this . setYamlData ( this . dataStore ) ;
155+ this . updateColumnNames ( ) ;
146156 }
147157
148158 onExportTeamGroups ( ) {
0 commit comments