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

This reverts commit 81102634c8, reversing
changes made to 5c9b5f7b64.
This commit is contained in:
can1357
2026-07-18 21:15:38 +02:00
parent c3b9e5415d
commit 8a57bcd4f0
13 changed files with 32 additions and 377 deletions
@@ -13,7 +13,6 @@ 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)",
@@ -26,7 +25,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, deferred: 0, running: 0, done: 0, failed: 0, skipped: 0 };
if (!status) return { queued: 0, running: 0, done: 0, failed: 0, skipped: 0 };
return status.issue_event_counts ?? status.event_counts;
};
+1 -2
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" | "deferred" | "running" | "done" | "failed" | "skipped";
export type EventState = "queued" | "running" | "done" | "failed" | "skipped";
export type IssueState =
| "new"
@@ -157,7 +157,6 @@ export const LEVEL_ORDER: Readonly<Record<string, number>> = {
export const EVENT_STATE_ORDER: readonly EventState[] = [
"queued",
"deferred",
"running",
"done",
"failed",
-1
View File
@@ -23,7 +23,6 @@ const BASE_RUNTIME: RuntimeInfo = {
function eventCounts(): Record<EventState, number> {
return {
queued: 0,
deferred: 0,
running: 0,
done: 0,
failed: 0,
-2
View File
@@ -12,7 +12,6 @@
"inflight": [],
"event_counts": {
"queued": 1,
"deferred": 0,
"running": 1,
"done": 2,
"failed": 3,
@@ -20,7 +19,6 @@
},
"issue_event_counts": {
"queued": 1,
"deferred": 0,
"running": 1,
"done": 2,
"failed": 1,