Spaces:
Runtime error
Runtime error
Fixed header button styling and renamed navigation buttons
Browse files- Fixed welcome button transparent background issue - now uses solid tt-btn-secondary class
- Renamed 'Welcome' to 'Back to Welcome' for clarity
- Renamed 'Add Tree' (map page) to 'Back to Form' for better navigation flow
- Renamed 'View Map' (form page) to 'View on Map' for consistency
- All header buttons now have consistent styling and readability
- static/index.html +4 -4
- static/map.html +4 -4
- static/sw.js +1 -1
- version.json +1 -1
static/index.html
CHANGED
|
@@ -947,7 +947,7 @@
|
|
| 947 |
// Force refresh if we detect cached version
|
| 948 |
(function() {
|
| 949 |
const currentVersion = '5.1.1';
|
| 950 |
-
const timestamp = '
|
| 951 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 952 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 953 |
|
|
@@ -984,8 +984,8 @@
|
|
| 984 |
<div class="tt-user-role" id="userRole">User</div>
|
| 985 |
</div>
|
| 986 |
</div>
|
| 987 |
-
<a href="/welcome" class="tt-btn tt-btn-
|
| 988 |
-
<a href="/static/map.html" class="tt-btn tt-btn-secondary" id="viewMapBtn">View Map</a>
|
| 989 |
<button id="logoutBtn" class="tt-btn tt-btn-secondary">Logout</button>
|
| 990 |
</div>
|
| 991 |
</div>
|
|
@@ -1193,7 +1193,7 @@
|
|
| 1193 |
</div>
|
| 1194 |
</div>
|
| 1195 |
|
| 1196 |
-
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=
|
| 1197 |
|
| 1198 |
<script>
|
| 1199 |
// Idle-time prefetch of map assets to speed up first navigation
|
|
|
|
| 947 |
// Force refresh if we detect cached version
|
| 948 |
(function() {
|
| 949 |
const currentVersion = '5.1.1';
|
| 950 |
+
const timestamp = '1761504059'; // Cache-busting bump
|
| 951 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 952 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 953 |
|
|
|
|
| 984 |
<div class="tt-user-role" id="userRole">User</div>
|
| 985 |
</div>
|
| 986 |
</div>
|
| 987 |
+
<a href="/welcome" class="tt-btn tt-btn-secondary" id="welcomeBtn" style="display: none;">Back to Welcome</a>
|
| 988 |
+
<a href="/static/map.html" class="tt-btn tt-btn-secondary" id="viewMapBtn">View on Map</a>
|
| 989 |
<button id="logoutBtn" class="tt-btn tt-btn-secondary">Logout</button>
|
| 990 |
</div>
|
| 991 |
</div>
|
|
|
|
| 1193 |
</div>
|
| 1194 |
</div>
|
| 1195 |
|
| 1196 |
+
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=1761504059"></script>
|
| 1197 |
|
| 1198 |
<script>
|
| 1199 |
// Idle-time prefetch of map assets to speed up first navigation
|
static/map.html
CHANGED
|
@@ -793,7 +793,7 @@
|
|
| 793 |
// Force refresh if we detect cached version
|
| 794 |
(function() {
|
| 795 |
const currentVersion = '5.1.1';
|
| 796 |
-
const timestamp = '
|
| 797 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 798 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 799 |
|
|
@@ -841,8 +841,8 @@ const timestamp = '1761503603'; // Current timestamp for cache busting
|
|
| 841 |
<div class="tt-user-role" id="userRole">User</div>
|
| 842 |
</div>
|
| 843 |
</div>
|
| 844 |
-
<a href="/welcome" class="tt-btn tt-btn-
|
| 845 |
-
<a href="/form" class="tt-btn tt-btn-primary">
|
| 846 |
<button id="logoutBtn" class="tt-btn tt-btn-secondary">Logout</button>
|
| 847 |
</div>
|
| 848 |
</div>
|
|
@@ -920,7 +920,7 @@ const timestamp = '1761503603'; // Current timestamp for cache busting
|
|
| 920 |
|
| 921 |
<!-- Leaflet JS -->
|
| 922 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 923 |
-
<script src="/static/map.js?v=5.1.1&t=
|
| 924 |
|
| 925 |
"default-state": {
|
| 926 |
gradients: [
|
|
|
|
| 793 |
// Force refresh if we detect cached version
|
| 794 |
(function() {
|
| 795 |
const currentVersion = '5.1.1';
|
| 796 |
+
const timestamp = '1761504059'; // Current timestamp for cache busting
|
| 797 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 798 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 799 |
|
|
|
|
| 841 |
<div class="tt-user-role" id="userRole">User</div>
|
| 842 |
</div>
|
| 843 |
</div>
|
| 844 |
+
<a href="/welcome" class="tt-btn tt-btn-secondary" id="welcomeBtn" style="display: none;">Back to Welcome</a>
|
| 845 |
+
<a href="/form" class="tt-btn tt-btn-primary">Back to Form</a>
|
| 846 |
<button id="logoutBtn" class="tt-btn tt-btn-secondary">Logout</button>
|
| 847 |
</div>
|
| 848 |
</div>
|
|
|
|
| 920 |
|
| 921 |
<!-- Leaflet JS -->
|
| 922 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 923 |
+
<script src="/static/map.js?v=5.1.1&t=1761504059">
|
| 924 |
|
| 925 |
"default-state": {
|
| 926 |
gradients: [
|
static/sw.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
// TreeTrack Service Worker - PWA and Offline Support
|
| 2 |
-
const VERSION =
|
| 3 |
const CACHE_NAME = `treetrack-v${VERSION}`;
|
| 4 |
const STATIC_CACHE = `static-v${VERSION}`;
|
| 5 |
const API_CACHE = `api-v${VERSION}`;
|
|
|
|
| 1 |
// TreeTrack Service Worker - PWA and Offline Support
|
| 2 |
+
const VERSION = 1761504059; // Cache busting bump - force clients to fetch new static assets and header image change
|
| 3 |
const CACHE_NAME = `treetrack-v${VERSION}`;
|
| 4 |
const STATIC_CACHE = `static-v${VERSION}`;
|
| 5 |
const API_CACHE = `api-v${VERSION}`;
|
version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
"version": "5.1.1",
|
| 3 |
-
"timestamp":
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"version": "5.1.1",
|
| 3 |
+
"timestamp": 1761504059
|
| 4 |
}
|