Skip to content

[docs-site] Add "Moving faster with AI" dashboard to the AI page - #4318

Merged
mattleibow merged 2 commits into
mainfrom
dev/ai-dashboard
Jul 2, 2026
Merged

mattleibow merged 2 commits into
mainfrom
dev/ai-dashboard

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Summary

Adds a "Moving faster with AI" dashboard section to the /ai/ site page (documentation/site/ai/), with three panels:

  • Adoption at a glance — total + current-GA downloads and a per-release-line table (cumulative stable vs preview downloads) for the last 5 major.minor lines.
  • Time to keep up with upstream (the hero) — a table of recent Skia milestone bumps (m132 → m151) showing days behind Chrome (branch cut → PR opened), review (PR opened → merged) and time to first NuGet release, each with the day and percent change vs the previous milestone. Newest milestone highlighted.
  • What the automation costs — per-run effective tokens and turns for the sync and API-docs agentic workflows.

How the data flows

Data is cached at build time (we regenerate the site often) rather than fetched live in the browser:

  • A committed dashboard-data.json is the source of truth and the graceful-degradation fallback.
  • scripts/infra/docs/generate-ai-dashboard.py refreshes it from git history (milestone-bump PRs — no GitHub API), the Chromium Dashboard (branch/stable dates) and the NuGet APIs (downloads + first-release dates), reusing the conventions already in generate-release-notes.py.
  • Each source degrades independently to its last-known value with an "as of" date; day-deltas are computed in code, never stored.
  • build-site.yml runs the generator best-effort during "Assemble site" (keeps the committed snapshot on failure).

Files

  • documentation/site/ai/index.html — new section + dashboard.js include
  • documentation/site/ai/ai.css — panel/table styles (theme-aware)
  • documentation/site/ai/dashboard.js — renderer (fetches the cached JSON)
  • documentation/site/ai/dashboard-data.json — committed cache / fallback
  • scripts/infra/docs/generate-ai-dashboard.py — build-time refresher
  • .github/workflows/build-site.yml — best-effort refresh hook

Verified in-browser (light + dark, zero console errors); JS/JSON/PY/YAML all validate.

Add a new dashboard section to the /ai/ site page with three panels:

- Adoption at a glance: total + current-GA downloads and a per-release-line
  table (cumulative stable vs preview downloads) for the last 5 major.minor
  lines, from the NuGet search API.
- Time to keep up with upstream (the hero): a table of recent Skia milestone
  bumps showing days behind Chrome (branch cut -> PR opened), review time
  (PR opened -> merged) and time to first NuGet release, each with the day and
  percent change vs the previous milestone; newest highlighted.
- What the automation costs: per-run effective tokens and turns for the sync
  and API-docs agentic workflows.

Data is cached at build time (we regenerate often) rather than fetched live in
the browser. A committed dashboard-data.json is the source of truth and the
graceful-degradation fallback; scripts/infra/docs/generate-ai-dashboard.py
refreshes it from git history (milestone bump PRs -> no GitHub API), the
Chromium Dashboard (branch/stable dates) and the NuGet APIs (downloads and
first-release dates). Each source degrades independently to its last-known
value with an "as of" date, and day-deltas are computed in code, never stored.
build-site.yml runs the generator best-effort during "Assemble site".

Co-authored-by: Copilot <[email protected]>
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4318

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4318"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4318/packages --name skiasharp-pr-4318
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4318

A dual-model consistency review (GPT-5.5 + Opus 4.7) against the workflow
files and the new dashboard data surfaced stale hardcoded numbers:

- Skia upstream sync runs every 6 hours (cron `0 */6 * * *` = 00/06/12/18
  UTC = 4x/day), matching the new cost panel. The hero said "3x" and the
  workflow card listed "07:00, 12:00, 17:00 UTC"; both corrected.
- `.agents/skills/` has 21 skills, not 20 — the page was missing
  `skill-creator`. Added it (new "Authoring" group) and bumped the hero count;
  the page list now matches the folder exactly.

Verified triage (04:05 UTC, cron `5 4 * * *`) and release-notes (push to main
+ 00:00 UTC) cards are already correct.

Co-authored-by: Copilot <[email protected]>
@mattleibow
mattleibow merged commit a95cc35 into main Jul 2, 2026
5 of 7 checks passed
@mattleibow
mattleibow deleted the dev/ai-dashboard branch July 2, 2026 17:13
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

mattleibow pushed a commit that referenced this pull request Jul 3, 2026
Brings in the 7 commits that landed on main after this sync branch was
originally cut (yesterday's automated main-tip run):
- e00fa55 [skia-sync] Merge upstream chrome/m151 bug fixes (#4312)
- a1ecb75 docs: regenerate API diffs and polish release notes (#4322)
- 1c49b4a Remove unnecessary 'unsafe' modifier from GRContextOptions (#3991)
- 2d15749 Update docs submodule to latest main (#4304)
- 7356c75 [docs-site] Skip PR staging previews for non-site file changes (#4321)
- a95cc35 [docs-site] Add 'Moving faster with AI' dashboard to the AI page (#4318)
- 72ce599 [infra] Remove obsolete skiasharp-docker registry auth (#4310)

Conflicts resolved:
- cgmanifest.json: took origin/main (will be overwritten by
  update-versions.ps1 in the next commit with the new sync SHAs).
- externals/skia: took ours (90a2d04943 is a descendant of 98877992a5
  from PR #4312 via the corresponding submodule merge PR #278).
- docs submodule pointer: took origin/main (b64a0266c from PR #4304).

Co-authored-by: Copilot <[email protected]>
@mattleibow mattleibow added this to the 4.151.0-preview.2 milestone Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant