aboutsummaryrefslogtreecommitdiff
path: root/src/stages.rs
blob: 600c250d32cdbee8748905f9407d2a6636fe058a (plain)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
// Map, wardley map editor for linux
// Copyright (C) 2026 Rubén Beltrán del Río

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.

// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

use crate::tr;
use wmap_renderer::StageType;

/// All available stage types for rendering Wardley Maps.
/// Order determines dropdown menu order.
pub const ALL_STAGE_TYPES: &[StageType] = &[
    StageType::Activities,
    StageType::Practice,
    StageType::Data,
    StageType::Knowledge,
    StageType::Ubiquity,
    StageType::Certainty,
    StageType::PublicationTypes,
    StageType::Market,
    StageType::KnowledgeManagement,
    StageType::MarketPerception,
    StageType::UserPerception,
    StageType::PerceptionInIndustry,
    StageType::FocusOfValue,
    StageType::Understanding,
    StageType::Comparison,
    StageType::Failure,
    StageType::MarketAction,
    StageType::Efficiency,
    StageType::DecisionDrivers,
    StageType::Behavior,
];

pub trait LocalizedStageType {
    fn localized_name(&self) -> String;
    fn localized_i(&self) -> String;
    fn localized_ii(&self) -> String;
    fn localized_iii(&self) -> String;
    fn localized_iv(&self) -> String;

    fn to_localized(&self) -> StageType;
}

