diff --git a/manifest.json b/manifest.json index 81a70a3..d526a72 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "mood-tracker", "name": "Mood Tracker", - "version": "0.3.2", + "version": "0.3.3", "minAppVersion": "1.1.0", "description": "Track your moods & emotions easily. Visualize tracked history and browse the past entries.", "author": "dartungar", diff --git a/src/settings/moodTrackerSettings.ts b/src/settings/moodTrackerSettings.ts index 191210d..4d038ed 100644 --- a/src/settings/moodTrackerSettings.ts +++ b/src/settings/moodTrackerSettings.ts @@ -3,7 +3,7 @@ import { EmotionSection } from "src/entities/IEmotionSection"; export class MoodTrackerSettings { - folderPath: string = ""; + folderPath = ""; emotionSections: EmotionSection[] = []; moodRatingLabelDict: { [key: number]: string }; template: string diff --git a/src/settings/settingsTab.ts b/src/settings/settingsTab.ts index 2ca4d30..f1d9e41 100644 --- a/src/settings/settingsTab.ts +++ b/src/settings/settingsTab.ts @@ -1,13 +1,11 @@ import { App, ButtonComponent, - Component, PluginSettingTab, Setting, TFolder, } from "obsidian"; import MoodTrackerPlugin from "src/main"; -import { DEFAULT_SETTINGS } from "./moodTrackerSettings"; import { GenericTextSuggester } from "./fileSuggester"; import { EmotionSection } from "src/entities/IEmotionSection"; diff --git a/src/statsModal/StatsChart.svelte b/src/statsModal/StatsChart.svelte index bf7600f..6ef9b93 100644 --- a/src/statsModal/StatsChart.svelte +++ b/src/statsModal/StatsChart.svelte @@ -1,7 +1,7 @@ - + const chartOptions = { + responsive: true, + onClick: onClick, + // TODO: scales based on possible mood values + scales: { + y: { + min: 1, + max: 5, + ticks: { + stepSize: 1, + callback: function(val: number, _: any) { + // TODO: use ones from plugin settings! + return DEFAULT_SETTINGS.moodRatingLabelDict[val]; + }, + }, + }, + }, + }; + +