TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.
TypeScript graphviewkanban-boardnodejsproductivityproject-managementself-hostedtasktask-managementtask-managertodoapp
import type { AppUser } from '../../core/AppUser';
import { GraphRepository } from './GraphRepository';
import type { GraphArgRelationsType } from './types';
export class GraphManager {
protected readonly user: AppUser;
public readonly repository: GraphRepository;
constructor(appUser: AppUser) {
this.user = appUser;
this.repository = new GraphRepository();
}
addEdge(data: GraphArgRelationsType) {
return this.repository.addEdge(data);
}
async fetchAllEdges(goalId: number) {
return await this.repository.fetchAllEdges(goalId);
}
async fetchEdgesForTask(taskId: number) {
return await this.repository.fetchEdgesForTask(taskId);
}
async deleteEdge(id: number) {
return await this.repository.deleteEdge(id);
}
}