obsidian-tracker icon indicating copy to clipboard operation
obsidian-tracker copied to clipboard

Seeing "null" in calendar mode

Open alexzavalny opened this issue 8 months ago • 6 comments

Looks like this for me:

searchType: dvField
searchTarget: mood
datasetName: Mood
month:
    mode: annotation
    color: green
	circleColorByValue: true
	todayRingColor: red
	selectedRingColor: red

in my note it is just

mood::3

Image

alexzavalny avatar Apr 22 '25 19:04 alexzavalny

Hey Alex, you are seeing this issue because you used mode: annotation

but you are missing a key annotation: i.e. did not specify what you need the data to be annotated with.

searchType: dvField
searchTarget: mood
datasetName: Mood
month:
    mode: annotation
    annotation: 🧘‍♂️
    color: green
    circleColorByValue: true
    todayRingColor: red
    selectedRingColor: red

You can fix the issue adding the key as specified above.

Refer to Example usages and Documentation for more information on other keys.

Lokesh-Bharath avatar Apr 22 '25 21:04 Lokesh-Bharath

@lazyguru We can consider taking up bug fix - not allowing mode: annotation without annotation key being used. An error message which explicitly mentions that the latter is necessary to use the former would help users figure out things pretty faster

Lokesh-Bharath avatar Apr 22 '25 21:04 Lokesh-Bharath

Thank you, @Lokesh-Bharath , totally my bad, but yeah, explicit error wouldn't hurt!

Another q - Is there a way to map colors to digits? Like if i have mood: 1 the circle is black, mood: 3- yellow, mood: 5 - green?

alexzavalny avatar Apr 23 '25 06:04 alexzavalny

Are you guys accepting pull requests?

alexzavalny avatar Apr 23 '25 20:04 alexzavalny

Are you guys accepting pull requests?

Yes. However, I'm currently the only one with merge rights as pyrochlore isn't actively working on the code. I'm not super active but try to review any PRs and merge+release when I can. I think there are a couple waiting on me now even.

lazyguru avatar Apr 24 '25 00:04 lazyguru

Thank you, @Lokesh-Bharath , totally my bad, but yeah, explicit error wouldn't hurt!

Another q - Is there a way to map colors to digits? Like if i have mood: 1 the circle is black, mood: 3- yellow, mood: 5 - green?

Hey, there's no way to do that yet. Nearest you can do is to set color based on value so they show different colors using 'circleColorByValue' field

Lokesh-Bharath avatar Apr 28 '25 22:04 Lokesh-Bharath