Skip to content

Commit 554e150

Browse files
Merge branch 'PROD-1573_work-details-solutions' into PROD-1943_css-refactor
2 parents 9aad360 + 27247ec commit 554e150

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+375
-1217
lines changed

src-ts/lib/tabs-navbar/TabsNavbar.module.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,27 @@
1717
gap: 4px;
1818

1919
padding: $pad-md $pad-lg calc($pad-md - 2px);
20+
color: $black-80;
2021
cursor: pointer;
21-
22+
2223
&:global(.active) {
24+
color: $black-100;
2325
.tab-label {
24-
color: $black-100;
26+
@include font-weight-bold;
27+
}
28+
}
29+
30+
&:hover {
31+
color: $black-100;
32+
background-color: $blue-25;
33+
&:global(.active) ~ .active-icon > svg path:last-child {
34+
fill: $blue-25;
2535
}
2636
}
2737
}
2838

2939
.tab-label {
3040
@extend .medium-tab;
31-
color: $black-80;
3241
}
3342

3443
.tab-badge {

src-ts/lib/work-provider/work-functions/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export {
22
type Work,
33
type WorkProgress,
44
type WorkProgressStep,
5+
type WorkSolution,
56
WorkStatus,
67
WorkType,
78
workFactoryCreate,

src-ts/lib/work-provider/work-functions/work-factory/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './work-progress.model'
22
export * from './work-progress-step.model'
33
export * from './work-status.enum'
4+
export * from './work-solution.model'
45
export * from './work-type.enum'
56
export {
67
create as workFactoryCreate,
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
export interface WorkSolution {
3+
challengeId: number
4+
created: Date
5+
createdBy: string
6+
fileType: string
7+
id: string
8+
isFileSubmission: boolean
9+
legacyChallengeId: number
10+
legacySubmissionId: number
11+
memberId: number
12+
placement: string
13+
submissionPhaseId: string
14+
submittedDate: Date
15+
type: string
16+
updated: Date
17+
updatedBy: string
18+
url: string
19+
v5ChallengeId: string
20+
}

src-ts/tools/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export { default as ToolsRoutes } from './tools.routes'
2-
export { WorkFeedback, WorkDetailHeader, WorkDetailSummary } from './work'
2+
export { WorkFeedback, WorkDetailDetails, WorkDetailHeader, WorkDetailSummary, WorkDetailSolutions } from './work'

src-ts/tools/work/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export * from './work-detail-details'
12
export * from './work-detail-header'
3+
export * from './work-detail-solutions'
24
export * from './work-detail-summary'
35
export * from './work.routes'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@import "../../../lib/styles";
2+
3+
.wrap {
4+
display: flex;
5+
padding-bottom: 32px;
6+
}
7+
8+
.details-content {
9+
flex-grow: 2;
10+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { FC } from 'react'
2+
3+
import { WorkDetailDetailsSidebar } from './work-detail-details-sidebar'
4+
import styles from './WorkDetailDetails.module.scss'
5+
6+
interface WorkDetailDetailsProps {
7+
children: JSX.Element
8+
}
9+
10+
const WorkDetailDetails: FC<WorkDetailDetailsProps> = (props: WorkDetailDetailsProps) => {
11+
12+
return (
13+
<div className={styles['wrap']}>
14+
<div className={styles['details-content']}>
15+
{props.children}
16+
</div>
17+
<WorkDetailDetailsSidebar />
18+
</div>
19+
)
20+
}
21+
22+
export default WorkDetailDetails
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as WorkDetailDetails } from './WorkDetailDetails'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@import '../../../../lib/styles';
2+
3+
.wrap {
4+
min-width: 323px;
5+
padding-left: $pad-xxxxl;
6+
7+
border-left: $border-xs solid $black-10;
8+
margin-left: $pad-xxxxl;
9+
color: $black-100;
10+
}
11+
12+
.link {
13+
display: block;
14+
@include font-roboto;
15+
@include font-weight-bold;
16+
font-size: 14px;
17+
line-height: 14px;
18+
color: $turq-160;
19+
margin-top: $pad-lg;
20+
cursor: pointer;
21+
text-transform: uppercase;
22+
}

0 commit comments

Comments
 (0)