Skip to content

Commit

Permalink
Merge pull request #5659 from flexion/10434-test
Browse files Browse the repository at this point in the history
10434: Handle Feedback
  • Loading branch information
cruzjone-flexion authored Dec 18, 2024
2 parents c896284 + e358c24 commit 044ae65
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('getTrialSessionPlanningReportDataInteractor', () => {
},
sessionType: 'Hybrid',
startDate: '2099-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2023',
trialLocation: 'Denver, Colorado',
} as RawTrialSession,
Expand All @@ -30,7 +30,7 @@ describe('getTrialSessionPlanningReportDataInteractor', () => {
},
sessionType: SESSION_TYPES.hybridSmall,
startDate: '2098-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2023',
trialLocation: 'Denver, Colorado',
} as RawTrialSession,
Expand All @@ -42,7 +42,7 @@ describe('getTrialSessionPlanningReportDataInteractor', () => {
},
sessionType: 'Hybrid',
startDate: '2099-03-01T00:00:00.000Z',
term: 'spring',
term: 'Spring',
termYear: '2023',
trialLocation: 'Denver, Colorado',
} as RawTrialSession,
Expand All @@ -62,62 +62,62 @@ describe('getTrialSessionPlanningReportDataInteractor', () => {
isCalendared: true,
sessionType: 'Special',
startDate: '2024-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2024',
trialLocation: 'Denver, Colorado',
} as RawTrialSession,
{
isCalendared: true,
sessionType: 'Hybrid',
startDate: '2024-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2024',
trialLocation: 'Denver, Colorado',
} as RawTrialSession,
{
isCalendared: false,
sessionType: 'Special',
startDate: '2024-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2024',
trialLocation: 'Denver, Colorado',
} as RawTrialSession,
{
isCalendared: true,
sessionType: 'Special',
startDate: '1998-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2024',
trialLocation: 'Fresno, California',
} as RawTrialSession,
{
isCalendared: true,
sessionType: 'Special',
startDate: '1999-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2024',
trialLocation: 'Fresno, California',
} as RawTrialSession,
{
isCalendared: true,
sessionType: 'Special',
startDate: '1997-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2024',
} as RawTrialSession,
{
isCalendared: true,
sessionType: 'Special',
startDate: '2024-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2024',
trialLocation: 'Denver, Colorado',
} as RawTrialSession,
{
isCalendared: true,
sessionType: 'Hybrid',
startDate: '2019-03-01T00:00:00.000Z',
term: 'winter',
term: 'Winter',
termYear: '2024',
trialLocation: 'Denver, Colorado',
} as RawTrialSession,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import {
import {
ROLE_PERMISSIONS,
isAuthorized,
} from '../../../../../shared/src/authorization/authorizationClientService';
} from '@shared/authorization/authorizationClientService';
import { RawTrialSession } from '@shared/business/entities/trialSessions/TrialSession';
import {
SESSION_TYPES,
TRIAL_CITIES,
US_STATES,
} from '../../../../../shared/src/business/entities/EntityConstants';
} from '@shared/business/entities/EntityConstants';
import { ServerApplicationContext } from '@web-api/applicationContext';
import { UnauthorizedError } from '@web-api/errors/errors';
import { UnknownAuthUser } from '@shared/business/entities/authUser/AuthUser';
Expand Down Expand Up @@ -82,7 +82,7 @@ const getTrialSessionPlanningReportData = async ({
session =>
session.sessionType === 'Special' &&
Number(session.termYear) === year &&
session.term === term,
session.term.toLocaleLowerCase() === term.toLocaleLowerCase(),
);

const specialTrialSessionsCounts = specialTrialSessions.reduce(
Expand Down
11 changes: 10 additions & 1 deletion web-client/src/styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,10 @@ header.usa-header {
}
}

@mixin h1-underline-border {
border-bottom: 3px solid color($theme-color-primary);
}

.title {
border-bottom: 1px solid color($theme-color-base-lighter);
margin-bottom: 20px;
Expand All @@ -1130,16 +1134,21 @@ header.usa-header {
}

h1 {
@include h1-underline-border;

position: relative;
top: 2px;
display: inline-block;
padding-bottom: 10px;
border-bottom: 3px solid color($theme-color-primary);
margin-top: -2px;
margin-bottom: 0;
}
}

.h1-underline-border {
@include h1-underline-border;
}

hr.lighter {
border-top: 1px solid color($theme-color-base-lighter);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@ function TrialSessionPlanningReportHeader({
year,
}: TrialSessionPlanningReportHeaderParams) {
return (
<div className="grid-container display-flex height-6 ">
<div className="title">
<h1>{trialSessionPlanningReportHeader}</h1>
</div>
<div className="flex-fill text-right height-6 border-bottom-1px border-gray-10">
<div className="grid-container display-flex">
<h1 className="padding-bottom-2 margin-bottom-0 h1-underline-border">
{trialSessionPlanningReportHeader}
</h1>
<div className="flex-fill text-right border-bottom-1px border-gray-10">
<Button
link
className="margin-bottom-3"
icon="print"
onClick={() => {
printSequence({
Expand Down

0 comments on commit 044ae65

Please sign in to comment.