feat: enhance experiment designer action definitions, refactor trial analysis UI, and update video playback controls

This commit is contained in:
2026-03-01 19:00:23 -05:00
parent 60d4fae72c
commit 61af467cc8
22 changed files with 591 additions and 269 deletions

View File

@@ -758,20 +758,12 @@ async function main() {
startTime.setMinutes(startTime.getMinutes() - 10); // Started 10 mins ago
const endTime = new Date(); // Ended just now
// Create the trial
const [analyticsTrial] = await db.insert(schema.trials).values({
experimentId: experiment!.id,
participantId: p101.id,
// studyId is not in trials table, it is inferred from experiment
status: "completed",
startedAt: startTime,
completedAt: endTime,
currentStepId: step5!.id, // Ended at last step
runId: randomUUID(),
metadata: {
condition: "HRIStudio",
notes: "Seeded for analytics testing"
}
}).returning();
// Create a series of events