Browse Source

- Added new settings tab Filament and moved Spoolman Sync card

maziggy 4 months ago
parent
commit
e356d03ee1

+ 1 - 1
backend/app/core/config.py

@@ -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
docker-publish.sh

@@ -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
frontend/src/pages/SettingsPage.tsx

@@ -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 it is too large
+ 0 - 0
static/assets/index-SiryU8W9.js


+ 1 - 1
static/index.html

@@ -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>

Some files were not shown because too many files changed in this diff