Skip to content
Merged
Show file tree
Hide file tree
Changes from 101 commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
17274ed
mid article wip, related content
LilyL0u Nov 21, 2025
3875e8b
put functions into helper file
LilyL0u Nov 21, 2025
2d98048
title fpr related content
LilyL0u Nov 22, 2025
43add6b
make features work in mid article promo
LilyL0u Nov 24, 2025
c609787
top stories working in mid article promo
LilyL0u Nov 24, 2025
ecb5b39
refactor helpers as some are the same data extraction function [copilot]
LilyL0u Nov 24, 2025
f351a51
add top stories and features component outside of secondary column on…
LilyL0u Nov 24, 2025
dce4279
log remove, add comment
LilyL0u Nov 24, 2025
b1a08b8
if the page is loaded at a desktop width, default to layout as if no …
LilyL0u Nov 25, 2025
8062574
LIMITED TO 4 RELATED CONTENT ITEMS
LilyL0u Nov 25, 2025
dafe022
variant names
LilyL0u Nov 25, 2025
940c83c
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Nov 25, 2025
0634d32
related content blocks not required in recommendations component
LilyL0u Nov 25, 2025
57d3bc8
default empty array for possibly empty related content data, and remo…
LilyL0u Nov 25, 2025
95251bc
remove unused spacings
LilyL0u Nov 26, 2025
842b69b
tracking added and updated variant names
LilyL0u Nov 28, 2025
1e99d60
update referrer names for reordering under article components
LilyL0u Nov 29, 2025
aea5403
refactor so function is in helper file
LilyL0u Nov 29, 2025
83efa7f
css fixes
LilyL0u Nov 29, 2025
48f8b0b
unit tests for getUnderArticleComponents
LilyL0u Nov 29, 2025
e73390a
imrpove style name
LilyL0u Nov 29, 2025
9295e02
add margin bottom to components
LilyL0u Nov 29, 2025
6b92060
comment
LilyL0u Nov 29, 2025
8678dcd
remove unused imports
LilyL0u Nov 29, 2025
66255ff
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Nov 29, 2025
b764277
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 1, 2025
2c824b9
unit test for top stories in recommendations component
LilyL0u Dec 1, 2025
d71a92e
unit test for features in recommendations
LilyL0u Dec 1, 2025
7d77acf
unit test for related content in recommendations component
LilyL0u Dec 1, 2025
c94eb6b
related content sungle items test
LilyL0u Dec 1, 2025
f9fe66b
test for most read in all other conditions
LilyL0u Dec 1, 2025
9f20f56
clean up
LilyL0u Dec 1, 2025
b823753
Merge branch 'WS-1097-referrer-based-ordering-of-oj-components' of gi…
LilyL0u Dec 1, 2025
e5facc1
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 1, 2025
d88e455
remove log
LilyL0u Dec 1, 2025
63cc2d8
Merge branch 'WS-1097-referrer-based-ordering-of-oj-components' of gi…
LilyL0u Dec 1, 2025
311248c
fix ts error
LilyL0u Dec 1, 2025
eb3c8ef
test fix where dom has 2 lots of features component even though disp…
LilyL0u Dec 1, 2025
30742d5
snapshots updated
LilyL0u Dec 1, 2025
931e71c
add in test ids as they were on these components in the secondary column
LilyL0u Dec 2, 2025
f1b1a55
top stories type imported
LilyL0u Dec 2, 2025
2aa5e03
data test id for top stories in different place
LilyL0u Dec 2, 2025
fd411fc
not insecondary column so remove that attribute?
LilyL0u Dec 2, 2025
44d289d
features analysis data tesid in different place
LilyL0u Dec 2, 2025
e8dc02e
cypress test fixtures, type fixes and unit test fixes
LilyL0u Dec 3, 2025
c8b5c68
attempt only scroll into view in test if component is visible
LilyL0u Dec 3, 2025
77d4cdb
click visible component
LilyL0u Dec 3, 2025
a2b4041
get first visible in cypress tests for features andf related content
LilyL0u Dec 3, 2025
2f43f6e
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 3, 2025
5888215
remove jsx setting pragma
LilyL0u Dec 3, 2025
e572fa5
only select visible elements in webp test
LilyL0u Dec 3, 2025
121c08d
check for visiblilty before checking is webp
LilyL0u Dec 3, 2025
44e8d72
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 3, 2025
0ad5a8c
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 3, 2025
ebf6259
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 3, 2025
a6dfd33
lint
LilyL0u Dec 3, 2025
d8f8bb6
page style typescript
LilyL0u Dec 3, 2025
da528ef
supress erriorinstead
LilyL0u Dec 3, 2025
9ee5cc8
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 4, 2025
b2b5a85
add referrerExperimentName to getWsojComponent
LilyL0u Dec 4, 2025
6ddccbe
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
amoore108 Dec 8, 2025
45bb2c4
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 8, 2025
9e83232
Remove custom `isDesktopInitial` state variable
amoore108 Dec 8, 2025
0e56732
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
amoore108 Dec 8, 2025
0179139
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
amoore108 Dec 8, 2025
b797101
Remove Personalised Topic rail tests
amoore108 Dec 8, 2025
a617060
Test lint fixes
amoore108 Dec 8, 2025
1319e95
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Dec 9, 2025
823a977
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
holchris Jan 8, 2026
ac3f413
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
holchris Jan 8, 2026
d93e5c5
fix merge conflict
holchris Jan 8, 2026
ba0bcb6
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
holchris Jan 8, 2026
bf3bab3
resolve merge conflict
holchris Jan 8, 2026
4507304
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
holchris Jan 8, 2026
f175832
remove useOptimizelyVariation import
holchris Jan 8, 2026
b1c1f18
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
holchris Jan 8, 2026
54fda4e
comment on part that is for experiment
LilyL0u Jan 9, 2026
c9c5093
experiment comment
LilyL0u Jan 9, 2026
42bc45d
consistent experiment name in comments
LilyL0u Jan 9, 2026
e47b421
comment
LilyL0u Jan 9, 2026
65d27d9
Minor comment fixes
amoore108 Jan 9, 2026
aae9757
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 12, 2026
9f6701d
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
pvaliani Jan 13, 2026
1b882dd
get referrer in RequestContext and use to switch between search, soci…
LilyL0u Jan 21, 2026
2ba9887
remove referrer test in withOptimizelyProvider file - do we need new …
LilyL0u Jan 21, 2026
2b07279
update unit tests for Recommendations component
LilyL0u Jan 21, 2026
9db6d4c
updated unit tests for getUnderArticleComponents
LilyL0u Jan 21, 2026
8c1c094
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 21, 2026
149e1da
try this test fix (not sure if good)
LilyL0u Jan 21, 2026
f65e64f
pray emoji (import getReferrer into ArticlePage from withOptimizelyPr…
LilyL0u Jan 21, 2026
af22368
remove unused imports
LilyL0u Jan 22, 2026
243e1e1
put original RequestContext tests back
LilyL0u Jan 22, 2026
f4d64c6
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 22, 2026
05f1fef
get akt text for different data structures in top stories
LilyL0u Jan 22, 2026
0af04b5
remove logs and variant override
LilyL0u Jan 22, 2026
7f9c6ab
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 22, 2026
ab0618e
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 22, 2026
bd4cd39
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 23, 2026
676f52e
put withOptimizelyProvider referrer tests back in
LilyL0u Jan 23, 2026
807c48c
Merge branch 'WS-1097-referrer-based-ordering-of-oj-components' of gi…
LilyL0u Jan 23, 2026
f04331a
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 23, 2026
338c703
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 26, 2026
b91a0e3
add in experimentProps for related content
LilyL0u Jan 26, 2026
beea0bf
tracking for most read
LilyL0u Jan 26, 2026
2ee21ee
make flexible for different event tracking data in home and article page
LilyL0u Jan 26, 2026
1649b72
views and clicks for continue reading button
LilyL0u Jan 27, 2026
d72ed03
Merge branch 'latest' into WS-1097-referrer-based-ordering-of-oj-comp…
LilyL0u Jan 27, 2026
ee480f1
fix top stories live image
LilyL0u Jan 27, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ import { use } from 'react';
import { RequestContext } from '#contexts/RequestContext';
import useClickTrackerHandler from '#app/hooks/useClickTrackerHandler';
import { Recommendation } from '#app/models/types/onwardJourney';
import { EventTrackingData } from '#app/lib/analyticsUtils/types';
import RecommendationsImage from '../RecommendationsPromoImage';
import styles from './index.styles';

const eventTrackingData = {
componentName: 'midarticle-mostread',
};

const RecommendationsItem = ({
recommendation,
eventTrackingData,
}: {
recommendation: Recommendation | null;
eventTrackingData?: EventTrackingData;
}) => {
const { isLite } = use(RequestContext);

Expand Down
Loading
Loading