Show completeness per activity and origin links on the home page and /models #732 (GitHub #733)
main fromfeat/715-completeness-ui·merged by tombeckenham View on GitHubStacked on #729. Only src/routes/index.tsx and src/routes/models/index.tsx change.
Home page#
The "complete" cell now shows the provider total in bold, then one line per activity the provider serves (chat 87%, video 75%, embeddings -, unclassified 0%), then origin have/need when any row needs an origin link. Lines are sorted by row count and iterate whatever completeness.activities holds, so an activity key the page does not know still renders by its key. Each line links to /models?provider=<p>&activity=<a> (the unclassified line links to the whole provider, since /models cannot filter on a null activity) and carries a tooltip: video: 12 of 16 facts filled across 4 models.
A provider that serves only audio or video now gets a score: locally Fish Audio shows 97% / audio 97%, Reactor 50% / video 50%.
Null scores:
- No current score at all (no record, or live rows changed since the last poll):
unscored, title says why. - Total null because nothing has a fact set (Ollaya, Voyage, World Labs):
unscoredtotal with the activity line below it, e.g.decision -, title "not scored: this activity has no fact set". - Never rendered as 0% or 100%, never hidden. The text says it, so colour is not the only signal; the non-link lines are focusable spans with
title.
/models#
Each row is scored by scoreRow against its own activity's fact set (ACTIVITY_FACTS), not just chat rows. The cell shows filled/needed and, below it, missing: priced (or whichever facts are missing), so a video row shows which of its facts are missing without hovering. A row with no activity is scored on its one gap (missing: activity). A row whose activity has no fact set (embeddings, decision, world...) shows unscored with the title "Not scored: embeddings has no fact set". The column header is now "complete".
Left out, and why#
- Per-fact names on the home page tooltip.
/v1/statusas shaped by #729 carries per-activityfilled/needed/scoreand the provider-widesilentlist, not per-fact tallies (ActivityReport.factsis dropped inscoreCompleteness). The tooltip says filled of needed per activity and names the facts the provider does not publish, as before. Naming each missing fact per activity needsfactsadded to the status shape; I did not add a second data path. - Per-row origin link on
/models.originIndexneeds the whole catalog and this page reads only the filtered rows, so the column still leavesoriginLinkout (the header says so). Adding it would mean a second full-catalog read on every page view.
Verified#
pnpm run typecheck, pnpm run lint, pnpm run check, pnpm run build pass. In the running app (vite dev, local D1, one local */15 models poll so the completeness record was real), checked the home page providers table and /models?provider=vercel&activity=video, ?provider=voyage (unscored embeddings) and ?provider=ant-ling (missing: activity). Screenshots below are from local data.


- 1
- 2
tombeckenham pushed2d3f634
tombeckenham pushedfbf40e4
Warning
Review limit reached#
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 27 minutes.
View limit details
-
Limit details: You’ve used the included review currently available.
Review configuration:
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:
86734280-c158-4534-93f0-90b2a0bc3d0d
Commits-
Reviewing files that changed from the base of the PR and between eb69bca69c5448c507f26b6838389b71ff8db033 and fbf40e415911fbc1c10fbf8b551bbaffd80b7c14.
Files selected for processing: 2-
src/routes/index.tsxsrc/routes/models/index.tsx
-
- 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.
-
tombeckenham merged this8bc1022
tombeckenham closed this
Sign in to join this conversation.
⚠️ No Changeset found#
Latest commit: fbf40e415911fbc1c10fbf8b551bbaffd80b7c14
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR