Phials developer documentation
User guide
AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0

MetadataColumnPolicy

Policy for how a metadata provider contributes Details view columns.

Signature

interface MetadataColumnPolicy {
    showInColumnMenu?: boolean;
    columnWhitelist?: string[];
    autoVisible?: "never" | "when-any" | "when-dominant";
    defaultVisibleFields?: string[];
    excludeFromDominance?: boolean;
    requiresValueSampling?: boolean;
}

Members

NameTypeRequiredDescription
showInColumnMenubooleannoWhether this provider contributes fields to the Details column menu. Default true when schema exists.
columnWhiteliststring[]noIf set, only these schema keys appear in the Details column menu (and auto-visible picks from this set). Omit for all schema fields. An empty array excludes the provider from column contributions. Does not override showInColumnMenu when that is false.
autoVisible"never" | "when-any" | "when-dominant"noWhether columns can be auto-shown from file matching alone. Default “when-dominant”.
defaultVisibleFieldsstring[]noFields to show automatically when the provider qualifies. Defaults to the first few schema fields.
excludeFromDominancebooleannoExclude this provider from dominance ratios. Useful for global/base providers.
requiresValueSamplingbooleannoMatching by extension/category is not enough; values may require sampling.