feat(web): add content management UI for browsing MDX files#2964
Merged
ComputelessComputer merged 27 commits intomainfrom Jan 11, 2026
Merged
feat(web): add content management UI for browsing MDX files#2964ComputelessComputer merged 27 commits intomainfrom
ComputelessComputer merged 27 commits intomainfrom
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>
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>
- Add github-media.ts with utilities for listing, uploading, deleting, moving files and creating folders via GitHub API - Add /api/admin/media/list endpoint for listing media files - Add /api/admin/media/upload endpoint for uploading files - Add /api/admin/media/delete endpoint for batch deleting files - Add /api/admin/media/move endpoint for moving/renaming files - Add /api/admin/media/create-folder endpoint for creating folders - All endpoints protected with admin authentication check Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
- Add responsive file grid with folder and image thumbnails - Add drag-and-drop file upload functionality - Add breadcrumb navigation for folder hierarchy - Add file selection with batch delete support - Add create folder functionality - Add copy-to-clipboard for file paths - Show file sizes and loading states Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
- Add select all / deselect all functionality - Add batch download for selected files - Add batch move with folder picker dialog - Add selection toolbar with count display - Improve selection UI with cancel button Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
- Add right-click context menu for files and folders - Add individual item actions: download, copy path, copy as PNG - Add rename functionality with modal dialog - Add move functionality from context menu - Add delete functionality from context menu - Context menu auto-closes on click outside Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
… library - Add collapsible left sidebar with search input - Add file type filter (All, Images, Videos, Documents) - Add folder tree navigation with expandable nodes - Add clear filters button when filters are active - Filter items by search query and file type - Show helpful message when no files match filters - Sidebar toggle button in header Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
- Add /api/admin/import/google-docs endpoint to parse published Google Docs - Convert Google Docs HTML to Markdown format - Generate MDX with proper frontmatter (title, author, date, etc.) - Add /api/admin/import/save endpoint to save MDX files to content folder - Support multiple content folders (articles, changelog, docs, etc.) - Admin authentication required for all endpoints Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
- Add /admin/import page with import form - Support URL input, title, author, description, cover image, slug - Preview and edit generated MDX before saving - Select destination folder (articles, changelog, docs, etc.) - Auto-generate slug from title - Enable import link on admin dashboard Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
- Change from createAPIFileRoute to createFileRoute with server.handlers - Use fetchAdminUser instead of isAdmin for auth check - Fix indentation to match existing API route patterns Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
…handler Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
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:
|
2 tasks
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
…revocation Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
…032944-media-context-menu
…096-media-sidebar-search
…33298-google-docs-import
…442-google-docs-import-ui
…035431-blog-management-ui
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
Base automatically changed from
devin/1768033442-google-docs-import-ui
to
main
January 11, 2026 16:46
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
Adds a Content Management page to the admin interface that allows browsing MDX content files stored in the repository. This is PR #9 in the stacked PR series for issue #2948 (new blog admin site).
Changes:
/admin/contentpage with expandable folder list (Articles, Changelog, Documentation, Handbook, Legal, Templates)/api/admin/content/listendpoint that fetches content files from GitHub APIThe UI allows clicking folders to load their contents, searching/filtering loaded files, and linking to view files on GitHub.
Review & Testing Checklist for Human
useEffectbut doesn't use it - confirm this doesn't cause lint/build failuresGITHUB_TOKENenv var - verify it works in the deployed environment/admin/contentor the API endpointRecommended test plan:
/adminand click "Content Management"Notes
This PR is stacked on PR #2961 (Google Docs Import UI). The full PR chain for issue #2948 is:
Requested by @ComputelessComputer
Link to Devin run: https://app.devin.ai/sessions/5c615647f58c421dabccc0cdd5b4270c