Minor label fixes to TimelineBarChart#674
Merged
ErikBjare merged 3 commits intoActivityWatch:masterfrom Jan 24, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Caution
Changes requested ❌
Reviewed everything up to 7785217 in 1 minute and 50 seconds. Click for details.
- Reviewed
49lines of code in1files - Skipped
0files when reviewing. - Skipped posting
3draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/visualizations/TimelineBarChart.vue:74
- Draft comment:
Great use of Intl.PluralRules for ordinal suffixes. Consider removing or updating the FIXME comment if the month is now determined via the given timeperiod start. - Reason this comment was not posted:
Comment was on unchanged code.
2. src/visualizations/TimelineBarChart.vue:117
- Draft comment:
Tooltip label formatting now converts fractional hours to HH:MM correctly. Confirm that context.parsed.y is always defined as expected. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold50%This comment is asking the PR author to confirm that a variable is always defined as expected, which falls under the rule of not asking the author to confirm their intention or ensure behavior. It doesn't provide a specific suggestion or point out a clear issue.
3. src/visualizations/TimelineBarChart.vue:80
- Draft comment:
Ordinal generation refactor looks good, but the FIXME about using timeperiod_start to determine the month remains. Consider addressing it to ensure correct day count for non-standard month starts. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_j5wZRILnNXFDOcRo
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Member
|
@ellipsis-dev review |
Contributor
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to 29a3af4 in 1 minute and 24 seconds. Click for details.
- Reviewed
45lines of code in1files - Skipped
0files when reviewing. - Skipped posting
4draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/visualizations/TimelineBarChart.vue:76
- Draft comment:
Good fix for month ordinal labels. Consider moving Intl.PluralRules and ordinalsEnUS outside of the computed property to avoid re-instantiation on each re-render. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
2. src/visualizations/TimelineBarChart.vue:116
- Draft comment:
The tooltip callback cleanly converts fractional hours to HH:MM. Ensure rounding edge cases (e.g., minute rounding to 60) are sufficiently tested. - Reason this comment was not posted:
Confidence changes required:10%<= threshold50%None
3. src/visualizations/TimelineBarChart.vue:72
- Draft comment:
The FIXME comment about needing access to the timeperiod start for the month labels is now obsolete. Remove it if no longer needed. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
4. src/visualizations/TimelineBarChart.vue:116
- Draft comment:
For strict 'HH:MM' formatting, consider zero-padding the hours as well (e.g. using padStart) so that single-digit hours appear as '01', '02', etc. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
Workflow ID: wflow_6XRg4SGPu8eX82Qn
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
petrroll
approved these changes
Aug 12, 2025
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements two small labeling fixes to the TimelineBarChart component:
Important
Fixes mouseover label format to "HH:MM" and corrects ordinal suffixes for month day labels in
TimelineBarChart.vue.TimelineBarChart.vuenow display time as "HH:MM" instead of decimal hours.toOrdinalSuffix()function inTimelineBarChart.vueto generate correct ordinal suffixes.labelcallback inchartOptions()to format time as "HH:MM".This description was created by
for 29a3af4. You can customize this summary. It will automatically update as commits are pushed.