export const formatStatusLabel = (rawStatus) => {
    if (!rawStatus)
        return 'In progress';
    return rawStatus.replace(/_/g, ' ').replace(/\b\w/g, (char) => char.toUpperCase());
};
export const summarizeValue = (value, max = 90) => {
    if (!value)
        return '';
    const trimmed = value.trim();
    if (trimmed.length <= max)
        return trimmed;
    return `${trimmed.slice(0, max)}…`;
};
