-
-
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.
Created version 1 of the value-modeling page which is used to create …
…realistic targets for the different metrics being tracked.
- Loading branch information
Showing
8 changed files
with
709 additions
and
151 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions
46
frontend/src/app/main/copilot/value-modeling/grid-object.model.ts
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,46 @@ | ||
export interface MetricState { | ||
seats: number; | ||
adoptedDevs: number; | ||
monthlyDevsReportingTimeSavings: number; | ||
percentSeatsReportingTimeSavings: number; | ||
percentSeatsAdopted: number; | ||
percentMaxAdopted: number; | ||
dailySuggestions: number; | ||
dailyChatTurns: number; | ||
weeklyPRSummaries: number; | ||
weeklyTimeSaved: number; | ||
monthlyTimeSavings: number; | ||
annualTimeSavingsDollars: number; | ||
productivityBoost: number; | ||
[key: string]: number; // Index signature | ||
} | ||
|
||
export interface GridObject { | ||
current: MetricState; | ||
target: MetricState; | ||
max: MetricState; | ||
} | ||
|
||
export function initializeGridObject(): GridObject { | ||
const defaultMetricState: MetricState = { | ||
seats: 0, | ||
adoptedDevs: 0, | ||
monthlyDevsReportingTimeSavings: 0, | ||
percentSeatsReportingTimeSavings: 0, | ||
percentSeatsAdopted: 0, | ||
percentMaxAdopted: 0, | ||
dailySuggestions: 0, | ||
dailyChatTurns: 0, | ||
weeklyPRSummaries: 0, | ||
weeklyTimeSaved: 0, | ||
monthlyTimeSavings: 0, | ||
annualTimeSavingsDollars: 0, | ||
productivityBoost: 0 | ||
}; | ||
|
||
return { | ||
current: { ...defaultMetricState }, | ||
target: { ...defaultMetricState }, | ||
max: { ...defaultMetricState } | ||
}; | ||
} |
403 changes: 321 additions & 82 deletions
403
frontend/src/app/main/copilot/value-modeling/value-modeling.component.html
Large diffs are not rendered by default.
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
Oops, something went wrong.