1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Panes-rendering constants.
//!
//! Per `~/rust/nate_style/rust/no-magic-values.md`: directory
//! modules own their constants in their own `constants.rs`, not
//! the parent's. These are panes-rendering-specific (tree-row
//! prefixes and Tests detail-row labels), so they live here, not
//! in `tui::constants`.
//!
//! Visibility: `pub(super)` — visible to `panes/*` siblings only.
//! No `pub use` re-export at `panes/mod.rs`. The row prefixes are
//! consumed by the renderer in `panes::project_list` and the
//! column-fit-width math in `panes::widths`; the Tests row labels
//! are shared by `panes::pane_data` (row building) and
//! `panes::package` (rendering).
// Git pane constants
pub const FIT_TEXT_ELLIPSIS: &str = "...";
pub const PULL_REQUEST_MIN_TITLE_WIDTH: usize = 8;
// Row prefix strings — single source of truth for width calc and render.
pub const PREFIX_ROOT_EXPANDED: &str = "▼ ";
pub const PREFIX_ROOT_COLLAPSED: &str = "▶ ";
pub const PREFIX_ROOT_LEAF: &str = " ";
pub const PREFIX_MEMBER_INLINE: &str = " ";
pub const PREFIX_MEMBER_NAMED: &str = " ";
pub const PREFIX_MEMBER_VENDORED_INLINE: &str = " ";
pub const PREFIX_MEMBER_VENDORED_NAMED: &str = " ";
pub const PREFIX_SUBMODULE: &str = " ";
pub const PREFIX_VENDORED: &str = " ";
pub const PREFIX_GROUP_EXPANDED: &str = " ▼";
pub const PREFIX_GROUP_COLLAPSED: &str = " ▶";
pub const PREFIX_WT_EXPANDED: &str = " ▼";
pub const PREFIX_WT_COLLAPSED: &str = " ▶";
pub const PREFIX_WT_FLAT: &str = " ";
pub const PREFIX_WT_GROUP_EXPANDED: &str = " ▼";
pub const PREFIX_WT_GROUP_COLLAPSED: &str = " ▶";
pub const PREFIX_WT_MEMBER_INLINE: &str = " ";
pub const PREFIX_WT_MEMBER_NAMED: &str = " ";
pub const PREFIX_WT_MEMBER_VENDORED_INLINE: &str = " ";
pub const PREFIX_WT_MEMBER_VENDORED_NAMED: &str = " ";
pub const PREFIX_WT_VENDORED: &str = " ";
// tests detail rows
/// Label of the `(ignored)` annotation row in the Tests section. Shared
/// with the renderer, which dims this row's value (the count is a
/// registered-but-skipped doctest tally, not a runnable test).
pub const TESTS_IGNORED_LABEL: &str = "(ignored)";
/// Label of the runnable-total row in the Tests section — intentionally
/// blank. The Languages pane shows its grand total as an unlabelled bold
/// bottom value; the Tests total matches, so the renderer keys off this
/// empty label to render the value in bold accent color.
pub const TESTS_TOTAL_LABEL: &str = "";