Skip to content

feat: Data › Phylogenies and the phylogeny beside the map on the trait page (issue #439) - #440

Merged
ElisaBarreto merged 8 commits into
mainfrom
feat/phylogenies-439
Nov 14, 2026
Merged

ElisaBarreto merged 8 commits into
mainfrom
feat/phylogenies-439

Conversation

@ElisaBarreto

Copy link
Copy Markdown
Owner

Closes #439.

Spec: docs/specs/2026-11-14-phylogenies.md. Plan: docs/plans/2026-11-14-phylogenies.md. Rules: new RFC-79.

What

  • API. GET /api/phylogenies and GET /api/phylogenies/files/:key?size=display|full (dataset.read, Visibility).
    • The owner's figures are read from a private directory per platform (PHYLOGENIES_DIR, /srv/phylogenies/<platform> in production, never in the repo or the image).
    • A key is looked up in the viewer's list, never used as a path.
    • Inactive traits need dataset.read_inactive. The plot restriction does not apply (owner's decision).
    • Files revalidate on every use (private, no-cache + ETag).
  • Publishing. check:phylogenies checks a folder against the trait dictionary. scripts/phylogenies/publish.sh (macOS):
    • makes the display copies with sips;
    • stages them on the server and runs the check against production;
    • only then swaps the live folder in, by rename.
  • Web.
    • Data › Phylogenies (after Maps): an All traits tab with the coverage figure, then category tabs and trait buttons.
    • A full-size viewer: zoom 1×–4× by wheel, pinch, + / − / 0; drag to pan; arrows between figures.
    • The trait page shows the figure beside the map (Maps and phylogeny). The trait cards' help popover gains Phylogeny.
    • A platform with no figures says "Phylogenies are not available on yet."
  • Rule 10: route catalog, API guide and changelog. Rule 11: both platforms. RFC-12 gains PHYLOGENY_NOT_FOUND.

Checks

  • Locally: lint, typecheck, rfc:check; API suite 1355 tests, web suite 1220 tests.
    • Two known load timeouts, both unrelated and both passing alone: export, and ContributionsPage.
  • A whole-branch review and CodeRabbit (local). All their Important findings are fixed, each with a test that failed first.
  • Deferred minors:
    • a brief broken image if the next figure's PNG fails while stepping;
    • pan isn't clamped when zooming out;
    • list or file 500 if a request lands exactly mid-swap.

Deploy

/srv/phylogenies/{treerepro,plantrepro} already exist on the server, so the new bind mount finds them. The first publish follows once the owner's regenerated figures are ready.

🤖 Generated with Claude Code

ElisaBarreto and others added 7 commits November 14, 2026 14:14
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (RFC-79)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…5, R8)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(RFC-79 R7)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…is one zoom step (review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lish swaps by rename (CodeRabbit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cb0986af-0fb2-48a4-ba90-bc4cb4978677
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ElisaBarreto
ElisaBarreto merged commit 73a9c8e into main Nov 14, 2026
15 checks passed
@ElisaBarreto
ElisaBarreto deleted the feat/phylogenies-439 branch November 14, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phylogenies: Data › Phylogenies page and the phylogeny beside the map on the trait page

1 participant