feat(server): import application logo into file storage at install (#22437)
Installed apps stored the logo as the manifest's relative path but never imported the file, so the public-assets URL 404'd and logos went missing in the UI for npm/tarball sources. Import the logo (best-effort — a declared but unshipped logo is skipped, not fatal) and record it as a first-class logoFileId on the application so it can be served reliably. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/twentyhq/twenty/pull/22437?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This commit is contained in:
+1
@@ -26,6 +26,7 @@ const MOCK_FLAT_APPLICATION: FlatApplication = {
|
||||
name: 'Workspace Custom Application',
|
||||
description: null,
|
||||
logo: null,
|
||||
logoFileId: null,
|
||||
workspaceId: 'workspace-id',
|
||||
version: null,
|
||||
sourceType: ApplicationRegistrationSourceType.LOCAL,
|
||||
|
||||
+1
@@ -21,6 +21,7 @@ const MOCK_FLAT_APPLICATION: FlatApplication = {
|
||||
name: 'Workspace Custom Application',
|
||||
description: null,
|
||||
logo: null,
|
||||
logoFileId: null,
|
||||
version: null,
|
||||
workspaceId: 'workspace-id',
|
||||
sourceType: ApplicationRegistrationSourceType.LOCAL,
|
||||
|
||||
Reference in New Issue
Block a user