log-page.ts
This file
Path
apps/web/src/features/code/log-page.ts
19 lines · 634 bytes · TypeScript
Last changed by
Merge web/code-tab-and-fixes into main, keeping both the hero's concurrency line and its second actionoscabrielbefore adoption2eaa076
History of this fileTake it
1234567891011121314151617181920export const LOG_PAGE = 30;
/** * What the history shows of a page: the landings alone, the answers, the * asks' openings, or every commit. On main the landings are the default; a * tag or a fork shows every commit, since a fork's own commits are no landing, * and so does a path's history, which asks what touched the path. */export type LogShow = "all" | "answers" | "landings" | "openings";
export const LOG_SHOWS: readonly LogShow[] = [ "all", "answers", "landings", "openings",];
export const defaultShowOf = (rev: string, path?: string): LogShow => rev === "main" && path === undefined ? "landings" : "all";