MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / formatObjectType

Function formatObjectType

console/src/platform/clusters/format.ts:162–171  ·  view source on GitHub ↗
(node: WorkflowGraphNode)

Source from the content-addressed store, hash-verified

160}
161
162export function formatObjectType(node: WorkflowGraphNode) {
163 if (node.sourceType === "subsource") {
164 return "Subsource";
165 }
166
167 if (node.sourceType) {
168 return `${kebabToTitleCase(node.sourceType)} Source`;
169 }
170 return kebabToTitleCase(node.type);
171}

Callers 1

WorkflowGraphSidebarFunction · 0.90

Calls 1

kebabToTitleCaseFunction · 0.90

Tested by

no test coverage detected