Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stories page articles from Content API #11387

Merged
merged 5 commits into from
Nov 18, 2024
Merged

Conversation

davidpmccormick
Copy link
Contributor

What does this change?

Gets the stories page articles from the Content API

How to test

Visit /stories and check the five stories at top of the page and the six stories under the 'You may have missed' header at the bottom of the page all render.

(This change reinstates the comics alongside the other stories in the result lists, so there is an expected difference between the results here and what's in prod).

How can we measure success?

We're less reliant on Prismic

Have we considered potential risks?

If we had needed to replicate what is currently in prod, it would have been tricky with the Content API currently, because while you can filter (e.g. all articles that are comics), you can't do a negated filter (e.g. all articles that aren't comics). Will make a note of this as something to bear in mind

Copy link

github-actions bot commented Nov 7, 2024

Size Change: +439 B (+0.04%)

Total Size: 1.01 MB

Filename Size Change
content/webapp/.next/static/chunks/2907-89567e45bed030dd.js 0 B -3.16 kB (removed) 🏆
content/webapp/.next/static/chunks/3406-9e5904344936d437.js 0 B -6.68 kB (removed) 🏆
content/webapp/.next/static/chunks/5164-28bbd6f9adb5325a.js 0 B -7.11 kB (removed) 🏆
content/webapp/.next/static/chunks/5946-c038471f11cae135.js 0 B -3.69 kB (removed) 🏆
content/webapp/.next/static/chunks/6153-72f512001264df6c.js 0 B -4.42 kB (removed) 🏆
content/webapp/.next/static/chunks/6157-5e5557418ac92dfd.js 0 B -6.08 kB (removed) 🏆
content/webapp/.next/static/chunks/632-b20e17704dd49838.js 0 B -3.04 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/[uid]-fa2cdd0f5c689306.js 0 B -1.94 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/about-us-7bb85c84e66dfedf.js 0 B -1.94 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/about-us/[uid]-aeaa4df33dc90ce2.js 0 B -1.94 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/about-us/cookie-policy-67a5c998efb8f07f.js 0 B -5.99 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/books-23048a0db8697278.js 0 B -2.02 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/books/[bookId]-f33ccdc2bcbe74a0.js 0 B -4.08 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/collections-9dffdc7541409e02.js 0 B -2.35 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/collections/[uid]-8e7548edf26c0b91.js 0 B -1.94 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/event-series/[eventSeriesId]-7769b553635b02ee.js 0 B -2.93 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/events-d25b26bffa8d4695.js 0 B -2.15 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/events/[eventId]-dfb39aec180f06e5.js 0 B -8.88 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/exhibitions-7162e42b4045961c.js 0 B -2.39 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/exhibitions/[exhibitionId]-8e43e25fbcb68547.js 0 B -3.98 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/get-involved-339bfd13fbbc462a.js 0 B -1.94 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/get-involved/[uid]-f60172ea77a7c9b7.js 0 B -1.95 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/guides/[guideId]-52c23b3346303ef4.js 0 B -2.25 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/guides/exhibitions-90d3490524bb50bd.js 0 B -2.65 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/guides/exhibitions/[id]-72167d1b1a286f22.js 0 B -2.77 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/guides/exhibitions/[id]/[type]-71a25c874e12297a.js 0 B -9.57 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/index-ce67156d118bc2ef.js 0 B -3.44 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/pages/[pageId]-6bc73137b7755296.js 0 B -1.91 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/projects/[projectId]-7dbc71a945825b6c.js 0 B -2.23 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/seasons/[seasonId]-33f2c6421d1036f8.js 0 B -3.86 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/series/[seriesId]-ae8bd33f420f82da.js 0 B -5 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/slice-simulator-fc6dd41549457a89.js 0 B -967 B (removed) 🏆
content/webapp/.next/static/chunks/pages/stories-412d365fcb0198df.js 0 B -1.71 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/stories/[articleId]-db0036650c6ee149.js 0 B -9.7 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/visit-us-fde940a572e6744f.js 0 B -2.27 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/visit-us/[uid]-d6cf5bd39f3808c4.js 0 B -1.95 kB (removed) 🏆
content/webapp/.next/static/chunks/webpack-298eef828778ca8b.js 0 B -2.31 kB (removed) 🏆
content/webapp/.next/static/chunks/2075-d891038ae834fd5b.js 6.98 kB +6.98 kB (new file) 🆕
content/webapp/.next/static/chunks/4462-1870aa794a166104.js 3.06 kB +3.06 kB (new file) 🆕
content/webapp/.next/static/chunks/5164-f4e3d82c5bdb0c7a.js 7.11 kB +7.11 kB (new file) 🆕
content/webapp/.next/static/chunks/5946-287e65639e4289fa.js 3.7 kB +3.7 kB (new file) 🆕
content/webapp/.next/static/chunks/6153-bbc31723b820655d.js 4.42 kB +4.42 kB (new file) 🆕
content/webapp/.next/static/chunks/6157-37c2cf882ac57f14.js 6.08 kB +6.08 kB (new file) 🆕
content/webapp/.next/static/chunks/632-d69f29b17e01a4e4.js 3.13 kB +3.13 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/[uid]-fbd19db9af98fa22.js 1.94 kB +1.94 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/about-us-1e1738fdcf7e123b.js 1.94 kB +1.94 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/about-us/[uid]-436fb0f72caa05fb.js 1.94 kB +1.94 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/about-us/cookie-policy-8682d538b6d0e620.js 5.99 kB +5.99 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/books-775381283e1df1f1.js 2.02 kB +2.02 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/books/[bookId]-03c5e8482cb0fd4c.js 4.09 kB +4.09 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/collections-9a53ee39a467e0f7.js 2.35 kB +2.35 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/collections/[uid]-23130a57cc6480b2.js 1.94 kB +1.94 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/event-series/[eventSeriesId]-7980162f94d7ebaa.js 2.93 kB +2.93 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/events-8ef663547105417d.js 2.14 kB +2.14 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/events/[eventId]-5493c4ddceca36bc.js 8.88 kB +8.88 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/exhibitions-42f40ddbef505fd7.js 2.39 kB +2.39 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/exhibitions/[exhibitionId]-7b656ebf55430ae0.js 3.98 kB +3.98 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/get-involved-debb24f66a3fdd93.js 1.94 kB +1.94 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/get-involved/[uid]-d5a19e4411d567f6.js 1.95 kB +1.95 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/guides/[guideId]-af04ef83f9394677.js 2.25 kB +2.25 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/guides/exhibitions-14628bd8dae14651.js 2.65 kB +2.65 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/guides/exhibitions/[id]-0eaf6c38d3c03ff8.js 2.77 kB +2.77 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/guides/exhibitions/[id]/[type]-a5d81bcba8a80e13.js 9.57 kB +9.57 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/index-8444c22242631cab.js 3.45 kB +3.45 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/pages/[pageId]-98ca38ddf07dd750.js 1.91 kB +1.91 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/projects/[projectId]-7be0a5d601f31c17.js 2.23 kB +2.23 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/seasons/[seasonId]-6b54ec76d9601a7f.js 3.86 kB +3.86 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/series/[seriesId]-32a35292b60cd4a0.js 5.09 kB +5.09 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/slice-simulator-f51a5414d80af3c6.js 967 B +967 B (new file) 🆕
content/webapp/.next/static/chunks/pages/stories-5c911716939bda1c.js 1.72 kB +1.72 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/stories/[articleId]-c8611ef5f047049e.js 9.7 kB +9.7 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/visit-us-a4282baa5cb8f7d5.js 2.27 kB +2.27 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/visit-us/[uid]-9c84a6c7d43c71bb.js 1.95 kB +1.95 kB (new file) 🆕
content/webapp/.next/static/chunks/webpack-59dcc5945481ffea.js 2.31 kB +2.31 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size Change
content/webapp/.next/static/chunks/00a8a139.e66d72e5d4e63786.js 58.7 kB 0 B
content/webapp/.next/static/chunks/1042.5e93690fb7f8387e.js 264 B 0 B
content/webapp/.next/static/chunks/1091.16812ffd5b0a4e6b.js 356 B 0 B
content/webapp/.next/static/chunks/1315.ec3024c1cf22820e.js 4.64 kB 0 B
content/webapp/.next/static/chunks/1895-507f9544a4d6b6f5.js 2.28 kB 0 B
content/webapp/.next/static/chunks/1922.0f05429c47f3337a.js 3.74 kB 0 B
content/webapp/.next/static/chunks/2158.8ef7524eb9789345.js 3.29 kB 0 B
content/webapp/.next/static/chunks/23-cf5a7458cbf01e28.js 2.67 kB 0 B
content/webapp/.next/static/chunks/2614-b089e3e692ce42a9.js 7.17 kB 0 B
content/webapp/.next/static/chunks/286.e6c4fb42dbebd142.js 20.7 kB 0 B
content/webapp/.next/static/chunks/3279.25c8e2abad5d9072.js 2.68 kB 0 B
content/webapp/.next/static/chunks/3310.3608c7a584df8db5.js 2.43 kB 0 B
content/webapp/.next/static/chunks/3407.8b6dc286e5611abd.js 264 B 0 B
content/webapp/.next/static/chunks/3514.b981f295d2d50129.js 4.25 kB 0 B
content/webapp/.next/static/chunks/3562.1a682406fccbb2ec.js 371 B 0 B
content/webapp/.next/static/chunks/3661-448bee7d2db2b975.js 3.41 kB 0 B
content/webapp/.next/static/chunks/3761.5a8f62ff6e7a1f25.js 6 kB 0 B
content/webapp/.next/static/chunks/4125.067d1eec1c3eb4af.js 2.19 kB 0 B
content/webapp/.next/static/chunks/4137-e8e9ad55565f29c7.js 4.18 kB 0 B
content/webapp/.next/static/chunks/4176.e220ce99d4a863cf.js 2.42 kB 0 B
content/webapp/.next/static/chunks/4494-9ee08e6cd2d95cc0.js 4.68 kB 0 B
content/webapp/.next/static/chunks/4621-a46d5953a009fcb0.js 4.57 kB 0 B
content/webapp/.next/static/chunks/4704-7fa9ebb41eea98d6.js 4.34 kB 0 B
content/webapp/.next/static/chunks/5041.a2ec4f918c672fc2.js 277 B 0 B
content/webapp/.next/static/chunks/5226.2bd4a87f89f13992.js 3.41 kB 0 B
content/webapp/.next/static/chunks/5239-d3cc68cce4a94ba9.js 3.2 kB 0 B
content/webapp/.next/static/chunks/5261.d1a6fd28d571ac6d.js 4.63 kB 0 B
content/webapp/.next/static/chunks/5314-ae0b25ce9db5390c.js 4.82 kB 0 B
content/webapp/.next/static/chunks/5563.cbd3e12b59fa5165.js 5.81 kB 0 B
content/webapp/.next/static/chunks/5939-d1a715b0e5867fe7.js 2.92 kB 0 B
content/webapp/.next/static/chunks/6170.6df6aff3711292af.js 2.53 kB 0 B
content/webapp/.next/static/chunks/628-a14babf3fb2eb9d3.js 4.78 kB 0 B
content/webapp/.next/static/chunks/6287.ee607762046728e7.js 1.57 kB 0 B
content/webapp/.next/static/chunks/6425-463de300c9e3974e.js 6.66 kB 0 B
content/webapp/.next/static/chunks/6577-545b35fa00e662d2.js 3.9 kB 0 B
content/webapp/.next/static/chunks/7107-7a0c6bd1411921e2.js 33.8 kB 0 B
content/webapp/.next/static/chunks/721-8422ecc6bd9759ae.js 7.55 kB 0 B
content/webapp/.next/static/chunks/7267-d9ca9d41f5d22bfd.js 4.45 kB 0 B
content/webapp/.next/static/chunks/7339.374c3283d903835f.js 1.64 kB 0 B
content/webapp/.next/static/chunks/7425.55403f41901da8aa.js 2.49 kB 0 B
content/webapp/.next/static/chunks/7849.1818ba955cf06736.js 5.04 kB 0 B
content/webapp/.next/static/chunks/8091.1cba152a98f81f4d.js 2.94 kB 0 B
content/webapp/.next/static/chunks/8168-71b89264865ea44c.js 16.2 kB 0 B
content/webapp/.next/static/chunks/8194-9fe6d45e2c5b9530.js 2.96 kB 0 B
content/webapp/.next/static/chunks/8551-bb8b09e56dd31b24.js 5.27 kB 0 B
content/webapp/.next/static/chunks/8630.408947dd96fce642.js 1.67 kB 0 B
content/webapp/.next/static/chunks/8952.789161ae05665aa4.js 2.65 kB 0 B
content/webapp/.next/static/chunks/8997-afbf62110474f301.js 11.4 kB 0 B
content/webapp/.next/static/chunks/9508-0ac3bb8cd3dd6f17.js 3.42 kB 0 B
content/webapp/.next/static/chunks/framework-978a6051e6d0c57a.js 44.9 kB 0 B
content/webapp/.next/static/chunks/main-16881ae36fd18535.js 36.8 kB 0 B
content/webapp/.next/static/chunks/pages/_app-24f30469d555d315.js 108 kB 0 B
content/webapp/.next/static/chunks/pages/_error-1e8090a460deeefd.js 331 B 0 B
content/webapp/.next/static/chunks/pages/404-8b7e615af6ded119.js 259 B 0 B
content/webapp/.next/static/chunks/pages/500-4bf99f3036ceb64d.js 258 B 0 B
content/webapp/.next/static/chunks/pages/concepts/[conceptId]-ff31c55f5003683f.js 3.66 kB 0 B
content/webapp/.next/static/chunks/pages/events/[eventId]/visual-stories-03a175c41aa41fa0.js 0 B -302 B (removed) 🏆
content/webapp/.next/static/chunks/pages/exhibitions/[exhibitionId]/visual-stories-d58968cacc6e24be.js 0 B -303 B (removed) 🏆
content/webapp/.next/static/chunks/pages/guides/exhibitions/[id]/[type]/[stop]-9dcabeefe9ec5add.js 5.97 kB 0 B
content/webapp/.next/static/chunks/pages/newsletter-8d1c5a82c17792a6.js 2.34 kB 0 B
content/webapp/.next/static/chunks/pages/search-2102c2928dd0788a.js 5.11 kB 0 B
content/webapp/.next/static/chunks/pages/search/events-8c5ae29c842eca33.js 2.03 kB 0 B
content/webapp/.next/static/chunks/pages/search/images-e4f5e6305482bee9.js 1.58 kB 0 B
content/webapp/.next/static/chunks/pages/search/stories-5708c5228a094a88.js 3.1 kB 0 B
content/webapp/.next/static/chunks/pages/search/works-7d082ff992b13625.js 2.94 kB 0 B
content/webapp/.next/static/chunks/pages/visual-stories/[visualStoryId]-40d6594b2e75d3bc.js 0 B -236 B (removed) 🏆
content/webapp/.next/static/chunks/pages/whats-on-a605a6d17da8d964.js 0 B -212 B (removed) 🏆
content/webapp/.next/static/chunks/pages/whats-on/[period]-55abbef03192c9ab.js 0 B -283 B (removed) 🏆
content/webapp/.next/static/chunks/pages/works/[workId]-ea8d59ffe91fbc51.js 22.7 kB 0 B
content/webapp/.next/static/chunks/pages/works/[workId]/download-d7d0f47c9c009d0c.js 2.74 kB 0 B
content/webapp/.next/static/chunks/pages/works/[workId]/images-dcd5e2de51ef7303.js 697 B 0 B
content/webapp/.next/static/chunks/pages/works/[workId]/items-84bedb71ce4c37ce.js 4.85 kB 0 B
content/webapp/.next/static/chunks/polyfills-78c92fac7aa8fdd8.js 31.1 kB 0 B
identity/webapp/.next/static/chunks/286.30e19e68d137a7fe.js 20.7 kB 0 B
identity/webapp/.next/static/chunks/442-4b4b512cbce15397.js 9.12 kB 0 B
identity/webapp/.next/static/chunks/50.5b4e17f82c3c9a70.js 940 B 0 B
identity/webapp/.next/static/chunks/528.b0c7a0dca90cafcc.js 2.71 kB 0 B
identity/webapp/.next/static/chunks/644-f0cfb6459ad9993f.js 16.2 kB 0 B
identity/webapp/.next/static/chunks/framework-e82a91356956e6c8.js 44.8 kB 0 B
identity/webapp/.next/static/chunks/main-9fde6a01d715973d.js 38.9 kB 0 B
identity/webapp/.next/static/chunks/pages/_app-76af006456758ac7.js 105 kB 0 B
identity/webapp/.next/static/chunks/pages/_error-f92497dca926c5b1.js 1.45 kB 0 B
identity/webapp/.next/static/chunks/pages/delete-requested-aba6285540faf31a.js 3.23 kB 0 B
identity/webapp/.next/static/chunks/pages/error-5c81263d2bc0f671.js 1.7 kB 0 B
identity/webapp/.next/static/chunks/pages/index-e4ea043acc34600a.js 12 kB 0 B
identity/webapp/.next/static/chunks/pages/registration-826df2289f963cc4.js 4.13 kB 0 B
identity/webapp/.next/static/chunks/pages/success-bd9f4e9b2f8aef7a.js 3.3 kB 0 B
identity/webapp/.next/static/chunks/pages/validated-9d66f88ab86c3ab6.js 3.38 kB 0 B
identity/webapp/.next/static/chunks/polyfills-78c92fac7aa8fdd8.js 31.1 kB 0 B
identity/webapp/.next/static/chunks/webpack-dd4d49330c88bc7f.js 1.81 kB 0 B
content/webapp/.next/static/chunks/pages/events/[eventId]/visual-stories-ec597ffa5627bbc4.js 302 B +302 B (new file) 🆕
content/webapp/.next/static/chunks/pages/exhibitions/[exhibitionId]/visual-stories-2f20155e09ac240f.js 303 B +303 B (new file) 🆕
content/webapp/.next/static/chunks/pages/visual-stories/[visualStoryId]-6a1c6d49f9a2a817.js 236 B +236 B (new file) 🆕
content/webapp/.next/static/chunks/pages/whats-on-c9310d4e512cbd3f.js 212 B +212 B (new file) 🆕
content/webapp/.next/static/chunks/pages/whats-on/[period]-d0058c8db76a5793.js 283 B +283 B (new file) 🆕

compressed-size-action

@davidpmccormick davidpmccormick changed the base branch from main to content-api-homepage-stories November 12, 2024 20:58
Base automatically changed from content-api-homepage-stories to main November 18, 2024 09:45
@davidpmccormick davidpmccormick merged commit 0d3e125 into main Nov 18, 2024
8 checks passed
@davidpmccormick davidpmccormick deleted the top-stories-content-api branch November 18, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants