Repository navigation
Show the decision card on the approval page - #621
Merged
Merged
Conversation
Deploying nemar-website with
|
| Latest commit: |
6ec8f81
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://64bad602.nemar-website.pages.dev |
| Branch Preview URL: | https://feat-p5-decision-card.nemar-website.pages.dev |
This was referenced Nov 28, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase P5 of epic nemarOrg/nemar-cli#2449 (nemarOrg/nemar-cli#2456): the approval page shows the administrator's decision card.
What changed
decision_cardfrom the review detail it already fetches (GET /admin/publish/:id/review, the routenemar admin dataset publish showreads; production nemar-cli 0.10.57 serves it) and draws it first, in the order and with the labels of the terminal's renderer (src/lib/decision-card-display.ts): next action, license panel (cue, reason, Field, LICENSE fact, Matcher, review and fresher lineage with declared licenses, dropped DOIs, skipped relations, permission, other reasons), name panel (cue, line, upstream titles), the dataset's own words side by side (.nemar/metadata.jsonbesidedataset_description.json, Version, anonymous note, the not-as-reviewed note), authors with placeholders flagged, per-question answer with its strongest finding (label only, as the terminal does; the model's note stays in the findings section under its label), the identifier screen line with its head line, and the automatic-denial line.next_action.commandis never read. If the card suggests approve while this page does not offer Approve (ADR 0027's stricter rules), the suggestion is replaced by a page-owned sentence that says so.vother than 1, a card without its parts, or an out-of-step detail draws the panel exactly as before.textContent(the existingPanelNodetree); control and format characters (bidirectional overrides included) are removed, as the terminal'splain()does.Test plan
bun run test: 8941 passed, 20 skipped (newsrc/lib/decision-card.test.ts, 13 tests)bun run lintandbun run typecheck: 0 errorsbun run buildtest/fixtures/decision-card/cards.json: four cards built by nemar-cli's realbuildDecisionCardat v0.10.57 (d1c777cc) from its own test inputs; the red one is the golden card of nemar-cli'stest/decision-card-display.unit.test.ts, and the page's words are pinned in the same orderNo screenshot: the page needs a signed-in admin session and the review route, and the repository has no local stand-in for them, so a screenshot would mean contacting a live service.