Skip to content

OpenConceptLab/ocl_issues#3004 | Health badge and reasons for collection versions and expansions - #113

Merged
snyaggarwal merged 17 commits into
mainfrom
issues-3004-expansion-health-badge
Dec 2, 2026
Merged

snyaggarwal merged 17 commits into
mainfrom
issues-3004-expansion-health-badge

Conversation

@snyaggarwal

@snyaggarwal snyaggarwal commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Ticket: OpenConceptLab/ocl_issues#3004 · Epic: OpenConceptLab/ocl_issues#2942

TBv3 shows the expansion health the API stores (OpenConceptLab/oclapi2#1029, classifier in core/collections/health.py). Nothing about health is computed in the browser. Expansion rows and the details dialog also show the repo versions as chips.

What changes

Health

  • Chips. An expansion that checks out shows no chip. Otherwise there is one chip per problem, with its count if more than one, such as "Source recorded twice" or "References not resolved (2)". Neutral chips come after the problems: "Concept-version references", "Uses HEAD" and "No members".

  • Information, not a problem. References that name a concept or mapping version show as a neutral chip, and under their own "Information" heading in the dialog (OQ-39 on OpenConceptLab/ocl_online#549). Health stored before OpenConceptLab/ocl_issues#3003 | Concept- and mapping-version references are information in expansion health, not a problem oclapi2#1106 shows the same way.

  • Versions table. Each collection version shows its default expansion's chips under its status. It reads the default expansion's health and health_is_current. Until the expansions load, it uses the version's own expansion_health. Clicking a chip opens the details dialog.

  • Expansion rows. The default expansion shows the same chips. The API keeps health for the default expansion only, so other expansions show none.

  • Not current. The chips keep the last state and are marked out of date. The dialog says whether a recheck is queued. A first check still queued shows "Checking health".

  • Refreshing. Each later load of the versions list reads the shown rows' expansions again, so the row and the dialog agree. A failed fetch keeps what is shown.

  • Details dialog. A Health section at the top shows:

    • one plain-language line per reason, with its count and the repositories it names;
    • the HEAD concepts and mappings inside version mismatches and disagreeing references;
    • deleted locks, as plain text, with a count of those private to another owner;
    • repositories resolved to HEAD;
    • how many repositories are named at more than one version on purpose;
    • member counts by class, and when it was checked.

    A reason code or state this UI doesn't know yet still shows, as the API gives it.

Repo versions as chips

  • One list, in the expansion row and in the dialog, replaces the explicit and evaluated lists: explicit first, then evaluated, locked ones first in each.
  • An icon marks each version as explicit, evaluated or both. Repositories in the health lists use the same chip.
  • Lock badge on the chip, only where it's true:
    • "Locked: a rebuild keeps this version": the system-version parameter names it, or it's a value set on a version made with Copy HEAD's parameters;
    • "Locked: references added without a version resolve to this version until a rebuild": HEAD's default expansion, with EXPANSION_LOCKED_REPO_VERSION_TOGGLE on, and only the newest evaluated version of each repository.
  • The icons have labels for screen readers.
  • The Default mark in the expansions list is a chip without an outline.

Also

  • After Set as default. The new default shows "Checking health", or its last state marked out of date, until the API's queued recheck is done. Nothing re-reads health when that finishes, so the chips update when the versions list is next loaded.
  • Who sees it. Anyone who can view the collection, as the API returns it to them.
  • Toggle off. With EXPANSION_HEALTH_TOGGLE off from the start, no expansion has health and no health shows. If it's turned off later, stored health still shows, and nothing rechecks it.
  • Strings. All four locale files, with singular and plural forms.

Known changes in behaviour

  • The dialog no longer shows a count for each list of repo versions.
  • Repo links in the row open in the same tab.
  • The chip doesn't show the repository's owner.
  • The "Explicit" tooltip says a reference names this version. For a reference to a concept version, OCL picked the repository's version.
  • A source that system-version names by a URL only the URL registry knows isn't matched, so it has no "a rebuild keeps this version" badge.

Deploy order

Not done here

Tests

  • expansionHealth.test.js: each state, not-current cases, a version falling back to its own summary, every reason code, information reasons, unknown codes, member counts, and every string in four locales.
  • expansionRepoVersions.test.js: the list's order, when a version is locked, each form system-version takes, and the strings.
  • At c736d7c: npm test 334 pass, eslint (npx eslint src --ext js,jsx) is clean, and CI passes.
  • The chips and the lock badge were checked on screen with sample data, not with live API responses.

Related

🤖 Generated with Claude Code

…ions show the API's expansion health, with its reasons in the details dialog
@snyaggarwal

Copy link
Copy Markdown
Contributor Author

Review round 1: verdict "changes needed"

This was a high-effort review of the diff against the API on oclapi2 master (health.py, serializers, models). The field reads and all 12 reason codes match the API. npm test (231) and eslint pass.

# Severity Finding
1 important The row chip and the dialog's Health section show any stored health, even on an expansion that isn't the default. After Set as default, the old default keeps its stale chip. A deleted lock marks non-default expansions not current, so they would show "Checking health". Only the default expansion should show health.
2 nit Once expansions are cached, the version row prefers the cached expansion's health over the fresher expansion_health from a refetched versions list. A queued recheck never shows as done without a reload.
3 nit An unknown future state is labelled "Checking health", and the dialog shows a raw translation key.
4 nit description_healthy ("every repository resolves to one released version") is wrong when multiple_named_versions is non-empty.
5 nit PR text: health can stay stored after the toggle is turned off later, so "no expansion has health" holds only if it was never on.
6 nit freshness_not_current says "something changed", but null also follows a failed computation or a failed queue.
7 nit locked_version_deleted URLs are links to deleted versions, which open a not-found page.
8 nit not_checked_default and not_checked_other are unused strings.
9 nit Accessibility: the out-of-date state is carried only by an icon and tooltip, and the aria-label stacks colons.
10 nit Copy: the es and pt-BR checked_at, hidden_versions and reason_version_mismatches wording.
11 nit No test for an unknown state.

Not changing:

  • reason counts aren't locale-formatted;
  • head_objects can print a zero half;
  • member_interim wording.

These are consistent with neighbouring strings and minor. Component render tests also aren't added: the repo's tests are node:test over pure modules, and there's no React test setup.

Fixes follow in the next commit.

…hows health, unknown states show as given, and deleted locks are plain text
@snyaggarwal

Copy link
Copy Markdown
Contributor Author

Review round 2: verdict "changes needed"

Round 1's fixes check out:

  • default-only gating, with the version row still showing its default expansion's health;
  • unknown states;
  • copy and removed strings;
  • deleted locks as plain text;
  • the aria-label.

npm test (233) and eslint pass.

# Severity Finding
1 important Regression from round 1. The visually hidden span uses sx width: 1, height: 1, which MUI reads as 100%, not 1px. On the dialog's chip, which isn't clickable and so isn't position: relative, the span sizes to the dialog paper and can add spurious scroll. Use visuallyHidden from @mui/utils, as TableResults.jsx does.
2 nit Round-1 #2 is still open: a cached expansion's health beats a fresher version summary.
3 nit With the toggle turned off later, stored health that was current stays current, and "it will be checked again" isn't true while checks don't run. Fix the PR text and soften the copy.
4 nit es and pt-BR resolve the CLDR many plural category for exact millions, and there are no _many keys, so the raw key shows. This gap is repo-wide; it's cheap to cover here.
5 nit An empty expansion can still have reasons, for example all references unresolved. The reasons list then has no lead-in.

Fixes follow in the next commit.

…current version summary beats a stale loaded expansion, and es and pt-BR have their many plurals
@snyaggarwal

Copy link
Copy Markdown
Contributor Author

Review round 3: verdict "changes needed"

Round 2's fixes check out:

  • visuallyHidden from @mui/utils (1px);
  • es and pt-BR _many plurals for all 13 keys;
  • the lead-in for an empty expansion with reasons;
  • the softened freshness copy.

npm test (233) and eslint pass.

# Severity Finding
1 important Round 2's "a current summary beats a not-current expansion" guesses wrong when expansions refetch without the versions list (after a rebuild, a delete or a finished processing poll). Scenario: page loads with {unhealthy, current}, the owner rebuilds, the expansion refetches as not_current, and the stale summary wins. The version chip then disagrees with the row chip and with the dialog it opens. Fix: go back to expansion-first, and refetch the expansions whenever the versions list is refreshed, so both sources are the same age.
2 nit PR text: "expansions aren't fetched again on a refresh" describes only half the cases.
3 nit aria-label on the dialog's chip, which isn't clickable and renders as a plain div with no role. ARIA prohibits naming such an element. The visually hidden text already carries the freshness there.

Fixes follow in the next commit.

… a version's health comes from its default expansion and is never older than its summary
…ts cached rows' expansions, a failed fetch keeps them, and a refresh shows them instead of a spinner
@snyaggarwal

Copy link
Copy Markdown
Contributor Author

Review round 4: verdict "approve with nits"

Round 3's fixes check out:

  • version health is expansion-first again, with a test that a freshly fetched not-current expansion beats an older current summary;
  • the forced refetch has no TDZ or stale-closure problem and doesn't loop. refreshKey is bumped only by user actions in RepoHome;
  • only clickable chips get an aria-label.

npm test (233) and eslint pass.

# Severity Finding Status
1 nit The forced refetch used the old page's rows, so on page 2 a refresh re-read page 2 and then landed on page 1 with cached expansions. Paging reused cached expansions too. Fixed: once any later versions load lands (a refresh or another page), the shown rows that have cached expansions are read again
2 nit On mount, HEAD's expansions were requested twice. Fixed: the forced pass skips the first load and rows with nothing cached
3 nit Existing code, now hit more often: a failed expansions request wrote [], so the row lost its expansions and health. Fixed: only an array response is stored
4 nit Every refresh swapped the Expansions chip and expanded lists for a spinner. Fixed: the spinner shows only when nothing is cached

npm test 233 pass, eslint clean, webpack build OK. This was the fourth and last round; nothing is open.

@snyaggarwal
snyaggarwal marked this pull request as ready for review November 24, 2026 15:57

@paynejd paynejd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review lead (Claude, for Jon), round 1

This is a comment, not an approval. The ticket's first AC is Jon's approval of the mockup, which he gives separately, and the wording is part of that review.

Thanks, Sunny. I checked the display against oclapi2's health.py and serializers on master, and it reads them correctly:

  • the four states (healthy, head_resolved, unhealthy, empty);
  • all twelve reason codes, with the URLs each one names;
  • the locked_version_deleted count minus the versions it names;
  • the HEAD counts on version_mismatches and ambiguous_members;
  • the seven member classes, head_resolved_repositories, multiple_named_versions and computed_at;
  • the three values of health_is_current, and the versions list's expansion_health summary.

Showing health only for a version's default expansion matches what the API keeps current. Showing it to anyone who can view the version matches Jon's Nov 3 decision. All four locales have every string: es and pt-BR with the _many forms, zh with other only. CI is green.

One fix: a failed expansions request is now retried without end (suggestion inline).

  • APIService resolves a failed request with the error body, so response.data isn't an array, and nothing is cached.
  • loadingByVersion then changes, which gives fetchExpansions a new identity, and the effect sends the same request again at once.
  • A version whose expansions/ call keeps failing (a 403, 404 or 5xx) is requested in a tight loop for as long as the tab is open.
  • Before this PR, a failure cached an empty list, which stopped it. The suggestion keeps what's cached on a failed refresh, and caches an empty list on a failed first load, as before.

Smaller, no action needed:

  • The details dialog shows the expansion as it was when opened, so a refresh that lands while it's open shows on the chips but not in the dialog until it's reopened.
  • When a version's default expansion isn't on the first page of expansions/, the version chip shows the summary but has nothing to open.

Comment on lines 284 to 289
.then(response => {
const data = response?.data || [];
setExpansionsByVersion(prev => ({ ...prev, [versionKey]: formatExpansions(version, data) }));
// a failed request keeps what was loaded
if (Array.isArray(response?.data))
setExpansionsByVersion(prev => ({ ...prev, [versionKey]: formatExpansions(version, response.data) }));
setLoadingByVersion(prev => ({ ...prev, [versionKey]: false }));
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A failed request leaves no cache entry, so the effect above calls it again as soon as loadingByVersion changes. This keeps a failed refresh's cache, and caches an empty list on a failed first load as before:

Suggested change
.then(response => {
const data = response?.data || [];
setExpansionsByVersion(prev => ({ ...prev, [versionKey]: formatExpansions(version, data) }));
// a failed request keeps what was loaded
if (Array.isArray(response?.data))
setExpansionsByVersion(prev => ({ ...prev, [versionKey]: formatExpansions(version, response.data) }));
setLoadingByVersion(prev => ({ ...prev, [versionKey]: false }));
});
.then(response => {
// a failed refresh keeps its cache; a failed first load caches nothing found, so it isn't retried in a loop
const data = Array.isArray(response?.data) ? response.data : null;
setExpansionsByVersion(prev => (data || !prev[versionKey]
? { ...prev, [versionKey]: formatExpansions(version, data || []) } : prev));
setLoadingByVersion(prev => ({ ...prev, [versionKey]: false }));
});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in 248c1c5, with the comment shortened to one line.

@paynejd paynejd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review lead (Claude, for Jon), round 1, from screenshots

Sunny, one code fix came out of screenshots of the Health dialog (production build, API mocked in the stored health shape): the Members list adds concepts and mappings together.

  • getMemberClassCounts sums health.members.concepts and health.members.mappings per class.
  • So each line, such as "In a release", is one number for concepts and mappings together, while the rest of the page counts them apart.
  • Show the counts per resource type, as health.py stores them.

…nger retried in a loop, and the Health dialog counts members per resource type
@snyaggarwal

Copy link
Copy Markdown
Contributor Author

Thanks. Both fixes from round 1 (review, screenshots) are in 248c1c5. CI is green.

  • Retry loop: I applied your suggestion. A failed refresh keeps what's cached, and a failed first load caches an empty list, so the effect stops asking.
  • Members list: getMemberClassCounts no longer adds the two types together. It returns the counts per resource type, as health.py stores them, and drops empty classes and empty types. The dialog's Members section now has a Concepts list and a Mappings list. The new headings are in all four locales and in the locale test.

I left the two "no action needed" notes as they are: the dialog shows the expansion as it was when opened, and a default expansion that isn't on the first page has nothing to open.

The fixes are merged into #114.

@snyaggarwal snyaggarwal left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review (Expansion Health epic, reviewed with OpenConceptLab/oclapi2#1069–#1073 and #114–#116): approve with nits

This is an independent pass at c991254, checked against the open API PRs. It doesn't repeat the four earlier rounds or the lead's review; their fixes hold.

Nits

  1. Deploy order: OpenConceptLab/oclapi2#1071 should deploy before this PR or with it, and the description should name it.
    • The flow: Set as default (onMarkExpansionDefault, CollectionVersionsTab.jsx ~L502) reformats the cached expansions locally, then RepoHome's refresh forces an expansions refetch.
    • With #1071:
      • the new default reads health_is_current: false and shows "Checking health", or its last state marked as out of date;
      • the old default's health is cleared, and its chip is hidden anyway, since it isn't the default.
    • Without #1071:
      • an expansion that was the default before still holds its old health with health_is_current: true, so its chip shows stale health as current;
      • one never computed shows no chip until the nightly recheck.
  2. Nothing re-reads health after the queued recompute finishes. After Set as default, the version chip and the row chip stay on "Checking health" until the next manual refresh. Either do one delayed refetch after Set as default, or say in the description that it updates on refresh.
  3. For an expansion still building, the API marks None, not False (OpenConceptLab/oclapi2#1071, noted there). The chip then says it will be checked when health checks run, though the build computes it when it ends. Only API callers reach this, since Set as default is disabled while processing.

Checked, no issue

  • Right after the switch: getVersionHealthStatus matches on version.expansion_url, including versionOverrides, so it picks the new default at once.
  • Field shapes: annotate_expansion_health and the expansion serializer's health and health_is_current match what expansionHealth.js reads.
  • No conflict with #1071's DB check: update_health's new default-in-DB guard agrees with the client's default-only gating.
  • Refresh: a failed refresh keeps its cache, and the forced refetch doesn't loop.
  • i18n: every new key is in en, es and pt-BR (with _many) and zh (with _other). Placeholders match en.
  • Open core: no plan, quota or entitlement wording or logic.
  • CI is green.

@snyaggarwal

Copy link
Copy Markdown
Contributor Author

Thanks. Both nits from the independent review are handled in the description, with no code change:

  1. Deploy order: the description now has a Deploy order section: deploy OpenConceptLab/ocl_online#775 | A new default expansion gets health right away; the old default drops its own oclapi2#1071 before this PR or with it, and what goes wrong without it.
  2. No re-read after the queued recompute: I didn't add a delayed refetch. The API waits EXPANSION_HEALTH_DEBOUNCE_SECONDS (60s) before it rechecks, then the check takes as long as it takes, so a single delayed refetch would be a guess. The description now says that after Set as default the chips show "Checking health", or the last state marked out of date, until the versions list next loads.
  3. None while building: no change here; it's noted on OpenConceptLab/ocl_online#775 | A new default expansion gets health right away; the old default drops its own oclapi2#1071, and Set as default is disabled while processing.

@paynejd paynejd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review lead (Claude, for Jon), round 2

COMMENT. At c991254 every code point from round 1 is met and CI is green. This PR can't be approved yet: it settles two things in code that Jon's "Collection and Expansion Rules" page still lists as open, so the wording and the empty-expansion call wait on Jon.

Earlier points (all met or accepted)

  • Retried without end after a failed expansions request: met. CollectionVersionsTab.jsx:289 stores only an array response, keeps the cache on a failed refresh, and caches an empty list on a failed first load, so the effect stops asking.
  • The Members list added concepts and mappings together: met. getMemberClassCounts returns counts per resource type, and the dialog lists Concepts and Mappings apart.
  • Dialog shows the expansion as it was when opened; a default expansion off the first page has nothing to open: accepted, as before.
  • Sunny's 11-25 points (deploy order, no re-read after the queued recheck, None while building): met in the description or accepted with a reason.
  • The display matches core/collections/health.py on master: four states, all twelve reason codes with the field each one names, head_concept and head_mapping, health_is_current as true, false and null, and the versions list's expansion_health {state, is_current}.

Waiting on Jon's rules page (not a defect in the code)

  1. How states are named to users. The chip, the dialog and all four locale files show "Healthy" and "Unhealthy" (state_unhealthy; es "No saludable", pt-BR "Não saudável", zh "不健康"). Jon's direction is that people never see "unhealthy", and that a version that checks out gets no label, with each problem named in plain words. The page lists this as still open, with this PR's wording as one of three options. When Jon picks, the change is small: HEALTH_STATES in expansionHealth.js, ExpansionHealthChip.jsx:26 to return nothing when the state checks out, and the four locale files.
  2. An expansion with no members. The chip says "Empty" and the named problems appear only in the dialog, which keeps what the API reports today. Jon hasn't decided whether the problems should come first.
  3. The four problems Sunny added (value set without an expansion, unresolved system-version entry, references that disagree, members without a reference) are shown as problems. Jon hasn't given his second opinion on them yet.
  4. "Named at more than one version on purpose" is shown as information, as the rules page proposes, and "source recorded twice" as a problem. Both stay open until Jon rules on references that name their own version.

New finding, optional (nit)

  • CollectionVersionsTab.jsx:305: when a versions load lands while an earlier expansions/ request for a cached version is still in flight, fetchExpansions(version, true) returns at once (loadingByVersion is true), and the older response can then be the one shown until the next load. It needs two requests overlapping and a health change between them, so no action is needed. If you want it closed, remember the forced refresh and run it when the in-flight request ends.

Tickets' other criteria: Jon's mockup approval, the owners' note and the link to the fixed-version flow (ocl_issues#3006) are not code and aren't here, as the description says.

CI: "Lint and test" passes at c991254.

@snyaggarwal

Copy link
Copy Markdown
Contributor Author

@paynejd a reminder: this PR is ready in code (CI green, all review points met) and is waiting only on your decisions:

  1. State names: today the chip says "Healthy" and "Unhealthy". Keep them, or no chip when a version checks out and another name for "Unhealthy"?
  2. An expansion with no members: the chip says "Empty" and its named problems show only in the dialog. Should the problems show first?
  3. Four added problems: a value set without an expansion, a system-version entry that can't be resolved, references that disagree, and members with no reference. Problems, or information?
  4. Named versions: a reference that names more than one version on purpose shows as information; a source recorded twice shows as a problem. OK?
  5. Concept- and mapping-version references (OQ-39 on ocl_online#549): count them as information rather than a problem, so they don't set the state?

Ticket: OpenConceptLab/ocl_issues#3004.

… health chip; each named problem gets its own, and Uses HEAD and No members are neutral

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d problem, the neutral facts and Unsupported filter

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

paynejd commented Nov 29, 2026

Copy link
Copy Markdown
Member

Review lead (Claude, for Jon), round 3, head 39c274e.

Verdict: one gap left: the chip labels. Answers 2 to 4 on OpenConceptLab/ocl_online#549 are carried out. Answer 5 (concept and mapping version references) waits for Jon's review, and until then they stay a problem, as built.

Met

  • No chip when an expansion checks out, and no "Healthy" or "Unhealthy" anywhere (getHealthChips).
  • One chip per named problem, problems first, then "Uses HEAD" and "No members" as neutral chips.
  • All four added problems are problems, and "Unsupported filter" (filter_not_applied) is in.
  • Versions named on purpose get a line in the details ("N repositories are named at more than one version on purpose"), not a chip.

Gap: answer 1 asks for the rules page's state labels. Most chips use other words. Please use these labels as they stand; the count can follow the label or go in the details:

Reason This PR Rules page
inconsistent_resolution References disagree on a repository Mixed versions of a source
resource_versioned_references Reference to a concept or mapping version Concept-version references
unresolved_references Unresolved reference References not resolved
value_set_without_expansion Value set without an expansion Value set has no expansion
system_version_unresolved Unresolved system-version entry Version parameter not found
unreleased_versions Member from an unreleased version Unreleased content
interim_resource_versions Member at an interim version Replaced concept versions
version_mismatches Member in another version Version mismatch
ambiguous_members References disagree on a member References disagree
unattributed_members Member with no reference Members without a reference

duplicate_repo_versions ("Source recorded twice"), locked_version_deleted, filter_not_applied, "Uses HEAD" and "No members" already match. The first one matters most: this PR's "References disagree on a repository" uses the page's name for ambiguous_members on a different problem.

CI: Lint and test pass. It ships with the badge after Dec 1, as agreed.

…bels, with the count after them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
snyaggarwal added a commit that referenced this pull request Nov 29, 2026
…s health chips beside the release notice imports

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

paynejd commented Nov 29, 2026

Copy link
Copy Markdown
Member

Review lead (Claude, for Jon), round 4, head 4c59632.

Verdict: ready to approve. Answers 1 to 4 on OpenConceptLab/ocl_online#549 are carried out. Answer 5 (concept and mapping version references) waits for Jon's review, and until then they stay a problem, as built. It ships with the badge after Dec 1, as agreed.

  • Answer 1, the round-3 gap: met (4c59632). Every problem chip now uses the rules page's label, with the count after it: Mixed versions of a source, Concept-version references, References not resolved, Value set has no expansion, Version parameter not found, Unreleased content, Replaced concept versions, Version mismatch, References disagree, Members without a reference. Source recorded twice, Locked version deleted, Unsupported filter, Uses HEAD and No members already matched. I checked it on screen with mocked data.
  • No chip when an expansion checks out, problems first, neutral facts after, and versions named on purpose as a line in the details: unchanged from round 3.

Nit (optional): three plural forms still put the count first and change the label: "2 sources recorded twice", "2 locked versions deleted", "2 unsupported filters". "Source recorded twice (2)", "Locked version deleted (2)" and "Unsupported filter (2)" would match the others.

CI: Lint and test pass. It merges cleanly with main, and #114 no longer conflicts with it.

snyaggarwal and others added 5 commits November 29, 2026 20:13
…upported-filter chips put the count after the label, like the others

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…list of repo chips marked explicit, evaluated and locked; health lists use repo chips

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd its chip

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…versions column beside the rebuild confirmation's notice lock

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…section's comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nformation: a neutral chip after the problems, under their own heading in the details

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

snyaggarwal commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Review at c1f86b5: changes needed. Update: 1 to 4 are fixed in c736d7c, so only nits (5 to 7) are left: approve with nits.

An independent pass over what is new since the round 4 verdict from @paynejd: the repo version chips, the lock icon and the information reasons. It also covers the lock rework, now in c736d7c.

# Severity Finding Status
1 important The lock shows where nothing is locked. c1f86b5 marks every evaluated version of a default expansion. The API locks only the newest one per repo, only on HEAD, and only with EXPANSION_LOCKED_REPO_VERSION_TOGGLE on. A rebuild also keeps versions named in system-version, and the value sets of a version made with Copy HEAD's parameters. Fixed in c736d7c
2 important Screen readers can't read the explicit, evaluated and lock icons. The icons are hidden from them, and these used to be visible headings. Fixed in c736d7c. The tooltips still need a mouse.
3 nit The lock rework missed some forms of system-version, and could mark a second value set version or a source that shares a canonical URL. Fixed in c736d7c
4 nit emptyLabel is never passed. Fixed in c736d7c
5 nit The chip doesn't show the owner, so two owners' sources with the same short code look the same until hover. For Jon. Open
6 nit Repo links in the row now open in the same tab, and the dialog lost its two counts. Open
7 nit The description still says Healthy / Unhealthy / Empty and 233 tests, and doesn't mention chips, locks or information reasons. Fixed

Fine: the fields the chips read in the row and the dialog, the default flag, created_at as the order, the toggle, the information reasons (they match OpenConceptLab/oclapi2#1106), sorting, and all four languages. 334 tests pass, eslint is clean and CI passes at c736d7c. It merges cleanly with main and #114.

c736d7c also makes the lock a small grey badge on the chip, removes the list's left indent and adds 4px between the two icons. Those display changes were made after the review.

…, shown only where HEAD's locking or a rebuild keeps the version; no left indent

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@snyaggarwal
snyaggarwal merged commit a413e40 into main Dec 2, 2026
2 checks passed
@snyaggarwal
snyaggarwal deleted the issues-3004-expansion-health-badge branch December 2, 2026 12:58
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.

2 participants