Skip to content

File type app explorer#584

Merged
kentcdodds merged 5 commits intomainfrom
cursor/file-type-app-explorer-efe7
Mar 7, 2026
Merged

File type app explorer#584
kentcdodds merged 5 commits intomainfrom
cursor/file-type-app-explorer-efe7

Conversation

@kentcdodds
Copy link
Member

Add a new "file" app type that renders a file explorer with rich file previews for apps without a package.json or index.* entry.

This provides a default browsing experience for directories that don't conform to standard app structures, allowing users to explore their contents directly within the workshop environment. It includes specific rendering for common file types (code, markdown, image, video) and respects .gitignore rules, while also excluding README.mdx.


Open in Web Open in Cursor 

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@cursor
Copy link
Contributor

cursor bot commented Mar 7, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@nx-cloud
Copy link

nx-cloud bot commented Mar 7, 2026

View your CI Pipeline Execution ↗ for commit 2a42d74

Command Status Duration Result
nx run-many --target typecheck ✅ Succeeded 18s View ↗
nx run-many --target build ✅ Succeeded <1s View ↗
nx lint ✅ Succeeded 35s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-07 15:42:42 UTC

cursoragent and others added 3 commits March 7, 2026 01:19
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds kentcdodds marked this pull request as ready for review March 7, 2026 15:33
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Bugbot Autofix prepared fixes for all 3 issues found in the latest run.

  • ✅ Fixed: Unused dependencies added to package.json
    • Removed unused react-markdown and remark-gfm from workshop-app dependencies and updated the lockfile.
  • ✅ Fixed: SVG in both image and text extension sets
    • Removed .svg from the text extension set so SVGs are consistently treated as images.
  • ✅ Fixed: Path traversal via query parameter in file-preview
    • Added a resolved-path containment check so file previews only read files within the app roots.

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds kentcdodds merged commit 05dea95 into main Mar 7, 2026
10 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