#2 Backup: Enhancement follow-up tasks

Aperta
#48,459 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ilonagl ci sta già lavorando.

Dal 6/5/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Enhancement

Left/missing:

  • Phase 5 — Restore flow. REST bridges for /rewind/to/{timestamp} + poll status. /restore screen mirroring Calypso's. Header Restore button, per-file Restore in info card. Confirmation warning. Granular restore via getCheckList include/exclude. Flip RESTORE_ENABLED in file-info-card.tsx and remove the Coming soon tooltip.
  • Phase 6 — Router remount workaround cleanup. First attempt (data-router swap, createHashRouter + RouterProvider, shipped in 02a15e4377) was reverted in 912e0012b6 — the data-router updates its internal state.location on useNavigate() but RouterProvider's useSyncExternalStore subscribers don't re-render under WP's canary ReactDOM (verified end-to-end on JN: hash updates, Restore URL set, but the Outlet keeps the previous screen mounted). Reverted to the original <HashRouter key={hashKey}> + pushState patch so Restore navigation actually swaps screens. Still want a real fix later — likely a router.subscribe + forceUpdate adapter, or pinning a non-canary ReactDOM.
  • Known WPCOM-side issue on the current JN test backup: rewind/backup/{id}/file/{path}/stream?token=... responds 400 File not found for every file, even though path-info returns valid size/mtime/hash metadata and the signed URL round-trip succeeds. Reproducible with every manifest-path format we tried and with both the overall backup rewind_id and the per-file item.period. The content proxy now surfaces a "Preview unavailable" message instead of spinning forever. Needs re-verification on a non-JN backup before assuming the port is correct — possibly a JN/Atomic-specific backup-storage limitation or a WPCOM backend regression.
  • Hex → --wpds-* token migration in the file-browser SCSS (currently raw hex; first pass guessed token names that weren't registered).
  • Migrate remaining raw hex values in the file-browser SCSS to WordPress Design System (--wpds-*) tokens where valid tokens exist. Currently hex because my first pass guessed token names that weren't registered; stylelint flags unknown DS tokens so we'll get fast feedback.
  • Download-screen analytics — onTrackEvent wired in the file-browser tree only; matching Calypso's event names + properties for the Download form/progress/success/error states is a follow-up.

Small tweaks:

  • Remove Files label from backup view, above the file tree
  • Update notice component to the latest for download backups: Image
  • Illustrations (pull them in from Calypso)

Functionality:

  • File previews (fBCpFRsWEkIP0rx9AXNIJt-fi-6165_56779)
  • Object details (post) (fBCpFRsWEkIP0rx9AXNIJt-fi-6165_57780)
  • Notices for running out space, out of space, and failed backup.

Deferred follow-ups

  • Download-screen tracks events (initiate / complete / error / per-step navigation) — needs Calypso event-name parity.
  • Download screen illustration (Calypso ships an SVG; skipped from the port so far).
  • Settings tab — not yet scaffolded.
  • Activity-log group-counts filter chip — needs /activity/rewindable/count/group bridge.
  • Free date selection in the picker (currently presets only).
  • Once the new page is feature-complete: point the My Jetpack Backup card at the native admin page and drop the duplicate action button (card currently still deep-links to Cloud).
  • Full phpunit coverage for every new bridge (every method × happy/non-200/transport-error path) + a getCheckList-shape test for useFileBrowserState.
Lingua principale
PHP
Stelle
1.9k
Fork
913
Merge medio
1g 18h
PR unite (30g)
809

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Automattic/jetpack

Tutte le issue di Automattic/jetpack

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.