Delete last sx_components.py files: relations + test (phase 9)
Move relations component loading into app.py. Move test rendering functions to test/sxc/pages/__init__.py, update route imports, and delete both sx_components.py files. Zero sx_components imports remain. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from __future__ import annotations
|
||||
import path_setup # noqa: F401
|
||||
import sx.sx_components as sx_components # noqa: F401 # ensure Hypercorn --reload watches this file
|
||||
|
||||
from shared.infrastructure.factory import create_base_app
|
||||
|
||||
from bp import register_actions, register_data
|
||||
@@ -14,6 +12,10 @@ def create_app() -> "Quart":
|
||||
domain_services_fn=register_domain_services,
|
||||
)
|
||||
|
||||
import os
|
||||
from shared.sx.jinja_bridge import load_service_components
|
||||
load_service_components(os.path.dirname(__file__), service_name="relations")
|
||||
|
||||
app.register_blueprint(register_actions())
|
||||
app.register_blueprint(register_data())
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
"""
|
||||
Relations service s-expression components.
|
||||
|
||||
Loads relation-specific .sx components and handlers.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
from shared.sx.jinja_bridge import load_service_components
|
||||
|
||||
# Load relations-specific .sx components + handlers at import time
|
||||
load_service_components(os.path.dirname(os.path.dirname(__file__)),
|
||||
service_name="relations")
|
||||
Reference in New Issue
Block a user