-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Task review app - added modal components, updated /stats endpoint
- Loading branch information
Showing
28 changed files
with
1,101 additions
and
195 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
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
87 changes: 0 additions & 87 deletions
87
mephisto/client/review_app/client/src/pages/QualificationsPage/QualificationsPage.tsx
This file was deleted.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
mephisto/client/review_app/client/src/pages/TaskPage/Header/Header.css
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 @@ | ||
/* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
.task-header { | ||
max-width: 100%; | ||
margin: 0; | ||
background-color: rgba(236, 218, 223, 0.3); | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
} | ||
|
||
.task-header .logo { | ||
display: flex; | ||
align-items: center; | ||
padding-bottom: 10px; | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
} | ||
|
||
.task-header .logo img { | ||
max-width: 100%; | ||
} | ||
|
||
.task-header .table tr { | ||
border: transparent; | ||
} | ||
|
||
.task-header .table tr.total td { | ||
color: #a6a6a6; | ||
} | ||
|
||
.task-header .table th, .task-header .table td { | ||
background: transparent; | ||
line-height: 0.8; | ||
} | ||
|
||
.task-header .table .title b { | ||
display: inline-block; | ||
line-height: 2; | ||
border-bottom: 1px solid grey; | ||
} |
53 changes: 53 additions & 0 deletions
53
mephisto/client/review_app/client/src/pages/TaskPage/Header/Header.tsx
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,53 @@ | ||
/* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import * as React from 'react'; | ||
import { Col, Container, Row, Table } from 'react-bootstrap'; | ||
import logo from 'static/images/logo.svg'; | ||
import './Header.css'; | ||
|
||
|
||
function Header() { | ||
return <Container className={'task-header'}> | ||
<Row> | ||
<Col className={"logo"} sm={3}> | ||
<img src={logo} alt="logo" /> | ||
</Col> | ||
<Col> | ||
<Table className={'table'} responsive={"sm"} bordered={false}> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th className={"title text-secondary"}><b>Reviewed</b></th> | ||
<th className={"title text-success"}><b>Approved</b></th> | ||
<th className={"title text-warning"}><b>Soft-Rejected</b></th> | ||
<th className={"title text-danger"}><b>Rejected</b></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>worker</td> | ||
<td><b>15</b>/25</td> | ||
<td><b>16</b> (80%)</td> | ||
<td><b>1</b> (5%)</td> | ||
<td><b>3</b> (15%)</td> | ||
</tr> | ||
<tr className={"total"}> | ||
<td>Total</td> | ||
<td><b>64</b>/256</td> | ||
<td><b>186</b> (78%)</td> | ||
<td><b>23</b> (7%)</td> | ||
<td><b>56</b> (17%)</td> | ||
</tr> | ||
</tbody> | ||
</Table> | ||
</Col> | ||
</Row> | ||
</Container>; | ||
} | ||
|
||
|
||
export default Header; |
19 changes: 19 additions & 0 deletions
19
mephisto/client/review_app/client/src/pages/TaskPage/ModalForm/ModalForm.css
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,19 @@ | ||
/* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
.review-form >* input, | ||
.review-form >* select, | ||
.review-form >* textarea { | ||
border: 1px solid black; | ||
} | ||
|
||
.review-form .second-line { | ||
margin-top: 10px; | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
padding-left: 25px; | ||
} |
Oops, something went wrong.