Commit d4060470
d40604704c6aMerged
Scott Nixon <[email protected]> ยท 9 months ago ยท 3 files ยท ~3 modified
Description
[attractor-357] Update execute.rs to use project-aware paths for decompose and scaffold
- Add project_id parameter to start_execution server function
- Look up project folder path from database
- Construct spec_path from project folder: {folder}/.attractor/spec.md
- Set current_dir on decompose and scaffold commands to project folder
- Read pipeline file from project directory
- Update ApprovalBar component to accept and pass project_id
- Update MainLayout to pass project_id=1 (temporary, will be updated in attractor-uuw)
Details
- Commit
- d40604704c6a
- Parent
- 9ed40ddc9bd0
crates/attractor-web/src/components/approval_bar.rsmodifiedView file
@@ -6,6 +6,7 @@
66
/// Triggers decompose โ scaffold โ pipeline chain.77
#[component]88
pub fn ApprovalBar<F>(9+
project_id: i64,910
enabled: impl Fn() -> bool + Send + Sync + Copy + 'static,1011
on_approve: F,1112
) -> impl IntoView@@ -14,7 +15,7 @@
1415
{1516
let (phase, set_phase) = signal(Option::<ExecutionPhase>::None);1617
17-
let execute_action = Action::new(move |_: &()| async move { start_execution().await });18+
let execute_action = Action::new(move |_: &()| async move { start_execution(project_id).await });1819
1920
// Watch for action completion2021
Effect::new(move || {crates/attractor-web/src/components/layout.rsmodifiedView file
Loading diffโฆ
crates/attractor-web/src/server/execute.rsmodifiedView file
Loading diffโฆ