Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
java corretto-21.0.9.10.1
nodejs 22.15.0
4 changes: 2 additions & 2 deletions cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"devDependencies": {
"@guardian/cdk": "63.6.1",
"@guardian/prettier": "^8.0.1",
"@guardian/prettier": "10.0.0",
"newswires-shared": "*",
"prettier": "^3.6.2",
"prettier": "^3.9.4",
"source-map-support": "0.5.21",
"ts-node": "^10.9.2"
},
Expand Down
4 changes: 2 additions & 2 deletions cleanup-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"lint:ci": "eslint src/** --no-error-on-unmatched-pattern"
},
"dependencies": {
"@aws-sdk/rds-signer": "3.986.0",
"@aws-sdk/rds-signer": "3.1077.0",
"newswires-shared": "*",
"postgres": "3.4.7"
"postgres": "3.4.9"
},
"devDependencies": {}
}
8 changes: 4 additions & 4 deletions ingestion-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"lint:ci": "eslint src/** --no-error-on-unmatched-pattern"
},
"dependencies": {
"@aws-sdk/rds-signer": "3.995.0",
"compromise": "^14.14.4",
"@aws-sdk/rds-signer": "3.1077.0",
"compromise": "^14.15.1",
"mailparser": "3.9.12",
"postgres": "3.4.7",
"postgres": "3.4.9",
"newswires-shared": "*"
},
"devDependencies": {
"@types/mailparser": "3.4.6",
"lorem-ipsum": "2.0.8"
"lorem-ipsum": "3.0.0"
}
}
5 changes: 2 additions & 3 deletions ingestion-lambda/src/handler.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {
SESEvent,
SESEventRecord,
SESReceiptStatus,
SQSBatchResponse,
Expand Down Expand Up @@ -338,7 +337,7 @@ describe('handler.main', () => {

const passingSesEvent = {
Records: [createSesRecord('PASS')],
} as unknown as SESEvent;
};

const result = (await main(passingSesEvent)) as SQSBatchResponse;

Expand All @@ -362,7 +361,7 @@ describe('handler.main', () => {

const failingSesEvent = {
Records: [createSesRecord('GRAY')],
} as unknown as SESEvent;
};

const result = (await main(failingSesEvent)) as SQSBatchResponse;
expect(mockCreateLogger({}).error).toHaveBeenCalledTimes(1);
Expand Down
34 changes: 17 additions & 17 deletions newswires/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,36 @@
"prettier": "@guardian/prettier",
"dependencies": {
"@elastic/datemath": "5.0.3",
"@elastic/eui": "116.1.0",
"@elastic/eui": "116.5.0",
"@emotion/css": "11.13.5",
"@emotion/react": "11.14.0",
"@guardian/user-telemetry-client": "1.2.0",
"@guardian/user-telemetry-client": "1.2.3",
"lodash": "4.18.1",
"moment": "2.30.1",
"moment-timezone": "0.6.0",
"moment-timezone": "0.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sanitize-html": "^2.17.4",
"zod": "4.0.5"
"sanitize-html": "^2.17.5",
"zod": "4.4.3"
},
"devDependencies": {
"@guardian/prettier": "8.0.1",
"@storybook/react-vite": "10.4.1",
"@guardian/prettier": "10.0.0",
"@storybook/react-vite": "10.5.2",
"@testing-library/react": "16.3.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/sanitize-html": "2.16.0",
"@vitejs/plugin-react": "4.7.0",
"eslint-import-resolver-typescript": "4.4.4",
"@types/sanitize-html": "2.16.1",
"@vitejs/plugin-react": "6.0.2",
"eslint-import-resolver-typescript": "4.4.5",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
"eslint-plugin-storybook": "10.4.1",
"globals": "^16.3.0",
"eslint-plugin-react-refresh": "^0.5.3",
"eslint-plugin-storybook": "10.5.2",
"globals": "^17.6.0",
"jsdom": "^29.1.1",
"prettier": "^3.6.2",
"storybook": "10.4.1",
"timezone-mock": "^1.3.6",
"vite-plugin-checker": "^0.10.0"
"prettier": "^3.9.4",
"storybook": "10.5.2",
"timezone-mock": "^1.4.3",
"vite-plugin-checker": "^0.14.4"
}
}
4 changes: 2 additions & 2 deletions newswires/client/src/SideNav/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ function SearchHistoryBadge({
resultsCount: number;
}) {
const dateRangeLabel = usePrettyDuration({
timeFrom: (query.start ?? DEFAULT_DATE_RANGE.start) as string,
timeTo: (query.end ?? DEFAULT_DATE_RANGE.end) as string,
timeFrom: query.start ?? DEFAULT_DATE_RANGE.start,
timeTo: query.end ?? DEFAULT_DATE_RANGE.end,
dateFormat: 'MMM D • HH:mm',
});

Expand Down
6 changes: 3 additions & 3 deletions newswires/client/src/SideNav/SideNavListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ export const SideNavListItem = ({
margin-bottom: ${euiTheme.size.xs};
border-radius: ${euiTheme.size.xs};
transition: background-color 0.2s ease;
background-color: ${isActive
? euiTheme.colors.backgroundBasePrimary
: 'transparent'};
background-color: ${
isActive ? euiTheme.colors.backgroundBasePrimary : 'transparent'
};

&:hover .secondary-action-button,
&:focus-within .secondary-action-button {
Expand Down
14 changes: 8 additions & 6 deletions newswires/client/src/StageDisplayBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ export const StageDisplayBanner = () => {
<EuiHeader
position="fixed"
css={css`
background-color: ${stage === 'DEV'
? euiTheme.colors.warning
: euiTheme.colors.danger};
color: ${stage === 'DEV'
? euiTheme.colors.textHeading
: euiTheme.colors.textGhost};
background-color: ${
stage === 'DEV' ? euiTheme.colors.warning : euiTheme.colors.danger
};
color: ${
stage === 'DEV'
? euiTheme.colors.textHeading
: euiTheme.colors.textGhost
};
padding: 10px;
top: 10px;
bottom: 10px;
Expand Down
5 changes: 3 additions & 2 deletions newswires/client/src/WireDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,9 @@ export const WireDetail = ({
>
<span
css={css`
color: ${theme.euiTheme.colors
.backgroundFilledAccent};
color: ${
theme.euiTheme.colors.backgroundFilledAccent
};
`}
>
<EuiIcon type={CollectionsIcon} size="original" />
Expand Down
6 changes: 3 additions & 3 deletions newswires/client/src/WireItemLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ export const WireItemLabel = ({
css={[
hoverParentStyles,
css`
border-radius: ${rounded === 'very'
? euiTheme.size.m
: euiTheme.size.xxs};
border-radius: ${
rounded === 'very' ? euiTheme.size.m : euiTheme.size.xxs
};
padding: 0 ${euiTheme.size.s};
border: 1px solid ${outlined ? borderColour : 'transparent'};
color: ${textColour};
Expand Down
38 changes: 23 additions & 15 deletions newswires/client/src/WireItemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,14 @@ const WirePreviewCard = ({
border-left: 4px solid
${selected ? theme.euiTheme.colors.primary : 'transparent'};
border-bottom: 1px solid ${theme.euiTheme.colors.mediumShade};
${id.toString() === previousItemId
? css`
animation: ${borderFade(theme.euiTheme.colors.primary)} 0.6s
ease-out forwards;
`
: null}
${
id.toString() === previousItemId
? css`
animation: ${borderFade(theme.euiTheme.colors.primary)} 0.6s
ease-out forwards;
`
: null
}
padding: 0.5rem;
box-sizing: content-box;
color: ${theme.euiTheme.colors.text};
Expand All @@ -345,9 +347,11 @@ const WirePreviewCard = ({
>
<h3
css={css`
font-weight: ${hasBeenViewed
? theme.euiTheme.font.weight.medium
: theme.euiTheme.font.weight.semiBold};
font-weight: ${
hasBeenViewed
? theme.euiTheme.font.weight.medium
: theme.euiTheme.font.weight.semiBold
};
${hasBeenViewed ? 'color:rgba(29, 42, 62,.8)' : ''};
font-size: 1.15rem;
margin-bottom: ${gapAfterFirstRow};
Expand All @@ -364,9 +368,11 @@ const WirePreviewCard = ({
css={css`
grid-area: time;
padding-left: 5px;
font-weight: ${hasBeenViewed
? theme.euiTheme.font.weight.light
: theme.euiTheme.font.weight.regular};
font-weight: ${
hasBeenViewed
? theme.euiTheme.font.weight.light
: theme.euiTheme.font.weight.regular
};
justify-self: end;
text-align: right;
font-variant-numeric: tabular-nums;
Expand Down Expand Up @@ -425,9 +431,11 @@ const WirePreviewCard = ({
<div
css={css`
${hasBeenViewed ? 'color:rgba(29, 42, 62,.8)' : ''};
font-weight: ${hasBeenViewed
? theme.euiTheme.font.weight.light
: theme.euiTheme.font.weight.regular};
font-weight: ${
hasBeenViewed
? theme.euiTheme.font.weight.light
: theme.euiTheme.font.weight.regular
};
`}
>
<MaybeSecondaryCardContent {...content} highlight={highlight} />
Expand Down
Loading
Loading