(teamName: string, paneId: string)
| 257 | * @returns true if the pane was removed from hidden list, false if team doesn't exist |
| 258 | */ |
| 259 | export function removeHiddenPaneId(teamName: string, paneId: string): boolean { |
| 260 | const teamFile = readTeamFile(teamName) |
| 261 | if (!teamFile) { |
| 262 | return false |
| 263 | } |
| 264 | |
| 265 | const hiddenPaneIds = teamFile.hiddenPaneIds ?? [] |
| 266 | const index = hiddenPaneIds.indexOf(paneId) |
| 267 | if (index !== -1) { |
| 268 | hiddenPaneIds.splice(index, 1) |
| 269 | teamFile.hiddenPaneIds = hiddenPaneIds |
| 270 | writeTeamFile(teamName, teamFile) |
| 271 | logForDebugging( |
| 272 | `[TeammateTool] Removed ${paneId} from hidden panes for team ${teamName}`, |
| 273 | ) |
| 274 | } |
| 275 | return true |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * Removes a teammate from the team config file by pane ID. |
nothing calls this directly
no test coverage detected