Hardcode projects list, remove CMS dependency#36
Merged
mikaalnaik merged 1 commit intoJul 20, 2026
Conversation
Move the projects data from the York Factory /tools API into src/constants/projects.ts and serve card images locally from public/projects/. ProjectsGrid and the sitemap now read from the constant; fetchTools and the YFTool type are removed. Also fixes State of the Nation, which had a full URL as its slug and an empty url in the CMS, so its card now links to /state-of-the-nation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
/toolsAPI and into hardcoded data atsrc/constants/projects.ts(same 8 projects, same order as production)public/projects/instead of the CMS's Active Storage proxyProjectsGrid(no longer async) andsitemap.tsread from the constant;fetchToolsand theYFTooltype are removedurlin the CMS — its card now correctly links to/state-of-the-nationAll existing
ProjectsGridprops (includeSlugs,excludeSlugs,filter,featured,maxItems,columns) behave the same, so the homepageFeaturedProjectssection is unaffected.To add or reorder projects going forward, edit
src/constants/projects.tsand drop an image intopublic/projects/.Test plan
tsc --noEmitcleaneslintclean on changed files/projectsrenders all 8 cards with images/state-of-the-nation🤖 Generated with Claude Code