Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: f3rno64/track-time-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.13.0
Choose a base ref
...
head repository: f3rno64/track-time-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.13.1
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Dec 11, 2023

  1. fix: week command start date

    f3rno64 committed Dec 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    371197e View commit details
  2. Copy the full SHA
    bf0a4c1 View commit details
  3. chore(release): 1.13.1

    f3rno64 committed Dec 11, 2023
    Copy the full SHA
    5fa2b68 View commit details
Showing with 11 additions and 9 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +1 −1 src/commands/week.ts
  4. +2 −7 src/print/sheet.ts
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.13.1](https://github.com/f3rno64/track-time-cli/compare/v1.13.0...v1.13.1) (2023-12-11)


### Bug Fixes

* week command start date ([371197e](https://github.com/f3rno64/track-time-cli/commit/371197e6d64db22f402ecaf6b2077be75acab92b))

## [1.13.0](https://github.com/f3rno64/track-time-cli/compare/v1.12.1...v1.13.0) (2023-12-11)

### [1.12.1](https://github.com/f3rno64/track-time-cli/compare/v1.12.0...v1.12.1) (2023-12-10)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "track-time-cli",
"version": "1.13.0",
"version": "1.13.1",
"description": "A CLI utility for tracking tasks in time sheets, inspired by timetrap.",
"main": "index.js",
"repository": "https://github.com/f3rno64/track-time-cli",
2 changes: 1 addition & 1 deletion src/commands/week.ts
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ interface WeekCommandArguments {

const DAY_MS = 24 * 60 * 60 * 1000
const LAST_WEEK_DATE = new Date(
+U.getEndDate(new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)) + 1
+U.getStartDate(new Date(Date.now() - 7 * 24 * 60 * 60 * 1000))
)

const getSheetsWithEntriesInLastWeek = (sheets: TimeSheet[]) => {
9 changes: 2 additions & 7 deletions src/print/sheet.ts
Original file line number Diff line number Diff line change
@@ -6,17 +6,12 @@ const printSheet = (
isActive?: boolean,
printDateAgo?: boolean
): void => {
const { activeEntryID, entries, name: sheetName } = sheet
const { activeEntryID, entries } = sheet

P.printSheetHeader(sheet, isActive)

entries.map((entry: TimeSheetEntry): void => {
P.printSheetEntry(
entry,
entry.id === activeEntryID,
sheetName,
printDateAgo
)
P.printSheetEntry(entry, entry.id === activeEntryID, '', printDateAgo)
})
}