Interfaccia: correzioni della revisione (web-1, web-2, web-3, web-4, web-5, web-6, web-7, web-9, web-10, web-11, web-12, web-13, web-14, web-15)
Il browser preso dalle pagine Browser e Collegamento si restituisce uscendo senza «Ho finito» (anche chiudendo o ricaricando la scheda); dopo «Ho finito» la vista remota si chiude e non si riprende il browser. Vista remota: AltGr/Option come testo, pulsante rilasciato anche fuori dalla vista. Mosaico e scheda account senza risposte vecchie né viste sovrascritte; nuovi elementi dopo la libreria vuota; intestazione sempre aggiornata. Indietro del browser con la richiesta delle modifiche non salvate; nulla resta registrato da una pagina lasciata mentre caricava; maniglie della fascia trascinabili. «Da una data» come giorno locale; niente «@null» nel riquadro di stato; orari futuri dei fermi «verso le». Prove nel browser vero (InterfaceTests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
27 files changed
+1365
-59
No files matched your search
@@ -53,15 +53,18 @@ function headers(extra) {
|
||||
|
||||
/**
|
||||
* Calls the API and returns the JSON answer. Errors become ApiError with the message to show.
|
||||
* options: method, body (object → JSON), signal, raw (returns the Response).
|
||||
* options: method, body (object → JSON), signal, raw (returns the Response), keepalive (the request outlives the
|
||||
* page: closing or reloading the tab). A keepalive fetch, unlike a beacon, keeps the Origin of the interface that the
|
||||
* server checks on every command (spec §13.1; with «Referrer-Policy: no-referrer» a beacon would say «null»).
|
||||
*/
|
||||
export async function api(path, options = {}) {
|
||||
const { method = 'GET', body, signal, raw = false } = options;
|
||||
const { method = 'GET', body, signal, raw = false, keepalive = false } = options;
|
||||
let response;
|
||||
try {
|
||||
response = await fetch(path, {
|
||||
method,
|
||||
signal,
|
||||
keepalive,
|
||||
credentials: 'same-origin',
|
||||
headers: headers(body !== undefined ? { 'Content-Type': 'application/json' } : {}),
|
||||
body: body !== undefined ? JSON.stringify(body) : undefined,
|
||||
|
||||
Reference in new issue
Block a user