dify/web/app/components/workflow/skill
yyh cab33d440b
refactor(skill): remove Office file special handling, merge into unsupported
Remove the Office file placeholder that only showed "Preview will be
supported in a future update" without any download option. Office files
(pdf, doc, docx, xls, xlsx, ppt, pptx) now fall through to the generic
"unsupported file" handler which provides a download button.

Removed:
- OfficeFilePlaceholder component
- isOfficeFile function and OFFICE_EXTENSIONS constant
- isOffice flag from useFileTypeInfo hook
- i18n keys for officePlaceholder

This simplifies the file type handling to just three categories:
- Editable: markdown, code, text files → editor
- Previewable: image, video files → media preview
- Everything else: download button
2026-01-19 23:39:32 +08:00
..
editor refactor(skill): remove Office file special handling, merge into unsupported 2026-01-19 23:39:32 +08:00
file-tree refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
hooks refactor(skill): remove Office file special handling, merge into unsupported 2026-01-19 23:39:32 +08:00
utils refactor(skill): remove Office file special handling, merge into unsupported 2026-01-19 23:39:32 +08:00
constants.ts refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
editor-area.tsx fix: css 2026-01-15 16:14:51 +08:00
editor-body.tsx fix: css 2026-01-15 16:14:51 +08:00
editor-tab-item.tsx feat(skill): implement VS Code-style preview/pinned tab management 2026-01-16 11:20:49 +08:00
editor-tabs.tsx feat: support save settings 2026-01-16 17:44:40 +08:00
main.tsx feat(skill): implement file tree search with debounced filtering 2026-01-16 14:44:44 +08:00
sidebar-search-add.tsx refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
sidebar.tsx chore: remove useless props 2026-01-15 11:24:59 +08:00
skill-doc-editor.tsx refactor(skill): remove Office file special handling, merge into unsupported 2026-01-19 23:39:32 +08:00
skill-page-layout.tsx chore: remove useless props 2026-01-15 11:24:59 +08:00
type.ts refactor(skill-editor): extract hooks and utils into separate directories 2026-01-15 16:00:42 +08:00