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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user