Skip to content

[Feature]: Show upcoming days in the Home journal widget #2075

Description

@h4yfans

Part of #2070

Report

The Home journal widget shows recent/history context, but the user also wants to see what is coming up over the next few days, including future journal days. Empty future days should still be useful as navigation targets.

Implementation contract

  • Keep the existing seven-day history strip and recent-entry behavior.
  • Add a clearly labeled upcoming section covering today plus the next three local calendar days. Use local date boundaries consistently with the journal page and existing calendar code.
  • Show an entry preview when a future journal entry exists; otherwise show the date as an empty/upcoming day.
  • Clicking any upcoming day opens the journal tab with that exact ISO date in viewState.
  • Do not duplicate calendar-event rendering from the Home calendar widget. If the product later wants event previews, keep that as a separate calendar surface.
  • Keep the widget usable at its existing S/M/L sizes and preserve RTL/reduced-motion behavior.

Relevant seams include JournalWidget, journal-widget-data.ts, journalKeys, useJournalHeatmap, and the journal tab date navigation.

Acceptance criteria

  • The widget shows today and the next three local dates in a distinct upcoming section.
  • Existing recent/history entries remain unchanged.
  • Empty future dates are rendered without pretending an entry exists.
  • Clicking a future date opens that date, including across a month/year boundary.
  • The query does not use UTC date math or cause unbounded per-day requests.

Verification

Add data/helper tests for local date windows and renderer/E2E tests for future-date rendering and navigation. Run focused renderer tests, pnpm typecheck, and docs/i18n checks.

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

    complexity-mediumMedium complexityenhancementNew feature or requestfeedbacksUser feedback from the Gmail 'feedbacks' label — one issue per reported itemfrom-emailReported by a user over email (Gmail 'feedbacks' label)ready-for-agentSpec is complete enough for an agent to implement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions