Skip to content

Add content file picker for loading existing files - #13

Merged
juri1212 merged 1 commit into
mainfrom
t3code/file-selection-load-content
Jul 13, 2026
Merged

Add content file picker for loading existing files#13
juri1212 merged 1 commit into
mainfrom
t3code/file-selection-load-content

Conversation

@juri1212

Copy link
Copy Markdown
Owner

Summary

  • Add an Existing file selector in the frontend to browse files under content/ and load their current contents into the editor.
  • Make the filename field read-only and enforce that saves stay within content/.
  • Update the UI styles to support the new <select> control.
  • Narrow the CMS content roots to content/** and remove the sample content/welcome.md file.
  • Remove the repository CI and Dependabot configuration files included in this branch.

Testing

  • Not run in this environment.
  • Verified the frontend flow in code: file list loads from /api/files, selecting a file populates the editor fields, and save is blocked unless the path starts with content/.
  • Checked the updated CMS config points roots at content/** only.

- Restrict CMS roots to `content/`
- Let editors browse and load existing content files before saving
- Prevent saving paths outside `content/`
@juri1212
juri1212 merged commit c45b542 into main Jul 13, 2026
2 checks passed
@juri1212
juri1212 deleted the t3code/file-selection-load-content branch July 13, 2026 20:38
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.

1 participant