Merge pull request #3541 from fosrl/feat/test-alert-button

Feat: test alert rules
This commit is contained in:
Milo Schwartz
2026-08-19 10:33:16 -04:00
committed by GitHub
14 changed files with 574 additions and 74 deletions
+5
View File
@@ -0,0 +1,5 @@
export function getRandomItemInArray<T>(array: T[]) {
// Source - https://stackoverflow.com/a/4550514
const randomElement = array[Math.floor(Math.random() * array.length)];
return randomElement;
}
+1 -1
View File
@@ -1757,7 +1757,7 @@ export const approvalQueries = {
},
refetchInterval: (query) => {
if (query.state.data) {
return durationToMs(30, "seconds");
return durationToMs(1.5, "minutes");
}
return false;
}