Skip to content

refactor: use file manager for SEO social preview image#75

Merged
liamwalder merged 2 commits intodevelopfrom
feat/seo-image-from-file-manager
Mar 24, 2026
Merged

refactor: use file manager for SEO social preview image#75
liamwalder merged 2 commits intodevelopfrom
feat/seo-image-from-file-manager

Conversation

@tristan-mouchet
Copy link
Copy Markdown
Collaborator

Summary

Replace the inline file upload for the SEO social preview image in page
settings with the existing file manager, so users pick from their asset
library instead of uploading on the fly.

Changes

  • Replace hidden file input and upload flow with openFileManager from the editor store
  • Remove pendingImageFile, imagePreviewUrl, uploadedAssetCache state and all related cleanup logic
  • Remove asset upload/deletion during save — selected assets are shared and managed through the file manager
  • Rename "Upload image" button to "Choose image"
  • Remove unused uploadFileApi, deleteAssetApi, useAssetsStore imports

Test plan

  • Open page settings > SEO tab > click "Choose image" — file manager opens filtered to images
  • Select an image — preview displays in the social preview area
  • Click "Replace" — filr reopens with current asset highlighted
  • Click "Remove" — image clears
  • Save and reopen — selected image persists
  • Existing pages with previously uploaded SEO images still display correctly
  • Dynamic pages: "Select field" option still works alongside "Choose image"

@tristan-mouchet tristan-mouchet self-assigned this Mar 23, 2026
@tristan-mouchet tristan-mouchet linked an issue Mar 23, 2026 that may be closed by this pull request
@liamwalder liamwalder self-assigned this Mar 24, 2026
@liamwalder liamwalder merged commit d774916 into develop Mar 24, 2026
2 checks passed
@liamwalder liamwalder deleted the feat/seo-image-from-file-manager branch March 24, 2026 07:36
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.

feat: OpenGraph image from File manager

2 participants