Skip to content

Commit c53e9ba

Browse files
feature/dep272: Modified formatToPacific calls so they have same formatting, fixed typos and wording.
1 parent 27e6c04 commit c53e9ba

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGELOG.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- Updated auto breadcrumbs component for increased visual stability (less flickering)
1515
- Updated authoring section for greater visual stability (less flickering)
1616
- Moved header items (badge and breadcrumbs) out of AuthoringTemplate component, which is forced to re-render because it's keyed
17-
- Utilized useDefferedValue in bottom nav component for language list
17+
- Utilized useDeferredValue in bottom nav component for language list
1818
- Removed several async/await components that were causing flickering
1919
- Utilized useParams instead of waiting on engagement values in some cases
2020
- Allowed modifying of engagement config while it's scheduled but not published

api/src/api/services/engagement_slug_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@ def _verify_engagement(engagement_id):
111111
if not engagement:
112112
raise ValueError(f'No engagement found for {engagement_id}')
113113
if engagement.status_id not in valid_statuses:
114-
raise ValueError(f'Engagement {engagement_id} has already been published, cannot update slug')
114+
raise ValueError(f'Engagement {engagement_id} has already been published; cannot update slug.')
115115
return engagement

web/src/components/comments/admin/review/CommentReview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const CommentReview = () => {
243243
<BodyText bold>Comment Date:</BodyText>
244244
</Grid>
245245
<Grid>
246-
<BodyText sx={{ pl: 2 }}>{formatToPacific(created_date)}</BodyText>
246+
<BodyText sx={{ pl: 2 }}>{formatToPacific(created_date, 'YYYY-MM-DD')}</BodyText>
247247
</Grid>
248248
</Grid>
249249

@@ -261,7 +261,7 @@ const CommentReview = () => {
261261
<BodyText bold>Date Reviewed:</BodyText>
262262
</Grid>
263263
<Grid>
264-
<BodyText sx={{ pl: 2 }}>{formatToPacific(review_date)}</BodyText>
264+
<BodyText sx={{ pl: 2 }}>{formatToPacific(review_date, 'YYYY-MM-DD')}</BodyText>
265265
</Grid>
266266
</Grid>
267267
</Grid>

web/src/components/comments/admin/textListing/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ const CommentTextListing = () => {
300300
>
301301
<b>Comment Date: </b>
302302
</BodyText>
303-
<BodyText>{formatToPacific(row.created_date)}</BodyText>
303+
<BodyText>{formatToPacific(row.created_date, 'YYYY-MM-DD')}</BodyText>
304304
</Stack>
305305
</Grid>
306306
<When condition={row.comment_status_id !== CommentStatus.Pending}>

web/src/components/engagement/admin/config/DateTimeRangePickerWithCalculation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export const DateTimeRangePickerWithCalculation = () => {
346346
)}
347347
<Grid sx={{ '&.MuiGrid-root': { paddingTop: 0 } }}>
348348
<Button onClick={() => setIsPickingDate(true)} icon={<FontAwesomeIcon icon={faCalendar} />}>
349-
{`${numberOfDays ? 'Change' : 'Select'} Dates and Times`}
349+
{`${numberOfDays ? 'Change' : 'Select'} Time Range`}
350350
</Button>
351351
</Grid>
352352
</When>

0 commit comments

Comments
 (0)