feat: Implement AI Gateway page with feature tiles and descriptions

feat: Update AppSidebar to include new Environments and Credentials sections

feat: Enhance node form with branch selection for triggers and deployment

feat: Create CredentialForm and CredentialRow components for managing credentials

feat: Add API endpoints for credential management

fix: Update node catalog defaults for deploy and promote nodes
This commit is contained in:
patel-lyzr
2026-05-13 22:15:08 +05:30
parent 22a0fc694d
commit 1766bdf497
32 changed files with 3982 additions and 256 deletions
+9 -6
View File
@@ -56,16 +56,19 @@ func (e *ApprovalExecutor) Execute(
restate.Set(rctx, "pending_approval_node", node.Name)
restate.Set(rctx, "pending_approval_id", awakeableID)
// Approval context for the reviewer UI: resolved message + input data.
// Approval context for the reviewer UI: resolved message + reason +
// input data.
approvalCtx := map[string]any{}
resolved := node.Parameters
if execCtx != nil {
resolved := engine.ResolveExpressions(node.Parameters, execCtx, node.Name)
if msg, ok := resolved["message"].(string); ok && msg != "" {
approvalCtx["message"] = msg
}
} else if msg, ok := node.Parameters["message"].(string); ok && msg != "" {
resolved = engine.ResolveExpressions(node.Parameters, execCtx, node.Name)
}
if msg, ok := resolved["message"].(string); ok && msg != "" {
approvalCtx["message"] = msg
}
if reason, ok := resolved["reason"].(string); ok && reason != "" {
approvalCtx["reason"] = reason
}
if len(inputItems) == 1 {
approvalCtx["inputs"] = map[string]any(inputItems[0])
} else if len(inputItems) > 1 {