diff --git a/cli/cli/src/commands/generate.rs b/cli/cli/src/commands/generate.rs index a7497b939..ddf18f09f 100644 --- a/cli/cli/src/commands/generate.rs +++ b/cli/cli/src/commands/generate.rs @@ -349,6 +349,14 @@ for (unique_id, node) in &dbt_catalog.nodes { } } + // Try wildcard lookup: find any key ending with .model_name + let model_suffix = format!(".{}", model_name); + for (key, &node) in lookup { + if key.ends_with(&model_suffix) { + return Some((node, "wildcard match".to_string(), key.clone())); + } + } + // Fallback to simple name lookup lookup.get(model_name).map(|&node| (node, "simple name".to_string(), model_name.to_string()) diff --git a/web/src/components/ui/card/FileCard.tsx b/web/src/components/ui/card/FileCard.tsx index 5db26bb0d..e527ca1ec 100644 --- a/web/src/components/ui/card/FileCard.tsx +++ b/web/src/components/ui/card/FileCard.tsx @@ -171,7 +171,7 @@ const CollapseToggleIcon = React.memo( className )} onClick={onClick}> - + {showChevron && (