Repository navigation
fix(web): FG-8 app shell, resilience, hosting and mobile chrome - #152
Merged
Merged
Conversation
|
Warning Review limit reachedNext included review available in 27 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (78)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PastaPastaPasta
force-pushed
the
fix/fg8-shell-resilience
branch
from
September 29, 2026 16:34
78fb86c to
c56c0eb
Compare
PastaPastaPasta
force-pushed
the
fix/fg8-shell-resilience
branch
from
September 29, 2026 17:11
1a69225 to
ea55447
Compare
…L-10) The browse reader tags every pack-source rejection as a source failure and reports an object failed only when bytes arrived and were wrong (a hash mismatch, undecodable bytes, or a sealed pack that fails authentication). A read that never got its bytes throws with no verdict, so the Verification card no longer claims tampering after going offline. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… back (L-10, L-56) A read that nothing answered shows a plain offline or unreachable state with Try now and the raw error behind Details, and retries by itself: on the online event, else with backoff. A browse read that got no bytes re-reads the view once the connection returns, and a mirror is not marked dead while the browser is offline. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…this session's (L-66, L-81) The default theme is system (prefers-color-scheme) and an explicit choice is kept; the toggle cycles system, dark, light. The Verification summary reads 'N objects checked this session', and the hosting note names the host that served the code (GitHub Pages behind Cloudflare on forge.dashhq.org). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…name chips and working short links (L-55, L-57, L-58, L-59, L-60, L-61, L-82) document.title follows the route (Issues · owner/name, a file at a ref, a profile), with sealed private paths left out. The repo header's owner/name is the page's h1 where the view has none. Below lg a menu button opens a drawer with Explore, New repository, the mirror guide, Notifications and Settings. Identity chips stay on one line and ellipsize; the PR tabs get the repo tabs' scroll fades. Repo not found lists repos with that name, mirrors of github.com/<owner>/<name> first. Copy link keeps a ?repo= pin on the short URL, and owners written as full DPNS names (alice.dash) expand. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…t figure matches the form (L-62, L-73) A signed-out Star, Watch, Fork, Follow, New issue, comment, new PR or new repo opens 'Sign in to star this repo' with the write's previewed cost. The stale 62M 'per issue or push' figure is replaced by the New issue form's own preview for a newcomer (about 0.0012 DASH) and the measured push range. The wallet tile is dimmed on networks where released wallets cannot answer, and the new-issue subtitle shows the owner's DPNS name rather than a raw id. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…, clearer counts (L-84, L-85, L-86) The About card links a mirror's source repository (as the owner or a maintainer recorded it) and says when a ref last moved. The storage badge's tooltip is plain language. A profile's own repos are read with their star and issue counts in one composite and no longer repeat the owner's chip; card issue counts say they are totals. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…tead (L-11) install.sh tells a missing release (HTTP 404, or a missing file:// path) from a network failure: with no release it says none is published, names a pinned version that is not, and prints the cargo install route. INSTALL.md opens with the same note, Windows included. The web install sheet leads with building from source and marks the prebuilt routes as needing a release; it also names dg completions correctly. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…6 and the group) A page whose code could not be fetched because the connection dropped (a ChunkLoadError) showed Next's blank 'Application error'. app/error.tsx shows the plain offline state and reloads the page once the browser is back online. New Playwright specs cover offline mid-load and offline navigation recovery, titles and the h1, Repo not found suggestions, Copy link, the action-aware sign-in sheet, and on phones the menu drawer, one-line chips and the offline state. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…the browser's error page (L-56) A link to a page this tab has no data for cannot render offline, and Next falls back to a full page load, which leaves the tab on the browser's 'no internet' page. The click is kept, a toast says the page opens when the connection is back, and it does. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
One isIdentityId (lib/utils) and one bareRoute; online status in lib/online with a useSyncExternalStore hook; reconnect internals private, with the backoff tested; the read-recovery hook keyed on the handled count; shared RetryNowButton and ErrorDetails; the drawer's external link inline; the page title reads Next's params directly; short-URL canonical routes merged; suggestions carry exact; the unreachable classifier imported from its own module. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… retry (FG-8 review) The reader reports a transport failure only for errors that say nothing answered (marked by the source, a network or node error, or offline); bytes that arrived and were wrong stay a failure; anything else gets no verdict and no recovery. A range past an unauthenticated sealed header is corrupt bytes. A mirror is marked dead only when its host answered. Automatic re-reads re-run the view without dropping the browse context, stop after three that met another outage (then Try again), start afresh per repo, and back off with jitter from one debounced outage note per burst. Error-boundary reloads are capped at two per five minutes, online only for a chunk that failed to load; app/global-error.tsx covers the root layout. Offline navigation lets same-page anchors through and strips the base path. The rail reads the mirror source from the description only and says 'last updated'. Private repos' titles are the name alone. install.sh's probe times out after 20 s and names DASH_FORGE_VERSION for a pre-release. The inbox keeps the plain repo read. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…-line owner, tab fades) After rebasing on the repo shell header (#151): while the SDK loads, owner/name is the page's h1 and truncates on a phone, the owner label comes from the shared ownerLabel, and the tabs use the shared TabStrip. The rail's mirror provenance uses the byline Time element. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… banner's does; pin the OS theme in the prehydration check nr-3 finds the retry by 'Try again' wherever the outage surfaces, and the prehydration check assumed the old dark default: it now pins the OS to dark and also checks that no theme was stored. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
force-pushed
the
fix/fg8-shell-resilience
branch
from
September 29, 2026 17:34
ea55447 to
0f08f04
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix group FG-8 from the dash showcase real-browser QA ledger (
dash-forge-qa/evidence/dash-ux/LEDGER.md): app shell, resilience, hosting and mobile chrome. Fixes L-10, L-11, L-55, L-56, L-57, L-58, L-59, L-60, L-61, L-62, L-66, L-73, L-81, L-82, L-84, L-85, L-86. (L-54 belongs to the perf agent; L-87 is a Cloudflare dashboard setting, see below.)L-10 (S2): a network drop is no longer a tampering alarm
BrowseReader(lib/browse/reader.ts) now classifies every failed read three ways (ReadFailure):FetchFailurewith no HTTP answer, or aPackUnavailableErrorthat isn't corrupt),isUnreachableErrormatches it, or the browser is offline. The read gets no verdict, and the view reads again once the connection is back.PackError.corrupt). Only this reportsfailed. A range past an unauthenticated sealed header is remapped tosealedPackCorrupt.noKeystaysUnreadable(NoKey)per the private-repos spec §5.3.MissingObjectErroras a direct read.Recovery is bounded:
Offline state (L-56)
components/ui/states.tsx).hooks/use-offline-navigation.ts). Same-page anchors are left alone, and the base path is stripped.app/error.tsxcatches a chunk that failed to load and reloads it (at most 2 automatic reloads per 5 minutes, and online only for a ChunkLoadError).app/global-error.tsxcovers the root layout.Shell and mobile
<title>, e.g.Issues · owner/name · Dash Forge. The owner is shown by DPNS name once resolved. A private repo's title is the repo name alone.repo-home-content.tsxis untouched.lg, a menu button opens a drawer with Explore, New repository, the mirror guide, Notifications and Settings.components/ui/tab-strip.tsx).github.com/<owner>/<name>first, plus a search button.?repo=pin (the 404 shim carries the query through).alice.dash) expand.prefers-color-scheme) until the user picks one, and an explicit choice persists. The toggle cycles system → dark → light.Sign-in prompts (L-62, L-73)
L-11: install without a release
install.shtells a missing release (an HTTP 404 probe with a 20 s timeout, or a missingfile://path) apart from a network failure.cargo installroute, and explains that a pre-release has to be pinned withDASH_FORGE_VERSION.docs/INSTALL.mdopens with the same note, Windows included.What a tag push produces.
release.ymlalready builds all six targets (Linux gnu x86_64/aarch64, musl, macOS x86_64/aarch64, Windows) on av*tag. It also runsinstall.shagainst the built archives, writesSHA256SUMS, and attests and publishes. The latest master dry run built every target green.For a working release:
versionunder[workspace.package]inCargo.toml(it is0.0.0today; a tag must equal it or the plan job fails), and merge that to master.v<that version>on the merge commit.releaseenvironment gate (required reviewer: PastaPastaPasta).Pushing
v0.1.0after bumping to0.1.0gives a normal release thatlatestpicks up.v0.1.0-rc.1gives a pre-release that the default install.sh skips.L-87 (not code)
The CSP error comes from Cloudflare Web Analytics auto-injection on the zone. Turning it off in the Cloudflare dashboard is the fix. Allowing
static.cloudflareinsights.comin the CSP would be a one-line change, but it would contradict the zero-backend claim (and e2ezero-backend.spec.ts), so it is not done.Tests
e2e/shell-resilience.spec.ts: offline mid-load stays Verified and recovers with no reload; the offline tab and list states; titles and h1; Repo-not-found suggestions; Copy link; the named sign-in.keyboard-theme.spec.ts: the OS-following default.mobile.spec.ts: iPhone SE and Pixel 7 drawer and one-line chip; offline on a phone.v2-home,discovery-urlsanda11y(both themes) passed.Before/after screenshots, from master and this branch built and served locally and checked by SHA, are in
dash-forge-qa/evidence/impl/fix-fg8-shell-resilience/.🤖 Generated with Claude Code