Skip to content

Commit

Permalink
improved feedback and config and info popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortega-Dan committed Feb 9, 2023
1 parent 060b81a commit b9de5b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ function showHoursDiffTo(hoursSum, hoursThreshold, label, showFinishingTime = fa
if ((hoursThreshold - hoursSum) < 0) {
alert("[" + label + "]\n\nYou've worked " +
convertDecimalHoursToTimeFormat((hoursThreshold - hoursSum) * -1) + " extra hours")
} else if ((hoursThreshold - hoursSum) == 0) {
alert("[" + label + "]\n\nYou're done for " + (label.toLowerCase().includes("week") ? "the week" : "the day") + "!")
} else {
var timeDiffString = convertDecimalHoursToTimeFormat(hoursThreshold - hoursSum)

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Calendar Hours Counter",
"description": "(For Google Calendar configured with English (US) language)",
"version": "1.10.0",
"version": "1.10.1",
"icons": {
"16": "calendar16.png",
"48": "calendar48.png",
Expand Down
2 changes: 1 addition & 1 deletion src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h3>Calendar Hours Counter</h3>
and United States country settings, and counts events that start and end on the same day (e.g events that don't start in a day and end in the next day or after, according to the time zone presented in the Google Calendar view evaluated).
</p>
<p style="color: darkblue;">It works in Week view of the calendar<br>
(Switch to week view by hitting "w" key [Which is google-calendar's native functionality]).</p>
(Switch to week view by hitting "w" key [Which is google-calendar's shortcut]).</p>

<p>It compares against 8 hours for current-day, and counts hours for the entire week for empty queries.</p>
<p>To ignore events write cal.ignore somewhere in the event title. <i>It also automatically ignores declined and tentative attendance ("maybe") events.</i></p>
Expand Down

0 comments on commit b9de5b2

Please sign in to comment.