fix(electron): fail closed on unknown performance completions

This commit is contained in:
4gray committed 2026-07-26 22:37:52 +02:00
1 parent f9e71a6d8d
commit 0579d253c4
5 files changed
+222 -6

No files matched your search

+4 -1
View File
@@ -16,7 +16,10 @@ export const PlaylistActions = createActionGroup({
'Remove Playlist': props<{ playlistId: string }>(),
'Update Playlist Meta': props<{ playlist: PlaylistMeta }>(),
'Update Playlist': props<{
/** Instrumentation-only; never persisted or sent to main/worker IPC. */
/**
* Instrumentation-only; stripped before the DB invoke.
* Never enters the DB worker payload or persisted playlist data.
*/
operationId?: string;
playlist: Playlist;
playlistId: string;
@@ -3,7 +3,7 @@ import { of } from 'rxjs';
import { PlaylistActions } from './actions';
import { persistPlaylistUpdate } from './playlist-update.effect-handler';
describe('PlaylistEffects updatePlaylist', () => {
describe('persistPlaylistUpdate', () => {
it('forwards the refresh operation ID to playlist persistence', () => {
const playlistsService = {
updatePlaylist: jest.fn(() => of(undefined)),
@@ -686,7 +686,10 @@ export interface ElectronBridgeApi {
) => Promise<ElectronBridgePlaylistRow | null>;
dbUpsertAppPlaylist: (
playlist: Playlist,
/** Instrumentation-only; never persisted or sent to main/worker IPC. */
/**
* Instrumentation-only; stripped before the DB invoke.
* Never enters the DB worker payload or persisted playlist data.
*/
operationId?: string
) => Promise<ElectronBridgeResult>;
dbUpsertAppPlaylists: (
@@ -696,7 +699,10 @@ export interface ElectronBridgeApi {
dbGetAppPlaylistMetas: () => Promise<Playlist[]>;
dbGetAppPlaylist: (
playlistId: string,
/** Instrumentation-only; never persisted or sent to main/worker IPC. */
/**
* Instrumentation-only; stripped before the DB invoke.
* Never enters the DB worker payload or persisted playlist data.
*/
operationId?: string
) => Promise<Playlist | null>;
dbGetAppPlaylistFavoriteChannels: (