Skip to content

fix: point resource links at Renderdragonorg org - #94

Merged
creatorcluster merged 1 commit into
creatorcluster:mainfrom
Coder-soft:fix/renderdragonorg-resource-links
Oct 6, 2026
Merged

creatorcluster merged 1 commit into
creatorcluster:mainfrom
Coder-soft:fix/renderdragonorg-resource-links

Conversation

@Coder-soft

@Coder-soft Coder-soft commented Oct 6, 2026 •

Copy link
Copy Markdown

Problem

The assets API now serves resources from github.com/Renderdragonorg/resources_renderdragon, but the site still hardcoded the former Yxmura/resources_renderdragon org. Download/preview/font fallbacks, the static resource JSON used by the homepage featured cards, and the music-link allowlist all pointed at the old org, so those flows stayed pinned to the stale location (and the music-link endpoint rejected API-served URLs with a 400).

Changes

  • Add src/lib/resourcesRepo.ts with the canonical raw/blob bases and a buildResourceRepoUrl() helper.
  • src/hooks/useResources.ts: download now falls back to the repo URL builder when download_url is missing.
  • Replace hardcoded Yxmura bases in ResourceCard, ResourcePreview, ResourceDetailDialog, TextPreview, and migrateResources.
  • Rewrite public/resources.all.json and public/resources/*.json (5,254 URLs) to the new org.
  • api/music-link.js: allow the new org in ALLOWED_REPO_PREFIXES.

Intentional non-changes: Contact.tsx (Yxmura's GitHub profile), .github/FUNDING.yml, and AGENTS.md fork lineage.

Verification

  • eslint clean on changed files
  • tsc --noEmit clean
  • pnpm run build succeeds; built output contains no Yxmura resource URLs

Summary by CodeRabbit

  • Bug Fixes
    • Updated resource download links for animations, fonts, images, music, presets, and sound effects to use the current resource repository.
    • Improved fallback links for resource previews, font loading, and downloads when an item does not provide a specific URL.
    • Direct links to resources in the current repository are now accepted.

The assets API now serves resources from
github.com/Renderdragonorg/resources_renderdragon, but download,
preview, font-loading, and static resource data still hardcoded the
former Yxmura org. Add a shared resourcesRepo module and route all
resource URLs through it, update the static resource JSON, and allow
the new org in the music-link endpoint allowlist.
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

@Coder-soft is attempting to deploy a commit to the yamura3's projects Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 41445990-b859-46c7-b5cc-50864a870427
📥 Commits

Reviewing files that changed from the base of the PR and between a850687 and da9c669.

📒 Files selected for processing (16)
  • api/music-link.js
  • public/resources.all.json
  • public/resources/animations.json
  • public/resources/fonts.json
  • public/resources/images.json
  • public/resources/minecraft-icons.json
  • public/resources/music.json
  • public/resources/presets.json
  • public/resources/sfx.json
  • src/components/resources/ResourceCard.tsx
  • src/components/resources/ResourceDetailDialog.tsx
  • src/components/resources/ResourcePreview.tsx
  • src/components/text-generator/TextPreview.tsx
  • src/hooks/useResources.ts
  • src/lib/resourcesRepo.ts
  • src/utils/migrateResources.ts
 _________________________________
< Bug-free code is the new black. >
 ---------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@creatorcluster
creatorcluster merged commit 85fb3ca into creatorcluster:main Oct 6, 2026
0 of 3 checks passed
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