mirror of
https://github.com/open-gitagent/langship.sh.git
synced 2026-08-03 07:21:04 +02:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user