impl LocalizedStageType for StageType {
    fn localized_name(&self) -> String {
        match self {
            StageType::Activities => tr!("Activities"),
            StageType::Practice => tr!("Practice"),
            StageType::Data => tr!("Data"),
            StageType::Knowledge => tr!("Knowledge"),
            StageType::Ubiquity => tr!("Ubiquity"),
            StageType::Certainty => tr!("Certainty"),
            StageType::PublicationTypes => tr!("Publication Types"),
            StageType::Market => tr!("Market"),
            StageType::KnowledgeManagement => tr!("Knowledge Management"),
            StageType::MarketPerception => tr!("Market Perception"),
            StageType::UserPerception => tr!("User Perception"),
            StageType::PerceptionInIndustry => tr!("Perception in Industry"),
            StageType::FocusOfValue => tr!("Focus of Value"),
            StageType::Understanding => tr!("Understanding"),
            StageType::Comparison => tr!("Comparison"),
            StageType::Failure => tr!("Failure"),
            StageType::MarketAction => tr!("Market Action"),
            StageType::Efficiency => tr!("Efficiency"),
            StageType::DecisionDrivers => tr!("Decision Drivers"),
            StageType::Behavior => tr!("Behavior"),
            StageType::Cynefin => tr!("Cynefin"),
            StageType::EvolutionStage => tr!("Evolution Stage"),
            StageType::Custom {
                name,
                i: _,
                ii: _,
                iii: _,
                iv: _,
            } => name.clone(),
        }
    }
    fn localized_i(&self) -> String {
        match self {
            StageType::Activities => tr!("Genesis"),
            StageType::Practice => tr!("Novel"),
            StageType::Data => tr!("Unmodelled"),
            StageType::Knowledge => tr!("Concept"),
            StageType::Ubiquity => tr!("Rare"),
            StageType::Certainty => tr!("Poorly Understood / exploring the unknown"),
            StageType::PublicationTypes => tr!(
                "Describe the wonder of the thing / the discovery of some marvel / a new land / an unknown frontier"
            ),
            StageType::Market => tr!("Undefined Market"),
            StageType::KnowledgeManagement => tr!("Uncertain"),
            StageType::MarketPerception => tr!(r#"Chaotic (non-linear) / domain of the "crazy""#),
            StageType::UserPerception => {
                tr!("Different / confusing / exciting / surprising / dangerous")
            }
            StageType::PerceptionInIndustry => {
                tr!("Future source of competitive advantage / unpredictable / unknown")
            }
            StageType::FocusOfValue => tr!("High future worth but immediate investment"),
            StageType::Understanding => tr!("Poorly Understood / unpredictable"),
            StageType::Comparison => tr!("Constantly changing / a differential / unstable"),
            StageType::Failure => tr!("High / tolerated / assumed to be wrong"),
            StageType::MarketAction => tr!("Gambling / driven by gut"),
            StageType::Efficiency => tr!("Reducing the cost of change (experimentation)"),
            StageType::DecisionDrivers => tr!("Heritage / culture"),
            StageType::Behavior => tr!("Uncertain when to use"),
            StageType::Cynefin => tr!("Chaotic"),
            StageType::EvolutionStage => tr!("Stage I"),
            StageType::Custom {
                name: _,
                i,
                ii: _,
                iii: _,
                iv: _,
            } => i.clone(),
        }
    }
    fn localized_ii(&self) -> String {
        match self {
            StageType::Activities => tr!("Custom"),
            StageType::Practice => tr!("Emerging"),
            StageType::Data => tr!("Divergent"),
            StageType::Knowledge => tr!("Hypothesis"),
            StageType::Ubiquity => tr!("Slowly Increasing"),
            StageType::Certainty => tr!("Rapid Increase In Learning / discovery becomes refining"),
            StageType::PublicationTypes => tr!(
                "Focused on build / construct / awareness and learning / many models of explanation / no accepted forms / a wild west"
            ),
            StageType::Market => {
                tr!("Forming Market / an array of competing forms and models of understanding")
            }
            StageType::KnowledgeManagement => {
                tr!("Learning on use / focused on testing prediction")
            }
            StageType::MarketPerception => tr!(r#"Domain of "experts""#),
            StageType::UserPerception => tr!("Leading edge / emerging / uncertainty over results"),
            StageType::PerceptionInIndustry => {
                tr!("Seen as a scompetitive advantage / a differential / ROI / case examples")
            }
            StageType::FocusOfValue => {
                tr!("Seeking ways to profit and a ROI / seeking confirmation of value")
            }
            StageType::Understanding => tr!("Increasing understanding / development of measures"),
            StageType::Comparison => {
                tr!("Learning from others / testing the water / some evidential support")
            }
            StageType::Failure => tr!("Moderate / unsurprising if wrong but disappointed"),
            StageType::MarketAction => tr!(r#"Exploring a "found" value"#),
            StageType::Efficiency => tr!("Reducing cost of waste (Learning)"),
            StageType::DecisionDrivers => tr!("Analyses & synthesis"),
            StageType::Behavior => tr!("Learning when to use"),
            StageType::Cynefin => tr!("Complex"),
            StageType::EvolutionStage => tr!("Stage II"),
            StageType::Custom {
                name: _,
                i: _,
                ii,
                iii: _,
                iv: _,
            } => ii.clone(),
        }
    }
    fn localized_iii(&self) -> String {
        match self {
            StageType::Activities => tr!("Product (+rental)"),
            StageType::Practice => tr!("Good"),
            StageType::Data => tr!("Convergent"),
            StageType::Knowledge => tr!("Theory"),
            StageType::Ubiquity => tr!("Rapidly Increasing"),
            StageType::Certainty => tr!("Rapid increase in use / increasing fit for purpose"),
            StageType::PublicationTypes => tr!(
                "Maintenance / operations / installation / comparison between competing forms / feature analysis"
            ),
            StageType::Market => {
                tr!("Growing Market / consolidation to a few competing but more accepted forms")
            }
            StageType::KnowledgeManagement => {
                tr!("Learning on operation / using prediction / verification")
            }
            StageType::MarketPerception => {
                tr!(r#"Increasing expectation of use / domain of "professionals""#)
            }
            StageType::UserPerception => tr!(
                "Increasingly common / disappointed if not used or available / feeling left behind"
            ),
            StageType::PerceptionInIndustry => {
                tr!("Advantage through implementation / features / this model is better than that")
            }
            StageType::FocusOfValue => tr!(
                "High profitability per unit / a valuable model / a feeling of understanding / focus on exploitation"
            ),
            StageType::Understanding => {
                tr!("Increasing education / constant refinement of needs / measures")
            }
            StageType::Comparison => {
                tr!("Competing models / feature difference / evidential support")
            }
            StageType::Failure => tr!(
                "Not tolerated / focus on constant improvement / assumed to be in the right direction / resistance to changing the model"
            ),
            StageType::MarketAction => tr!("Market analysis / listening to customers"),
            StageType::Efficiency => tr!("Reducing cost of waste (Learning)"),
            StageType::DecisionDrivers => tr!("Analyses & synthesis"),
            StageType::Behavior => tr!("Learning through use"),
            StageType::Cynefin => tr!("Complicated"),
            StageType::EvolutionStage => tr!("Stage III"),
            StageType::Custom {
                name: _,
                i: _,
                ii: _,
                iii,
                iv: _,
            } => iii.clone(),
        }
    }
    fn localized_iv(&self) -> String {
        match self {
            StageType::Activities => tr!("Commodity (+utility)"),
            StageType::Practice => tr!("Best"),
            StageType::Data => tr!("Modelled"),
            StageType::Knowledge => tr!("Accepted"),
            StageType::Ubiquity => tr!("Widespread in the applicable market / ecosystem"),
            StageType::Certainty => tr!("Commonly understood (in terms of use)"),
            StageType::PublicationTypes => {
                tr!("Focused on use / increasingly an accepted, almost invisible component")
            }
            StageType::Market => tr!("Mature Market / stabilised to an accepted form"),
            StageType::KnowledgeManagement => tr!("Known / accepted"),
            StageType::MarketPerception => {
                tr!("Ordered (appearance of being linear) / trivial / formula to be applied")
            }
            StageType::UserPerception => tr!("Standard / expected / feeling of shock if not used"),
            StageType::PerceptionInIndustry => {
                tr!("Cost of doing business / accepted / specific defined models")
            }
            StageType::FocusOfValue => tr!(
                "High volume / reducing margin / important but invisible / an essential component of something more complex"
            ),
            StageType::Understanding => tr!("Believed to be well defined / stable / measurable"),
            StageType::Comparison => {
                tr!("Essential / any advantage is operational / accepted norm")
            }
            StageType::Failure => tr!("Surprised by failure / focus on operational efficiency"),
            StageType::MarketAction => tr!("Metric driven / build what is needed"),
            StageType::Efficiency => tr!("Reducing cost of deviation (Volume)"),
            StageType::DecisionDrivers => tr!("Previous Experience"),
            StageType::Behavior => tr!("Known / common usage"),
            StageType::Cynefin => tr!("Clear"),
            StageType::EvolutionStage => tr!("Stage IV"),
            StageType::Custom {
                name: _,
                i: _,
                ii: _,
                iii: _,
                iv,
            } => iv.clone(),
        }
    }

    fn to_localized(&self) -> StageType {
        StageType::Custom {
            name: self.localized_name(),
            i: self.localized_i(),
            ii: self.localized_ii(),
            iii: self.localized_iii(),
            iv: self.localized_iv(),
        }
    }
}