Skip to content

feat: clarify history flow + local-time from-picker#11

Merged
Taure merged 1 commit into
mainfrom
feat/history-guidance-local-time
Jun 25, 2026
Merged

feat: clarify history flow + local-time from-picker#11
Taure merged 1 commit into
mainfrom
feat/history-guidance-local-time

Conversation

@Taure

@Taure Taure commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Follow-up from testing: history submits but nothing appeared, because replayed messages are delivered through the listener callback to the Receiver tab — and only if a listener exists for the target. This makes that explicit and fixes the time interpretation.

Guidance

  • The History page now states it requires an active listener (links to the Listeners tab) and that matching messages replay into the Receiver tab.
  • Status message after submit points at the Receiver tab.

Local time

  • The datetime-local picker is now interpreted in the browser's local timezone: converted to epoch ms client-side (new Date(value).getTime()) into a timestamp_ms signal, which submit_history forwards directly.
  • Removed the server-side UTC parse (ldf_format:datetime_to_ms) and its tests — the chosen time now means local wall-clock time, as expected.

No change to the delivery model (still the realistic LI callback → Receiver flow).

Local checks: rebar3 fmt --check, xref, dialyzer, eunit (3/3) clean.

- History page now states it needs an active listener and that replayed
  messages arrive in the Receiver tab (with links to both tabs).
- Interpret the datetime-local picker in the browser's local timezone:
  convert to epoch ms client-side (new Date) into a timestamp_ms signal;
  submit_history reads that directly. Drops the server-side UTC parse
  (ldf_format:datetime_to_ms removed) so the chosen time means local time.
- Status message points the user at the Receiver tab.
@Taure Taure merged commit 399cb6a into main Jun 25, 2026
2 checks passed
@Taure Taure deleted the feat/history-guidance-local-time branch June 25, 2026 08:47
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