-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
822 additions
and
276 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import './TicketEstimate.scss'; | ||
|
||
function TicketEstimate({ est, rem, logged, variance }) { | ||
const estTitle = `Original Estimate: ${est || 0}\nRemaining: ${rem || 0}\nTotal Logged: ${logged}\nEstimate Variance: ${variance}`; | ||
|
||
return ( | ||
<div className="ticket-estimate" title={estTitle}> | ||
<span className="ticket-item est"> | ||
<span className="fas fa-clock" /> Est: {est} | ||
</span> | ||
<span className="ticket-item rem"> | ||
<span className="fas fa-clipboard" /> Rem: {rem} | ||
</span> | ||
<span className="ticket-item log"> | ||
<span className="fas fa-hourglass-half" /> Log: {logged} | ||
</span> | ||
<span className="ticket-item var"> | ||
<span className="fas fa-exclamation-triangle" /> Var: {variance} | ||
</span> | ||
</div> | ||
); | ||
} | ||
|
||
export default TicketEstimate; |
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,50 @@ | ||
div.ticket-estimate { | ||
display: flex; | ||
align-items: center; | ||
max-width: 500px; | ||
height: 22px; | ||
overflow: hidden; | ||
|
||
.ticket-item { | ||
display: flex; | ||
align-items: center; | ||
clip-path: polygon(10% 0%, 90% 0%, 77% 50%, 90% 100%, 10% 100%, 0% 50%); | ||
padding: 0 25px 2px 8px; | ||
margin: 0; | ||
font-size: 12px; | ||
color: #fff; | ||
white-space: nowrap; | ||
height: 21px; | ||
transition: transform 0.2s; | ||
cursor: pointer; | ||
|
||
.fas { | ||
margin-right: 4px; | ||
font-size: 10px; | ||
} | ||
|
||
&:hover { | ||
transform: scale(1.08); | ||
} | ||
|
||
&.est { | ||
background: linear-gradient(135deg, #d1e7dd, #98e2d6); | ||
color: #0f5132; | ||
} | ||
|
||
&.rem { | ||
background: linear-gradient(135deg, #cff4fc, #89dffd); | ||
color: #055160; | ||
} | ||
|
||
&.log { | ||
background: linear-gradient(135deg, #fff3cd, #ffe066); | ||
color: #664d03; | ||
} | ||
|
||
&.var { | ||
background: linear-gradient(135deg, #f8d7da, #f8d7da); | ||
color: #842029; | ||
} | ||
} | ||
} |
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
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
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.