Skip to content

fix(github): keep pull request panel content during refresh - #611

Merged
nixuuu merged 1 commit into
devfrom
fix/github-pr-refresh-flash
Nov 13, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/github-pr-refresh-flash

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Overview thread updates cleared every cached PR snapshot with forget(). A panel that had already loaded consequently unmounted its header and sections, showed first-load skeletons, and lost scroll and expansion state. Reconnection after an overview gap did the same.

Use stale-while-revalidate invalidation for these two refresh paths in the shared web/mobile cache event mapper. The existing panel, standalone PR page, checks, timeline/reviews, files, commits and pending review reads keep their mounted content. Account/access-revision boundaries, authoritative home snapshots, computer removal, pairing changes and denied-read handling retain their existing private-data protections.

Fixes: #501

Validation:

  • Reproduced in Chromium on the review machine with a disposable gateway/BFF reading the real itsoltech/canopy PR feat(github): add a compact sticky pull request header #592. Delayed the summary response by 300 ms and sampled animation frames after loaded Timeline content. Before: 21/119 frames showed skeletons, the original row detached, scroll 132 → 0. After: 0/121 skeleton frames, original timeline/row retained, scroll stayed at 132.
  • Added cache-layer coverage for delayed revalidation with concurrent consumers, overview gaps, refresh failure, unchanged thread revisions and a separate uncached PR. Existing revocation/late-response coverage passes. No UI tests added.
  • Final browser matrix: 760 animation-frame samples across Summary with all 11 checks visible, expanded Code/diff, standalone PR page, desktop thread panel and 390 px sheet, light/dark. Triggered thread revision updates, overview gaps, a watch-style snapshot/page invalidation, and manual refresh. Zero skeleton frames or section detachments; scroll and the expanded file/check-list state remained unchanged. Review browser, processes, containers and checkout were cleaned up.
  • Audited web/mobile section cache keys, pagination invalidations and retained visited tabs. Native mobile uses the same changed OverviewInvalidation; mobile typecheck passes, but no native UI/device run was performed. Live job-detail reads and avatar requests returned existing errors in the disposable setup; successful job/log refresh is not claimed by the browser evidence.
  • All requested handover checks passed with nice -n 10: dependency installation, gen:check, full typecheck (including mobile), lint, formatting, format check, full check:tmp and web build. Full tests: 2678 passed, 166 opt-in/skipped, zero failed, 34,947 assertions across 501 files; nothing left in the tests' private temp directory. Final-head CI static checks, all four test shards, web/Linux builds and commitlint are green.

Copy audit (§8): no user-facing text changes. The existing loading, error and Retry wording remains in use.

@nixuuu
nixuuu marked this pull request as ready for review November 13, 2026 08:50
@nixuuu
nixuuu merged commit 7c91069 into dev Nov 13, 2026
12 checks passed
@nixuuu
nixuuu deleted the fix/github-pr-refresh-flash branch November 13, 2026 08:52
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Projekt workspace'u — zaakceptowany układ v2

Podgląd plików przechodzi z modala do zakładek jednego wątku. Sygnet
projektu, skracany tytuł i karty dzielą rząd nagłówka, z aktywną kartą
zawsze widoczną i przełącznikiem overflow. Prawy rail obsługuje jeden
minimalny moduł. Bez modułu podsumowanie jest dokowane i widoczne; z
modułem jest zamkniętą domyślnie kartą pływającą. Na wąskich ekranach
obie powierzchnie używają arkuszy.

Użytkownik zaakceptował układ v2 i udzielił jawnej zgody na
implementację. Przyjęte decyzje: jeden zastępowalny czysty preview,
utrwalany przez Edit/Keep tab/dwuklik, zakres cwd/worktree wątku i
mobilna edycja natywna bez kolorów podczas pisania (kolory w viewerze i
Preview changes). Usunięto sekcję otwartych decyzji.

Dokument uwzględnia jeden przycisk menu wiersza (#608), zachowanie
treści PR przy odświeżaniu (#611), bounded warming/cache transkryptu
(#622/#623/#629), niezależne sortowanie sidebara (#617/#619/#626),
kompaktowy tekst stanów preview (#634), poprawne stany ChoiceControl
(#637), kolejkę kontynuacji (#630) i podsumowania jej wierszy (#633).
Nie dodaje pełnych snapshotów ani prefetch plików podczas warming.

Siedem kompletnych warstw będzie osobnym stosem z podstawą dev.
Wszystkie PR implementacyjne pozostaną draftami do ukończenia i
weryfikacji całości oraz wspólnego scalenia przez maintenera. Migracje
muszą zachować monotoniczność względem aktualnego dev. Dokumentacyjny PR
po zielonym CI jest gotowy do scalenia przez maintenera.

## Weryfikacja i ograniczenia

- Rebase na dev `1626a3e6b05494e7aec77942bd818950468a3b58` bez
konfliktów.
- `nice -n 10 bun run format` i `nice -n 10 bun run format:check`
przeszły. Konfiguracja pomija Markdown; dokument sprawdzono ręcznie.
`git diff --check` bez błędów po usunięciu pustej linii końcowej.
- Brak zmian kodu aplikacji i kontraktów; testy wykonania oraz pomiary
budżetów należą do stosu implementacyjnego.
- Samodzielna makieta v2 poza repozytorium, 32 435 bajtów, przezroczyste
html/body, trzy stany × trzy szerokości × dwa motywy. Poprzednio
wyrenderowana i obejrzana bez błędów konsoli.

## Copy audit (§8)

Brak zmian produkcyjnych etykiet. Projekt zachowuje `Thread`, `Keep
tab`, `Thread details`, `Open in tab`, `Collapse panel` / `Show panel`
oraz dostępne nazwy obu kontekstów `+`. Zachowuje jeden przycisk menu
wiersza i kompaktowy tekst statusów pliku. Krótkie i długie etykiety są
pokazane w makiecie; rzeczywiste powierzchnie i stany będą audytowane w
każdej warstwie UI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant