Skip to content

refactor(telemetry): move the account label out of the TUI - #1844

Merged
igorjs merged 3 commits into
mainfrom
refactor/account-label-out-of-tui
Nov 15, 2026
Merged

igorjs merged 3 commits into
mainfrom
refactor/account-label-out-of-tui

Conversation

@igorjs

@igorjs igorjs commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Summary

summary.rs and run_summary took header_label from tui::account. header_label and its helper email_cut now live in account_store, next to display, with their three tests. Behaviour does not change. Refs the follow-up noted on #1801.

Notes for reviewers

  • tui::account imports header_label from account_store for the accounts view.
  • Two test fixtures changed with the move: @x.com became @example.com (same empty local part case) and example.com.br became example.com.invalid (still cuts to @example), so every address is a reserved example name.
  • Still in the TUI and imported by non-TUI code: start_mask_account (tui/mod.rs, used by run_summary) and account::keep and keep_tools (used by query, entry and run). Moving them means moving the mask key and its store-backed tests, so this PR leaves them for a separate change.

The summary renderers imported the account header label from the TUI
module. It now lives in account_store with its tests, so summary and the
run entry no longer reach into the TUI for it. No behaviour change.

Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
@igorjs
igorjs marked this pull request as ready for review November 15, 2026 07:32
@igorjs
igorjs enabled auto-merge November 15, 2026 07:34
@igorjs
igorjs added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit ae6eebe Nov 15, 2026
28 of 34 checks passed
@igorjs
igorjs deleted the refactor/account-label-out-of-tui branch November 15, 2026 07:44
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