Skip to content

Commit 1a1b695

Browse files
committed
fix: qa feedbacks in view scorecard page
1 parent 7bef943 commit 1a1b695

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

src/apps/review/src/pages/scorecards/ViewScorecardPage/ScorecardDetails/ScorecardDetails.module.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '@libs/ui/styles/includes';
2+
13
.container {
24
display: flex;
35
flex-direction: row;
@@ -50,4 +52,10 @@
5052
flex-direction: column;
5153
}
5254
}
55+
}
56+
57+
@media (max-width: #{$lg-max}) {
58+
.container {
59+
flex-direction: column;
60+
}
5361
}

src/apps/review/src/pages/scorecards/ViewScorecardPage/ScorecardGroups/ScorecardGroups.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
.group {
3838
.heading {
3939
.groupInfo {
40-
flex-direction: column;
40+
flex-direction: row;
4141
.name {
42-
margin-bottom: 8px;
42+
margin-bottom: 0px;
4343
}
4444
}
4545
}

src/apps/review/src/pages/scorecards/ViewScorecardPage/ScorecardSections/ScorecardSections.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@
8080
.section {
8181
.heading {
8282
.sectionInfo {
83-
flex-direction: column;
83+
flex-direction: row;
8484
.name {
85-
margin-bottom: 4px;
85+
margin-bottom: 0px;
8686
}
8787
}
8888
}

src/apps/review/src/pages/scorecards/ViewScorecardPage/ViewScorecardPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ const ViewScorecardPage: FC = () => {
2020
const { profile }: ProfileContextData = useContext(profileContext)
2121
const isAdmin = profile?.roles.includes(UserRole.administrator)
2222
const breadCrumb = useMemo(
23-
() => [{ index: 1, label: 'Scorecards', path: '/review/scorecard' }, { index: 2, label: 'Scorecards Details' }],
23+
() => [{ index: 1, label: 'Scorecards', path: '/scorecard' }, { index: 2, label: 'Scorecards Details' }],
2424
[],
2525
)
2626

2727
const scorecardQuery = useFetchScorecard(scorecardId)
2828

2929
return (
3030
<PageWrapper
31-
pageTitle='Software General Review Scorecard'
31+
pageTitle={(scorecardQuery.scorecard && scorecardQuery.scorecard.name) || ''}
3232
breadCrumb={breadCrumb}
3333
rightHeader={isAdmin && (
3434
<LinkButton

src/apps/review/src/review-app.routes.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ export const reviewRoutes: ReadonlyArray<PlatformRoute> = [
101101
route: activeReviewAssigmentsRouteId,
102102
},
103103
{
104-
authRequired: true,
105104
children: [
106105
{
107106
authRequired: true,
@@ -110,21 +109,23 @@ export const reviewRoutes: ReadonlyArray<PlatformRoute> = [
110109
route: '',
111110
},
112111
{
113-
authRequired: false,
114-
element: <ViewScorecardPage />,
115-
id: 'view-scorecard-page',
116-
route: ':scorecardId',
117-
},
118-
{
112+
authRequired: true,
119113
element: <EditScorecardPage />,
120114
id: 'edit-scorecard-page',
121115
route: ':scorecardId/edit',
122116
},
123117
{
118+
authRequired: true,
124119
element: <EditScorecardPage />,
125120
id: 'new-scorecard-page',
126121
route: 'new',
127122
},
123+
{
124+
authRequired: false,
125+
element: <ViewScorecardPage />,
126+
id: 'view-scorecard-page',
127+
route: ':scorecardId',
128+
},
128129

129130
],
130131
element: <ScorecardsContainer />,

src/libs/core/lib/router/router-context/router.context-provider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const RouterProvider: FC<RouterProviderProps> = (props: RouterProviderPro
9999
}
100100

101101
function getRouteElement(route: PlatformRoute): JSX.Element {
102+
console.log(route, 'asd.lkasdl')
102103
// create the route element
103104
const routeElement: JSX.Element = !route.authRequired
104105
? route.element

0 commit comments

Comments
 (0)