diff --git a/src/main.ts b/src/main.ts index 1de2ca3..8e76981 100644 --- a/src/main.ts +++ b/src/main.ts @@ -195,7 +195,7 @@ export default class AchievementsPlugin extends Plugin { if (newAchievements.length > 0) { newAchievements.forEach((achievement) => { this.settings.achievedAchievementIDs.push(achievement.id); - new Notice(`${achievement.name}\n${achievement.description}`); + new Notice(`${achievement.name}\n${achievement.popupMessage}`); }); } } diff --git a/src/seededAchievements.ts b/src/seededAchievements.ts index 3e1adde..dcb2b98 100644 --- a/src/seededAchievements.ts +++ b/src/seededAchievements.ts @@ -13,6 +13,7 @@ export interface Achievement { type: AchievementType; name: string; description: string; + popupMessage: string; // message that shows when achievement is achieved requiredOccurenceCount: number; } @@ -20,8 +21,9 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ { id: "notes-created:1", type: "notesCreated", - name: "Baby's first note", - description: + name: "Your first note", + description: "Create a note.", + popupMessage: "You've created your first note. You're off to a great start!", requiredOccurenceCount: 1, }, @@ -29,28 +31,33 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ id: "notes-created:10", type: "notesCreated", name: "Note taker", - description: "You've created ten notes. You're serious, aren't you?", + description: "Create ten notes.", + popupMessage: "You've created ten notes. Great job!", requiredOccurenceCount: 10, }, { id: "notes-created:100", type: "notesCreated", - name: "100 club", - description: "You've created 100 notes! Welcome to the club!", + name: "Wordsmith", + description: "Create one hundred notes.", + popupMessage: + "You've created one hundred notes! You're serious, aren't you?", requiredOccurenceCount: 100, }, { - id: "note-created:5280", + id: "notes-created:1000", type: "notesCreated", - name: "Mile high club", - description: "You've created 5280 notes. You're flying!", - requiredOccurenceCount: 5280, + name: "Storyteller", + description: "Create one thousand notes.", + popupMessage: "You've created one thousand notes! That's impressive!", + requiredOccurenceCount: 1000, }, { id: "notes-deleted:10", type: "notesDeleted", name: "Taking out the trash", - description: "You've deleted 10 notes. Way to keep your vault tidy!", + description: "Delete ten notes.", + popupMessage: "You've deleted 10 notes. Way to keep your vault tidy!", requiredOccurenceCount: 10, }, { @@ -58,6 +65,8 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ type: "internalLinksCreated", name: "Linking your thinking", description: + "Create an internal link. You can type [[ to begin creating a internal link.", + popupMessage: "You've created your first internal link. It's all coming together!", requiredOccurenceCount: 1, }, @@ -65,7 +74,8 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ id: "internal-links-created:10", type: "internalLinksCreated", name: "Making connections", - description: + description: "Create ten internal links.", + popupMessage: "You've created 10 internal links. Your graph is looking great!", requiredOccurenceCount: 10, }, @@ -73,7 +83,8 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ id: "internal-links-created:100", type: "internalLinksCreated", name: "Conspiracy theorist", - description: + description: "Create one hundred internal links", + popupMessage: "You've created 100 internal links. Your graph is starting to look like a conspiracy board...", requiredOccurenceCount: 100, }, @@ -81,7 +92,8 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ id: "internal-links-created:1000", type: "internalLinksCreated", name: "Air traffic controller", - description: + description: "Create one thousand internal links", + popupMessage: "You've created 1000 internal links. If you haven't already, you should post your graph on the official Obsidian discord.", requiredOccurenceCount: 1000, }, @@ -90,6 +102,8 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ type: "commandPaletteOpened", name: "Commander", description: + "Open the command palette. You can find the hotkey to open the command palette in Settings - Hotkeys.", + popupMessage: "You've opened the command palette. Way to take charge of your note taking!", requiredOccurenceCount: 1, }, @@ -97,7 +111,9 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ id: "switcher:open", type: "quickSwitcherOpened", name: "Quickly now", - description: "You've opened the quick switcher. Wow that was fast!", + description: + "Open the quick switcher. You can find the hotkey to open the quick switcher in Settings - Hotkeys.", + popupMessage: "You've opened the quick switcher. Wow that was fast!", requiredOccurenceCount: 1, }, { @@ -105,6 +121,8 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ type: "calloutsCreated", name: "Callouts", description: + "Create a callout. You can find the hotkey to create a callout in Settings - Hotkeys.", + popupMessage: "You've created a callout. Just felt like that needed to be called out.", requiredOccurenceCount: 1, }, @@ -112,35 +130,44 @@ export const SEEDED_ACHIEVEMENTS: Achievement[] = [ id: "heading-levels:1", type: "headingLevelsCreated", name: "Headings", - description: "You've created a heading.", + description: + "Create a heading. You can create a heading by adding a new line to a note and typing # Heading.", + popupMessage: + "You've created a heading. Your notes are looking more organized already!", requiredOccurenceCount: 1, }, { id: "heading-levels:3", type: "headingLevelsCreated", name: "Nested headings", - description: "You've created at least 3 levels of nested headings.", + description: + "Create at least three levels of headings in a single note.", + popupMessage: + "You've created at least 3 levels of nested headings. Your notes look so organized!", requiredOccurenceCount: 3, }, { - id: "tags:1", + id: "tags-created:1", type: "tagsCreated", - name: "Tags", - description: "You've created a tag.", + name: "Your first tag", + description: "Create a tag. You can create a tag by typing #tag.", + popupMessage: "You've created your first tag!", requiredOccurenceCount: 1, }, { - id: "tags:5", + id: "tags-created:5", type: "tagsCreated", - name: "Tags", - description: "You've created five tags.", + name: "Tagging apprentice", + description: "Create five unique tags.", + popupMessage: "You've created five unique tags!", requiredOccurenceCount: 5, }, { - id: "tags:20", + id: "tags-created:10", type: "tagsCreated", - name: "Tags", - description: "You've created twenty tags.", - requiredOccurenceCount: 20, + name: "Tagging expert", + description: "Create ten unique tags.", + popupMessage: "You've created ten unique tags!", + requiredOccurenceCount: 10, }, ];