Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ux): ✨ implement reports command (#2) #13

Closed
wants to merge 53 commits into from
Closed

Conversation

JamesNZL
Copy link
Owner

@JamesNZL JamesNZL commented May 18, 2023

Implements a tgl reports command as per #2.

A demo of what it can do:

2023-05-18-21-40-52.mp4

this single endpoint should support the needs of all the different `view` sub-commands
@JamesNZL JamesNZL added the feature New feature or request label May 18, 2023
@JamesNZL JamesNZL self-assigned this May 18, 2023
JamesNZL added a commit that referenced this pull request May 19, 2023
Squashed commit of the following:

commit 0da4d1f
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 22:09:14 2023 +1200

    fix(reports): :bug: fix missed name kebaberisation

commit b6e4a0d
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 22:06:41 2023 +1200

    feat(reports): :sparkles: implement viewing of past reports (#2)

commit 934acee
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 19:53:47 2023 +1200

    fix(reports): :speech_balloon: fix incorrect time strings when 0 (#11)

commit ff8b231
Merge: 34df66f 45a10c3
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 19:52:51 2023 +1200

    Merge branch 'main' into tgl-view

commit 34df66f
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 19:48:13 2023 +1200

    refactor(reports): :rotating_light: remove `pragma` directive

commit 5a3bb60
Merge: 94f7723 bd14f00
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 19:41:35 2023 +1200

    Merge branch 'main' into tgl-view

commit 94f7723
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 18:47:50 2023 +1200

    style: :art: add parentheses around boolean expressions

commit e28ffca
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 16:40:14 2023 +1200

    refactor(reports): :truck: rename `view` -> `reports` (#2)

commit a8bd335
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 16:31:37 2023 +1200

    fix(view): :bug: fix autocomplete of `projects`/`clients` sub selection

commit 0d09619
Merge: 2d0a793 7d2cc3f
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 16:21:50 2023 +1200

    Merge branch 'main' into tgl-view

commit 7d2cc3f
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 16:19:36 2023 +1200

    perf: :zap: use semaphores to disallow new fetch while another is in progress (#10)

commit 2d0a793
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 13:26:13 2023 +1200

    feat(view): :card_file_box: invalidate reports caches on command actions

commit 50148e5
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 11:42:23 2023 +1200

    fix(view): :bug: ensure total results have highest score if only one result

commit be8b068
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 11:40:17 2023 +1200

    feat(view): :lipstick: add subtitle to subtotal results with project/client name

commit 8bd7bd9
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 11:32:48 2023 +1200

    feat(view): :children_crossing: display selected clients's projects

commit 6f4293e
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 10:47:04 2023 +1200

    feat(view): :children_crossing: set `AutoCompleteText` for totals result

commit 7a90598
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 10:42:18 2023 +1200

    feat(view): :children_crossing: time entries `Action` passes to `start` command

commit 3cfe32a
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 10:38:04 2023 +1200

    fix(view): :bug: display total time tracked for selected project

commit 5eebf82
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 01:05:21 2023 +1200

    feat(view): :children_crossing: display selected project's time entries

commit 86d47c4
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 00:44:56 2023 +1200

    feat(view): :children_crossing: implement searching for result title and autocomplete

commit a766df3
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 00:40:53 2023 +1200

    refactor: :mute: remove `cacheKey` log

commit 04d0b70
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 00:23:04 2023 +1200

    perf(view): :zap: do not re-create background fetches when searching for span

commit 8dee4b4
Merge: 5653f6d 864092b
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 00:20:10 2023 +1200

    Merge branch 'main' into tgl-view

commit 5653f6d
Author: James <james@jamesnzl.xyz>
Date:   Thu May 18 00:10:32 2023 +1200

    fix(view): :bug: fix mutation of cached report data with currently running timer

commit 32a5e68
Author: James <james@jamesnzl.xyz>
Date:   Wed May 17 23:46:19 2023 +1200

    feat(view): :construction: cache summary time entries requests

commit 07bf460
Merge: b61a4ab 086bf25
Author: James <james@jamesnzl.xyz>
Date:   Wed May 17 23:29:17 2023 +1200

    Merge branch 'main' into tgl-view

commit b61a4ab
Author: James <james@jamesnzl.xyz>
Date:   Wed May 17 22:53:38 2023 +1200

    refactor(view): :pencil2: rename `timeEntries` to `summary`

commit bf42eff
Author: James <james@jamesnzl.xyz>
Date:   Wed May 17 22:51:53 2023 +1200

    feat(view): :sparkles: include running timer in `tgl view` reports

commit 114e8bd
Merge: 60af653 3b0b391
Author: James <james@jamesnzl.xyz>
Date:   Wed May 17 14:34:54 2023 +1200

    Merge branch 'main' into tgl-view

commit 60af653
Author: James <james@jamesnzl.xyz>
Date:   Wed May 17 09:15:52 2023 +1200

    feat(view): :lipstick: use most tracked project colour for client icon

commit 6a701fa
Author: James <james@jamesnzl.xyz>
Date:   Wed May 17 09:09:12 2023 +1200

    feat(view): :sparkles: implement `tgl view <span> entries`

commit b4ed9ce
Merge: eaea4a0 44d2a29
Author: James <james@jamesnzl.xyz>
Date:   Wed May 17 08:54:44 2023 +1200

    Merge branch 'main' into tgl-view

commit eaea4a0
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 23:34:29 2023 +1200

    fix(view): :bug: fix year span start date calculation

commit 59a0c5c
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 23:30:24 2023 +1200

    feat(view): :sparkles: extend implementation to `tgl view <span> clients`

commit db659d2
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 23:08:34 2023 +1200

    feat(view): :construction: use `POST` search time entries endpoint

    this single endpoint should support the needs of all the different `view` sub-commands

commit 48894da
Merge: 98f84f9 46c909d
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 22:04:08 2023 +1200

    Merge branch 'main' into tgl-view

commit 98f84f9
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 21:55:34 2023 +1200

    fix(view): :bug: fix incorrect time strings when longer than 1 day

    define Humanizer's `maxUnit` to `Hours`

commit a99d16e
Merge: 861e77d 2cc6564
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 21:54:54 2023 +1200

    Merge branch 'main' into tgl-view

commit 861e77d
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 16:20:03 2023 +1200

    perf: :zap: avoid reconstructing query string with `string.Join()` when possible

commit 67f9d56
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 14:23:23 2023 +1200

    refactor: :art: remove hardcoded literal indices for command arguments

commit 6bb5d8f
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 12:18:03 2023 +1200

    feat(view): :children_crossing: rank groupings as projects -> clients -> entries

commit 3c5b2f0
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 10:44:03 2023 +1200

    feat(view): :sparkles: finish rough implementation of `tgl view day projects`

commit 217f8f1
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 09:46:02 2023 +1200

    fix(view): :bug: set `CommandArgument` members to be `init` only

commit cdfdf43
Author: James <james@jamesnzl.xyz>
Date:   Tue May 16 09:34:03 2023 +1200

    refactor(view): :recycle: rename durations -> spans

commit 4c78d72
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 23:58:32 2023 +1200

    feat(toggl): :bug: use reports api base url

commit 8e4d33c
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 23:52:58 2023 +1200

    fix(toggl): :bug: `start_date` may not be null

commit f801621
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 23:47:29 2023 +1200

    feat(view): :construction: use `Dictionary` for collection of `CommandArgument`s

commit 091f5be
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 23:25:46 2023 +1200

    feat(toggl): :sparkles: implement list project users reports api method

commit d8e2ca2
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 20:29:03 2023 +1200

    feat(view): :construction: implement report grouping selection

commit 742e59d
Merge: 5d663a7 fbba79e
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 20:15:49 2023 +1200

    Merge branch 'main' into tgl-view

commit 5d663a7
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 20:15:07 2023 +1200

    refactor(view): :recycle: refactor `CommandArgument` configuration class

commit e2f4286
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 11:24:49 2023 +1200

    feat(view): :construction: implement foundations of `tgl view` command (#2)

commit f7c301c
Author: James <james@jamesnzl.xyz>
Date:   Mon May 15 11:24:20 2023 +1200

    chore(assets): :bento: add view icon
@JamesNZL JamesNZL linked an issue May 19, 2023 that may be closed by this pull request
@JamesNZL
Copy link
Owner Author

Merged with 2203495.

@JamesNZL JamesNZL closed this May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tgl reports
1 participant