Refactor Experiment components to support new experiment book structure
- Updated ExperimentForm to handle additional phase parameters and improved initial state management. - Modified ExperimentModal to fetch experiment data with phase configuration and ensure unique experiment numbers within the same phase. - Renamed references from "phases" to "books" across ExperimentPhases, PhaseExperiments, and related components for consistency with the new terminology. - Enhanced error handling and validation for new shelling parameters in ExperimentForm. - Updated Supabase interface definitions to reflect changes in experiment and phase data structures.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
-- ==============================================
|
||||
-- 6. CREATE EXPERIMENTS FOR PHASE 2
|
||||
-- ==============================================
|
||||
|
||||
-- TEMPORARILY DISABLED (see config.toml sql_paths). When re-enabling, replace
|
||||
-- all "experiment_phases" with "experiment_books" (table renamed in migration 00016).
|
||||
--
|
||||
-- This seed file creates experiments from phase_2_JC_experimental_run_sheet.csv
|
||||
-- Each experiment has 3 repetitions with specific parameters
|
||||
-- Experiment numbers are incremented by 1 (CSV 0-19 becomes DB 1-20)
|
||||
|
||||
Reference in New Issue
Block a user