-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Value Modeling component, update & routing change
- Loading branch information
Showing
7 changed files
with
444 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
frontend/src/app/main/copilot/value-modeling/value-modeling.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<div class="page-container"> | ||
<div class="page-header"> | ||
<h1>Value Modeling and Targeting</h1> | ||
</div> | ||
|
||
<!-- Charts Section --> | ||
<div class="charts-grid"> | ||
<mat-card *ngFor="let options of chartOptions"> | ||
<mat-card-content> | ||
<div class="chart-container"> | ||
<highcharts-chart | ||
[Highcharts]="Highcharts" | ||
[options]="options" | ||
style="width: 100%; height: 100%; display: block;"> | ||
</highcharts-chart> | ||
</div> | ||
</mat-card-content> | ||
</mat-card> | ||
</div> | ||
|
||
<!-- Metrics Grid --> | ||
<form [formGroup]="form" class="metrics-grid"> | ||
<!-- Headers --> | ||
<div class="grid-header metrics-label"></div> | ||
<div class="grid-header">Current Level</div> | ||
<div class="grid-header">Target Level</div> | ||
<div class="grid-header">Max Level</div> | ||
|
||
<!-- Adoption --> | ||
<div class="metrics-label">Adopted Users</div> | ||
<mat-form-field *ngFor="let level of ['current', 'target', 'max']" [formGroupName]="level"> | ||
<input matInput | ||
type="text" | ||
formControlName="adoption" | ||
(input)="onInputChange($event, 'adoption', level)" | ||
[readonly]="level === 'max'" | ||
class="example-right-align"> | ||
<span matTextSuffix>%</span> | ||
</mat-form-field> | ||
|
||
<!-- Usage & Time Savings --> | ||
<div class="metrics-label">Activity Per Daily User</div> | ||
<div *ngFor="let level of ['current', 'target', 'max']" [formGroupName]="level" class="usage-inputs"> | ||
<mat-form-field> | ||
<mat-label>Activity</mat-label> | ||
<input matInput | ||
type="text" | ||
formControlName="activityLevel" | ||
(input)="onInputChange($event, 'activityLevel', level)" | ||
[readonly]="level === 'max'" | ||
class="example-right-align"> | ||
<span matTextSuffix>%</span> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Time Savings</mat-label> | ||
<input matInput | ||
type="text" | ||
formControlName="timeSavings" | ||
(input)="onInputChange($event, 'timeSavings', level)" | ||
[readonly]="level === 'max'" | ||
class="example-right-align"> | ||
<span matTextSuffix>%</span> | ||
</mat-form-field> | ||
</div> | ||
|
||
<!-- Time Saved As Dollars --> | ||
<div class="metrics-label">Total Time Saved</div> | ||
<mat-form-field *ngFor="let level of ['current', 'target', 'max']" [formGroupName]="level"> | ||
<input matInput | ||
type="text" | ||
formControlName="timeSavedDollars" | ||
(input)="onInputChange($event, 'timeSavedDollars', level)" | ||
[readonly]="level === 'max'" | ||
class="example-right-align"> | ||
<span matTextPrefix>$ </span> | ||
</mat-form-field> | ||
|
||
<!-- Downstream Productivity --> | ||
<div class="metrics-label">Time Saved as Dollars</div> | ||
<mat-form-field *ngFor="let level of ['current', 'target', 'max']" [formGroupName]="level"> | ||
<input matInput | ||
type="text" | ||
formControlName="downstreamProductivity" | ||
(input)="onInputChange($event, 'downstreamProductivity', level)" | ||
[readonly]="level === 'max'" | ||
class="example-right-align"> | ||
<span matTextSuffix>%</span> | ||
</mat-form-field> | ||
</form> | ||
</div> |
78 changes: 78 additions & 0 deletions
78
frontend/src/app/main/copilot/value-modeling/value-modeling.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
.page-container { | ||
padding: 24px; | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
} | ||
|
||
.page-header { | ||
margin-bottom: 24px; | ||
h1 { | ||
margin: 0; | ||
font-size: 24px; | ||
font-weight: 500; | ||
} | ||
} | ||
|
||
.charts-grid { | ||
display: grid; | ||
grid-template-columns: repeat(2, 1fr); | ||
gap: 24px; | ||
margin-bottom: 24px; | ||
|
||
mat-card { | ||
height: 300px; | ||
|
||
.chart-container { | ||
height: 250px; | ||
} | ||
} | ||
} | ||
|
||
.metrics-grid { | ||
display: grid; | ||
grid-template-columns: 200px repeat(3, 1fr); | ||
gap: 16px; | ||
align-items: center; | ||
|
||
.grid-header { | ||
font-weight: 500; | ||
padding: 8px; | ||
text-align: center; | ||
} | ||
|
||
.metrics-label { | ||
font-weight: 500; | ||
} | ||
|
||
mat-form-field { | ||
width: 100%; | ||
} | ||
|
||
.usage-inputs { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
gap: 8px; | ||
} | ||
} | ||
|
||
.example-right-align { | ||
text-align: right; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.charts-grid { | ||
grid-template-columns: 1fr; | ||
} | ||
|
||
.metrics-grid { | ||
grid-template-columns: 1fr; | ||
|
||
.grid-header { | ||
display: none; | ||
} | ||
|
||
.usage-inputs { | ||
grid-template-columns: 1fr; | ||
} | ||
} | ||
} |
Oops, something went wrong.