Repository navigation
Conversation
…c when the release supports it, and clinical headers are suggested as Name - Choosing a release with semantic search selects OCL Semantic in a new project, until someone adds or removes an algorithm. Saved and copied projects keep their own. - The change applies to the algorithms as they are when the releases have loaded, so a pick made while they load is no longer lost. - A header that ends in Diagnosis, Condition, Procedure, Drug or Medication is suggested as Name. - The form says when no column is mapped to Name. Saving still works. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
… is never suggested as Name A header such as Test Date took the Name suggestion from the Diagnosis column beside it, and Date of Diagnosis ended in a clinical word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…eps the same one The clinical words only fill the gap: Diagnosis Description still wins over Diagnosis. Date/Time counts as a date header too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…n, and other headers split as before Test (Date/Time) is a date header. Drug Name/Strength no longer takes Name from Generic Drug Name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…rged into them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…ined by a slash isn't a name either Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…olumn mapping is missing The line under the column table is gone. A save by hand without a column mapped to Name is refused with "Missing required column mapping: Name.", and one without an owner, a name or a file with "Missing required field: ...". Save & Close stays on, so it can say so, and Upload file has a star. Autosave isn't held to it: a saved project keeps its work, and a refused save leaves a pending autosave to run. The page's message shows before a file is uploaded too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…nt box takes its default when the project's history arrives Opened before the history had loaded, the box stayed off. It now takes the project's default then, unless the user has already changed it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…ge, a name of spaces is missing, and the AI box takes its default when access arrives late An autosave refused for a missing version no longer replaces the message a save by hand just showed. A project name of only spaces counts as missing. The AutoMatch dialog's box also takes its default when the user's access to the OCL AI Assistant arrives while it's open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…issing now, not an older message An autosave is still refused only for a missing version, but its message now lists everything missing at that moment, as a save by hand's does. It no longer keeps an earlier message that may have gone out of date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
… in the form's order, and the empty fields show their error "Missing required field: Upload file." for one, and "Missing required fields: Name, Upload file, Repository, Version." for several, in the form's order. A missing version is named there too, not in a sentence of its own, and Repository is named only when the version is missing as well: a save needs only the version. After a refused save, Name, Repository and Version show their error while they're empty, until a save goes through. Upload file keeps its star. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…th a save that went through It ended when a save by hand passed its checks, so a save that then failed ended it too early, and an autosave that went through didn't end it at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
|
Codex review, pass 1 (codex-cli 0.171.0, commit 92cb1ff) Two P1 findings: one fixed, one not changed.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "full",
"commit": "92cb1ff",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "F1.1",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/columnSuggestions.js",
"line": 28,
"claim": "A Test Date column takes the Name suggestion away from a Diagnosis column.",
"scenario": "Upload a sheet with Test Date and Diagnosis headers. The test token outranks diagnosis, so the form maps Test Date to Name and leaves Diagnosis unmapped. AutoMatch receives dates as names, and the no-Name warning stays hidden.",
"action": "Give an unambiguous clinical name header priority over date headers. Add a regression test for Test Date alongside Diagnosis.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.2",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/ConfigurationForm.jsx",
"line": 558,
"claim": "The toolbar can save a project while the no-Name warning is absent.",
"scenario": "In a new project, select a target release and upload a sheet with only Local Code and Group. Close Configure before scrolling to Field Configuration, then use the toolbar Save button. Closing Configure removes the only warning, and the save proceeds without showing it.",
"action": "Surface the nonblocking warning in the save flow when Configure is closed, and test saving from the toolbar with no Name mapping.",
"lines_delta": null,
"confidence": "high"
}
]
} |
|
Codex review, pass 2 (codex-cli 0.171.0, commit 238cdd4) Two P1 findings, both fixed.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "verify",
"commit": "238cdd46fef94c4765f73a36fee8d8023a10661b",
"verdict": "findings",
"prior": [
{"id": "F1.1", "status": "resolved"},
{"id": "F1.2", "status": "unresolved"}
],
"findings": [
{
"id": "F2.1",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/columnSuggestions.js",
"line": 42,
"claim": "A date/time header can still take the only Name suggestion from Diagnosis.",
"scenario": "Upload a sheet with timestamps under `Test Date/Time` and diagnosis names under `Diagnosis`. The date check misses `date/time` because the tokenizer leaves the slash intact. The `test` rule wins, so AutoMatch receives timestamps as names and the form shows no missing-Name warning.",
"action": "Recognize date/time headers in the date check and add a test that gives Name to `Diagnosis` for this pair.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F2.2",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/columnSuggestions.js",
"line": 29,
"claim": "The new clinical keywords can displace an existing Name suggestion for the column containing the names.",
"scenario": "Upload a sheet with ICD-10 codes such as `E11.9` under `Diagnosis` and the corresponding text under `Diagnosis Description`. The base branch suggests Name for `Diagnosis Description`. This branch gives Name to `Diagnosis` instead, so AutoMatch receives the codes as names.",
"action": "Keep `description` ahead of the new clinical keywords and test that `Diagnosis Description` keeps the Name suggestion when both headers are present.",
"lines_delta": null,
"confidence": "high"
}
]
} |
|
Codex review, pass 3 (codex-cli 0.171.0, commit 6470cb1) Two P1 findings, both fixed.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "verify",
"commit": "6470cb1",
"verdict": "findings",
"prior": [
{"id": "F1.1", "status": "resolved"},
{"id": "F1.2", "status": "resolved"},
{"id": "F2.1", "status": "regressed"},
{"id": "F2.2", "status": "resolved"}
],
"findings": [
{
"id": "F3.1",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/columnSuggestions.js",
"line": 34,
"claim": "Splitting on slashes changes which column receives an existing Name suggestion.",
"scenario": "Upload a sheet with `Drug Name/Strength` followed by `Generic Drug Name`. The base branch maps `Generic Drug Name` to Name. HEAD maps `Drug Name/Strength` instead, so AutoMatch uses values such as `amoxicillin 500 mg` in place of the generic name.",
"action": "Scope slash handling to date detection and keep the previous delimiters for existing suggestion rules. Add a regression test for the two drug columns.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F3.2",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/columnSuggestions.js",
"line": 42,
"claim": "A date word next to a parenthesis can still let a timestamp column take Name from a diagnosis column.",
"scenario": "Upload a sheet with `Test (Date/Time)` and `Diagnosis`. The date check misses `(date`, so `test` outranks `diagnosis`. The form maps timestamps to Name and leaves Diagnosis unmapped.",
"action": "Recognize date words next to punctuation in the date check. Add `Test (Date/Time)` to the date-column regression test.",
"lines_delta": null,
"confidence": "high"
}
]
} |
|
Simplification review (fresh Claude subagent, commit 7566e25) Four items: two applied in cd64a31, two kept as they are.
|
|
Codex check of commits 6470cb1..cd64a31 One P1 and two P2 findings: two fixed, one accepted. The fix is cda51bd, one line and two test cases.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "final",
"commit": "cd64a31",
"verdict": "findings",
"prior": [
{"id": "F3.1", "status": "regressed"},
{"id": "F3.2", "status": "regressed"}
],
"findings": [
{
"id": "FC.1",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/columnSuggestions.js",
"line": 33,
"claim": "Removing slash splitting lets code columns take the clinical Name suggestion.",
"scenario": "Upload a sheet with `ICD-10 Code/ID - Diagnosis` followed by `Primary Diagnosis`. At `6470cb1`, the code column was excluded and `Primary Diagnosis` got Name. At `cd64a31`, `Code/ID` is a single token, so the first column takes Name and the diagnosis text is left unmapped.",
"action": "Preserve legacy Name matching, then use slash-aware tokens and code exclusions when evaluating clinical fallback candidates.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "FC.2",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/columnSuggestions.js",
"line": 41,
"claim": "The date check gives different Name suggestions for canonically equivalent headers.",
"scenario": "A column holding test names is headed `Test Name (Daté)`. With a decomposed accent, the regex sees `Date` followed by a combining mark and suppresses Name. The same visible header with a precomposed `é` still gets Name, and both forms got Name at `6470cb1`.",
"action": "Use Unicode-aware word boundaries that treat combining marks as part of a word, and test both encodings of the header.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "FC.3",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/__tests__/selectedAlgos.test.js",
"line": 93,
"claim": "The test merge removed coverage for keeping a chosen algorithm when no default is supplied.",
"scenario": "A user selects Search and then chooses a semantic-enabled release. The caller supplies the existing selection with no default. The remaining tests pass even if that combination clears the selection, because they cover an empty list without a default and a populated list with a default.",
"action": "Add the no-default call to the existing test for retaining a chosen algorithm.",
"lines_delta": null,
"confidence": "high"
}
]
} |
|
Codex check of commits cd64a31..cda51bd One P2 finding, accepted.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "final",
"commit": "cda51bd",
"verdict": "findings",
"prior": [
{"id": "FC.1", "status": "regressed"},
{"id": "FC.2", "status": "unresolved"},
{"id": "FC.3", "status": "resolved"}
],
"findings": [
{
"id": "FC.1",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/columnSuggestions.js",
"line": 36,
"claim": "The slash-aware code check removes the clinical Name candidate but lets the code column take a different field from the intended column.",
"scenario": "Upload a LOINC sheet with `Specimen Code/ID - Procedure`, `Specimen type`, and `Procedure Name`, in that order. The parent commit suggests `Property: SYSTEM` for `Specimen type`. This commit suggests it for the identifier column and leaves `Specimen type` unmapped.",
"action": "Exclude slash-delimited code headers from fallback field rules while preserving Name suggestions based on the original Name keywords. Add a test with both the code column and the intended SYSTEM column.",
"lines_delta": null,
"confidence": "high"
}
]
} |
|
Codex check of commits cda51bd..b827b4d One P1 and three P2 findings: three fixed in 4bd367b, one declined.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "final",
"commit": "b827b4d",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "FC.1",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/MapProject.jsx",
"line": 1805,
"claim": "A pending autosave can overwrite the combined manual-save refusal.",
"scenario": "On a saved project without a Name mapping, clear the target repository, close settings to queue an autosave, and click toolbar Save just before the autosave fires. The manual refusal lists both problems, but the autosave immediately replaces it with the target-version message and hides the Name requirement.",
"action": "Preserve the manual validation message when the pending autosave is refused for a missing target version.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "FC.2",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/MapProject.jsx",
"line": 1784,
"claim": "A project name containing only whitespace bypasses required-field validation.",
"scenario": "With an owner, a file mapped to Name, and a target version selected, replace the project name with spaces and click Save & Close. The client sends the request with a blank name and never shows the required-field message.",
"action": "Trim the project name when checking whether the required field is empty.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "FC.3",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/MapProject.jsx",
"line": 1787,
"claim": "The combined refusal omits the required Name mapping before a file is uploaded.",
"scenario": "Click Save & Close on a new project with no file and no column mappings. The message lists the missing file and any other missing fields, but omits “Missing required column mapping: Name.”",
"action": "Include missing required column mappings in manual-save validation even when there is no file.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "FC.4",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/MapProject.jsx",
"line": 3390,
"claim": "The AutoMatch checkbox misses the project default if AI access refreshes after project history arrives.",
"scenario": "A user whose cached permissions lack AI access opens AutoMatch before the history and permission requests finish. The history shows that the last run used AI. If history arrives first, the default is skipped while the checkbox is hidden. When the permission refresh reveals the checkbox, it appears unchecked even though the user has never changed it.",
"action": "Reevaluate the default when AI access becomes available while the dialog is open, using the existing guard for a user change.",
"lines_delta": null,
"confidence": "high"
}
]
} |
|
Codex check of commits b827b4d..4bd367b One P2 finding, fixed.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "final",
"commit": "4bd367b",
"verdict": "findings",
"prior": [
{"id": "FC.1", "status": "regressed"},
{"id": "FC.2", "status": "resolved"},
{"id": "FC.4", "status": "resolved"}
],
"findings": [
{
"id": "FC.5",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/MapProject.jsx",
"line": 1806,
"claim": "A refused autosave can retain an outdated manual-save alert and omit the reason the autosave failed.",
"scenario": "On an existing project with a target version selected, clear the project name and click Save & Close. Fill in the name, clear the target repository, and close Configure before the alert expires. When autosave runs, Configure reopens with Version marked invalid. The toast still says Name is missing and omits the version error.",
"action": "Preserve the manual-save alert only while its errors match the current validation state. Otherwise show the reason the autosave was refused.",
"lines_delta": null,
"confidence": "high"
}
]
} |
|
Codex check of commits 4bd367b..7458b29 One P2 finding, accepted.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "final",
"commit": "7458b29",
"verdict": "findings",
"prior": [
{
"id": "FC.5",
"status": "resolved"
}
],
"findings": [
{
"id": "FC.1",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/MapProject.jsx",
"line": 1807,
"claim": "The updated autosave refusal inherits the manual refusal's dismissal timer and can disappear before the user reads it.",
"scenario": "A manual save is refused for a missing version. About three seconds later, the user clears the project name and closes configuration. The five-second autosave then adds the missing name to the open snackbar just before the original eight-second timer dismisses it.",
"action": "Key the snackbar by the refusal message so a changed message starts a fresh dismissal timer.",
"lines_delta": null,
"confidence": "high"
}
]
} |
|
Codex check of commits 7458b29..0a52a37 One P1 and one P2 finding: one fixed, one declined.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "final",
"commit": "0a52a37",
"verdict": "findings",
"prior": [
{
"id": "FC.1",
"status": "unresolved"
}
],
"findings": [
{
"id": "FC.2",
"severity": "P1",
"tag": null,
"file": "src/components/map-projects/MapProject.jsx",
"line": 1816,
"claim": "Starting a manual save clears required-field errors before the server responds. A successful autosave leaves the flag set.",
"scenario": "Clear Name and click Save, then enter a new name. If the manual retry fails on the server, clearing Name again leaves it unmarked even though no save succeeded. If you instead close settings and let the changed name autosave successfully, reopening settings and clearing Name immediately shows the old error state.",
"action": "Clear showRequiredErrors in the successful response branch shared by manual saves and autosaves.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "FC.3",
"severity": "P2",
"tag": null,
"file": "src/components/map-projects/ConfigurationForm.jsx",
"line": 278,
"claim": "The empty Repository field only turns red when Version is also empty. The version condition applies to the toast’s field list.",
"scenario": "Open a saved project whose version loads while its repository details request fails. Clear Name and click Save. The toast correctly names Name alone, but the empty Repository field stays unmarked after the refusal.",
"action": "Use showRequiredErrors and the repository field’s own emptiness to set its error state. Keep the version condition in the toast’s field list.",
"lines_delta": null,
"confidence": "high"
}
]
} |
For OpenConceptLab/ocl_online#841
A first project starts ready to match, and Save says what's missing. Until now a new project had no algorithm selected, a sheet whose names sit under Diagnosis or Procedure had no column mapped to Name, and Save & Close was off without saying why.
What changes
REQUIRED_COLUMNS.Saved projects without a Name column open and work as before, and autosave is never refused for these reasons: decisions, notes, runs and settings changes keep saving. Only pressing Save asks for the column. A refused Save no longer drops an autosave that was waiting.
Also fixed: an algorithm picked while the releases were still loading disappeared when they arrived. The update worked on the list from before the pick.
Pieces used: the message is the Mapper's own error message, the one it already showed for a missing version (the page's MUI
Snackbarwith anAlert). It was drawn with the rows table, so nothing showed before a file was uploaded. Now the page draws it. The fields' error state is their own MUITextFieldone, as Version had:RepoSearchAutocompletetakes anerrorprop for it. The star is the form's required mark. The texts are in all four languages, with singular and plural.Merging with #147: both change the line that lists
ConfigurationForm's props (this one renamesshowTargetRepoVersionErrortoshowRequiredErrors, #147 adds two). Whichever merges second fixes that one line. The other open Mapper PRs merge cleanly with this one.Checked:
npm run test:alland ESLint pass. I also went through it in Chrome against a mock API:To check after the deploy: start a new project, choose ICD-11 and its newest release, and press Save & Close: it asks for the file. Upload a sheet with a Diagnosis column: OCL Semantic is selected and Diagnosis is mapped to Name. Clear that mapping and save: it asks for Name.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7