fix(dashboards): prevent render loops with stable ready handlers and idempotent updates; improve filter hydration guards
fix(export): return 501 with hint when Playwright browsers missing; nicer error toast in UI fix(site-header): export primary/secondary buttons as named for SC safety; keep static props for compat fix(portal): add DialogDescription for a11y; tidy preview dialog fix(csats): avoid reinit state loops with timestamp guard chore(prisma): default dev DB to prisma/db.dev.sqlite and log path chore(auth): add dev bypass flags wiring (server/client) for local testing dev: seed script for Convex demo data
This commit is contained in:
parent
ff0254df18
commit
b62e14d8eb
13 changed files with 210 additions and 103 deletions
19
scripts/seed-convex-demo.mjs
Normal file
19
scripts/seed-convex-demo.mjs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import 'dotenv/config'
|
||||
import { ConvexHttpClient } from 'convex/browser'
|
||||
import { api } from '../convex/_generated/api.js'
|
||||
|
||||
async function main() {
|
||||
const url = process.env.NEXT_PUBLIC_CONVEX_URL || 'http://127.0.0.1:3210'
|
||||
const client = new ConvexHttpClient(url)
|
||||
console.log(`[seed] Using Convex at ${url}`)
|
||||
try {
|
||||
await client.mutation(api.seed.seedDemo, {})
|
||||
console.log('[seed] Convex demo data ensured (queues/users)')
|
||||
} catch (err) {
|
||||
console.error('[seed] Failed to seed Convex demo data:', err?.message || err)
|
||||
process.exitCode = 1
|
||||
}
|
||||
}
|
||||
|
||||
main()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue