feature(dashboard): filter on profile properties and support drag n drop for events

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-04-16 11:08:58 +02:00
parent 34769a5d58
commit be3c18b677
11 changed files with 658 additions and 300 deletions

View File

@@ -278,6 +278,17 @@ export const reportSlice = createSlice({
state.dirty = true;
state.funnelWindow = action.payload || undefined;
},
reorderEvents(
state,
action: PayloadAction<{ fromIndex: number; toIndex: number }>,
) {
state.dirty = true;
const { fromIndex, toIndex } = action.payload;
const [movedEvent] = state.events.splice(fromIndex, 1);
if (movedEvent) {
state.events.splice(toIndex, 0, movedEvent);
}
},
},
});
@@ -307,6 +318,7 @@ export const {
changeUnit,
changeFunnelGroup,
changeFunnelWindow,
reorderEvents,
} = reportSlice.actions;
export default reportSlice.reducer;