Skip to content

feat: add AI-generated description field to File Manager files#5123

Merged
adrians5j merged 28 commits intofeat/wb-ai-page-generationfrom
feat/wb-ai-page-generation-fm-file-descr
Apr 21, 2026
Merged

feat: add AI-generated description field to File Manager files#5123
adrians5j merged 28 commits intofeat/wb-ai-page-generationfrom
feat/wb-ai-page-generation-fm-file-descr

Conversation

@adrians5j
Copy link
Copy Markdown
Member

@adrians5j adrians5j commented Apr 21, 2026

What changed

A description field has been added to File Manager files. When an image is uploaded, AI automatically generates and populates the description. Users can also view and edit it manually in the file details panel.

Why

Tags were already being auto-generated by AI in a previous PR. Description adds richer context to each file — a short human-readable sentence that's more useful for search and discoverability than tags alone.

How

  • Added description (text, default "") to the FmFile CMS model
  • Propagated through File / FileInput types, CreateFileInput, UpdateFileInput, all three mappers (EntryToFileMapper, FileInputToEntryInputMapper, FileToEntryMapper), and both use cases
  • Updated AiImageTaggingTask to request both tags and description from the AI provider in a single call and save both to the file
  • Added a Description textarea component to the file details panel in app-file-manager
  • Added tests to verify description is saved, updated, and returned correctly via GraphQL

Changelog

AI-Generated Description for File Manager Files

Files uploaded to the File Manager now have a description field. For images, the description is automatically generated by AI on upload. It can also be set and edited manually in the file details panel.

Squash Merge Commit

feat: add AI-generated description field to File Manager files

@adrians5j adrians5j added this to the 6.3.0 milestone Apr 21, 2026
@adrians5j adrians5j changed the base branch from next to feat/wb-ai-page-generation April 21, 2026 12:41
… feat/wb-ai-page-generation-fm-file-descr

# Conflicts:
#	extensions/MyApiRoute.ts
#	packages/api-file-manager/src/index.ts
#	packages/api-file-manager/src/tasks/AiImageTaggingTask.ts
@adrians5j adrians5j changed the title feat/wb-ai-page-generation-fm-file-descr feat: add AI-generated description field to File Manager files Apr 21, 2026
@adrians5j adrians5j merged commit 851df44 into feat/wb-ai-page-generation Apr 21, 2026
15 checks passed
@adrians5j adrians5j deleted the feat/wb-ai-page-generation-fm-file-descr branch April 21, 2026 15:28
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