Remember the interval and the pinned rows across reloads (closes #212)
check / check (push) Successful in 4m26s
check / check (push) Successful in 4m26s
The page keeps the interval and the names of the pinned WAN hosts in localStorage and starts with them on the next load. A browser with no usable storage, or a saved value the page cannot use, starts at 3s with datavi.be pinned. The interval menu's options are now built from one list, so the saved interval can be marked selected. Model: opus-5-5
This commit is contained in:
1 parent
dd119a0e46
commit
1e85a210f5
3 files changed
+175
-13
No files matched your search
@@ -60,7 +60,7 @@ whether the page is running or paused.
|
||||
|
||||
The page checks 26 hosts on the internet, the WAN hosts:
|
||||
|
||||
- `datavi.be`, pinned to the top at start
|
||||
- `datavi.be`, pinned to the top by default
|
||||
- the Anthropic API and the OpenAI API
|
||||
- the AWS Console, the Google Cloud Console and Microsoft Azure
|
||||
- Cloudflare, Fastly, Akamai, Google, GitHub and Backblaze B2
|
||||
@@ -130,7 +130,7 @@ top, and the figure still shows its real value.
|
||||
|
||||
From time to time, the page sorts the WAN rows by their latest latency: fastest
|
||||
first, failed last. The pin button at the left of a row keeps the row at the
|
||||
top; pinned rows are sorted by name. `datavi.be` is pinned at start.
|
||||
top; pinned rows are sorted by name. `datavi.be` is pinned until you unpin it.
|
||||
|
||||
`Pause` stops the checks: the graphs keep scrolling with a gap for each paused
|
||||
round, and the figures and dots turn gray. The `Interval` menu sets the time
|
||||
@@ -138,6 +138,10 @@ between rounds: 1, 2, 3, 5, 10, 15, 30 or 60 seconds. Changing it clears the
|
||||
history and starts a new round at once. The `Debug log` checkbox in the footer
|
||||
opens a panel with the page's last 1000 log lines.
|
||||
|
||||
The page keeps the interval and the pinned rows in the browser's `localStorage`,
|
||||
so a reload starts with them. Each browser keeps its own. A browser with no
|
||||
usable storage starts at 3 seconds with `datavi.be` pinned.
|
||||
|
||||
## Reporting
|
||||
|
||||
Every 60 seconds the page posts its undelivered samples as a report to
|
||||
@@ -380,6 +384,8 @@ The page is built with Vite and Tailwind CSS v4. All its code is in
|
||||
method `HEAD`.
|
||||
- `HostState` and `AppState`: one host's history and status, and the whole
|
||||
page's state.
|
||||
- `savedInterval`, `savedPinnedNames`, `saveInterval` and `savePinnedNames`:
|
||||
read and write the interval and the pinned WAN hosts in `localStorage`.
|
||||
- `measureLatency`: one check. `tick`: one round, which checks every host in
|
||||
parallel. It draws each row as soon as its check ends, and with a WAN host's
|
||||
row also the summary and the health box.
|
||||
|
||||
Reference in new issue
Block a user