Skip to content

Add today/yesterday to Timeline dates and clear Detail title - #75

Merged
RCmerci merged 5 commits into
mainfrom
codex/timeline-relative-date-20261014
Oct 14, 2026
Merged

RCmerci merged 5 commits into
mainfrom
codex/timeline-relative-date-20261014

Conversation

@RCmerci

@RCmerci RCmerci commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Timeline dates now append lowercase today or yesterday in 15pt default native subheadline regular text in semantic system secondary color with native baseline alignment and a little more separation for the device-local calendar day and its predecessor. Other dates retain their existing text. Labels read the already sampled OCaml calendar immediately, including while a feed refresh is delayed or fails. Gregorian civil-day comparison handles month/year/leap boundaries without subtracting elapsed hours, adding polling, or changing feed reads.

Block Detail now supplies an empty navigation title; the native Back button, options menu and toolbar layout remain.

Validation: 86 application-view tests, existing calendar and Timeline state tests, source-boundary checks, and iOS Simulator build passed. An isolated iPhone 13 / iOS 26.1 synthetic host verified date-state changes, year boundary, maximum Dynamic Type, the empty Detail title, native Back and menu selection, with screenshots kept outside Git. No Dune, spec interfaces, lock files or mldoc code changed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T12:31:49.083661Z 6f8f026 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f8f02684d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/journal_timeline.ml Outdated
in
Journal_header.date_header ~title
Journal_header.date_header
?relative_label:(Journal_calendar.relative_day_label ~today day)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Derive relative labels from the current calendar day

After local midnight or a time-zone change, install_calendar updates state.calendar immediately, but Journal_timeline_state.today is not advanced until the replacement feed reaches the successful Feed_loaded branch in application.ml. While that request is pending—and indefinitely if it fails—this call therefore continues marking the previous date as today and its predecessor as yesterday. Pass the current sampled calendar day into the presentation independently of feed completion so these labels cannot become stale.

Useful? React with 👍 / 👎.

@RCmerci
RCmerci merged commit bfe5a12 into main Oct 14, 2026
2 checks passed
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.

1 participant