From 02295bef0e4ef5f92614847010a1a7e82e1d1ed3 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 19:43:20 +0200 Subject: [PATCH] Add import audio button and display audio assets in App.tsx --- src/app/App.tsx | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index b50b0c8f..30473d71 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -3333,6 +3333,15 @@ export function App({ store, initialStatusMessage }: AppProps) { > Import Background Image + {assetStatusMessage === null ? null : ( @@ -3442,6 +3451,33 @@ export function App({ store, initialStatusMessage }: AppProps) { )} + +
+
Audio Assets
+ {audioAssetList.length === 0 ? ( +
No imported audio assets yet. Import a playable audio file to register the first audio asset.
+ ) : ( +
+ {audioAssetList.map((asset) => ( +
+
+ {asset.sourceName} + {getProjectAssetKindLabel(asset.kind)} +
+ +
+ {formatByteLength(asset.byteLength)} | {asset.mimeType} +
+
Storage key: {asset.storageKey}
+
{formatAudioAssetSummary(asset)}
+ {asset.metadata.warnings.length === 0 ? null : ( +
{asset.metadata.warnings.join(" | ")}
+ )} +
+ ))} +
+ )} +