- Added new settings tab Filament and moved Spoolman Sync card

This commit is contained in:
maziggy
2026-01-02 12:00:57 +01:00
parent 32bd11ad82
commit e356d03ee1
5 changed files with 94 additions and 78 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ from pathlib import Path
from pydantic_settings import BaseSettings
# Application version - single source of truth
APP_VERSION = "0.1.6b4"
APP_VERSION = "0.1.6b5"
GITHUB_REPO = "maziggy/bambuddy"
# App directory - where the application is installed (for static files)
+2 -2
View File
@@ -82,9 +82,9 @@ if ! docker info 2>/dev/null | grep -q "Username"; then
echo ""
fi
# Determine if this is a release version (no pre-release suffix)
# Determine if this is a release version (includes betas for now)
IS_RELEASE=false
if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(b[0-9]+)?$ ]]; then
IS_RELEASE=true
fi
+19 -3
View File
@@ -44,7 +44,7 @@ export function SettingsPage() {
const [editingTemplate, setEditingTemplate] = useState<NotificationTemplate | null>(null);
const [showLogViewer, setShowLogViewer] = useState(false);
const [defaultView, setDefaultViewState] = useState<string>(getDefaultView());
const [activeTab, setActiveTab] = useState<'general' | 'plugs' | 'notifications' | 'apikeys' | 'virtual-printer'>('general');
const [activeTab, setActiveTab] = useState<'general' | 'plugs' | 'notifications' | 'filament' | 'apikeys' | 'virtual-printer'>('general');
const [showCreateAPIKey, setShowCreateAPIKey] = useState(false);
const [newAPIKeyName, setNewAPIKeyName] = useState('');
const [newAPIKeyPermissions, setNewAPIKeyPermissions] = useState({
@@ -450,6 +450,17 @@ export function SettingsPage() {
</span>
)}
</button>
<button
onClick={() => setActiveTab('filament')}
className={`px-4 py-2 text-sm font-medium transition-colors border-b-2 -mb-px flex items-center gap-2 ${
activeTab === 'filament'
? 'text-bambu-green border-bambu-green'
: 'text-bambu-gray hover:text-white border-transparent'
}`}
>
<Droplets className="w-4 h-4" />
Filament
</button>
<button
onClick={() => setActiveTab('apikeys')}
className={`px-4 py-2 text-sm font-medium transition-colors border-b-2 -mb-px flex items-center gap-2 ${
@@ -992,8 +1003,6 @@ export function SettingsPage() {
</div>
</CardContent>
</Card>
<SpoolmanSettings />
</div>
{/* Third Column - Updates */}
@@ -1911,6 +1920,13 @@ export function SettingsPage() {
<VirtualPrinterSettings />
)}
{/* Filament Tab */}
{activeTab === 'filament' && (
<div className="max-w-2xl">
<SpoolmanSettings />
</div>
)}
{/* Delete API Key Confirmation */}
{showDeleteAPIKeyConfirm !== null && (
<ConfirmModal
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -23,7 +23,7 @@
<!-- Splash screens for iOS -->
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
<script type="module" crossorigin src="/assets/index-8VBiHy5k.js"></script>
<script type="module" crossorigin src="/assets/index-SiryU8W9.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Da3qKIoX.css">
</head>
<body>