Skip to content

Refactor filebrowser path resolution#194

Merged
chriswritescode-dev merged 1 commit intomainfrom
refactor-filebrowser-path-resolution
Apr 23, 2026
Merged

Refactor filebrowser path resolution#194
chriswritescode-dev merged 1 commit intomainfrom
refactor-filebrowser-path-resolution

Conversation

@chriswritescode-dev
Copy link
Copy Markdown
Owner

Summary

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

Checklist

  • Code follows project style (no comments, named imports)
  • TypeScript types are properly defined
  • Tests added/updated (80% coverage target)
  • pnpm lint passes locally
  • pnpm typecheck passes locally

- Extract getFileApiUrl helper with options interface for type-safe URL building
- Handle paths containing '.' and '..' segments via query parameters
- Remove duplicate URL construction logic from FileBrowser, FilePreview, and FileTree components
- Add getSpecialRoutePathFromRequest helper in backend for consistent path extraction
@chriswritescode-dev chriswritescode-dev force-pushed the refactor-filebrowser-path-resolution branch from 37181d7 to 943beed Compare April 23, 2026 21:20
@chriswritescode-dev chriswritescode-dev merged commit 7a70901 into main Apr 23, 2026
4 checks passed
@chriswritescode-dev chriswritescode-dev deleted the refactor-filebrowser-path-resolution branch April 28, 2026 16:55
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