(fullname: string)
| 257 | |
| 258 | // Resolve display label from current search results |
| 259 | const resolveLabel = (fullname: string): string | undefined => { |
| 260 | if (fullname.startsWith("users/")) { |
| 261 | const email = extractUserEmail(fullname); |
| 262 | const user = users.find((u) => u.email === email); |
| 263 | return user?.title || user?.email; |
| 264 | } |
| 265 | if (fullname.startsWith(groupNamePrefix)) { |
| 266 | const group = groups.find((g) => g.name === fullname); |
| 267 | return group?.title || fullname; |
| 268 | } |
| 269 | return undefined; |
| 270 | }; |
| 271 | |
| 272 | // Detect service account / workload identity typed in search |
| 273 | const specialAccountMatch = useMemo((): { |
no test coverage detected