Skip to content

Commit c9aa572

Browse files
Edwin Chanclaude
authored andcommitted
docs: surface images + [[img:KEY]] in JSON import schema panel
Admins couldn't tell from the UI that the new image-asset infra existed. Added the images array and a token usage example to the on-page schema preview so the format is discoverable without diving into source. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 4bcd86a commit c9aa572

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/admin/import/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ export default async function ImportPage() {
5252
"statementFormat": "LATEX",
5353
"status": "DRAFT",
5454
"topicTags": ["Algebra"],
55+
"images": [
56+
{ "key": "fig1", "mimeType": "image/png", "data": "<base64>" }
57+
],
5558
"problems": [
5659
{
5760
"number": 1,
58-
"statement": "Find $\\\\sqrt{2}$.",
61+
"statement": "See [[img:fig1]]. Find $\\\\sqrt{2}$.",
5962
"answerType": "EXPRESSION",
6063
"answerKey": "sqrt(2)",
6164
"acceptedAnswers": ["2^0.5"],
@@ -66,6 +69,7 @@ export default async function ImportPage() {
6669
<div className="check-list">
6770
<span>Schema validation</span>
6871
<span>LaTeX or HTML statements</span>
72+
<span>Inline images via [[img:KEY]]</span>
6973
<span>Answer type preview</span>
7074
<span>Draft before publish</span>
7175
<span>Solutions stored as notes</span>

0 commit comments

Comments
 (0)