refactor(web): keep feature component helpers private (#10226)
This commit is contained in:
1 parent
fdcc491e0b
commit
226abe5f91
31 files changed
+46
-79
No files matched your search
@@ -187,7 +187,7 @@ function getReviewPositionAnchor(position: PullRequestReviewPosition): {
|
||||
* host sit under the line they were written on, and a new comment joins the review being
|
||||
* drafted rather than being posted as it is typed.
|
||||
*/
|
||||
export function PullRequestCodeTab({
|
||||
function PullRequestCodeTab({
|
||||
environmentId,
|
||||
reference,
|
||||
detail,
|
||||
|
||||
@@ -8,7 +8,7 @@ import { toastManager } from "../ui/toast";
|
||||
export type PullRequestLinkContextMenuAction = "copy-link" | "open-external";
|
||||
|
||||
/** Named for the host rather than "externally": the point is where you will land. */
|
||||
export const OPEN_ON_HOST_LABELS: Partial<Record<string, string>> = {
|
||||
const OPEN_ON_HOST_LABELS: Partial<Record<string, string>> = {
|
||||
github: "Open on GitHub",
|
||||
gitlab: "Open on GitLab",
|
||||
bitbucket: "Open on Bitbucket",
|
||||
|
||||
@@ -67,7 +67,7 @@ export type PullRequestViewers = PullRequestListResult["viewers"];
|
||||
/** A row plus the environment that read it, where the caller has one to give. */
|
||||
type ScopedEntry = PullRequestListEntry & { readonly environmentId?: string };
|
||||
|
||||
export const pullRequestViewerKey = (entry: ScopedEntry): string =>
|
||||
const pullRequestViewerKey = (entry: ScopedEntry): string =>
|
||||
`${entry.environmentId ?? ""} ${entry.host}`;
|
||||
|
||||
const GROUP_LABELS: Record<PullRequestGroupKey, string> = {
|
||||
|
||||
@@ -37,7 +37,7 @@ export type PullRequestListPreferencePatch = {
|
||||
[Key in keyof PullRequestListPreferences]?: PullRequestListPreferences[Key] | undefined;
|
||||
};
|
||||
|
||||
export const DEFAULT_PULL_REQUEST_LIST_PREFERENCES = {
|
||||
const DEFAULT_PULL_REQUEST_LIST_PREFERENCES = {
|
||||
involvement: "all",
|
||||
state: "open",
|
||||
} as const satisfies PullRequestListPreferences;
|
||||
|
||||
Reference in new issue
Block a user