simple-module-dashboard 0.0.41__tar.gz → 0.0.43__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/.gitignore +3 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/PKG-INFO +4 -4
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/stats.py +5 -9
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/package.json +4 -4
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/pyproject.toml +4 -4
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/LICENSE +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/README.md +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/__init__.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/constants.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/doctor.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/endpoints/__init__.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/endpoints/api.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/endpoints/views.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/locales/de.json +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/locales/en.json +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/locales/es.json +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/module.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/Doctor.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/Home.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/ModuleTile.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/ChecksCard.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/DevServerCard.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/MigrationsCard.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/StatsRow.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/TerminalPanel.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/check-copy.ts +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/copy.ts +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/report.ts +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/doctor/types.ts +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/components/module-target.ts +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/py.typed +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/styles.css +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_dashboard.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_dashboard_month_delta.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_dashboard_permission.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_dashboard_single_tenant.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_dashboard_user_directory.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_doctor_migration_chips.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_doctor_props.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_view_routes.py +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests-js/dashboard_Doctor.test.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests-js/dashboard_Doctor_errors.test.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests-js/dashboard_Home.test.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests-js/doctor-stats.test.tsx +0 -0
- {simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tsconfig.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: simple_module_dashboard
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.43
|
|
4
4
|
Summary: Admin landing page and sidebar menu host for authenticated users of a simple_module app
|
|
5
5
|
Project-URL: Homepage, https://github.com/antosubash/simple_module_python
|
|
6
6
|
Project-URL: Repository, https://github.com/antosubash/simple_module_python
|
|
@@ -21,9 +21,9 @@ Classifier: Topic :: Internet :: WWW/HTTP
|
|
|
21
21
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
22
22
|
Classifier: Typing :: Typed
|
|
23
23
|
Requires-Python: >=3.12
|
|
24
|
-
Requires-Dist: simple-module-core==0.0.
|
|
25
|
-
Requires-Dist: simple-module-db==0.0.
|
|
26
|
-
Requires-Dist: simple-module-hosting==0.0.
|
|
24
|
+
Requires-Dist: simple-module-core==0.0.43
|
|
25
|
+
Requires-Dist: simple-module-db==0.0.43
|
|
26
|
+
Requires-Dist: simple-module-hosting==0.0.43
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
|
|
29
29
|
# simple_module_dashboard
|
|
@@ -11,6 +11,7 @@ from fastapi import FastAPI
|
|
|
11
11
|
from simple_module_core.discovery import get_module_package_name
|
|
12
12
|
from simple_module_core.health import HealthCheck, HealthStatus
|
|
13
13
|
from simple_module_core.user_directory import get_user_directory
|
|
14
|
+
from simple_module_hosting.health import run_health_check
|
|
14
15
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
15
16
|
|
|
16
17
|
_CACHE_TTL_SECONDS = 30
|
|
@@ -132,14 +133,9 @@ async def _run_health_checks(app: FastAPI) -> list[dict[str, str]]:
|
|
|
132
133
|
return []
|
|
133
134
|
|
|
134
135
|
async def _run_one(check: HealthCheck) -> dict[str, str]:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return {
|
|
140
|
-
"name": check.name,
|
|
141
|
-
"status": HealthStatus.UNHEALTHY.value,
|
|
142
|
-
"module": check.module,
|
|
143
|
-
}
|
|
136
|
+
# The readiness probe's bounded runner: a hung check reports unhealthy
|
|
137
|
+
# after its deadline instead of stalling the dashboard.
|
|
138
|
+
result = await run_health_check(check.name, check.check)
|
|
139
|
+
return {"name": check.name, "status": result.status.value, "module": check.module}
|
|
144
140
|
|
|
145
141
|
return list(await asyncio.gather(*[_run_one(c) for c in checks]))
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-module-py/dashboard",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Frontend assets for the Dashboard module",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
+
"@inertiajs/react": "^3.9.1",
|
|
8
|
+
"@simple-module-py/ui": "*",
|
|
7
9
|
"react": "^19.0.0",
|
|
8
|
-
"react-dom": "^19.
|
|
9
|
-
"@inertiajs/react": "^3.7.0",
|
|
10
|
-
"@simple-module-py/ui": "*"
|
|
10
|
+
"react-dom": "^19.3.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@simple-module-py/tsconfig": "*"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "simple_module_dashboard"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.43"
|
|
4
4
|
description = "Admin landing page and sidebar menu host for authenticated users of a simple_module app"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -21,9 +21,9 @@ classifiers = [
|
|
|
21
21
|
"Typing :: Typed",
|
|
22
22
|
]
|
|
23
23
|
dependencies = [
|
|
24
|
-
"simple_module_core==0.0.
|
|
25
|
-
"simple_module_db==0.0.
|
|
26
|
-
"simple_module_hosting==0.0.
|
|
24
|
+
"simple_module_core==0.0.43",
|
|
25
|
+
"simple_module_db==0.0.43",
|
|
26
|
+
"simple_module_hosting==0.0.43",
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
[project.entry-points.simple_module]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/endpoints/__init__.py
RENAMED
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/endpoints/api.py
RENAMED
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/endpoints/views.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/dashboard/pages/Doctor.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_dashboard_permission.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests/test_doctor_props.py
RENAMED
|
File without changes
|
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests-js/dashboard_Doctor.test.tsx
RENAMED
|
File without changes
|
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests-js/dashboard_Home.test.tsx
RENAMED
|
File without changes
|
{simple_module_dashboard-0.0.41 → simple_module_dashboard-0.0.43}/tests-js/doctor-stats.test.tsx
RENAMED
|
File without changes
|
|
File without changes
|