Showing the changes to apps/web/src/components/pullRequest (4 of 31 files). Show all
Unified · Split
| @@ -187,7 +187,7 @@ function getReviewPositionAnchor(position: PullRequestReviewPosition): { · 186 unmodified lines | |||
| 187 | * host sit under the line they were written on, and a new comment joins the review being | 187 | * host sit under the line they were written on, and a new comment joins the review being |
| 188 | * drafted rather than being posted as it is typed. | 188 | * drafted rather than being posted as it is typed. |
| 189 | */ | 189 | */ |
| 190 | export function PullRequestCodeTab({ | 190 | function PullRequestCodeTab({ |
| 191 | environmentId, | 191 | environmentId, |
| 192 | reference, | 192 | reference, |
| 193 | detail, | 193 | detail, |
| @@ -8,7 +8,7 @@ import { toastManager } from "../ui/toast"; · 7 unmodified lines | |||
| 8 | export type PullRequestLinkContextMenuAction = "copy-link" | "open-external"; | 8 | export type PullRequestLinkContextMenuAction = "copy-link" | "open-external"; |
| 9 | 9 | ||
| 10 | /** Named for the host rather than "externally": the point is where you will land. */ | 10 | /** Named for the host rather than "externally": the point is where you will land. */ |
| 11 | export const OPEN_ON_HOST_LABELS: Partial<Record<string, string>> = { | 11 | const OPEN_ON_HOST_LABELS: Partial<Record<string, string>> = { |
| 12 | github: "Open on GitHub", | 12 | github: "Open on GitHub", |
| 13 | gitlab: "Open on GitLab", | 13 | gitlab: "Open on GitLab", |
| 14 | bitbucket: "Open on Bitbucket", | 14 | bitbucket: "Open on Bitbucket", |
| @@ -67,7 +67,7 @@ export type PullRequestViewers = PullRequestListResult["viewers"]; · 66 unmodified lines | |||
| 67 | /** A row plus the environment that read it, where the caller has one to give. */ | 67 | /** A row plus the environment that read it, where the caller has one to give. */ |
| 68 | type ScopedEntry = PullRequestListEntry & { readonly environmentId?: string }; | 68 | type ScopedEntry = PullRequestListEntry & { readonly environmentId?: string }; |
| 69 | 69 | ||
| 70 | export const pullRequestViewerKey = (entry: ScopedEntry): string => | 70 | const pullRequestViewerKey = (entry: ScopedEntry): string => |
| 71 | `${entry.environmentId ?? ""} ${entry.host}`; | 71 | `${entry.environmentId ?? ""} ${entry.host}`; |
| 72 | 72 | ||
| 73 | const GROUP_LABELS: Record<PullRequestGroupKey, string> = { | 73 | const GROUP_LABELS: Record<PullRequestGroupKey, string> = { |
| @@ -37,7 +37,7 @@ export type PullRequestListPreferencePatch = { · 36 unmodified lines | |||
| 37 | [Key in keyof PullRequestListPreferences]?: PullRequestListPreferences[Key] | undefined; | 37 | [Key in keyof PullRequestListPreferences]?: PullRequestListPreferences[Key] | undefined; |
| 38 | }; | 38 | }; |
| 39 | 39 | ||
| 40 | export const DEFAULT_PULL_REQUEST_LIST_PREFERENCES = { | 40 | const DEFAULT_PULL_REQUEST_LIST_PREFERENCES = { |
| 41 | involvement: "all", | 41 | involvement: "all", |
| 42 | state: "open", | 42 | state: "open", |
| 43 | } as const satisfies PullRequestListPreferences; | 43 | } as const satisfies PullRequestListPreferences; |