History

refactor(web): keep feature component helpers private (#10226)

Julius Marminge committed 2 months ago

Commit 226abe51 parent fdcc49131 files · +46 −79Browse files

Showing the changes to apps/web/src/components/pullRequest (4 of 31 files). Show all

Unified · Split

4 files
  1. apps/web/src/components/pullRequest/PullRequestCodeTab.tsx +1 −1
  2. apps/web/src/components/pullRequest/pullRequestLinkContextMenu.ts +1 −1
  3. apps/web/src/components/pullRequest/pullRequestList.logic.ts +1 −1
  4. apps/web/src/components/pullRequest/pullRequestListPreferences.ts +1 −1
apps/web/src/components/pullRequest/PullRequestCodeTab.tsx+1−1
@@ -187,7 +187,7 @@ function getReviewPositionAnchor(position: PullRequestReviewPosition): { · 186 unmodified lines
187187 * host sit under the line they were written on, and a new comment joins the review being
188188 * drafted rather than being posted as it is typed.
189189 */
190−export function PullRequestCodeTab({
190+function PullRequestCodeTab({
191191 environmentId,
192192 reference,
193193 detail,
apps/web/src/components/pullRequest/pullRequestLinkContextMenu.ts+1−1
@@ -8,7 +8,7 @@ import { toastManager } from "../ui/toast"; · 7 unmodified lines
88 export type PullRequestLinkContextMenuAction = "copy-link" | "open-external";
99
1010 /** 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>> = {
1212 github: "Open on GitHub",
1313 gitlab: "Open on GitLab",
1414 bitbucket: "Open on Bitbucket",
apps/web/src/components/pullRequest/pullRequestList.logic.ts+1−1
@@ -67,7 +67,7 @@ export type PullRequestViewers = PullRequestListResult["viewers"]; · 66 unmodified lines
6767 /** A row plus the environment that read it, where the caller has one to give. */
6868 type ScopedEntry = PullRequestListEntry & { readonly environmentId?: string };
6969
70−export const pullRequestViewerKey = (entry: ScopedEntry): string =>
70+const pullRequestViewerKey = (entry: ScopedEntry): string =>
7171 `${entry.environmentId ?? ""} ${entry.host}`;
7272
7373 const GROUP_LABELS: Record<PullRequestGroupKey, string> = {
apps/web/src/components/pullRequest/pullRequestListPreferences.ts+1−1
@@ -37,7 +37,7 @@ export type PullRequestListPreferencePatch = { · 36 unmodified lines
3737 [Key in keyof PullRequestListPreferences]?: PullRequestListPreferences[Key] | undefined;
3838 };
3939
40−export const DEFAULT_PULL_REQUEST_LIST_PREFERENCES = {
40+const DEFAULT_PULL_REQUEST_LIST_PREFERENCES = {
4141 involvement: "all",
4242 state: "open",
4343 } as const satisfies PullRequestListPreferences;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t