FN-6972: add browser-native file previews
Files modal now renders common media and PDF files with browser-native previews while preserving editor flows for text and unknown binaries.
- Add shared extension-based preview classification for images, videos, audio, and PDFs.
- Render preview-only files from workspace-safe download URLs and skip binary editor loading/saving actions for those selections.
- Update preview styling, localized labels, documentation, tests, and release notes.
Files changed:
.changeset/fn-6972-browser-file-previews.md | 7 +
docs/dashboard-guide.md | 1 +
packages/dashboard/app/components/FileBrowser.css | 39 ++-
.../dashboard/app/components/FileBrowserModal.tsx | 107 +++++---
.../components/__tests__/FileBrowserModal.test.tsx | 302 ++++++++++-----------
.../app/utils/__tests__/file-preview-kind.test.ts | 40 +++
packages/dashboard/app/utils/file-preview-kind.ts | 70 +++++
packages/i18n/locales/en/app.json | 4 +-
packages/i18n/locales/es/app.json | 4 +-
packages/i18n/locales/fr/app.json | 4 +-
packages/i18n/locales/ko/app.json | 4 +-
packages/i18n/locales/zh-CN/app.json | 4 +-
packages/i18n/locales/zh-TW/app.json | 4 +-
13 files changed, 381 insertions(+), 209 deletions(-)
Fusion-Task-Id: FN-6972
Fusion-Task-Lineage: 04b07def-e490-43f7-8b92-39ca704b20b6