Skip to content

Commit cfffbdf

Browse files
committed
fix(unified_app): clean design_system imports and lazy-load QFont; add v1 beta launchers
1 parent 634d189 commit cfffbdf

13 files changed

Lines changed: 4685 additions & 1 deletion

Run_V1_Beta.cmd

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@echo off
2+
setlocal
3+
cd /d %~dp0
4+
5+
if exist .\.venv\Scripts\activate.bat (
6+
call .\.venv\Scripts\activate.bat
7+
)
8+
9+
set PYTHONPATH=
10+
set QT_QPA_PLATFORM=
11+
set AUTOFIRE_NO_SPLASH=
12+
13+
set SRC=%CD%\unified_app\src
14+
if not exist "%SRC%" (
15+
echo Sandbox not found: %SRC%
16+
echo Run tools\generate_module_manifest.py then tools\clone_minimal_tree.py first.
17+
exit /b 2
18+
)
19+
20+
set PYTHONPATH=%SRC%
21+
python "%SRC%\autofire_professional_integrated.py"

Run_V1_Beta.ps1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Runs the v1 beta from the clean sandbox (unified_app/src) with GUI
2+
$ErrorActionPreference = 'Stop'
3+
Set-Location -LiteralPath "$PSScriptRoot"
4+
5+
# Activate venv if present
6+
if (Test-Path .\.venv\Scripts\Activate.ps1) {
7+
. .\.venv\Scripts\Activate.ps1
8+
}
9+
10+
# Ensure GUI platform (unset headless overrides)
11+
Remove-Item Env:QT_QPA_PLATFORM -ErrorAction SilentlyContinue | Out-Null
12+
Remove-Item Env:AUTOFIRE_NO_SPLASH -ErrorAction SilentlyContinue | Out-Null
13+
14+
$src = Join-Path (Get-Location) 'unified_app\src'
15+
if (-not (Test-Path $src)) {
16+
Write-Host "Sandbox not found: $src`nRun tools/generate_module_manifest.py then tools/clone_minimal_tree.py first." -ForegroundColor Yellow
17+
exit 2
18+
}
19+
20+
$env:PYTHONPATH = $src
21+
Write-Host "Launching v1 beta from: $src" -ForegroundColor Cyan
22+
python "$src\autofire_professional_integrated.py"

logs/used_files_manifest.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"generated_at": "2025-10-26T03-29-08",
3+
"repo_root": "C:\\Dev\\Autofire",
4+
"entries": [
5+
"autofire_professional_integrated.py"
6+
],
7+
"files": [
8+
"autofire_professional_integrated.py",
9+
"backend/__init__.py",
10+
"backend/catalog.py",
11+
"frontend/__init__.py",
12+
"frontend/design_system.py",
13+
"professional_reporting_system.py",
14+
"smart_search_system.py",
15+
"window_management_system.py"
16+
]
17+
}

tools/generate_module_manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def run_modulefinder(entry_files: List[Path]) -> Set[Path]:
4242
for entry in entry_files:
4343
try:
4444
finder.run_script(str(entry))
45-
except (ImportError, SyntaxError, OSError, RuntimeError) as exc:
45+
except (ImportError, SyntaxError, OSError, RuntimeError, AttributeError) as exc:
4646
# We intentionally avoid failing hard: static analysis can hit guarded imports
4747
print(f"[warn] modulefinder raised for {entry.name}: {exc}", file=sys.stderr)
4848

0 commit comments

Comments
 (0)