Commit Graph
305 Commits
Author SHA1 Message Date
Thomas DurieuxandClaude Opus 5.5 43e92bef53 feat(viewers): sort, filter, summarize, group and chart tables
The CSV/TSV viewer (explorer, gists, the author's preview) becomes an
analysis view that runs on the anonymized text already in the page:
click-to-sort headers (numbers, dates, natural text; stable, empty cells
last), a search box and per-column range or value filters, a summary row
(Average by default; Sum, Median, Min, Max, Count, Std dev) over the
filtered rows, group by with an aggregate, column stats with a histogram,
copy as CSV or Markdown and download of the current view, and a Chart
view (bar, line, scatter) drawn in inline SVG. The view lives in the URL
fragment (#table:group=model, #table-2:... for a gist file) so a link
can carry it; links without it open as before.

Markdown and notebook tables (pandas DataFrames) get sortable headers,
an optional summary row and "Open as table" for the full view.
Redaction slots keep rendering; sorting uses the XXXX-n text.

The 1 MB limit holds: rows render 200 at a time as one escaped HTML
string while aggregates, filters and charts use every row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 10:04:19 +00:00
Thomas DurieuxandClaude Opus 5.5 98bf382fa8 fix(viewers): GitHub-style threads, one-unit authors, shared slots and tabs, gist formats
Review threads: one container in the code column with comments divided by
rules; replies keep the first comment's indent (no nested cards). The
Conversation tab uses the same thread.

A fully redacted author renders as its slot alone, centred with the avatar
and date. Slots outside rendered Markdown use the explorer's .redact-slot
at the running-text alignment (.04em). PR and gist tabs drop the 2px
transparent border so the shared #949 line spans the label and count and
sits on the bar's rule.

Gists: each file renders with the explorer's viewers (Markdown, code,
notebook, CSV/TSV table, image, SVG, PDF, video, audio, binary and
too-large states), with a Preview/Source toggle where they differ and
Raw, copy and download. Binary gist files are now stored as base64 and
passed through unchanged; images follow the "Display images" option.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:13:08 +00:00
Thomas DurieuxandClaude Opus 5.5 176bc857a1 feat(viewers): outlines for Markdown and gists, refined pull request page
Markdown: the "On this page" outline covers h1-h3, draws redaction slots
like the body, treats a lone opening h1 as the title, highlights the
section past the reading line, and shows its menu from 768 to 1199px too.

Gists: one card per file and an outline of the files (name, language,
lines) with Markdown headings nested under each file; sticky right rail
on wide screens, an "In this gist" menu on narrow ones.

Pull requests: header with state, anonymized author, branches and
commit count; Conversation, Commits and Files changed tabs; a file list
with +/- counts, per-file collapse, inline review threads, and redaction
slots in the title, body and diff. The server now stores the author,
branch names, commits (no SHAs) and review comments, grouped into
threads; older pull requests render without them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 08:13:31 +00:00
Thomas DurieuxandClaude Opus 5.5 f02999e774 fix: report a jsDelivr 404 as repo_not_found, not token_expired
Without owner access, a jsDelivr 404 was sent to the GitHub API probe,
which cannot run for the CDN token and failed with token_expired. The
path comes from the stored tree of a pinned commit, so a CDN 404 means
the repository is no longer public.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:50:12 +00:00
Thomas Durieux 28b154b0eb Merge pull request #978 from tdurieux/fix/remove-shared-token-fallback
fix: stop using the shared GitHub token; serve public files via jsDelivr
2026-11-28 13:17:54 -08:00
Thomas DurieuxandClaude Opus 5.5 5b350aaebe fix: keep auto-update repos readable and refuse LFS pointers from jsDelivr
Without owner access, a reviewer visit to an auto-update repository tried
a GitHub API refresh and failed with token_expired; it now skips the
refresh and serves the stored tree. jsDelivr returns Git LFS pointers,
which match their blob SHA, so they are now refused like on the raw path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:17:27 +00:00
Thomas DurieuxandClaude Opus 5.5 14694e9242 test(ui): click Expand preview, not the preview's Files toggle
"keeps all settings and the live preview visible in the split workspace"
clicked the first .reviewer-preview .rp-open. Since #950 the caption also
has a "Files" button with that class, which toggles the preview's file
tree, so preview-expanded never turned on. The UI behaves as intended; the
test now targets .rp-open.is-toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:17:34 +00:00
Thomas DurieuxandClaude Opus 5.5 4e10e6662d feat: serve public files through jsDelivr when the owner has no GitHub access
Instead of failing, repositories whose owners have no usable credential read
files from jsDelivr at the pinned commit, and archives from codeload. Neither
needs a token or spends GitHub API quota, and neither serves private content.
The shared cache still verifies every file against its Git blob SHA. Calls that
need the GitHub API (tree listing, refresh, metadata) still return
token_expired, and a jsDelivr read does not clear the owner's access alert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:14:07 +00:00
Thomas DurieuxandClaude Opus 5.5 341b0cc973 fix: stop falling back to the shared GitHub token
When a repository, gist or pull request owner had no usable GitHub
credential, content was fetched with the operator's GITHUB_TOKEN. That token
shares one rate limit with its account, so these fallbacks exhausted it and
made unrelated requests wait and time out. Owners now get token_expired (401),
which already asks them to renew their connection, and the server no longer
reads GITHUB_TOKEN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:35:32 +00:00
Thomas DurieuxandClaude Opus 5.5 4099953d8a feat(logging): label billing routes and checkout outcomes
Billing API calls and Stripe return pages were logged as route "other", so
the purchase funnel could only be read from Stripe. Give them fixed labels in
the app, Nginx and the collector allowlist, and record the ?billing= outcome
(success, cancelled, portal) on edge requests. Only fixed values are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:30:40 +00:00
Thomas Durieux b284bfb4f9 fix(logging): retain safe ZIP and worker failure reasons 2026-11-19 15:04:03 +00:00
Thomas DurieuxandClaude Opus 5.5 1e99cda5e0 fix: make the admin billing tab count sales consistently and show amounts
- The subscriptions list shows one row per sale, grouped with the same
  stages as the summary: a paper pack is one "Paper pack" row with its
  parts on a second line. Filters, state tabs, sort and pagination count
  sales. A new "Started" filter matches the summary periods.
- N days now draw N buckets ending today (12 months: 52 weeks), and the
  tiles count from the same start.
- One family vocabulary: Subscriptions, Repository add-ons, Conferences in
  the legend, the By-plan grouping and the list.
- Cancelling folds into "Renews / ends", revocation into "Status"; rows
  have one height. Names and repository ids use proportional figures,
  since Inter's tabular figures widen hyphens.
- New Amount column (cached Stripe list price, per period for
  subscriptions, once per pack). Chart tooltips show count and revenue
  per family and the total per currency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:28:19 +00:00
Thomas Durieux 9a20ad1cf8 fix: distinguish quota limits and increase author storage 2026-11-15 18:47:47 +00:00
Thomas Durieux 55eb8b3e09 fix: preserve incidents when optional baseline lookup fails 2026-11-15 13:55:38 +00:00
Thomas Durieux d99a9587f7 fix: retain loss evidence and fail interrupted deployments 2026-11-15 13:52:05 +00:00
Thomas Durieux 0f9d8c657a feat: add operational incident evidence and recovering alerts 2026-11-15 13:45:38 +00:00
Thomas Durieux a4f441f097 fix: record cached reader failures before pipeline teardown 2026-11-15 13:39:17 +00:00
Thomas Durieux 42494debb9 fix: preserve local stream failure provenance 2026-11-15 13:36:34 +00:00
Thomas Durieux d2e3954d21 fix: explain interrupted requests and account for overlapping latency 2026-11-15 13:31:16 +00:00
Thomas Durieux 1723f5e927 fix: require anonymous endpoint methods for logged paths 2026-11-15 00:14:01 +00:00
Thomas Durieux 7d044525ce fix: exclude source repository lookups from captured paths 2026-11-15 00:08:12 +00:00
Thomas Durieux 953767b2cd fix: retain actual anonymous request paths across outcomes 2026-11-15 00:01:21 +00:00
Thomas Durieux fab574d556 Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-14 23:45:58 +00:00
Thomas Durieux 318a1f9984 Show source reconnection failures after successful metadata loads 2026-11-14 23:44:59 +00:00
Thomas Durieux 8e1bbffbe3 Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/app.js
#	public/script/vendor.min.js
2026-11-14 23:40:39 +00:00
Thomas Durieux c591306a33 fix: offer account reconnection for expired source authorization 2026-11-14 23:39:24 +00:00
Thomas Durieux 5c2c95ed8a Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-14 23:36:24 +00:00
Thomas Durieux 1dfd898aa6 fix: retain source access actions when edit repair is unavailable 2026-11-14 23:35:28 +00:00
Thomas Durieux d9c8a8fb4d Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-14 23:32:35 +00:00
Thomas Durieux 0ddcb2057f fix: recover source metadata after branch refresh failures 2026-11-14 23:31:43 +00:00
Thomas Durieux 233bb7eae6 Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-14 23:24:11 +00:00
Thomas Durieux bc44879b43 Merge remote-tracking branch 'origin/main' into integrate/source-errors
# Conflicts:
#	public/asset-manifest.json
#	public/css/all.min.css
#	public/script/vendor.min.js
2026-11-14 23:23:19 +00:00
Thomas Durieux 70e8ff15cc Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-14 23:21:40 +00:00
Thomas Durieux c014b3c8cf Merge remote-tracking branch 'origin/main' into integrate/source-errors
# Conflicts:
#	public/asset-manifest.json
#	public/css/all.min.css
#	public/css/style.css
#	public/partials/anonymize.htm
#	public/script/vendor.min.js
2026-11-14 23:20:40 +00:00
Thomas Durieux 8eb5097070 Merge remote-tracking branch 'origin/main' into integrate/diagnostics 2026-11-14 23:19:23 +00:00
Thomas Durieux 6035c01956 Merge remote-tracking branch 'origin/main' into integrate/diagnostics
# Conflicts:
#	deploy/logging/README.md
#	public/asset-manifest.json
#	public/css/all.min.css
#	public/css/style.css
#	public/script/vendor.min.js
2026-11-14 23:19:22 +00:00
Thomas Durieux fbb9c5fac0 Merge pull request #967 from tdurieux/fix/deployment-and-repository-errors
fix: guard GitHub App deployments and distinguish removed repositories
2026-11-15 00:18:37 +01:00
Thomas Durieux 7c4a7ab264 fix: distinguish source outages and throttling from missing repositories 2026-11-14 23:02:18 +00:00
Thomas Durieux 65914c743e fix: validate GitHub App mounts before deployment and distinguish removed repositories 2026-11-14 22:57:01 +00:00
Thomas DurieuxandClaude Opus 5.5 1412de9d9f fix(anonymize): one message and one next step when a source fails to load
A repository URL that could not be read produced a pile of messages:
"Does not exist or is not accessible", a "Repository not listed?" label,
two access notes, a private-content warning, an empty branch/commit grid
with "The commit SHA is not valid", a toast, and an enabled-looking
"Create anonymous link" whose reason pointed to the preview.

- Under the URL, one error block per case (malformed URL, missing or no
  access, organization restriction or SSO, already anonymized), naming
  the source and giving its fix: Manage GitHub access and Try again.
  The preview shows the same wording and actions; no toast.
- Drop "Repository not listed?". The landing picker gets a quiet
  "Don't see your repository? Manage GitHub access" link instead.
- New anonymizations hide branch/commit, auto-update and the other
  sections until the source loads. Edit mode keeps them editable.
- The publication warning shows only once a private source has loaded;
  the repository metadata now includes GitHub's `private` flag.
- The primary button is disabled until the source loads, with a short
  local reason, and the draft line waits for a loaded source.
- dev-mock: failing, slow, PR, gist and edit-mode fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 22:22:33 +00:00
Thomas Durieux 0b967aa8af perf: paginate repository discovery and search 2026-11-14 21:49:12 +00:00
Thomas Durieux 5dbf3e7829 feat: retain bounded failed-request reproduction context 2026-11-14 21:44:48 +00:00
Thomas Durieux 3a1d013b11 fix: show useful history occurrences instead of status-only rows 2026-11-14 21:30:46 +00:00
Thomas Durieux f6574069da feat: preserve safe request and exception diagnostics 2026-11-14 21:22:28 +00:00
Thomas Durieux 5fa6cfafed feat: lead error investigations with related events 2026-11-14 20:07:19 +00:00
Thomas Durieux 2c24d2e892 feat(admin): simplify errors into focused event inspectors 2026-11-14 19:55:50 +00:00
Thomas Durieux 008ece9e1c fix(admin): let slow history requests finish between polls 2026-11-14 19:39:24 +00:00
Thomas Durieux 67d0ad928c fix(admin): explain log outcomes and clarify identifier actions 2026-11-14 19:33:01 +00:00
Thomas Durieux 40ffe7ce72 fix(admin): streamline error history and preserve safe raw records 2026-11-14 19:15:45 +00:00
Thomas Durieux b39f3b6878 fix(admin): refine error triage hierarchy and detail layout 2026-11-14 18:38:33 +00:00