Commit Graph

33 Commits

Author SHA1 Message Date
911c1852d5 feat: support choose tools 2026-01-21 15:05:58 +08:00
2650ceb0a6 feat: support picker vars files ui in editor 2026-01-20 14:01:30 +08:00
yyh
bc9ce23fdc refactor(skill): rename components for semantic clarity
Rename components and reorganize directory structure:
- skill-doc-editor.tsx → file-content-panel.tsx (handles edit/preview/download)
- editor-area.tsx → content-area.tsx
- editor-body.tsx → content-body.tsx
- editor-tabs.tsx → file-tabs.tsx
- editor-tab-item.tsx → file-tab-item.tsx

Create viewer/ directory for non-editor components:
- Move media-file-preview.tsx from editor/ to viewer/
- Move unsupported-file-download.tsx from editor/ to viewer/

This clarifies the distinction between:
- editor/: actual file editors (code, markdown)
- viewer/: preview and download components (media, unsupported files)
2026-01-19 23:50:08 +08:00
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
49effca35d fix: auto default 2026-01-19 18:41:05 +08:00
2afc4704ad chore: add limit to tool param auto 2026-01-19 18:35:57 +08:00
83c458d2fe chore: change tool setting copywriting and ts promble 2026-01-19 18:27:33 +08:00
6643569efc fix: tool can not auth modal 2026-01-19 18:06:23 +08:00
4b67008dba fix: not blank not render tool correct 2026-01-19 17:01:32 +08:00
f4b683aa2f fix: no blank not render file write 2026-01-19 17:01:32 +08:00
bd070857ed fix: fold indent style 2026-01-19 16:34:46 +08:00
eae82b1085 chore: remove sync from left panel tree 2026-01-19 16:11:10 +08:00
f9fd234cf8 feat: support expand the selected file struct 2026-01-19 15:38:43 +08:00
1dfee05b7e fix: view file popup place error 2026-01-19 15:25:57 +08:00
3a775fc2bf feat: support choose folders and files 2026-01-19 14:47:57 +08:00
yyh
02fcf33067 fix(skill-editor): remove unnecessary store subscriptions in tool-picker-block
Move activeTabId and fileMetadata reads from selector subscriptions to
getState() calls inside the callback. These values were only used in the
insertTools callback, not for rendering, causing unnecessary re-renders
when they changed.
2026-01-17 21:47:31 +08:00
d542a74733 feat: panel ui 2026-01-16 18:39:13 +08:00
8b42435f7a feat: support set default value when choose tool 2026-01-16 18:16:01 +08:00
3147e850be fix: click tool not show current 2026-01-16 17:52:40 +08:00
0b33381efb feat: support save settings 2026-01-16 17:44:40 +08:00
148f92f92d fix: allow all fileds and not allow model set to auto 2026-01-16 17:20:11 +08:00
f79df6982d feat: support setting show on click 2026-01-16 16:58:58 +08:00
649283df09 fix: not popup and use new setting 2026-01-16 15:09:25 +08:00
eb4f57fb8b chore: split tool config 2026-01-16 14:39:33 +08:00
9492eda5ef chore: tool format and render problem 2026-01-16 13:50:20 +08:00
64ddcc8960 chore: fix choose provder id 2026-01-16 11:31:03 +08:00
3dea5adf5c fix: change caused problem 2026-01-16 11:00:56 +08:00
9ffdad6465 fix: click tool inner caused blur 2026-01-15 17:58:38 +08:00
195cd2c898 chore: show line numbers to skill editor 2026-01-15 17:21:12 +08:00
d650cde323 feat: skill editor choose tool 2026-01-15 17:16:01 +08:00
e91fb94d0e chore: palceholder 2026-01-15 16:08:26 +08:00
4cfc135652 feat: prompt editor support line num 2026-01-15 15:56:49 +08:00
2fb8883918 feat: split different filetypes 2026-01-15 14:53:00 +08:00