The caption's Files button was the only way to open the file tree on
narrow screens when the preview shows no file (no README, loading, error).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The logger keeps errorCode only for allowlisted codes, and so does the
collector (sanitize.vrl). Both lists are maintained by hand, so codes
added since then were dropped and logged as a bare 400. Among them:
invalid_billing_expiration (billingError), invalid_auth_state
(appError), streamer_unreachable, github_unavailable, user_banned and
most billing and GitHub App codes, 41 in all.
scripts/generate-log-diagnostics.js now collects the codes passed to
AnonymousError, billingError and appError, plus codes assigned to an
errCode/code variable. It writes them to LOG_THROWN_ERROR_CODES, which
the logger accepts, and appends them to the collector's errorCode
allowlist. A test fails when a thrown code is missing from either list.
Regenerating also refreshes source function names that had gone stale
(jsDelivrFileUrl, ownerGitHubAccessRequired, ...), whose stack frames
the collector was dropping.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
- My work keeps its tab bar and counts while a tab, search or filter
reloads: the first load holds the tab row with placeholders, a reload
dims the current rows and shows placeholder rows instead of a false
empty state. Admin repositories, users and conferences, the conference
page and the conferences list get the same placeholders and busy state.
- Repository picker: one footer row with the access link on the left and
a compact icon pager on the right; Previous only after page 1; a row's
name tooltip only when the name is cut short.
- Preview caption: the title stands alone, the redaction status is a chip
("Nothing redacted yet: add terms" focuses the Terms field). The
caption's Files toggle is gone: the tree is always shown from 992px and
the window's own file bar opens it below.
- Under a plan limit the expiry reads as text ("Apr 29, 2027 · in 5
months, the maximum on your plan") with the date input behind
"Advanced: pick an exact date"; validation still applies and a submit
opens the disclosure on an invalid date. Without a limit the picker
stays, and the echo no longer repeats "Expires".
- dev-mock: serves the dashboard summary API (with an optional delay
cookie), a 5-month free expiry and a long picker name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The anonymize page's "Your repositories" picker now pages and searches a
per-user list stored in MongoDB instead of calling GitHub on every page and
search. GitHub is read only when the list is empty, when the user presses
the new refresh button, or after an installation change marks it stale.
- One sync per list (Mongo lock with a renewed lease); full pagination in
the background after the first page is returned; rate limits pause syncs.
- GitHub App installation, installation_repositories and repository
webhooks update the stored lists idempotently. The App must subscribe to
the Repository event (documented in docs/github-app-setup.md).
- Legacy OAuth lists change only on refresh.
- Picker header shows "Updated 3 min ago" and a refresh button.
- dev-mock: stored list, simulated refresh and webhook endpoint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
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>
* feat(admin): add a Billing tab for subscriptions and sales
The admin can now follow subscriptions and sales without opening Stripe:
- Summary tiles: active subscriptions (monthly/annual), MRR with annual
plans counted as 1/12, sales and revenue for 7d/30d/90d/12m/all time,
all-time sales, subscriptions cancelling at period end, and refunds
and disputes.
- A stacked chart of sales per day, week or month by plan family.
- A by-plan table: active grants, period and all-time sales and revenue.
- A paginated list of grants with plan, Stripe status, active/expired/
revoked and user filters, linked to the admin user, repository or
conference.
- One row of webhook health: pending, failed, oldest pending event, last
error and unreviewed payment reversals.
A sale is one checkout or subscription, so a paper pack's three grants
count once. Revenue is each sale's Stripe list price, resolved once per
price and cached in memory. Currencies are never added together. Without
Stripe the page shows counts and marks revenue as unavailable.
GET /api/admin/billing/summary and /grants sit behind the admin check.
Grants get a { purchasedAt, _id } index for the list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: preserve payment history in admin billing totals
* fix: scope billing history and preserve original sale prices
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>