⭐️⭐️⭐️ 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 type { ProjectFeatures } from '@/lib/api/endpoints/settings';
import type { Project } from '@/lib/api/endpoints/projects';
// The optional sections plus the estimate kinds and time logging: everything the
// rest of the app checks before showing a field. The sections are the Features page;
// the rest is set in Settings -> Configuration and only hides its own UI.
export interface ProjectFeatureSet extends ProjectFeatures {
pointsEstimate: boolean;
timeEstimate: boolean;
timeLogging: boolean;
}
// The project's flags read as the feature set the rest of the app checks. Without
// a project every section reads as off.
export function projectFeatures(project: Project | null): ProjectFeatureSet {
return {
initiatives: project?.initiativesEnabled ?? false,
cycles: project?.cyclesEnabled ?? false,
dashboards: project?.dashboardsEnabled ?? false,
documents: project?.documentsEnabled ?? false,
notes: project?.notesEnabled ?? false,
subtasks: project?.subtasksEnabled ?? false,
checklists: project?.checklistsEnabled ?? false,
issueStats: project?.issueStatsEnabled ?? false,
pointsEstimate: project?.pointsEstimateEnabled ?? false,
timeEstimate: project?.timeEstimateEnabled ?? false,
timeLogging: project?.timeLoggingEnabled ?? false,
};
}