athar 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/assets/javascripts/athar/dashboard.js +5 -3
- data/lib/athar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f42c7731cbab6a45386c6fe811757e632c12608181be549f4fdb18637097817e
|
|
4
|
+
data.tar.gz: d9cad9d4c478e9579b64d58b6bc5ca2d3e34638407c97f2ab1d7ccdce39eb3d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 638e114f382fd37e1ab047af4bed4164d4a1487cf70ec2e33268c521f5d66f169bd0a2941981f6e344954656469216a651be59bcd9c3960db162817561c45a6b
|
|
7
|
+
data.tar.gz: f8d026194b7a989c6863f0b0e71839e229004fb24c2148ba541d3725c3d5c62d51a3ff0acf69889c2a242b829e9a71c2f9cf6fd7f702618aad5b34ea08664968
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
|
|
6
6
|
|
|
7
|
+
## [0.3.4] - 2026-05-10
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Fixed the dashboard's filter bar (Time / Mode / Kind segments) showing the previously-selected segment as active after a click. The filter bar lives outside the partial-swap regions so the search input keeps its focus across navigations; its highlight is reconciled from `window.location.href` after each swap. That reconciliation ran before `history.pushState` updated the URL, so it always read one navigation behind. Pushing state first lets the reconciliation see the URL the user just navigated to.
|
|
12
|
+
|
|
7
13
|
## [0.3.3] - 2026-05-10
|
|
8
14
|
|
|
9
15
|
### Fixed
|
|
@@ -84,14 +84,16 @@
|
|
|
84
84
|
if (fresh) replaceElement(region, fresh);
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
//
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
// Push state BEFORE reconciling the filter bar — the reconciliation
|
|
88
|
+
// reads window.location.href to decide which segment is active.
|
|
90
89
|
if (options.replaceState) {
|
|
91
90
|
history.replaceState({}, "", url);
|
|
92
91
|
} else {
|
|
93
92
|
history.pushState({}, "", url);
|
|
94
93
|
}
|
|
94
|
+
|
|
95
|
+
// Filter bar isn't re-rendered — reconcile its visual state from the URL.
|
|
96
|
+
updateFilterBarFromUrl();
|
|
95
97
|
} catch (error) {
|
|
96
98
|
console.error("[athar] partial-nav failed, falling back to full navigation:", error);
|
|
97
99
|
window.location.href = url;
|
data/lib/athar/version.rb
CHANGED