Skip to content

feat(map-editor): accept dominant-baseline and show repaired changes (PPT-2832) - #600

Merged
camreeves merged 2 commits into
developfrom
fix/PPT-2832-dominant-baseline
Oct 21, 2026
Merged

camreeves merged 2 commits into
developfrom
fix/PPT-2832-dominant-baseline

Conversation

@camreeves

@camreeves camreeves commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Editor side of PlaceOS/rest-api#458, from testing map editing on placeos-dev on 21 Oct with five models.

1. Accept dominant-baseline on AI-edited text. GPT-6.1 sol adds dominant-baseline="middle" to every label it inserts. The attribute wasn't on the allowlist, so every one of those inserts was rejected even though the positions were right: 4 of 4 labels, twice. Its value must be one of the SVG 2 keywords or text-before-edge/text-after-edge. ops-schema.json is updated to match rest-api.

2. Note repaired changes. rest-api now asks the model once more when it rejects some of an answer's ops, and records the outcome as repair on the job. The proposal card shows "Rejected changes corrected automatically: N" when the second answer was used, and nothing otherwise. MapAIJob.repair is optional, so jobs from an older server are unaffected.

Testing:

  • New validate.spec.ts case: middle passes, centre is rejected and locked. It fails without the allowlist entry.
  • New panel test for the note.
  • All 323 map-editor tests pass, and lint and the lib typecheck are clean.

🤖 Generated with Claude Code

GPT-6.1 sol adds dominant-baseline="middle" to every label it inserts.
The attribute was missing from the allowlist, so each such insert was
rejected even though its position was right. Testing on placeos-dev on
21 Oct lost 4 of 4 labels on both runs.

The value is limited to the SVG 2 keywords plus text-before-edge and
text-after-edge. The ops schema description lists it, and rest-api
carries the same file.

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

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
frontend-templates Ignored Ignored Preview Oct 21, 2026 1:22am UTC

@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

Deployment failed for project frontend-templates with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/placeos?upgradeToPro=build-rate-limit

…rect (PPT-2832)

rest-api now asks the model once more when it rejects some of an answer's
ops, and records the outcome as `repair` on the job. The proposal card
says how many rejected changes were corrected that way, so a reviewer
knows the proposal is the model's second attempt. Nothing is shown when
the second answer was not used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@camreeves camreeves changed the title fix(map-editor): accept dominant-baseline on AI-edited text (PPT-2832) feat(map-editor): accept dominant-baseline and show repaired changes (PPT-2832) Oct 21, 2026
@camreeves
camreeves merged commit f716d20 into develop Oct 21, 2026
6 of 7 checks passed
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.

1 participant