⭐️⭐️⭐️ 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 { t } from 'elysia';
export const dashboardParams = t.Object({ dashboardId: t.Numeric() });
// A dashboard DTO (DashboardRow from the service). layout is a jsonb blob owned by
// the UI and returned verbatim, so it is typed as t.Any().
export const DashboardResponse = t.Object({
id: t.Number(),
projectId: t.Number(),
name: t.String(),
icon: t.Nullable(t.String()),
layout: t.Any(),
position: t.Number(),
createdAt: t.String(),
});
export const DashboardListResponse = t.Array(DashboardResponse);
// The widget entries stay opaque, but the layout itself has to be a list: the UI
// reads it as one, and an API client that stores an object there makes the
// dashboards page unrenderable.
export const createDashboardBody = t.Object({
name: t.String({ minLength: 1 }),
icon: t.Optional(t.Nullable(t.String())),
layout: t.Optional(t.Array(t.Unknown())),
});
export const updateDashboardBody = t.Partial(createDashboardBody);
export const reorderDashboardsBody = t.Object({
orderedIds: t.Array(t.Integer(), { minItems: 1 }),
});