History rows show the ISO datetime and the relative age #773

Open
clawbot wants to merge 1 commits from issue-760-history-row-datetime into next
pull from: issue-760-history-row-datetime
Collaborator

Closes #760

History rows on Home, AddressDetail and AddressToken now show the ISO datetime and then the relative age in parentheses, as TransactionDetail does. The tooltip is gone.

  • transactionTimeHtml() in src/popup/views/helpers.js writes the time for all four views. TransactionDetail passes copyable: true to keep its click-to-copy datetime. isoDate() and timeAgo() are no longer exported.
  • Row layout: the time always takes its own line, so every row has the same height however long the age or the direction label is. The direction label moves to its own right-aligned line below it, above the amount. Each row is one line taller than before.
  • README.md states the new row.

Tests:

  • tests/timestampDisplay.test.js renders a row on each of the three lists with "UTC Timestamps" on and a fixed clock, and expects 2026-09-21T14:13:20Z (3 hours ago). These three tests fail on next.
  • New e2e test in tests/e2e/run.js: Home with two history rows at the popup's size. It checks the time text's shape, that the time line is one line high, and that no line of a row overflows the row or the popup.

Screenshot (taken once from that e2e run, not committed): two rows reading 2026-01-02T03:04:05+00:00 (10 months ago), then Received, then the amount and the full counterparty address. The time line ends at about 300 of 396 px. Nothing overflows.

Deviation: the issue says 360 px. The popup's body is fixed at 396 px (src/popup/styles/main.css), so the check runs at the popup's real size. A 360 px viewport screenshot was identical.

Model: opus-5-5

Closes https://git.eeqj.de/sneak/AutistMask/issues/760 History rows on Home, AddressDetail and AddressToken now show the ISO datetime and then the relative age in parentheses, as TransactionDetail does. The tooltip is gone. - `transactionTimeHtml()` in `src/popup/views/helpers.js` writes the time for all four views. TransactionDetail passes `copyable: true` to keep its click-to-copy datetime. `isoDate()` and `timeAgo()` are no longer exported. - Row layout: the time always takes its own line, so every row has the same height however long the age or the direction label is. The direction label moves to its own right-aligned line below it, above the amount. Each row is one line taller than before. - `README.md` states the new row. Tests: - `tests/timestampDisplay.test.js` renders a row on each of the three lists with "UTC Timestamps" on and a fixed clock, and expects `2026-09-21T14:13:20Z (3 hours ago)`. These three tests fail on `next`. - New e2e test in `tests/e2e/run.js`: Home with two history rows at the popup's size. It checks the time text's shape, that the time line is one line high, and that no line of a row overflows the row or the popup. Screenshot (taken once from that e2e run, not committed): two rows reading `2026-01-02T03:04:05+00:00 (10 months ago)`, then `Received`, then the amount and the full counterparty address. The time line ends at about 300 of 396 px. Nothing overflows. Deviation: the issue says 360 px. The popup's `body` is fixed at 396 px (`src/popup/styles/main.css`), so the check runs at the popup's real size. A 360 px viewport screenshot was identical. Model: opus-5-5
clawbot added the needs-review label 2026-11-11 06:04:20 +01:00
clawbot self-assigned this 2026-11-11 06:04:20 +01:00
clawbot added 1 commit 2026-11-11 06:04:20 +01:00
fix: history rows show the ISO datetime and the age (closes #760)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
1a21bd254c
Home, AddressDetail and AddressToken showed only the relative age, with
the datetime as a tooltip. Each row now shows the datetime and then the
age in parentheses, on a line of its own, through transactionTimeHtml()
in helpers.js, which TransactionDetail also uses. The direction label
moves to its own right-aligned line below.

Model: opus-5-5
Some checks are pending
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin issue-760-history-row-datetime:issue-760-history-row-datetime
git checkout issue-760-history-row-datetime
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/AutistMask#773