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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
//! RFC-035 R8: the dashboard's width-derived presentation mode.
//!
//! ## History — three mechanisms, in order
//!
//! 1. **Original (RFC-035 Internal Design §Responsive strategy, Stage 4
//! commit 1):** presentation-derived only, computed inside
//! `iced::widget::responsive`'s per-layout closure in `dashboard/mod.rs`'s
//! `view`. Explicitly *not* stored in `AppState`/`AppConfig`, and not
//! driving a message on resize.
//! 2. **Handoff 027 Ruling 6.2:** `responsive` moved from wrapping just the
//! dashboard body to wrapping `view.rs`'s whole body composition (screen
//! content + selection bar + activity strip), computed once and passed
//! to both `dashboard::view` and `selection_bar::view` — two independent
//! wrappers would measure different regions and could classify
//! differently at a band edge, a live risk once a precise-1000px window
//! was found to measure `999.9983` (see `from_width`'s doc).
//! 3. **Handoff 029, reversing the original decision:** implementing
//! compact mode's toolbar (Handoff 028) found that `focus_order` runs
//! inside `update()`, in direct response to a Tab/Enter `Message` —
//! which has **no access to `Size` at all**, since `responsive`'s
//! closure only runs during layout and `iced::window::size()` is an
//! async `Task`. The moment compact mode changed *which* toolbar targets
//! exist (not just their layout — Stage 3's row/section mode branching
//! never needed this), `view` and `focus_order` needed to agree on a
//! value that `focus_order` had no way to obtain. **`WidthMode` now
//! lives in `AppState`** (`state.width_mode`), fed by
//! `Message::WindowResized` (`iced::window::resize_events()` —
//! iced's own documented subscription shape), seeded at `init` from
//! `state::INITIAL_WINDOW_SIZE` (no resize event fires before the first
//! frame). Both `view.rs` and `dashboard::focus_order` now read the same
//! field. `responsive` is retired from this RFC.
//!
//! The type itself stays defined here rather than moving to `state/`
//! (Handoff 027 §5's placement reasoning still holds despite the mechanism
//! changing again): the dashboard is still the primary consumer and the
//! type's own semantics (R8's breakpoints) are the dashboard's. `pub(crate)`
//! so `state.rs`, `app.rs`, `view.rs`, and `view/selection_bar.rs` can name
//! it.
/// The three width bands RFC-035 R8 defines.
pub