mirror of
https://github.com/SkalaraAI/beta.git
synced 2025-04-09 15:00:20 -04:00
48 lines
868 B
TypeScript
48 lines
868 B
TypeScript
export type Feature = {
|
|
name: string;
|
|
description: string;
|
|
uid: string;
|
|
};
|
|
export type Task = {
|
|
name: string;
|
|
description: string;
|
|
priority: string;
|
|
order: number;
|
|
uid: string;
|
|
feature_id: string;
|
|
};
|
|
export type Project = {
|
|
name: string;
|
|
description: string;
|
|
stack: string[];
|
|
features: Feature[];
|
|
tasks: Task[];
|
|
};
|
|
export type Workspace = {
|
|
name: string;
|
|
description: string;
|
|
projects: Project[];
|
|
};
|
|
|
|
export type Option = {
|
|
label: string;
|
|
value: string;
|
|
icon?: React.ComponentType<{ className?: string }>;
|
|
};
|
|
|
|
export interface DataTableFilterOption<TData> {
|
|
label: string;
|
|
value: keyof TData;
|
|
items: Option[];
|
|
}
|
|
|
|
export interface DataTableSearchableColumn<TData> {
|
|
id: keyof TData;
|
|
title: string;
|
|
}
|
|
|
|
export interface DataTableFilterableColumn<TData>
|
|
extends DataTableSearchableColumn<TData> {
|
|
options: Option[];
|
|
}
|