diff options
| author | soryu <soryu@soryu.co> | 2026-02-17 13:04:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-17 13:04:18 +0000 |
| commit | 049fd3e8a15952627954678838ca5382c11ecd04 (patch) | |
| tree | 0e0c79185d358e508830802876f4ae87cd7c9507 /makima/src/db/repository.rs | |
| parent | b67b3f8e8d63361d9ff19f87fd608c03bfa3fd43 (diff) | |
| download | soryu-049fd3e8a15952627954678838ca5382c11ecd04.tar.gz soryu-049fd3e8a15952627954678838ca5382c11ecd04.zip | |
feat: reorder nav, link orders to steps, improve PR titles (#68)
* feat: soryu-co/soryu: Reorder navigation: move Orders before Contracts
* feat: soryu-co/soryu: Generate PR titles from step content instead of directive title
* feat: soryu-co/soryu: Add orderId field to step creation and link orders to steps
* feat: soryu-co/soryu: Handle completed orders during plan-orders flow
Diffstat (limited to 'makima/src/db/repository.rs')
| -rw-r--r-- | makima/src/db/repository.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/makima/src/db/repository.rs b/makima/src/db/repository.rs index aa1203a..c7b0a1f 100644 --- a/makima/src/db/repository.rs +++ b/makima/src/db/repository.rs @@ -5363,6 +5363,19 @@ pub async fn get_last_completed_step_task_id( // Directive Step CRUD // ============================================================================= +/// Get a single directive step by ID. +pub async fn get_directive_step( + pool: &PgPool, + step_id: Uuid, +) -> Result<Option<DirectiveStep>, sqlx::Error> { + sqlx::query_as::<_, DirectiveStep>( + r#"SELECT * FROM directive_steps WHERE id = $1"#, + ) + .bind(step_id) + .fetch_optional(pool) + .await +} + /// List all steps for a directive, ordered by order_index. pub async fn list_directive_steps( pool: &PgPool, |
