feat(legacy-archive): italic titles, plain_title cleanup, URL-encode legacy paths#149
Merged
Merged
Conversation
…ncode legacy paths * restore-wp-italic-titles.ts: 165 WP rich-text titles rebuilt to preserve the source <i>/<em>/<b>/<strong> formatting (e.g. "<i>Super MNC</i> fails to live up to predecessor" now renders italic). plain_title was already correct; only the Lexical title node was wrong. * clean-plain-titles.ts: 27 plain_titles cleaned of residual ’-style numeric entities (22 pipeline) and literal <i> tags (poly-online). * legacy_html_url URL-encoding: 23 chips with literal spaces (Chris Mooney discusses... etc.) now use %20 so the chip clicks through to a working /archive/ path.
…lit a slash byline
* 11 polytechnic-online articles had the wrong published_date (MM/DD swap
from manifest parse ambiguity, plus 2 off-by-ones). Slugs adjusted to
reflect the corrected date; collisions disambiguated with the legacy
article id suffix. previous_slug retained for the old shape so existing
links 301.
* normalize-author-casing.ts: 53 author groups had 2+ casings ("James
Lenze II" vs "JAmes Lenze II" etc.). Picked the most-common form per
group, renamed 123 article rows to it.
* wp_id 2558's mis-OCR'd "Russell Brown/Paul O'Neil" byline split into
two write-in author rows.
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.
Summary
Round 6 of legacy-archive cleanup, following up on PR #148. Three smaller polish items from the audit:
post_titlecarried inline<i>,<em>,<b>,<strong>markup that the original importer dropped when building the Lexical title doc (onlyplain_titlehad the tags stripped correctly). Article headlines like "Super MNC fails to live up to predecessor" now render italic.’,&); 5+ poly-online rows had literal<i>...</i>tags. Decoded + tag-stripped in place./archive/wordpress/mirror/2018/09/12/Chris Mooney discusses current state of climate change/) now use%20, so the "View original" chip actually clicks through.No schema changes. All updates were applied to production directly via the SSH tunnel before this PR landed; the scripts are committed for the historical record + repeatability.
Test plan
pnpm typecheck(no new files require it; pre-checked locally)<i>Super MNC</i>...) and 11493 (Chris Mooney URL) render correctly post-update🤖 Generated with Claude Code