Skip to content

fix(web): align archive entry-size month labels #45

Description

@davidvornholt

Writing for the decider requires archive charts to point readers at the dates they describe. The entry-size chart currently places month labels evenly across the plot instead of at each month's actual day position. On a year-to-date series, the final month label can appear at the far right even when that month has only begun, so a reader can associate a spike with the wrong month.

Evidence

apps/web/src/features/journal/ui/entry-size-plot.tsx positions daily marks with xAt(index, points.length) but renders visibleMonths(points) in a justify-between flex row. Those two coordinate systems diverge whenever the series is partial or month lengths differ.

Suggested verification

Render full-year and year-to-date series. Compare each label's center with the x-coordinate of that month's first point. Check desktop and narrow widths, then add a focused regression test.

Found during the review-fix pass for PR #44. The finding is deferred as polish because it does not block journal navigation or writing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferred-findingDeferred review finding filed by a review-fix cycle

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions