mirror of
https://github.com/smittix/intercept.git
synced 2026-06-13 16:23:34 -07:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dc0850d339 | |||
| 2bbf896e7c | |||
| faf57741a1 |
@@ -2,6 +2,27 @@
|
|||||||
|
|
||||||
All notable changes to iNTERCEPT will be documented in this file.
|
All notable changes to iNTERCEPT will be documented in this file.
|
||||||
|
|
||||||
|
## [2.26.6] - 2026-03-14
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- **Oversized branded 'i' logo on dashboards** — `.logo span { display: inline }` in dashboard CSS had higher specificity (0,1,1) than `.brand-i { display: inline-block }` (0,1,0), forcing the branded "i" SVG to render as inline which ignores width/height. Added `.logo .brand-i` selector (0,2,0) to retain `inline-block` display. (#189)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## [2.26.5] - 2026-03-14
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- **Database errors crash entire UI** — `get_setting()` now catches `sqlite3.OperationalError` and returns the default value instead of propagating the exception. Previously, if the database was inaccessible (e.g. root-owned `instance/` directory from running with `sudo`), the `inject_offline_settings` context processor would crash every page render with a 500 Internal Server Error. (#190)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## [2.26.4] - 2026-03-14
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- **Environment Configurator crash** — `read_env_var()` crashed with "Setup failed at line 2333" when `.env` existed but didn't contain the variable being looked up. `grep` returned exit code 1 (no match), which `pipefail` propagated and `set -e` turned into a fatal error. Fixed by appending `|| true` to the pipeline. (#191)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## [2.26.3] - 2026-03-13
|
## [2.26.3] - 2026-03-13
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -7,10 +7,31 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Application version
|
# Application version
|
||||||
VERSION = "2.26.3"
|
VERSION = "2.26.6"
|
||||||
|
|
||||||
# Changelog - latest release notes (shown on welcome screen)
|
# Changelog - latest release notes (shown on welcome screen)
|
||||||
CHANGELOG = [
|
CHANGELOG = [
|
||||||
|
{
|
||||||
|
"version": "2.26.6",
|
||||||
|
"date": "March 2026",
|
||||||
|
"highlights": [
|
||||||
|
"Fix oversized branded 'i' logo on Aircraft & Vessel dashboards",
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "2.26.5",
|
||||||
|
"date": "March 2026",
|
||||||
|
"highlights": [
|
||||||
|
"Fix database errors crashing the entire UI — pages now degrade gracefully",
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "2.26.4",
|
||||||
|
"date": "March 2026",
|
||||||
|
"highlights": [
|
||||||
|
"Fix Environment Configurator crash when .env exists but variable is missing",
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "2.26.3",
|
"version": "2.26.3",
|
||||||
"date": "March 2026",
|
"date": "March 2026",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "intercept"
|
name = "intercept"
|
||||||
version = "2.26.3"
|
version = "2.26.6"
|
||||||
description = "Signal Intelligence Platform - Pager/433MHz/ADS-B/Satellite/WiFi/Bluetooth"
|
description = "Signal Intelligence Platform - Pager/433MHz/ADS-B/Satellite/WiFi/Bluetooth"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ read_env_var() {
|
|||||||
local fallback="${2:-}"
|
local fallback="${2:-}"
|
||||||
if [[ -f "$SCRIPT_DIR/.env" ]]; then
|
if [[ -f "$SCRIPT_DIR/.env" ]]; then
|
||||||
local val
|
local val
|
||||||
val=$(grep -E "^${key}=" "$SCRIPT_DIR/.env" 2>/dev/null | tail -1 | cut -d'=' -f2-)
|
val=$(grep -E "^${key}=" "$SCRIPT_DIR/.env" 2>/dev/null | tail -1 | cut -d'=' -f2- || true)
|
||||||
if [[ -n "$val" ]]; then
|
if [[ -n "$val" ]]; then
|
||||||
# Strip surrounding quotes
|
# Strip surrounding quotes
|
||||||
val="${val#\"}"
|
val="${val#\"}"
|
||||||
|
|||||||
@@ -88,8 +88,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Branded "i" — inline SVG that matches the logo icon.
|
/* Branded "i" — inline SVG that matches the logo icon.
|
||||||
Sized to 0.9em so it sits naturally alongside text at any font-size. */
|
Sized to 0.9em so it sits naturally alongside text at any font-size.
|
||||||
.brand-i {
|
Uses .logo .brand-i (0,2,0) to beat .logo span (0,1,1) in dashboard CSS
|
||||||
|
which otherwise forces display:inline and breaks width/height. */
|
||||||
|
.brand-i,
|
||||||
|
.logo .brand-i {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 0.55em;
|
width: 0.55em;
|
||||||
height: 0.9em;
|
height: 0.9em;
|
||||||
|
|||||||
+28
-24
@@ -661,32 +661,36 @@ def get_setting(key: str, default: Any = None) -> Any:
|
|||||||
Returns:
|
Returns:
|
||||||
Setting value (auto-converted from JSON for complex types)
|
Setting value (auto-converted from JSON for complex types)
|
||||||
"""
|
"""
|
||||||
with get_db() as conn:
|
try:
|
||||||
cursor = conn.execute(
|
with get_db() as conn:
|
||||||
'SELECT value, value_type FROM settings WHERE key = ?',
|
cursor = conn.execute(
|
||||||
(key,)
|
'SELECT value, value_type FROM settings WHERE key = ?',
|
||||||
)
|
(key,)
|
||||||
row = cursor.fetchone()
|
)
|
||||||
|
row = cursor.fetchone()
|
||||||
|
|
||||||
if row is None:
|
if row is None:
|
||||||
return default
|
|
||||||
|
|
||||||
value, value_type = row['value'], row['value_type']
|
|
||||||
|
|
||||||
# Convert based on type
|
|
||||||
if value_type == 'json':
|
|
||||||
try:
|
|
||||||
return json.loads(value)
|
|
||||||
except json.JSONDecodeError:
|
|
||||||
return default
|
return default
|
||||||
elif value_type == 'int':
|
|
||||||
return int(value)
|
value, value_type = row['value'], row['value_type']
|
||||||
elif value_type == 'float':
|
|
||||||
return float(value)
|
# Convert based on type
|
||||||
elif value_type == 'bool':
|
if value_type == 'json':
|
||||||
return value.lower() in ('true', '1', 'yes')
|
try:
|
||||||
else:
|
return json.loads(value)
|
||||||
return value
|
except json.JSONDecodeError:
|
||||||
|
return default
|
||||||
|
elif value_type == 'int':
|
||||||
|
return int(value)
|
||||||
|
elif value_type == 'float':
|
||||||
|
return float(value)
|
||||||
|
elif value_type == 'bool':
|
||||||
|
return value.lower() in ('true', '1', 'yes')
|
||||||
|
else:
|
||||||
|
return value
|
||||||
|
except sqlite3.OperationalError:
|
||||||
|
logger.warning("Database unavailable reading setting '%s', using default", key)
|
||||||
|
return default
|
||||||
|
|
||||||
|
|
||||||
def set_setting(key: str, value: Any) -> None:
|
def set_setting(key: str, value: Any) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user