Merge PR #5886: fix(robomp): defer rate-limited submissions (@roboomp)

This commit is contained in:
can1357
2026-07-18 19:57:45 +02:00
13 changed files with 377 additions and 32 deletions
@@ -13,6 +13,7 @@ function relativeAgo(ms: number): string {
const STATE_TONE: Record<string, string> = {
queued: "var(--color-info)",
deferred: "var(--color-ink-300)",
running: "var(--color-warn)",
done: "var(--color-ok)",
failed: "var(--color-err)",
@@ -25,7 +26,7 @@ export function Vitals(): JSX.Element {
// issue_event_counts ?? event_counts — preserves the Stats.tsx accessor + title.
const counts = (): Record<string, number> => {
const status = statusResource();
if (!status) return { queued: 0, running: 0, done: 0, failed: 0, skipped: 0 };
if (!status) return { queued: 0, deferred: 0, running: 0, done: 0, failed: 0, skipped: 0 };
return status.issue_event_counts ?? status.event_counts;
};
+2 -1
View File
@@ -2,7 +2,7 @@
// purpose: anything `unknown` here is something the backend explicitly does
// not promise to keep stable.
export type EventState = "queued" | "running" | "done" | "failed" | "skipped";
export type EventState = "queued" | "deferred" | "running" | "done" | "failed" | "skipped";
export type IssueState =
| "new"
@@ -157,6 +157,7 @@ export const LEVEL_ORDER: Readonly<Record<string, number>> = {
export const EVENT_STATE_ORDER: readonly EventState[] = [
"queued",
"deferred",
"running",
"done",
"failed",
+1
View File
@@ -23,6 +23,7 @@ const BASE_RUNTIME: RuntimeInfo = {
function eventCounts(): Record<EventState, number> {
return {
queued: 0,
deferred: 0,
running: 0,
done: 0,
failed: 0,
+2
View File
@@ -12,6 +12,7 @@
"inflight": [],
"event_counts": {
"queued": 1,
"deferred": 0,
"running": 1,
"done": 2,
"failed": 3,
@@ -19,6 +20,7 @@
},
"issue_event_counts": {
"queued": 1,
"deferred": 0,
"running": 1,
"done": 2,
"failed": 1,