Skip to content

BeechCMS


BeechCMS / @beechcms/core / viewConfigChoiceIssues

Function: viewConfigChoiceIssues() ​

viewConfigChoiceIssues(config, seed): string[]

Brief §2.10: sort, groupBy and kanban.sort may reference a tags branch only when it is single choice; kanban.axisBranchId may reference a tags branch only when it is a kanban axis candidate. One message per offending reference, in the order sort, groupBy, kanban axis, kanban sort; [] when valid. References to missing branches and to non-tags branches are not issues (cleanup handles them). Pure.

Parameters ​

config ​

appearance ​

{ columnOrder?: string[]; density?: "compact" | "comfortable" | "normal"; hiddenColumns?: string[]; pageSize?: number; } = ...

appearance.columnOrder? ​

string[] = ...

Display order of data columns; columns missing from the list follow in default order.

appearance.density? ​

"compact" | "comfortable" | "normal" = ...

appearance.hiddenColumns? ​

string[] = ...

appearance.pageSize? ​

number = ...

card? ​

{ header?: { branchId: string; } | null; media?: { branchId: string; } | null; metadata: object[]; subtitle?: { branchId: string; } | null; version: 1; } = ...

Card layout (Kanban and Gallery). Dropped from any other instance.

card.header? ​

{ branchId: string; } | null = ...

Full-width primary line. Max 1.

card.media? ​

{ branchId: string; } | null = ...

Optional media/avatar slot. Full width. Max 1.

card.metadata ​

object[] = ...

2-column grid. Hard cap enforced by validator (see METADATA_SLOT_CAP).

card.subtitle? ​

{ branchId: string; } | null = ...

Full-width secondary line. Max 1.

card.version ​

1 = ...

conditionalFormats ​

object[] = ...

filters ​

object[] = ...

folders? ​

Record<string, { color?: "slate" | "red" | "orange" | "amber" | "green" | "teal" | "blue" | "violet" | "pink"; description?: string; icon?: "Folder" | "Users" | "Image" | "Video" | "Music" | "Tag" | "Bookmark" | "Star" | "Heart" | "Calendar" | "Book" | "Flag" | "Camera" | "Home" | "Briefcase" | "Gift" | "Sun" | "Crown"; label?: string; }> = ...

Gallery-only. Style per folder, keyed by the normalized group value. Dropped from any other instance.

groupBy ​

{ columnRef: string; datePrecision?: { day: boolean; month: boolean; year: boolean; }; } | null = ...

kanban? ​

{ axisBranchId: string | null; cardSize?: "compact" | "comfortable"; collapsedColumnValues?: string[]; colorColumns?: boolean; hiddenColumnValues?: string[]; showFieldLabels?: boolean; sort: { branchId: string; dir: "ASC" | "DESC"; } | null; wrapTitle?: boolean; } = ...

Kanban-only. Dropped from any non-kanban instance.

kanban.axisBranchId ​

string | null = ...

kanban.cardSize? ​

"compact" | "comfortable" = ...

Card density. Absent ⇒ 'comfortable'.

kanban.collapsedColumnValues? ​

string[] = ...

kanban.colorColumns? ​

boolean = ...

Tint each column with its option color. Absent ⇒ on. The board ignores it while conditional formats are active.

kanban.hiddenColumnValues? ​

string[] = ...

kanban.showFieldLabels? ​

boolean = ...

Show the field label above each metadata value. Absent ⇒ on.

kanban.sort ​

{ branchId: string; dir: "ASC" | "DESC"; } | null = ...

kanban.wrapTitle? ​

boolean = ...

Let the card header wrap on two lines instead of truncating. Absent ⇒ on.

sort ​

{ columnRef: string; desc: boolean; } | null = ...

seed ​

Seed

Returns ​

string[]