Skip to content

Commit

Permalink
Add Status component to dashboard and update layout
Browse files Browse the repository at this point in the history
  • Loading branch information
austenstone committed Dec 2, 2024
1 parent 46b8a8c commit 15d4f60
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ <h1>Dashboard</h1>
<app-time-saved-chart [surveys]="surveysData" [activity]="activityData" [chartOptions]="chartOptions"></app-time-saved-chart>
</ng-container>
</mat-card>
<mat-card appearance="outlined" id="card-bars">

<mat-card>
<app-status></app-status>
</mat-card>

<!-- <mat-card appearance="outlined" id="card-bars">
<mat-card-header>
<mat-card-title>Engagement</mat-card-title>
</mat-card-header>
Expand All @@ -64,7 +69,7 @@ <h1>Dashboard</h1>
<ng-container *ngIf="activityTotals; else loading">
<app-active-users-chart [data]="activityTotals" [chartOptions]="chartOptions"></app-active-users-chart>
</ng-container>
</mat-card>
</mat-card> -->
</div>
</div>
<ng-template #loading>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { TimeSavedChartComponent } from '../copilot-value/time-saved-chart/time-
import { LoadingSpinnerComponent } from '../../../shared/loading-spinner/loading-spinner.component';
import { ActiveUsersChartComponent } from './dashboard-card/active-users-chart/active-users-chart.component';
import { InstallationsService } from '../../../services/api/installations.service';
import { StatusComponent } from './status/status.component';

@Component({
selector: 'app-dashboard',
Expand All @@ -28,7 +29,8 @@ import { InstallationsService } from '../../../services/api/installations.servic
DailyActivityChartComponent,
TimeSavedChartComponent,
LoadingSpinnerComponent,
ActiveUsersChartComponent
ActiveUsersChartComponent,
StatusComponent
],
templateUrl: './dashboard.component.html',
styleUrl: './dashboard.component.scss'
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:host {
display: block;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';

@Component({
selector: 'app-status',
standalone: true,
imports: [],
templateUrl: './status.component.html',
styleUrl: './status.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class StatusComponent { }

0 comments on commit 15d4f60

Please sign in to comment.