Skip to content

🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Improved compatibility and security

sassanixebb9218600bc
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fe9c488..19dcd0e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,21 @@
# Changelog
+## [0.9.9.5] - 2025-05-07
+
+### Changed
+- **Header Branding Improvement:**
+ - Made the "Warracker" text in the header of the Status, Settings, and About pages a clickable link to the home page (`index.html`) for improved navigation and consistency.
+ _Files: `frontend/status.html`, `frontend/settings-new.html`, `frontend/about.html`_
+
+- **Tag Dropdown Color Removal:**
+ - Removed all background and text colours from the tags dropdown in both dark mode and light mode for a cleaner, more consistent appearance.
+ _Files: `frontend/style.css`, `frontend/script.js`, and any related tag dropdown CSS/JS._
+
+- **Docker Base Image Update:**
+ - Updated the `Dockerfile` to use Python 3.12 and Debian 12 (bookworm) as the base image for the container, ensuring improved compatibility and security.
+ _File: `Dockerfile`_
+
+
## [0.9.9.4] - 2025-05-04
### Fixed
diff --git a/Dockerfile b/Dockerfile
index f8bdc4f..b597cad 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,22 +1,29 @@
# Start with Python base image
-FROM python:3.9-slim-buster
+FROM python:3.12-slim-bookworm
-# Install nginx, postgresql-client, supervisor and dependencies
+# Install build tools, dev headers, nginx, etc.
RUN apt-get update && \
apt-get install -y --no-install-recommends \
+ build-essential \
+ libpq-dev \
nginx \
curl \
postgresql-client \
- supervisor \
- && apt-get clean \
- && rm -rf /var/lib/apt/lists/*
+ supervisor && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/*
+# (build-essential = C compiler + tools)
+# (libpq-dev = provides pg_config for psycopg2)
-# Ensure nginx runs in the foreground for Supervisor
+
+# Ensure nginx runs in foreground
RUN sed -i '1i daemon off;' /etc/nginx/nginx.conf
-# Set working directory
WORKDIR /app
+# (Optional) Upgrade pip to latest
+RUN pip install --no-cache-dir --upgrade pip
+
# Install Python dependencies
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
diff --git a/frontend/about.html b/frontend/about.html
index 3fd4da8..2713186 100644
--- a/frontend/about.html
+++ b/frontend/about.html
@@ -49,7 +49,7 @@
<div class="container">
<div class="app-title">
<i class="fas fa-shield-alt"></i>
- <h1>Warracker</h1>
+ <h1><a href="index.html" style="color: inherit; text-decoration: none; cursor: pointer;">Warracker</a></h1>
</div>
<div class="nav-links">
<a href="index.html" class="nav-link">
@@ -106,7 +106,7 @@
<div class="about-container" style="background-color: var(--card-bg); color: var(--text-color); padding: 20px; border-radius: 8px; margin-top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); width: 100%; box-sizing: border-box;">
<h1 style="color: var(--primary-color); margin-bottom: 20px;">About Warracker</h1>
- <p><strong>Version:</strong> v0.9.9.4</p>
+ <p><strong>Version:</strong> v0.9.9.5</p>
<div id="versionTracker" style="margin-bottom: 20px;">
<p><strong>Update Status:</strong> <span id="updateStatus">Checking for updates...</span></p>
diff --git a/frontend/script.js b/frontend/script.js
index d7a3a24..d7b1afd 100644
--- a/frontend/script.js
+++ b/frontend/script.js
@@ -3315,12 +3315,14 @@ function populateTagFilter() {
.map(tagJson => JSON.parse(tagJson))
.sort((a, b) => a.name.localeCompare(b.name));
+ // Add options to the dropdown
// Add options to the dropdown
sortedTags.forEach(tag => {
const option = document.createElement('option');
option.value = tag.id;
- option.textContent = tag.name;
- option.style.backgroundColor = tag.color;
+ option.textContent = tag.name; // Reverted to textContent
+ // Apply background color directly for now, acknowledging potential contrast issues
+ // option.style.backgroundColor = tag.color; // Removed to prevent individual option background colors
tagFilter.appendChild(option);
});
}
diff --git a/frontend/settings-new.html b/frontend/settings-new.html
index 2747295..eb9831b 100644
--- a/frontend/settings-new.html
+++ b/frontend/settings-new.html
@@ -89,7 +89,7 @@
<div class="container">
<div class="app-title">
<i class="fas fa-shield-alt"></i>
- <h1>Warracker</h1>
+ <h1><a href="index.html" style="color: inherit; text-decoration: none; cursor: pointer;">Warracker</a></h1>
</div>
<div class="nav-links">
<a href="index.html" class="nav-link">
diff --git a/frontend/status.html b/frontend/status.html
index e422d5a..f4f4cfc 100644
--- a/frontend/status.html
+++ b/frontend/status.html
@@ -220,7 +220,7 @@
<div class="container">
<div class="app-title">
<i class="fas fa-shield-alt"></i>
- <h1>Warracker</h1>
+ <h1><a href="index.html" style="color: inherit; text-decoration: none; cursor: pointer;">Warracker</a></h1>
</div>
<div class="nav-links">
<a href="index.html" class="nav-link">
diff --git a/frontend/style.css b/frontend/style.css
index 50f4938..af6a573 100644
--- a/frontend/style.css
+++ b/frontend/style.css
@@ -71,6 +71,38 @@
.table-view .product-name-header .action-btn i {
color: #FFFFFF; /* White icon color */
}
+
+ /* Dark mode styles for tags */
+ .tag {
+ background-color: var(--medium-gray); /* e.g., #404040 */
+ color: var(--text-color); /* e.g., #e0e0e0 */
+ box-shadow: 0 1px 2px var(--shadow-color); /* Softer shadow for dark mode */
+ }
+
+ .tag .remove-tag {
+ background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for the 'x' button */
+ color: var(--text-color); /* Light color for the 'x' icon */
+ }
+
+ .tag .remove-tag:hover {
+ background-color: rgba(255, 255, 255, 0.2); /* Slightly more opaque on hover */
+ }
+
+ /* Dark mode styles for filter select options */
+ .filter-select option,
+ .filter-select option:hover,
+ .filter-select option:focus {
+ background-color: var(--input-background);
+ color: var(--text-color);
+ }
+
+ /* Dark mode styles for filter select options - using !important to override browser defaults */
+ .filter-select option,
+ .filter-select option:hover,
+ .filter-select option:focus {
+ background-color: var(--input-background) !important;
+ color: var(--text-color) !important;
+ }
}
body {
@@ -3141,4 +3173,4 @@ input.invalid {
width: auto !important;
justify-content: center !important;
}
-}
\ No newline at end of file
+}
diff --git a/frontend/version-checker.js b/frontend/version-checker.js
index 56016e8..dac9588 100644
--- a/frontend/version-checker.js
+++ b/frontend/version-checker.js
@@ -1,6 +1,6 @@
// Version checker for Warracker
document.addEventListener('DOMContentLoaded', () => {
- const currentVersion = '0.9.9.4'; // Current version of the application
+ const currentVersion = '0.9.9.5'; // Current version of the application
const updateStatus = document.getElementById('updateStatus');
const updateLink = document.getElementById('updateLink');