Add debug More/Clear/Upload tools for paintings and artist portraits.

Extends the debug panel on painting detail and artist bio with a 20-result search picker, local image upload, and clear-to-empty-frame workflow, plus API routes, artist checkup migration, and documentation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Danila Khodjaef
2026-06-21 13:14:06 +03:00
co-authored by Cursor
parent b4425445bb
commit 0972b5df99
56 changed files with 1980 additions and 92 deletions
+25
View File
@@ -0,0 +1,25 @@
require('dotenv').config();
const fs = require('fs');
const path = require('path');
const pool = require('../server/db');
async function main() {
const sqlPath = path.join(__dirname, '../db/migrate-artist-checkup-flags.sql');
await pool.query(fs.readFileSync(sqlPath, 'utf8'));
await pool.query(
`UPDATE artists SET checkup_checked = true WHERE checkup_fixed = true AND NOT checkup_checked`
);
const { rows } = await pool.query(`
SELECT
COUNT(*) FILTER (WHERE checkup_checked)::int AS checked,
COUNT(*) FILTER (WHERE checkup_fixed)::int AS fixed
FROM artists
`);
console.log(`artist checkup flags ready (${rows[0].checked} checked, ${rows[0].fixed} fixed)`);
await pool.end();
}
main().catch((err) => {
console.error(err);
process.exit(1);
});