Skip to content

Commit

Permalink
Merge branch 'fix_1.10.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrochlore committed Sep 12, 2021
2 parents c5644f6 + e69d751 commit d5234f7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ Version 1.10.4
Version 1.10.5
- Allow using a relative date value in `initMonth` in the month view

Version 1.10.6
- Fixed the coloring for missing data in the month view

## !!! Breaking Changes !!!

From version 1.9.0, template variables, e.g. '{{sum}}', are deprecated. Instead, Tracker provide operators (+, -, *, /, %) and functions (dataset(), sum(), maxStreak(), ......etc) to help us do data processing. For users having code blocks from previous version, please replace '{{sum}}' by '{{sum()}}' or '{{sum(1)}}' by '{{sum(dataset(1))}}'. More information about the new expressions could be found [here](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/Expressions.md).
Expand Down
3 changes: 3 additions & 0 deletions docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release Notes

## v1.10.6
- Fixed the coloring for missing data in the month view

## v1.10.5
- Allow using a relative date value in `initMonth` in the month view

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-tracker",
"name": "Tracker",
"version": "1.10.5",
"version": "1.10.6",
"minAppVersion": "0.9.12",
"description": "A plugin tracks occurrences and numbers in your notes",
"author": "pyrochlore",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-tracker",
"version": "1.10.5",
"version": "1.10.6",
"description": "A plugin tracks occurrences and numbers in your notes",
"main": "main.js",
"scripts": {
Expand Down
17 changes: 9 additions & 8 deletions src/month.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ function renderMonthDays(
helper.dateToStr(curDate, renderInfo.dateFormat),
renderInfo.dateFormat
);
if (curDate.format("YYYY-MM-DD") === "2021-01-02") {
if (curDate.format("YYYY-MM-DD") === "2021-09-13") {
logToConsole = false; // Change this to do dubugging
}

Expand Down Expand Up @@ -640,7 +640,6 @@ function renderMonthDays(
if (logToConsole) {
console.log(dataset);
console.log(helper.dateToStr(curDate, renderInfo.dateFormat));
console.log(dataset.getValue(window.moment("2021-01-02")));
console.log(curValue);
}

Expand Down Expand Up @@ -672,9 +671,11 @@ function renderMonthDays(
scaledValue = (curValue - yMin) / (yMax - yMin);
}
}
// console.log(yMin);
// console.log(yMax);
// console.log(scaledValue);
if (logToConsole) {
console.log(yMin);
console.log(yMax);
console.log(scaledValue);
}

// streakIn and streakOut
let nextValue = dataset.getValue(curDate, 1);
Expand Down Expand Up @@ -803,7 +804,7 @@ function renderMonthDays(
streakColor
)(d.scaledValue * 0.8 + 0.2);
} else {
return streakColor;
return "none";
}
}
return "none";
Expand Down Expand Up @@ -850,7 +851,7 @@ function renderMonthDays(
streakColor
)(d.scaledValue * 0.8 + 0.2);
} else {
return streakColor;
return "none";
}
}
return "none";
Expand Down Expand Up @@ -900,7 +901,7 @@ function renderMonthDays(
// console.log(scaledColor);
return scaledColor;
} else {
return circleColor;
return "none";
}
}
return "none";
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"1.10.2": "0.9.12",
"1.10.3": "0.9.12",
"1.10.4": "0.9.12",
"1.10.5": "0.9.12"
"1.10.5": "0.9.12",
"1.10.6": "0.9.12"
}

0 comments on commit d5234f7

Please sign in to comment.