| 143 | * a narrower reading from that would be putting words in their mouth. |
| 144 | */ |
| 145 | export function profileFor(intent: WhyIntent, fallback: PresentationProfile): PresentationProfile { |
| 146 | switch (intent) { |
| 147 | case 'bug': |
| 148 | return { |
| 149 | id: 'custom:why-bug', |
| 150 | label: 'Bug hunt', |
| 151 | depth: 2, |
| 152 | facets: [Facet.Logic, Facet.Calls, Facet.Errors, Facet.Runtime], |
| 153 | terminology: 'technical', |
| 154 | conceptCallouts: false, |
| 155 | panels: [], |
| 156 | aiChangeWatcher: false, |
| 157 | }; |
| 158 | case 'change': |
| 159 | return { |
| 160 | id: 'custom:why-change', |
| 161 | label: 'Change scope', |
| 162 | depth: 2, |
| 163 | facets: [Facet.Calls, Facet.Data, Facet.Tests, Facet.Changes], |
| 164 | terminology: 'technical', |
| 165 | conceptCallouts: false, |
| 166 | panels: [], |
| 167 | aiChangeWatcher: false, |
| 168 | }; |
| 169 | case 'understand': |
| 170 | return { |
| 171 | id: 'custom:why-understand', |
| 172 | label: 'Project walk', |
| 173 | depth: 1, |
| 174 | facets: [Facet.Logic, Facet.Calls, Facet.Tests], |
| 175 | terminology: 'plain', |
| 176 | conceptCallouts: false, |
| 177 | panels: [], |
| 178 | aiChangeWatcher: false, |
| 179 | }; |
| 180 | case 'entry': |
| 181 | default: |
| 182 | return fallback; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Words this product does not use about the person reading it. |