(name: string)
| 138 | // --------------------------------------------------------------------------- |
| 139 | |
| 140 | const friendlyName = (name: string): string => { |
| 141 | const leaf = name.split(".").pop() ?? name; |
| 142 | return leaf |
| 143 | .replace(/([a-z])([A-Z])/g, "$1 $2") |
| 144 | .replace(/[_.-]/g, " ") |
| 145 | .replace(/\b\w/g, (c) => c.toUpperCase()); |
| 146 | }; |
| 147 | |
| 148 | const breadcrumbParts = (name: string): string[] => |
| 149 | name.split(".").map((p) => |