(name, idx)
| 17 | }; |
| 18 | const FALLBACK_COLORS = ["#f0506e", "#f5862b", "#f5c518", "#3fcf6e", "#9b6cf0", "#4a9bf5", "#2bd4c4", "#c44ad0"]; |
| 19 | function stemMeta(name, idx) { |
| 20 | return STEM_META[name] || { label: name.charAt(0).toUpperCase() + name.slice(1), color: FALLBACK_COLORS[idx % FALLBACK_COLORS.length] }; |
| 21 | } |
| 22 | |
| 23 | // Stem chips shown on the (still-mock) Extract screen. |
| 24 | const EXTRACT_STEMS = Object.entries(STEM_META).map(([id, m]) => ({ id, name: m.label, color: m.color })); |