Repository navigation
feat(features): rebuild /features as a photo-led page in the Sports/News language - #185
Open
anthonysantiago-eng wants to merge 1 commit into
Open
anthonysantiago-eng wants to merge 1 commit into
anthonysantiago-eng wants to merge 1 commit into
Conversation
…ews language The Features page used the old three-column index: a boxed-in lead with no dek, two rails of small headlines, and three overlapping "more" lists. It now follows the Sports and News layout: - Cover story across the page, with the title box over the photo's foot (4:5 on phones, focal-point cropped) - A two-to-one row: a second story with a portrait photo, and The Lens, one photo a day from a set editors pick, with the photographer credited like an author - Two wide strips, a Photo Stories row, and From the Archive (the Sports carousel, now taking a heading and closing link) Every slot can be pinned in the layout editor and fills itself when empty. A pin more than six weeks older than the newest story gives way, and The Lens falls back to recent credited photos when its picks are empty or over two months old, so a quiet month leaves the page current. Photo Stories only auto-fill with photo-led stories, and editors can choose which photo a pinned one shows. The layout stays a JSON field (no migration). Old layouts are carried over by normalizeFeaturesLayout. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TTjZzRUF1shh4dw3Y211AA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Anthony · project thread
What
Rebuilds
/featureson the layout language of the new Sports and News pages:Replaces the three-column index (On Campus / Latest / Arts / Photo Spotlight carousel / More in Features).
Keeping it current without weekly upkeep
Features runs 2 to 3 stories a month in term, so:
Notes for review
features-page-layout.layoutis already JSON. The new shape (version: 2) is inlib/featuresLayout.ts.normalizeFeaturesLayoutcarries old saves over (hero/subs → cover/second/strips, Photo Spotlight → The Lens, spotlight stories → Photo Stories). On Campus, Latest and Arts pins are dropped. Production keeps rendering the old layout's pins until someone saves in the new editor.SportsFeaturedgains optionalheading,headingId,allHrefandallLabelprops (defaults unchanged) so Features can reuse the carousel.scripts/seed-features.tswrites the new shape.docs/features-section.md.Testing
pnpm lint,pnpm typecheck: cleanpnpm test:unit: 83 passed, including newtests/lib/featuresPage.test.ts(old-layout carry-over, auto-fill, stale pins, Lens rotation and fallback)Generated by Claude Code