mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-08-26 17:31:34 +00:00
fix(activity-log): map legacy ⏳ WX / ⚠️ Road Incident prefixes to Weather/Traffic + backfill residual orphans (#100)
Extends TEXT_HINTS with three missing legacy prefixes so NULL-source audit rows render the correct family label in the Activity Log UI: - ⏳ (U+23F3) → Weather (legacy composer weather-watch: "⏳ WX: …") - 🌡️ → Weather (NWS heat-alert format added in PR #96) - ⚠️ Road Incident (U+26A0+FE0F) → Traffic (legacy incident_handler rows) Placed more-specific prefix before shorter variants to avoid false matches. DB backfill: 0 residual NULL rows found (all rows already tagged after PR #99); no audit-table writes performed. No mesh transmission. Co-authored-by: Matt Johnson <mj@k7zvx.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
40fcbf88e8
commit
0857b92788
1 changed files with 6 additions and 0 deletions
|
|
@ -62,14 +62,20 @@ const TABLE_LABELS: Record<string, string> = {
|
||||||
// hydro.py → "🌊 …"
|
// hydro.py → "🌊 …"
|
||||||
// swpc.py → "🧲 …" | "☀️ …"
|
// swpc.py → "🧲 …" | "☀️ …"
|
||||||
// quake.py → "🌐 …"
|
// quake.py → "🌐 …"
|
||||||
|
// nws.py / composer (legacy) → "⏳ WX: …" | "🌡️ …" (heat, PR #96)
|
||||||
|
// incident_handler.py (legacy) → "⚠️ Road Incident …"
|
||||||
|
// NOTE: more-specific prefixes must appear before shorter ones that share a leading char.
|
||||||
const TEXT_HINTS: Array<[string, string]> = [
|
const TEXT_HINTS: Array<[string, string]> = [
|
||||||
['🔥', 'Fire'],
|
['🔥', 'Fire'],
|
||||||
['🚧', 'Traffic'],
|
['🚧', 'Traffic'],
|
||||||
|
['⚠️ Road Incident', 'Traffic'], // legacy incident rows (⚠️ = U+26A0+FE0F)
|
||||||
['⛷', 'Avalanche'],
|
['⛷', 'Avalanche'],
|
||||||
['🌊', 'Hydro'],
|
['🌊', 'Hydro'],
|
||||||
['🧲', 'Space Wx'],
|
['🧲', 'Space Wx'],
|
||||||
['☀️', 'Space Wx'],
|
['☀️', 'Space Wx'],
|
||||||
['🌐', 'Quake'],
|
['🌐', 'Quake'],
|
||||||
|
['⏳', 'Weather'], // legacy weather-watch rows: "⏳ WX: …"
|
||||||
|
['🌡️', 'Weather'], // legacy heat-alert rows (PR #96 NWS heat format)
|
||||||
]
|
]
|
||||||
|
|
||||||
// Type/family tag derived from source_event_table, with text-prefix fallback
|
// Type/family tag derived from source_event_table, with text-prefix fallback
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue