Commit 002baeb
Hide proprietary efficiency score from frontend
Discontinue surfacing the calculated efficiency score (A–F grade +
0–100 value) to users, while keeping all stored data and admin tooling
intact so the change is fully reversible.
Frontend display removed:
- Tire card efficiency badge (cards.js); the Roamer real-world mi/kWh
pill, which shared the same styling, is preserved and un-nested so it
renders on its own.
- Compare page efficiency badge in tire headers and the Performance
section, plus its now-dead CSS and best-value highlighting.
- "Efficiency Grade" option in the sort dropdown.
- Orphaned "Efficiency Score" tooltip.
Default sort moved off efficiency to "Real-World Efficiency" so results
are no longer ordered by the discontinued score:
- Client sort + allow-list (filters.js, validation.js).
- Server-side pagination mode (server.js + AJAX handler).
- Public REST /tires endpoint. efficiency_score is kept as an accepted
sort value for backward compatibility, just not the default.
Deliberately untouched: DB columns, calculation engine, admin tire-edit
preview / "Recalculate Grades", CSV import/export, and the efficiency
calc endpoints. Values still flow through the payload at their existing
array positions; the frontend just no longer renders or sorts on them.
Build regenerated (all 7 targets); 83/83 JS tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2b22414 commit 002baeb
12 files changed
Lines changed: 70 additions & 173 deletions
File tree
- frontend
- js
- modules
- templates
- includes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
| |||
86 | 81 | | |
87 | 82 | | |
88 | 83 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 84 | | |
93 | 85 | | |
94 | 86 | | |
95 | 87 | | |
96 | 88 | | |
97 | 89 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 90 | | |
110 | 91 | | |
111 | 92 | | |
| |||
217 | 198 | | |
218 | 199 | | |
219 | 200 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 201 | | |
225 | 202 | | |
226 | 203 | | |
| |||
239 | 216 | | |
240 | 217 | | |
241 | 218 | | |
242 | | - | |
243 | 219 | | |
244 | 220 | | |
245 | 221 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments