You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -211,9 +247,73 @@ function renderPaletteStatus(sprites) {
211
247
});
212
248
if(referencedKeys.size===0){
213
249
setText(elements.paletteStatus,"No Palette/Colors references in current Sprites records.");
250
+
setText(elements.paletteSelectionStatus,"Palette/Colors selection unavailable: no API-backed Palette/Colors key records are attached to Sprites yet.");
214
251
return;
215
252
}
216
253
setText(elements.paletteStatus,`${referencedKeys.size} Palette/Colors key reference${referencedKeys.size===1 ? "" : "s"} surfaced from API records.`);
254
+
setText(elements.paletteSelectionStatus,"Palette/Colors key references are display-only until the Palette/Colors selection API is available.");
255
+
}
256
+
257
+
functionrenderPreviewPanel(sprite){
258
+
if(!elements.previewPanel){
259
+
return;
260
+
}
261
+
elements.previewPanel.replaceChildren();
262
+
if(!sprite){
263
+
elements.previewPanel.append(createParagraph("No sprite selected for preview.","status"));
setText(elements.metadata,count>0 ? "Select a sprite row to review its metadata." : "No sprite metadata available yet.");
338
436
setActionStatus("Ready for API-backed edits.");
437
+
setText(elements.storageStatus,"Binary upload/storage import is not configured for Sprites yet. Existing source and storage metadata can be reviewed and replaced through the API.");
438
+
setText(elements.replaceStatus,"Select a sprite to replace source metadata or duplicate with a server-owned key.");
- PASS: PR013 was created as a stacked branch from `PR_26177_CHARLIE_012-sprites-library-crud`.
8
+
- PASS: Stacking is required because preview/metadata/duplicate/replace controls build on the PR012 library CRUD shell.
9
+
- PASS: Current work branch is `PR_26177_CHARLIE_013-sprites-import-preview-metadata-palette`.
10
+
- PASS: Branch contains only the Sprites import/preview/metadata/Palette PR scope relative to PR012.
11
+
- PASS: No merge was performed.
12
+
- PASS: No `start_of_day` path is changed.
13
+
14
+
## Notes
15
+
16
+
The current API supports metadata/source/storage reference fields but does not provide binary upload/storage object creation. This PR therefore exposes storage import as unavailable and documents the follow-up instead of adding fake upload behavior.
- Verified selected sprite metadata is displayed from API response fields only.
8
+
- Verified preview image uses an API-provided local source path when present.
9
+
- Verified missing preview source displays an unavailable state.
10
+
- Verified duplicate omits browser-generated keys and posts to the create API.
11
+
- Verified replace metadata posts to the update API for the selected sprite key.
12
+
- Verified Palette/Colors keys are displayed as references only.
13
+
- Verified Palette/Colors selection is visibly unavailable until an API-backed selector exists.
14
+
- Verified binary upload/storage import is visibly unavailable rather than simulated.
15
+
16
+
## Follow-Up
17
+
18
+
Add real binary upload/storage import only when a storage API contract exists for Sprites. Add Palette/Colors selector only when Palette/Colors exposes an API-backed key selection contract.
0 commit comments