Area
frontend/src/components/ui/StatusMessage.tsx, frontend/src/components/ui/index.ts
Problem
StatusMessage (and its inferTone helper) is exported from the ui barrel but has zero usages anywhere in frontend/src/app/** — it appears to be a superseded precursor to the current toast-based status pattern (Toast.tsx, which duplicates the same inferTone-style logic at lines 26-37). Dead, unused code with a duplicated helper is easy to accidentally diverge from the real (toast) implementation if someone edits one copy and not the other.
Proposed change
Delete StatusMessage.tsx and its barrel export if truly unused (double-check with a repo-wide search first), and consolidate inferTone-style logic into a single shared helper used by Toast.tsx.
Acceptance Criteria
Open your PR against the dev branch, not main. All active development merges into dev.
Discuss this issue / coordinate work: join the DShield contributor Telegram group: https://t.me/+SiGHH24No9U2MDJk
Area
frontend/src/components/ui/StatusMessage.tsx, frontend/src/components/ui/index.ts
Problem
StatusMessage(and itsinferTonehelper) is exported from theuibarrel but has zero usages anywhere infrontend/src/app/**— it appears to be a superseded precursor to the current toast-based status pattern (Toast.tsx, which duplicates the sameinferTone-style logic at lines 26-37). Dead, unused code with a duplicated helper is easy to accidentally diverge from the real (toast) implementation if someone edits one copy and not the other.Proposed change
Delete
StatusMessage.tsxand its barrel export if truly unused (double-check with a repo-wide search first), and consolidateinferTone-style logic into a single shared helper used byToast.tsx.Acceptance Criteria
StatusMessageanywhere in the app before deletingjust test,pnpm test,cargo test, ornargo testas applicable) pass locally and in CIpnpm buildsucceeding with the component removed) — required before this can be merged.Open your PR against the
devbranch, notmain. All active development merges intodev.Discuss this issue / coordinate work: join the DShield contributor Telegram group: https://t.me/+SiGHH24No9U2MDJk