feat(build): accept domain ids on keyed targets

Let generated string-keyed targets accept displayable domain ids directly, removing caller-side to_string noise from keyed partial append/replace flows.

req: codegen/002

req: dx/006
This commit is contained in:
slhx agent
2026-06-02 07:34:00 +02:00
parent dfd8020617
commit 339ca769fb
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ mod tests {
fn todos_append_keyed_rows_from_form_input() {
fn add_todo(input: TodoInput) -> impl IntoEffect {
let todo = Todo { id: 7, title: input.title };
todos::targets::todo_row.append(todo.id.to_string(), &TodoRow { title: todo.title })
todos::targets::todo_row.append(todo.id, &TodoRow { title: todo.title })
}
let effect = inspect(add_todo(TodoInput { title: "Ship v0".into() }));