Coverage for src/lexigram/admin/controllers/infrastructure.py: 0%

10 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-24 23:18 +0800

1"""Infrastructure center controller — built-in cluster landing page. 

2 

3Shows an overview of the areas contributed to the ``infrastructure`` 

4navigation group (web, sql, cache, events, queue, tasks) as linked cards. 

5The secondary nav column renders inside the content section next to the 

6overview (settings ConfigLayout pattern). 

7 

8This is the concrete instance of the generic 

9:class:`~lexigram.admin.controllers.clusters.ClusterCenterController` 

10bound to the built-in infrastructure cluster. 

11""" 

12 

13from __future__ import annotations 

14 

15from typing import Any 

16 

17from lexigram.admin.clusters.registry import INFRASTRUCTURE_CLUSTER 

18from lexigram.admin.controllers.clusters import ClusterCenterController 

19from lexigram.admin.engine.renderer import AdminRenderer 

20 

21__all__ = ["InfrastructureController"] 

22 

23 

24class InfrastructureController(ClusterCenterController): 

25 """Landing page for the Infrastructure center. 

26 

27 Routes: 

28 GET /admin/infrastructure - Overview of cluster areas 

29 """ 

30 

31 prefix = "/infrastructure" 

32 

33 def __init__( 

34 self, 

35 renderer: AdminRenderer, 

36 settings_service: Any | None = None, 

37 **kwargs: Any, 

38 ) -> None: 

39 super().__init__( 

40 renderer=renderer, 

41 cluster=INFRASTRUCTURE_CLUSTER, 

42 settings_service=settings_service, 

43 **kwargs, 

44 )