fix: move the UTC Timestamps checkbox into the Display well (closes #212) #214

Merged
clawbot merged 1 commits from fix/issue-212-utc-checkbox-placement into next 2026-08-11 15:34:17 +02:00

1 Commits

Author SHA1 Message Date
clawbot
43ca3307ec fix: move the UTC Timestamps checkbox into the Display well (closes #212)
All checks were successful
check / check (push) Successful in 27s
The `settings-utc-timestamps` checkbox sat inside the Token Spam Protection
well, immediately after the dust-threshold input. It is a display preference
and has nothing to do with spam filtering, so it now renders in the Display
well next to the theme selector.

Markup move only. The checkbox is wired by id — `$("settings-utc-timestamps")`
in `src/popup/views/settings.js`, where `$` is `document.getElementById` — for
both the initial `checked` assignment and the `change` handler, so nothing in
the wiring depends on the element's parent or siblings. `state.utcTimestamps`,
`saveState`/`loadState` and the `helpers.js` formatting path are untouched.

Both Settings descriptions follow the markup: the `README.md` Screen Map and
the `docs/README.md` Settings list each now name the UTC control under Display
and no longer under Token Spam Protection.

`tests/settingsUtcTimestamps.test.js` pins both halves down: the checkbox
appears exactly once and inside the Display well rather than the spam well,
and the setting still round-trips through storage.
2026-08-11 13:33:01 +00:00