Delete events sx_components.py — move all rendering to sxc/pages
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 49s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 49s
Phase 7 of the zero-Python-rendering plan. All 100 rendering functions move from events/sx/sx_components.py into events/sxc/pages/__init__.py. Route handlers (15 files) import from sxc.pages instead. load_service_components call moves into _load_events_page_files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,7 @@ def register() -> Blueprint:
|
||||
|
||||
tickets = await get_tickets_for_entry(g.s, entry_id)
|
||||
|
||||
from sx.sx_components import render_entry_tickets_admin
|
||||
from sxc.pages import render_entry_tickets_admin
|
||||
html = await render_entry_tickets_admin(entry, tickets)
|
||||
return sx_response(html)
|
||||
|
||||
@@ -69,7 +69,7 @@ def register() -> Blueprint:
|
||||
)
|
||||
|
||||
ticket = await get_ticket_by_code(g.s, code)
|
||||
from sx.sx_components import render_lookup_result
|
||||
from sxc.pages import render_lookup_result
|
||||
if not ticket:
|
||||
return sx_response(await render_lookup_result(None, "Ticket not found"))
|
||||
|
||||
@@ -82,7 +82,7 @@ def register() -> Blueprint:
|
||||
"""Check in a ticket by its code."""
|
||||
success, error = await checkin_ticket(g.s, code)
|
||||
|
||||
from sx.sx_components import render_checkin_result
|
||||
from sxc.pages import render_checkin_result
|
||||
if not success:
|
||||
return sx_response(await render_checkin_result(False, error, None))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user