improve admin release and deployment safeguards
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-09 09:46:36 +09:00
parent fd590540bc
commit f67017623f
9 changed files with 394 additions and 45 deletions
+4
View File
@@ -1,5 +1,6 @@
export const selectedAppStorageKey = 'studio-admin:selected-app-id';
export const selectedComponentByAppStorageKey = 'studio-admin:selected-component-by-app-id';
export const selectedComponentChangedEventName = 'studio-admin:selected-component-change';
const legacySelectedAppStorageKey = 'studio-selected-app-id';
export function getStoredSelectedAppId() {
@@ -48,4 +49,7 @@ export function setStoredSelectedComponentId(appId: string, componentId: string)
...readSelectedComponentMap(),
[appId]: componentId,
}));
window.dispatchEvent(new CustomEvent(selectedComponentChangedEventName, {
detail: { appId, componentId },
}));
}