Commit 3f45ed6
authored
Group data-downloader sensors by DBC CAN messages (#72)
* Group data-downloader sensors by DBC CAN message with subsystem colour coding
- GET /api/sensors/grouped: left-joins DB sensor names against the DBC
message/signal tree; transmitter node (MOBO, INV, etc.) used as subsystem;
graceful fallback when no DBC is configured.
- POST /api/dbc/refresh: bust in-memory DBC cache on demand.
- dbc_utils.py: auto-discovers alphabetically newest .dbc in GitHub repo
(no GITHUB_DBC_PATH required); caches to DATA_DIR/dbc_cache.dbc;
GITHUB_DBC_PATH accepted as optional pin; falls back to DBC_FILE_PATH.
- config.py: GITHUB_DBC_TOKEN/REPO/BRANCH/PATH and DBC_FILE_PATH settings.
- requirements.txt: cantools + requests.
- docker-compose.yml: DBC env vars wired into data-downloader-api.
- SensorGroupedGrid.tsx: collapsible groups, 8-hue subsystem palette
(djb2-stable), subsystem + hex CAN ID badges, dark/light mode.
- App.tsx: parallel grouped fetch; grouped grid when DBC available,
flat fallback otherwise; DBC source tag.
- data-download.tsx: sensor select uses optgroup per message.
- styles.css: message group layout classes.
* Auto-select most recently committed DBC from GitHub repo instead of alphabetically last
* Move DBC env var docs to top-level installer .env.example
* Consolidate into single .env.example under server/installer, remove data-downloader copy
* Keep grouped sensor rows expanded and show decimal CAN IDs
* Provide CI slicks stub for compose image builds
* Stop code-generator image from requiring local anomaly scan script
* Make code-generator FastEmbed prefetch best-effort1 parent 57b0645 commit 3f45ed6
15 files changed
Lines changed: 743 additions & 34 deletions
File tree
- .github/workflows
- server/installer
- data-downloader
- backend
- frontend/src
- components
- sandbox
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
96 | 110 | | |
97 | 111 | | |
98 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | | - | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
93 | 105 | | |
94 | 106 | | |
95 | 107 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
124 | 125 | | |
125 | 126 | | |
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 | + | |
127 | 158 | | |
128 | 159 | | |
129 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
113 | 132 | | |
114 | 133 | | |
115 | 134 | | |
| |||
0 commit comments