diff --git a/static/app.js b/static/app.js index c00a7ed..821b5b9 100644 --- a/static/app.js +++ b/static/app.js @@ -124,7 +124,7 @@ const SEVERITY_LABEL = { const gradeState = { files: [], result: null, busy: false }; -function renderGradeBlock(g) { +function renderGradeBlock(g, opts = {}) { if (!g) return ''; const m = g.edge_measurements || null; let measuredLine = ''; @@ -160,7 +160,7 @@ function renderGradeBlock(g) {
A photo can't show surface scratches, print lines, or light edge wear the way a grader's raking light does — and a seller's listing photo is often lit to hide them. Treat this as a rough screen, not a prediction of what it comes back as.
-
${renderSlab(g)}
+
${renderSlab(g, opts)}
${rows}
${(g.limitations || []).length ? `
Couldn't check:
` : ''} @@ -194,7 +194,7 @@ function renderSlab(g, opts = {}) {
${g.card_type ? `
${esc(TYPE_LABEL[g.card_type] || 'Card')}
` : ''} -
${esc(title)}
+ ${opts.hideTitle ? '' : `
${esc(title)}
`}
${esc(bits)}
@@ -361,7 +361,7 @@ function renderEntryModal(g) {
${esc(fmtWhen(g.created_at))} · ${g.usage && g.usage.model ? esc(g.usage.model) : ''}
- ${renderGradeBlock(g)} + ${renderGradeBlock(g, { hideTitle: true })}