feat: Add admin experiment management pages and components

- Implemented ExperimentPage for viewing and editing individual experiments.
- Created ExperimentsAdminPage for managing all experiments with a list and a modal for creating new experiments.
- Developed AnnotatePage for annotating experiments with different views based on annotation tools.
- Added CreateExperimentModal for creating new experiments with dataset selection.
- Introduced DeleteExperimentButton for confirming and executing experiment deletions.
- Built EditableExperimentHeader for editing experiment details.
- Created ExperimentsList component to display a list of experiments with links to their details.
This commit is contained in:
averel10
2026-03-20 07:26:02 +01:00
parent 4b35e2392e
commit dd5d99ec24
16 changed files with 1593 additions and 60 deletions

View File

@@ -87,7 +87,7 @@ export async function saveAnnotations(
/** Returns all datasets (for the home page). */
export async function getAllExperiments() {
return db.select().from(experiment).orderBy(experiment.id);
return db.select().from(experiment).where(eq(experiment.published, true)).orderBy(experiment.id);
}
/** Returns annotation progress for the current user in a dataset. */