diff --git a/app/brickhound/app.py b/app/brickhound/app.py index 79039e03..3d3b098d 100644 --- a/app/brickhound/app.py +++ b/app/brickhound/app.py @@ -87,6 +87,10 @@ def _validate_run_id(value): logger.info(f"[CONFIG FINAL] EDGES_TABLE={EDGES_TABLE}") logger.info(f"[CONFIG FINAL] METADATA_TABLE={METADATA_TABLE}") +# Define a mapping of resource types so that they match with API +RESOURCE_TYPE_MAP = {'Warehouse': 'SQLWarehouse'} +RESOURCE_TYPE_DISPLAY_MAP = {v: k for k, v in RESOURCE_TYPE_MAP.items()} + # Global variable to cache the current run_id for this session _cached_run_id = None @@ -1110,13 +1114,13 @@ def get_main_html(): } /* Main Content */ - .page { + .page { display: none; padding: 32px; flex: 1; background: #0f1117; } - .page.active { + .page.active { display: block; } @@ -1172,7 +1176,7 @@ def get_main_html(): background: rgba(255, 255, 255, 0.08); } .search-input::placeholder { color: rgba(255, 255, 255, 0.4); } - + /* Autocomplete Dropdown */ .autocomplete-dropdown { position: absolute; @@ -1240,7 +1244,7 @@ def get_main_html(): background: rgba(236, 72, 153, 0.2); color: #f472b6; } - + .search-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; @@ -1253,7 +1257,7 @@ def get_main_html(): transition: all 0.2s; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } - .search-btn:hover { + .search-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); } @@ -1350,7 +1354,7 @@ def get_main_html(): gap: 16px; transition: all 0.2s; } - .result-card:hover { + .result-card:hover { background: rgba(255, 255, 255, 0.05); transform: translateX(4px); } @@ -1658,10 +1662,10 @@ def get_main_html(): - +
- +