Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding engineering hours saved estimate #554

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions internal-ui/src/components/DashboardComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const TRACKING_INTENTS = [
"intent_services_offline",
]

const TIME_TO_LOOK_UP_ORG_ADMIN = .25 // quarter hour

const ONE_WEEK_AGO = new Date();
ONE_WEEK_AGO.setDate(ONE_WEEK_AGO.getDate() - 6);

Expand Down Expand Up @@ -409,6 +411,14 @@ export const DashboardComponent = () => {
/>
</ListItem>
}
{contactAdminUsage > 0 &&
<ListItem icon={<PowerOffIcon />}>{contactAdminUsage * TIME_TO_LOOK_UP_ORG_ADMIN} Engineering Hours Saved
<HelpPopover
title="What does this include?"
content="This considers the time it takes to look up an org admin and contact them."
/>
</ListItem>
}
</List>
</CardBody>
</Card>
Expand Down
Loading
Loading