Pointf5ive commited on
Commit
0a5f994
·
1 Parent(s): 831f45c

stage 0: repository audit and safety branch

Browse files

Scope: file-map audit and baseline screenshot evidence pointer only (no UI or logic changes).

Validation: py_compile + import app checks passed; stage acceptance gate passed.

docs/screenshots/README.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Stage 0 Baseline Screenshot Evidence
2
+
3
+ Stored locally (not committed due HF binary push restrictions):
4
+ - `/Users/jamalromeh/Codex_Extractor/docs/screenshots/stage0_baseline_homescreen.png`
5
+
6
+ Original capture source:
7
+ - `/Users/jamalromeh/Desktop/Screenshot 2026-05-16 at 21.12.18.png`
8
+
9
+ Verification note:
10
+ - This screenshot is the Stage 0 baseline reference before staged UI redesign.
docs/stage0_file_map.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Stage 0 File Map (UI Redesign Safety Audit)
2
+
3
+ Date: 2026-05-17
4
+ Branch: `codex/skin-totem-dashboard-staged`
5
+
6
+ ## Baseline Evidence
7
+ - Baseline screenshot: `/Users/jamalromeh/Codex_Extractor/docs/screenshots/stage0_baseline_homescreen.png`
8
+ - Launch safety checks:
9
+ - `python -m py_compile app.py smoke_signal_tab.py` passed
10
+ - `import app` passed in project venv
11
+
12
+ ## Entrypoint + UI Assembly
13
+ - Primary Gradio entrypoint: `/Users/jamalromeh/Codex_Extractor/app.py`
14
+ - `gr.Blocks(...)` + tabs assembled in `app.py`
15
+ - App launch call currently in `app.py` (`demo.launch(...)`)
16
+
17
+ ## Dashboard UI Surface (Target of redesign)
18
+ - Dashboard HTML builder: `dashboard_html(...)` in `/Users/jamalromeh/Codex_Extractor/app.py`
19
+ - Startup dashboard shell: `initial_dashboard_html(...)` in `/Users/jamalromeh/Codex_Extractor/app.py`
20
+ - Existing dashboard-related visual helpers (UI-only):
21
+ - `_kpi_card(...)`
22
+ - `_small_spark(...)`
23
+ - `_revision_rows(...)`
24
+ - `_risk_cards(...)`
25
+ - `_recent_workbooks(...)`
26
+
27
+ ## Existing Callback Functions (Preserve behavior)
28
+ - Workbook load/upload:
29
+ - `load_workbook(...)`
30
+ - `load_uploaded(...)`
31
+ - `load_local_path(...)`
32
+ - Analysis + recalculation:
33
+ - `run_analysis(...)`
34
+ - `recalc_log(...)`
35
+ - Export:
36
+ - `export_log(...)`
37
+ - Codex extractor route callbacks:
38
+ - `run_codex_extraction(...)`
39
+ - `clear_codex_form(...)`
40
+ - `autofill_codex_details(...)`
41
+
42
+ ## CSS/Theme Injection Locations
43
+ - Main CSS string in `/Users/jamalromeh/Codex_Extractor/app.py` (currently passed as `css=CSS + SS_CSS`)
44
+ - Smoke Signal CSS comes from `/Users/jamalromeh/Codex_Extractor/smoke_signal_tab.py` via `SS_CSS`
45
+
46
+ ## Asset Locations
47
+ - Shared assets directory: `/Users/jamalromeh/Codex_Extractor/assets`
48
+ - Smoke Signal assets/data URI banner:
49
+ - `/Users/jamalromeh/Codex_Extractor/assets/smoke_signal_banner_data_uri.txt`
50
+
51
+ ## Logic Boundary (Do Not Modify for UI Roadmap)
52
+ - Core extractor/scoring/workbook logic modules:
53
+ - `/Users/jamalromeh/Codex_Extractor/src/codex_extractor.py`
54
+ - `/Users/jamalromeh/Codex_Extractor/src/totem_workbook.py`
55
+ - Smoke Signal pipeline logic + callbacks:
56
+ - `/Users/jamalromeh/Codex_Extractor/smoke_signal_tab.py`
57
+ - `/Users/jamalromeh/Codex_Extractor/smoke_signal/scripts/*`
58
+
59
+ ## Stage 0 Outcome
60
+ - Safe branch created.
61
+ - Baseline screenshot stored.
62
+ - UI vs logic file map documented.
63
+ - Ready to begin Stage 1 (Design Tokens + CSS foundation) with no functional callback changes.