Skip to content

Extend report grouping to include Date and Week - #1210

Merged
Onatcer merged 4 commits into
solidtime-io:mainfrom
TheSpyder:extended-group-by
Aug 20, 2026
Merged

Onatcer merged 4 commits into
solidtime-io:mainfrom
TheSpyder:extended-group-by

Conversation

@TheSpyder

@TheSpyder TheSpyder commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds Date and Week options to the report grouping dropdown. The menu is starting to get a bit long, but I think it's still reasonable:
Screenshot 2026-08-16 at 4 23 39 pm

I've updated the frontend, exported reports and shared reports. Screenshots below.

Checklist (DO NOT REMOVE)


Report grouped by date:

Screenshot 2026-08-16 at 4 24 31 pm

Report grouped by week:

Screenshot 2026-08-19 at 4 47 13 pm

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@Onatcer

Onatcer commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

@TheSpyder Thanks for the PR. It looks very good overall, the only thing that I'd change is the week numbering / formatting logic.

image

When I saw the special logic for the first week I was looking at what others are doing and from what I can see only Clockify does day grouping in the table right now, and they don't do week numbering in the table at all, they just do Date Ranges, which is a pragmatic approach and also what I'm leaning towards now.

I also didn't realize until now that there are different definitions of when the week starts. The ISO definition uses the first day with a Thursday as week one, the US/WEEKNUM definition uses whatever week contains January 1st. The Bar Chart labels already have this issue, but having it in the rows and exports as well could actually cause some serious data problems.

There are a few different rules depending on the territory, and we can probably derive them properly at some point (timezone of the user might work but is potentially ambiguous across the organization), or introduce settings (Country on the organization) to do so but that would explode this PR. I think doing a date range is the pragmatic solution for now. It also removes some of the complexity around week formatting in the PR.

If you have any thoughts on it feel free to let me know. I can also do the changes myself if you prefer that / are busy.

@TheSpyder

TheSpyder commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor Author

@Onatcer yes I struggled with this myself, trying to follow the bar chart labels as I think they use the DayJS default weekOfYear plugin. It took quite a bit of tweaking to not use ISO week numbering so I'm quite happy to ditch all that 🙂

I'll see what I can get done today and let you know if I need your help.

@TheSpyder

Copy link
Copy Markdown
Contributor Author

@Onatcer I've pushed the update - my last commit has been removed entirely, and the week commit is much simpler.

@Onatcer
Onatcer force-pushed the extended-group-by branch from 842bf0b to 2c540be Compare August 20, 2026 14:43
@Onatcer

Onatcer commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

@TheSpyder awesome ty!

@Onatcer
Onatcer merged commit 9d9731c into solidtime-io:main Aug 20, 2026
24 checks passed
@TheSpyder
TheSpyder deleted the extended-group-by branch August 29, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants