feat(web): remove Decap CMS and add admin authentication foundation#2949
Merged
ComputelessComputer merged 3 commits intomainfrom Jan 11, 2026
Merged
Conversation
- Remove Decap CMS files (config.yml, index.html, media-library.js, etc.) - Remove netlify-identity-redirect.js and its reference in __root.tsx - Move mdx-format-core.js to scripts/ folder (still used by format-mdx.js) - Add admin authentication with email whitelist - Add admin layout route with auth guard - Add admin dashboard and media library placeholder pages - Update handbook documentation to reflect new admin system Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
✅ Deploy Preview for hyprnote ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for hyprnote-storybook canceled.
|
✅ Deploy Preview for howto-fix-macos-audio-selection canceled.
|
The _admin prefix creates a pathless layout route which conflicts with _view's index.tsx since both resolve to '/'. Renaming to 'admin' creates routes at /admin/* which don't conflict. Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
This was referenced Jan 10, 2026
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
This PR removes the existing Decap CMS admin system and lays the foundation for a new custom admin interface. This is the first PR in a series to implement issue #2948.
Removed:
public/admin/config.yml,index.html,media-library.js,media.html,preview-styles.css,preview-templates.js,registration.js)__root.tsxAdded:
src/functions/admin.ts)/authand non-admins to//admin/admin/mediaMoved:
mdx-format-core.jsfrompublic/admin/toscripts/(still used byformat-mdx.js)Updates since last revision
_admintoadmin. The underscore prefix creates a pathless layout route which conflicted with_view/index.tsxsince both resolved to/. The admin routes now live at/admin/*as intended.Review & Testing Checklist for Human
apps/web/src/functions/admin.tscontains the correct emails (currently: yujonglee@hyprnote.com, john@hyprnote.com, harshika@hyprnote.com)/adminwhile logged out → should redirect to/authwith redirect param → after login, should return to/admin/admin→ should redirect to/node apps/web/scripts/format-mdx.jswith MDX input to ensure the movedmdx-format-core.jsis correctly importedRecommended test plan:
Notes
This is a breaking change for anyone currently using Decap CMS at
/admin. The new admin interface is intentionally minimal - full media library and blog management features will come in subsequent PRs.The handbook documentation was updated to describe the new admin system, but references features (Google Docs import, blog management) that are not yet implemented.
Requested by: @ComputelessComputer
Devin session: https://app.devin.ai/sessions/5c615647f58c421dabccc0cdd5b4270c