⭐️⭐️⭐️ 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 type { Cycle } from '@/lib/api/endpoints/cycles';
import { formatShortDate } from '@/utils/dates';
// The days a cycle ran. One that was finished before its planned end date ended on
// the day it was finished, so the range shows that day and names the planned one.
export default function CycleRange({ cycle }: { cycle: Cycle }) {
const t = useTranslations('cycles');
return (
<>
{formatShortDate(cycle.startDate)} – {formatShortDate(cycle.completedAt ?? cycle.endDate)}
{cycle.completedAt && ` · ${t('finishedEarly', { date: formatShortDate(cycle.endDate) })}`}
</>
);
}