← Back to Pull requests

docs(sentinel-2): one gallery page for the catalog-based canvases #1398

Open
unknown opened this pull request with 474 lines diff across 5 files
View on GitHub
unknown unknown commented on Nov 30, 2026 14:40 UTC
Author

Replaces the Sentinel-2 pipeline walkthroughs with one gallery page of canvases built on fused.catalog.imagery, and rewrites the guide and agent skill on the catalog instead of sentinel_utils.

Merge once the rebuilt canvases are published and the sentinel-2-l2a reader fix is on prod. The gallery links Sentinel2_Algorithms, which is new. The snippets use mask_clouds=True and the system_time_start column, which prod returns only after that deploy.

| Change | Why |
|---|---|
| New examples/sentinel-2 gallery: three Infima cards (Explorer, Field NDVI, Algorithms) | One page that shows what you can build. Each canvas carries its own README, so the docs do not re-explain pipelines |
| Removed sentinel-2-composite, sentinel-2-explorer, monthly-median-composite, temporal-pixel-analysis, with redirects to the gallery | Their canvases are merged or rebuilt, and their pipeline walkthroughs no longer apply |
| Working with Sentinel-2 rewritten: read an area, choose the output, statistics per polygon, collections and dates | Dataset access now goes through fused.catalog.imagery; no scene search, STAC sources or .map() scale-out |
| skills/SENTINEL2.md rewritten on the catalog; sentinel2/h3.md and sentinel2/scale.md removed | Agents should call the catalog, not load sentinel_utils |
| Canvas Gallery: the three Sentinel cards point at the new canvases and use their screenshots; AI change detection's link updated | No links to removed pages |
| llms.txt, llms-full.txt, llms-python-sdk.txt regenerated | Keep them in step with the pages |

Review: a 4-angle simplify pass. It replaced a new .canvas-grid CSS block with Infima's card classes, used the screenshots instead of gradient placeholders, removed a duplicate link and corrected a claim in the skill file (unknown band names return an empty frame, they do not raise).

Testing

  • Every snippet run as a UDF on prod and unstable (fused workbench run). Shapes and pixel counts in the skill file match: 8,686 rows, a 3 x 780 x 832 chip, 9,213 pixels per field.

  • uv run utils/test_doc_snippets.py passed (403 blocks); uv run utils/run_doc_execution.py on the changed pages passed (2 passed).

  • npm run check-links: all internal links resolve. node scripts/validate-llms-links.js: 0 broken.

  • The changed MDX compiles with @mdx-js/mdx. The gallery (dark) and the guide (light) were checked in docusaurus start. The full npm run build was not run, so redirects are unchecked in a production build.

  • The thumbnails are captures of the canvases rendered on unstable outputs. Prod shows the same views after the deploy.
  • <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Documentation, navigation, and redirect changes only; no runtime code, with old URLs preserved via client redirects.

    > Overview

    Replaces four Sentinel-2 pipeline walkthroughs with a single [Sentinel-2 Gallery](/examples/sentinel-2) page (Explorer, Field NDVI, Algorithms) and redirects the old example URLs there. The Examples sidebar now lists only that gallery entry.

    > The Working with Sentinel-2 guide and SENTINEL2.md agent skill are rewritten around fused.catalog.imagery (hex, chip, polygon stats) instead of sentinel_utils, STAC scene search, and .map() patterns; sentinel2/h3.md and sentinel2/scale.md are removed. Canvas Gallery Sentinel cards and AI Change Detection “See also” links point at the gallery and updated canvases. llms.txt / llms-full.txt indexes are regenerated to match.

    > <sup>Reviewed by Cursor Bugbot for commit 4f82cfcfbb3ba82b92fc0cd13814c181fd7014b7. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 474 lines (+355 / -119) across 5 files Reviewer: cursor[bot] Review duration: 9m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.46) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 474 lines diff across 5 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 77% · Reviewer familiarity: 35%
    41%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.369
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #1398"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 41% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.7% (MEDIUM) · Higher = larger blast radius
    45.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 41% · Lower = rushed or shallow review
    41%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.0% · Safe to merge
    27.0%