Skip to content

Commit 9f7d577

Browse files
RivianTrackrclaude
andcommitted
Finish ink & brass conversion for compare and review (v1.49.1)
The compare and tire-review standalone templates carried drifted token fallbacks (#111827 deep bg, #334155 border) and a navy section-header hover that the v1.49.0 sweep missed, since those values never appeared in the site export's palette. Also converts the focused-search background, toggle off-track, and guest-notice fallback in the main stylesheet. Aligns compare grade colors with the documented A-F scale (A #34c759, B #7dc734) and the review toast info accent with the system info color (#60a5fa); the no-grade fallback becomes warm-neutral. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 8eba609 commit 9f7d577

9 files changed

Lines changed: 27 additions & 20 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to the Rivian Tire Guide plugin will be documented in this f
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7+
## [1.49.1] - 2026-06-12
8+
9+
### Fixed
10+
- **Compare & review follow-ups for the ink & brass theme.** The compare and tire-review standalone templates had drifted token fallbacks (`--rtg-bg-deep: #111827`, `--rtg-border: #334155`) plus a navy section-header hover (`#1a2537`) that the 1.49.0 conversion missed — now `#121418` / `#3a3e45` / `#1f2228`. Also converted the focused-search background, the toggle off-track, and the guest-notice background fallback in the main stylesheet.
11+
- **Compare grade colors now match the documented A–F scale**: grade A `#5ec095 → #34c759`, grade B `#a3e635 → #7dc734` (C/D/F already matched); the no-grade fallback gray is warm-neutral (`#a19e97`).
12+
- Review toast "info" accent aligned to the system info color (`#3b82f6 → #60a5fa`).
13+
714
## [1.49.0] - 2026-06-12
815

916
### Changed

frontend/css/rivian-tires.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
}
181181
.search-input:focus {
182182
outline: none !important;
183-
background-color: #1f2937 !important;
183+
background-color: #1f2228 !important;
184184
box-shadow: 0 0 0 2px var(--rtg-accent) !important;
185185
border-color: var(--rtg-accent) !important;
186186
border-radius: 8px !important;
@@ -383,7 +383,7 @@
383383
position: relative;
384384
width: 44px;
385385
height: 24px;
386-
background-color: #475569;
386+
background-color: #4a4e55;
387387
border-radius: 9999px;
388388
transition: background-color 0.2s ease;
389389
flex-shrink: 0;
@@ -1800,7 +1800,7 @@
18001800
.rtg-review-guest-notice {
18011801
font-size: 13px;
18021802
color: var(--rtg-text-muted, #99968f);
1803-
background: var(--rtg-bg-secondary, #0d1b2a);
1803+
background: var(--rtg-bg-secondary, #121418);
18041804
border-radius: 6px;
18051805
padding: 10px 12px;
18061806
margin-top: 10px;

frontend/css/rivian-tires.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/js/compare.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const COL = {
6969

7070
// --- Efficiency badge colors ---
7171
const GRADE_COLORS = {
72-
A: "#5ec095", B: "#a3e635", C: "#facc15", D: "#f97316", F: "#b91c1c"
72+
A: "#34c759", B: "#7dc734", C: "#facc15", D: "#f97316", F: "#b91c1c"
7373
};
7474

7575
// --- Determine "best" values for highlighting ---
@@ -99,7 +99,7 @@ function findBestValues(tires) {
9999
function effBadge(score, grade) {
100100
const s = escapeHTML(score || "-");
101101
const g = escapeHTML((grade || "-").toUpperCase());
102-
const color = GRADE_COLORS[g] || "#94a3b8";
102+
const color = GRADE_COLORS[g] || "#a19e97";
103103
return `<span class="cmp-eff-badge">
104104
<span class="cmp-eff-grade" style="background:${color}">${g}</span>
105105
<span class="cmp-eff-score">${s}/100</span>
@@ -247,7 +247,7 @@ function renderComparison(rows, indexes) {
247247
const mi = Math.round((parseFloat(t[COL.roamerTotalKm]) || 0) * 0.621371);
248248
const veh = parseInt(t[COL.roamerVehicleCount]) || 0;
249249
return '<span style="display:inline-block;background:rgba(59,130,246,0.15);border-radius:6px;padding:2px 8px;font-weight:700;color:#60a5fa;">' + miPerKwh + ' mi/kWh</span>' +
250-
'<br><span style="font-size:11px;color:#94a3b8;">' + mi.toLocaleString() + ' mi tracked, ' + veh + ' vehicle' + (veh !== 1 ? 's' : '') + '</span>';
250+
'<br><span style="font-size:11px;color:#a19e97;">' + mi.toLocaleString() + ' mi tracked, ' + veh + ' vehicle' + (veh !== 1 ? 's' : '') + '</span>';
251251
}, 'roamerEfficiency'],
252252
['Speed Rating', t => t[COL.speedRating] || "-"],
253253
['UTQG', t => t[COL.utqg] || "None"],

frontend/js/compare.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/templates/compare.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
--rtg-bg-primary: #1e2126;
4040
--rtg-bg-card: #16191e;
4141
--rtg-bg-input: #3a3e45;
42-
--rtg-bg-deep: #111827;
42+
--rtg-bg-deep: #121418;
4343
--rtg-text-primary: #e5e5e5;
4444
--rtg-text-light: #f6f4f0;
4545
--rtg-text-muted: #a19e97;
4646
--rtg-text-heading: #ffffff;
47-
--rtg-border: #334155;
47+
--rtg-border: #3a3e45;
4848
<?php if ( $rtg_css_vars ) echo $rtg_css_vars; ?>
4949
}
5050

@@ -243,7 +243,7 @@
243243
cursor: pointer;
244244
user-select: none;
245245
}
246-
.cmp-section-header:hover { background: #1a2537; }
246+
.cmp-section-header:hover { background: #1f2228; }
247247
.cmp-section-icon {
248248
color: var(--rtg-accent);
249249
font-size: 16px;

frontend/templates/tire-review.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@
9999
--rtg-bg-primary: #1e2126;
100100
--rtg-bg-card: #16191e;
101101
--rtg-bg-input: #3a3e45;
102-
--rtg-bg-deep: #111827;
102+
--rtg-bg-deep: #121418;
103103
--rtg-text-primary: #e5e5e5;
104104
--rtg-text-light: #f6f4f0;
105105
--rtg-text-muted: #a19e97;
106106
--rtg-text-heading: #ffffff;
107-
--rtg-border: #334155;
107+
--rtg-border: #3a3e45;
108108
--rtg-star-filled: #fba919;
109109
--rtg-star-user: #4ade80;
110110
--rtg-star-empty: #2c2f34;
@@ -625,8 +625,8 @@
625625
.rv-toast-icon { flex-shrink: 0; }
626626
.rv-toast-success { border-left: 3px solid var(--rtg-accent); }
627627
.rv-toast-success .rv-toast-icon { color: var(--rtg-accent); }
628-
.rv-toast-info { border-left: 3px solid #3b82f6; }
629-
.rv-toast-info .rv-toast-icon { color: #3b82f6; }
628+
.rv-toast-info { border-left: 3px solid #60a5fa; }
629+
.rv-toast-info .rv-toast-icon { color: #60a5fa; }
630630

631631
/* --- Responsive --- */
632632
@media (max-width: 640px) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rivian-tire-guide",
3-
"version": "1.49.0",
3+
"version": "1.49.1",
44
"private": true,
55
"description": "Interactive tire guide for Rivian vehicles — WordPress plugin",
66
"scripts": {

rivian-tire-guide.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Rivian Tire Guide
44
* Description: Interactive tire guide for Rivian vehicles with filtering, comparison, and ratings.
5-
* Version: 1.49.0
5+
* Version: 1.49.1
66
* Author: RivianTrackr
77
* Text Domain: rivian-tire-guide
88
* Requires at least: 5.8
@@ -14,7 +14,7 @@
1414
exit;
1515
}
1616

17-
define( 'RTG_VERSION', '1.49.0' );
17+
define( 'RTG_VERSION', '1.49.1' );
1818
define( 'RTG_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
1919
define( 'RTG_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
2020
define( 'RTG_PLUGIN_FILE', __FILE__ );

0 commit comments

Comments
 (0)