⭐️⭐️⭐️ 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 { TimelineScale, ViewSettings } from '@/utils/viewSettings';
import { byKey } from '@/utils/messageKey';
import DisplaySection from '@/components/layout/DisplaySection';
import DisplaySegmented from '@/components/layout/DisplaySegmented';
import DisplaySettingsRow from '@/components/layout/DisplaySettingsRow';
const SCALES: TimelineScale[] = ['week', 'month', 'quarter'];
export default function DisplayTimelineRows({
settings,
onChange,
}: {
settings: ViewSettings;
onChange: (patch: Partial<ViewSettings>) => void;
}) {
const t = useTranslations('display.rows');
const scale = byKey(useTranslations('display.timelineScales'));
return (
<DisplaySection>
<DisplaySettingsRow label={t('scale')}>
<DisplaySegmented
value={settings.timelineScale}
onChange={(timelineScale) => onChange({ timelineScale })}
options={SCALES.map((value) => ({ value, label: scale(value) }))}
/>
</DisplaySettingsRow>
</DisplaySection>
);
}