@volter/world-console 2.0.10 → 2.0.12
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/client/console.tsx +3 -2
- package/dist/client/console.bundle.js +11 -11
- package/dist/client/console.tsx +3 -2
- package/package.json +3 -3
package/dist/client/console.tsx
CHANGED
|
@@ -1663,7 +1663,7 @@ function Operations({ name, token, admin, canWrite, refused, onRemoved }: { name
|
|
|
1663
1663
|
const [changesets, setChangesets] = useState<Changeset[] | null>(null);
|
|
1664
1664
|
const [note, setNote] = useState<string | null>(null);
|
|
1665
1665
|
const [tokens, setTokens] = useState<{ token: string; readToken: string } | null>(null);
|
|
1666
|
-
type Report = { hours: number; requests: number; twins: Array<{ twin: string; requests: number; byStatus: Record<string, number>; p50Ms: number | null; p95Ms: number | null; topRoutes: Array<{ route: string; requests: number }> }> };
|
|
1666
|
+
type Report = { hours: number; requests: number; journalFailures?: number; twins: Array<{ twin: string; requests: number; byStatus: Record<string, number>; p50Ms: number | null; p95Ms: number | null; topRoutes: Array<{ route: string; requests: number }> }> };
|
|
1667
1667
|
const [report, setReport] = useState<Report | null>(null);
|
|
1668
1668
|
const refresh = useCallback(async () => {
|
|
1669
1669
|
const t = await door(token, `/-/${name}/twins`);
|
|
@@ -1722,7 +1722,8 @@ function Operations({ name, token, admin, canWrite, refused, onRemoved }: { name
|
|
|
1722
1722
|
</table>
|
|
1723
1723
|
)}
|
|
1724
1724
|
<h3>Traffic (last 24 hours)</h3>
|
|
1725
|
-
{report
|
|
1725
|
+
{report && (report.journalFailures ?? 0) > 0 ? <p className="mode" role="alert">{report.journalFailures} request {report.journalFailures === 1 ? 'line was' : 'lines were'} not kept by this World's server since it started (its links, and the twins it runs in its own process): those requests are missing below.</p> : null}
|
|
1726
|
+
{report === null ? <p className="mode">No request report for this world.</p> : report.requests === 0 ? <p className="mode">No requests recorded in the last 24 hours. Recording is kept unless the World runs with <code>VOLTER_TWIN_REQUEST_JOURNAL=0</code>; what the requests changed is always in Activity.</p> : (
|
|
1726
1727
|
<table aria-label="Requests by twin">
|
|
1727
1728
|
<thead><tr><th>vendor</th><th>requests</th><th>by status</th><th>p50</th><th>p95</th><th>top routes</th></tr></thead>
|
|
1728
1729
|
<tbody>{report.twins.map((t) => <tr key={t.twin}><td>{t.twin}</td><td>{t.requests}</td><td>{Object.entries(t.byStatus).map(([k, v]) => `${k}: ${v}`).join(' · ') || '—'}</td><td>{t.p50Ms === null ? '—' : `${t.p50Ms} ms`}</td><td>{t.p95Ms === null ? '—' : `${t.p95Ms} ms`}</td><td>{t.topRoutes.slice(0, 5).map((r) => <div key={r.route}><code>{r.route}</code> <span className="mode">×{r.requests}</span></div>)}</td></tr>)}</tbody>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-console",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "The dashboard of Volter World: a World's pages, the same on a laptop, a self-hosted host and the hosted cloud — mounted by the host at /-/console/. A pure frontend over the World's own doors; its kit (./kit) is the pieces the platform's pages share.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"react-dom": "^19.2.7"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@volter/world-host": "2.0.
|
|
27
|
-
"@volter/world-runtime": "2.0.
|
|
26
|
+
"@volter/world-host": "2.0.32",
|
|
27
|
+
"@volter/world-runtime": "2.0.33",
|
|
28
28
|
"@volter/world-tooling": "0.1.0",
|
|
29
29
|
"@types/bun": "^1.2.20",
|
|
30
30
|
"@types/node": "^24.0.0",
|