Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

1.2 KB
Raw Blame
import type { TFunction } from "i18next";
import type { WorkspaceUsage } from "@/constants/onboarding";
import type { TaskToImport } from "@/fetchers/task/import-tasks";

export function starterTasks(
  t: TFunction,
  usage: WorkspaceUsage,
): TaskToImport[] {
  const tasks = [
    {
      title: t("auth:onboarding.starterTasks.drag.title"),
      description: t("auth:onboarding.starterTasks.drag.description"),
    },
    {
      title: t("auth:onboarding.starterTasks.details.title"),
      description: t("auth:onboarding.starterTasks.details.description"),
    },
    ...(usage === "team"
      ? [
          {
            title: t("auth:onboarding.starterTasks.invite.title"),
            description: t("auth:onboarding.starterTasks.invite.description"),
          },
        ]
      : []),
    {
      title: t("auth:onboarding.starterTasks.integrations.title"),
      description: t("auth:onboarding.starterTasks.integrations.description"),
    },
    {
      title: t("auth:onboarding.starterTasks.create.title"),
      description: t("auth:onboarding.starterTasks.create.description"),
    },
  ];

  return tasks.map((task) => ({
    ...task,
    status: "to-do",
    priority: "no-priority",
  }));
}