30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
// The example checklist of the template: one task completes with the tour, one when the app reports
|
|
// `note_created` (the note form emits it, `emitAppEvent` of @conusai-kit/ui, once the note is saved),
|
|
// and one the person ticks.
|
|
|
|
import { defineGuide } from "@conusai-kit/guides"
|
|
import { guideText } from "./messages.js"
|
|
|
|
const t = guideText.checklist
|
|
|
|
export const gettingStartedChecklist = defineGuide({
|
|
key: "notes.getting-started",
|
|
schema_version: 1,
|
|
kind: "checklist",
|
|
default_locale: "en",
|
|
audience: { trait: { name: "role", in: ["owner", "admin", "member"] } },
|
|
trigger: { page: "/:org/:workspace/:project/notes" },
|
|
frequency: "until_completed",
|
|
title: t.title,
|
|
tasks: [
|
|
{
|
|
id: "tour",
|
|
title: t.tour,
|
|
guide: "notes.first-note",
|
|
condition: { type: "guide_completed", guide: "notes.first-note" },
|
|
},
|
|
{ id: "create", title: t.create, condition: { type: "event", name: "note_created" } },
|
|
{ id: "share", title: t.share, condition: { type: "manual" } },
|
|
],
|
|
})
|