Are.na education resources page (step 1: structured by-line/tag parsing) - #1552
Open
NisargJasani0602 wants to merge 3 commits into
Open
Are.na education resources page (step 1: structured by-line/tag parsing)#1552NisargJasani0602 wants to merge 3 commits into
NisargJasani0602 wants to merge 3 commits into
Conversation
Build-time script pulls the education-resources Are.na channel into a new content collection, rendered on a standalone prototype page, for processing#1547. Generated yaml is gitignored - regenerate with `npm run build:arena-resources`.
Curators opt a block into the Education Resources page by writing its Are.na description as "By: Author", a short description, and hashtags (e.g. #p5jsv2 #English) - proposed on processing#1547. Blocks missing a by-line or required version tag are skipped entirely, which is the review boundary rather than a separate moderation step. Also replaces the hand-written Are.na API types with a real zod schema, validated per-block so one malformed block warns and gets skipped instead of crashing the whole fetch.
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.
Addresses #1547
Step 1 toward pulling Education Resources from Are.na. Since the site is static, a build script (
npm run build:arena-resources) pulls the channel via Are.na's API into a new content collection, rendered on a standalone page for now (/education-resources-arena-prototype).Implements the by-line/hashtag format from the issue thread — a block only shows up if its description has a
By: Nameline and a required version tag (#p5jsv1/#p5jsv2), anything missing either is skipped.Also added real schema validation on the Are.na API response (previously just trusted the shape), which already caught a real bug —
source.titlecan legitimately be null.Note: no blocks in the channel use this format yet, so the page currently shows 0 resources — expected until the content itself gets updated, discussed in the issue thread.
Filter UI and search-index integration to follow as separate PRs.