Skip to content

[Asset Preview] Persist folder preview image size (#3745)#3897

Open
xIrusux wants to merge 3 commits into
2026.xfrom
feature/3745-persist-asset-preview-image-size-2026x
Open

[Asset Preview] Persist folder preview image size (#3745)#3897
xIrusux wants to merge 3 commits into
2026.xfrom
feature/3745-persist-asset-preview-image-size-2026x

Conversation

@xIrusux

@xIrusux xIrusux commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What

Closes #3745. Persist the asset folder Preview tab "Image display" size (Small/Large) so it is remembered per folder and survives logout/login. Previously it was ephemeral useState that reset on every remount.

Changes

  • folder-preview-setting-api-slice.ts — injects assetGetFolderPreviewSetting (query) and assetUpdateFolderPreviewSetting (mutation) against /assets/{folderId}/preview-setting.
  • preview-container.tsx — seeds cardSize from the stored value on mount and persists via the mutation on change.

Backend

Requires the companion API: pimcore/studio-backend-bundle#1953.

Notes

  • Endpoints are hand-injected so they survive @rtk-query/codegen-openapi regeneration; once the client is regenerated from the updated OpenAPI spec, switch to the generated hooks and delete folder-preview-setting-api-slice.ts.
  • Verified with a full tsc --noEmit (exit 0).

🤖 Generated with Claude Code

xIrusux and others added 3 commits July 16, 2026 09:00
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@xIrusux xIrusux linked an issue Jul 16, 2026 that may be closed by this pull request
@xIrusux xIrusux added this to the 2026.3.0 milestone Jul 16, 2026
@xIrusux xIrusux self-assigned this Jul 16, 2026
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.

[Asset Preview] - save image size settings

1 participant