1use crate::app::Tab;
7
8#[must_use]
11pub fn placeholder_body(tab: Tab) -> &'static str {
12 match tab {
13 Tab::Accounts => "Accounts — list, create, view hierarchy.",
14 Tab::Transactions => "Transactions — list, create multi-split entries.",
15 Tab::Commodities => "Commodities — list, create.",
16 Tab::Reports => "Reports — balance / activity / breakdown, with chart pane.",
17 Tab::Config => "Config — view and edit TUI / server configuration.",
18 }
19}
20
21#[cfg(test)]
22mod tests {
23 use super::*;
24
25 #[test]
26 fn every_tab_has_placeholder_text() {
27 for tab in Tab::ALL {
28 let body = placeholder_body(tab);
29 assert!(!body.is_empty());
30 }
31 }
32}