The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type { IssueSavedView } from "../../persistence/mobile-preferences"; |
| 2 | |
| 3 | export type IssueSavedViewScope = Omit<IssueSavedView, "id" | "name">; |
| 4 | |
| 5 | export function issueViewMatches(view: IssueSavedViewScope, scope: IssueSavedViewScope) { |
| 6 | const key = (value: IssueSavedViewScope) => |
| 7 | JSON.stringify([ |
| 8 | value.query.trim(), |
| 9 | value.state, |
| 10 | value.involvement, |
| 11 | value.sort, |
| 12 | [...value.labels].sort(), |
| 13 | value.assignee?.login ?? null, |
| 14 | ]); |
| 15 | return key(view) === key(scope); |
| 16 | } |