@nanocollective/roster 0.1.0-alpha.32 → 0.1.0-alpha.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -1
- package/package.json +1 -1
- package/templates/portal/js/views/runs.js +5 -0
package/dist/cli.js
CHANGED
|
@@ -2658,7 +2658,8 @@ async function staffRuns(brain, handle, days = 30) {
|
|
|
2658
2658
|
"--created",
|
|
2659
2659
|
`>=${since}`,
|
|
2660
2660
|
"--limit",
|
|
2661
|
-
|
|
2661
|
+
// Skipped mentions (the gate saying no) count towards the limit, and there are hundreds.
|
|
2662
|
+
kind === "mention" ? "500" : "100",
|
|
2662
2663
|
"--json",
|
|
2663
2664
|
"databaseId,conclusion,status,createdAt,updatedAt,url"
|
|
2664
2665
|
]).then((res) => ({ kind, res }))
|
package/package.json
CHANGED
|
@@ -29,6 +29,11 @@ export function viewRuns(m) {
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
paint(m, S.runs);
|
|
32
|
+
/* Kept for the session, it could be days old: a tab opened during a rate limit went on
|
|
33
|
+
showing a two-week-old list. Anything older than a few minutes is asked for again. */
|
|
34
|
+
// Only a read with a time on it can be old, and only one re-read is asked for at a time.
|
|
35
|
+
const at = S.runs.fetchedAt ? new Date(S.runs.fetchedAt).getTime() : 0;
|
|
36
|
+
if (at && Date.now() - at > 5 * 60_000 && !asking) load(true);
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
let asking = false;
|