Skip to content

Commit be2e048

Browse files
committed
Updated info of progress, added todos and chip flips
1 parent 04899a7 commit be2e048

6 files changed

Lines changed: 25 additions & 8 deletions

File tree

src/app/component/circular-heatmap/circular-heatmap.component.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,14 @@ export class CircularHeatmapComponent implements OnInit {
367367
let teamGroup = chip.value.trim();
368368
if (!chip.selected) {
369369
chip.toggleSelected();
370+
console.log(`${this.perfNow()}: Heat: Chip flip Group '${teamGroup}: ${chip.selected}`);
370371

371372
Object.keys(this.filtersTeams).forEach(key => {
372373
this.filtersTeams[key] = this.dataStore?.meta?.teamGroups[teamGroup]?.includes(key) || false;
373374
});
374375
this.hasTeamsFilter = Object.values(this.filtersTeams).some(v => v === true);
376+
} else {
377+
console.log(`${this.perfNow()}: Heat: Chip flip Group '${teamGroup}: already on`);
375378
}
376379
}
377380

@@ -383,6 +386,7 @@ export class CircularHeatmapComponent implements OnInit {
383386
toggleTeamFilter(chip: MatChip) {
384387
chip.toggleSelected();
385388
this.filtersTeams[chip.value.trim()] = chip.selected;
389+
console.log(`${this.perfNow()}: Heat: Chip flip Team '${chip.value}: ${chip.selected}`);
386390

387391
this.hasTeamsFilter = Object.values(this.filtersTeams).some(v => v === true);
388392

@@ -839,14 +843,15 @@ export class CircularHeatmapComponent implements OnInit {
839843
}
840844
}
841845
onPanelOpened(activity: any) {
842-
console.log('Panel opened', activity);
846+
console.log(`${this.perfNow()}: Heat: Card Panel opened: '${activity.name}'`);
843847
}
844848
onPanelClosed(activity: any) {
845-
console.log('Panel closed', activity);
849+
console.log(`${this.perfNow()}: Heat: Card Panel closed: '${activity.name}'`);
846850
}
847851

848852
openActivityDetails(dimension: string, activityName: string) {
849853
// Find the activity in the selected sector
854+
console.log(`${this.perfNow()}: Heat: Open Overlay: '${activityName}'`);
850855
if (!this.showActivityCard || !this.showActivityCard.activities) {
851856
this.old_activityDetails = null;
852857
this.showOverlay = true;
@@ -878,6 +883,7 @@ export class CircularHeatmapComponent implements OnInit {
878883

879884
closeOverlay() {
880885
this.showOverlay = false;
886+
console.log(`${this.perfNow()}: Heat: Close Overlay: '${this.old_activityDetails.name}'`);
881887
}
882888

883889
toggleFilters() {

src/app/component/mapping/mapping.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@
150150
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
151151
</table>
152152

153+
<div style="padding-left: 20px; font-style: italic;">Not yet refactored. See the <a href="/roadmap">Roadmap</a></div>
154+
153155
<table id="excel-table" class="hide">
154156
<tr>
155157
<th>Dimension</th>

src/app/component/matrix/matrix.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { MatChip, MatChipList } from '@angular/material/chips';
1010
import { deepCopy } from 'src/app/util/util';
1111
import { ModalMessageComponent, DialogInfo } from '../modal-message/modal-message.component';
1212
import { DataStore } from 'src/app/model/data-store';
13+
import { perfNow } from 'src/app/util/util';
1314

1415
export interface MatrixRow {
1516
Category: string;
@@ -153,12 +154,14 @@ export class MatrixComponent implements OnInit {
153154
toggleTagFilters(chip: MatChip) {
154155
chip.toggleSelected();
155156
this.filtersTag[chip.value] = chip.selected;
157+
console.log(`${perfNow()}: Matrix: Chip flip Tag '${chip.value}: ${chip.selected}`);
156158
this.updateActivitiesBeingDisplayed();
157159
}
158160

159161
toggleDimensionFilters(chip: MatChip) {
160162
chip.toggleSelected();
161163
this.filtersDim[chip.value] = chip.selected;
164+
console.log(`${perfNow()}: Matrix: Chip flip Dim '${chip.value}: ${chip.selected}`);
162165
this.updateActivitiesBeingDisplayed();
163166
}
164167

@@ -249,6 +252,7 @@ export class MatrixComponent implements OnInit {
249252
const navigationExtras: NavigationExtras = {
250253
queryParams: { uuid: uuid },
251254
};
255+
console.log(`${perfNow()}: Matrix: Open Details: '${this.dataStore?.activityStore?.getActivityByUuid(uuid).name}'`);
252256
this.router.navigate([this.Routing], navigationExtras);
253257
}
254258
}

src/app/component/teams/teams.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ <h3>{{ group.key }}</h3>
1616
</ul>
1717
</div>
1818
</div>
19+
<div style="padding-left: 20px; font-style: italic;">Not yet refactored. See the <a href="/roadmap">Roadmap</a></div>
1920
</div>

src/assets/Markdown Files/TODO-central-loader.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,22 @@
1313

1414

1515
## Later
16-
### Dependency graph
17-
- Dependency graph: Add to CircularHeatmap Details
18-
- Dependency graph: Make it clickable
1916
### Mapping
2017
- Mapping: Refactor to adhere to new data structure. (Page currently broken)
21-
### Matrix
22-
- Matrix: Remember filters, when moving back from details
2318
### Teams
19+
- Teams: Refactor to adhere to new data structure. (Page currently broken)
2420
- Teams: Allow editing teams names in browser
2521
- Teams: Store teams names in localstorage
2622
- Teams: Export teams YAML from teams page
2723
- Teams: View timeline for a team (?)
24+
### Matrix
25+
- Matrix: Fix markdown rendering
26+
- Matrix: Add a Close/Back button
27+
- Matrix: Brushup layout of details page
28+
- Matrix: Remember filters, when moving back from details
29+
### Dependency graph
30+
- Dependency graph: Add to CircularHeatmap Details
31+
- Dependency graph: Make it clickable
2832
## Documentation
2933
- Doc: Update `Usage`
3034
- Doc: Update `README.md`

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (environment?.experimental && !localDevelopment) {
1616
url: 'https://faro-collector-prod-eu-north-0.grafana.net/collect/a7eda57dbf6b581662f2bf43a70c7508',
1717
app: {
1818
name: 'dsomm',
19-
version: '1.0.0',
19+
version: '1.0.2',
2020
environment: localDevelopment ? 'development' : 'experimental',
2121
},
2222
sessionTracking: {

0 commit comments

Comments
 (0)