⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import { useTranslations } from 'next-intl';
import { useColumnLabel } from '../../hooks/useColumnLabel';
import { columnKey } from '../../utils/table';
import { type TimelineColumn } from '../../utils/timeline';
// The labels over the label column: the title and each property column, level with
// the day numbers and as wide as the cells below them.
export function TimelineColumnHeader({ columns }: { columns: TimelineColumn[] }) {
const t = useTranslations('workItems');
const columnLabel = useColumnLabel();
return (
<div className="flex h-full items-end text-xs font-medium text-muted-foreground">
<div className="flex h-6 min-w-0 flex-1 items-center px-3">
<span className="truncate">{t('columns.title')}</span>
</div>
{columns.map(({ column, width }) => (
<div
key={columnKey(column)}
className="flex h-6 shrink-0 items-center overflow-hidden px-1.5"
style={{ width }}
>
<span className="truncate">{columnLabel(column)}</span>
</div>
))}
</div>
);
}