lx-annotate 1.2.4__tar.gz → 1.2.5__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.
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/PKG-INFO +3 -3
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/__init__.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/admin.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/asgi.py +2 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/dtypes_api_urls.py +2 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_audit.py +0 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_jobs.py +2 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_state.py +25 -4
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/dispatch_hub_export_recovery.py +0 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/monitoring_status.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/start_filewatcher.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/middleware/__init__.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/middleware/lookup_tracker.py +0 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/serializers.py +3 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/services/report_llm.py +24 -3
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/settings/config.py +3 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/settings/secret_key.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/settings/settings_test.py +4 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/urls.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/monitoring.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/quarantine.py +4 -5
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/wsgi.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/pyproject.toml +3 -3
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AdministrationPage.js +1 -1
- lx_annotate-1.2.5/staticfiles/AiDatasetBucketsPage.js +1 -0
- lx_annotate-1.2.5/staticfiles/AiDatasetSettingsPage.js +1 -0
- lx_annotate-1.2.5/staticfiles/AnnotationDashboard.css +1 -0
- lx_annotate-1.2.5/staticfiles/AnnotationDashboard2.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationCorrectionComponent.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationMetrics.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationOverview.js +1 -1
- lx_annotate-1.2.5/staticfiles/AnonymizationValidationComponent.css +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationValidationComponent.js +1 -1
- lx_annotate-1.2.5/staticfiles/ApplicationSettingsPage.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/CaseResolutionPage.js +1 -1
- lx_annotate-1.2.5/staticfiles/CaseSetupPage.css +1 -0
- lx_annotate-1.2.5/staticfiles/CaseSetupPage.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/Dashboard.js +1 -1
- lx_annotate-1.2.5/staticfiles/Export.js +1 -0
- lx_annotate-1.2.5/staticfiles/FindingsCapturePage.js +1 -0
- lx_annotate-1.2.5/staticfiles/FrameAnnotation.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/FrameSelectorPage.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/HubExport.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ModelTrainingPage.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/MonitoringPage.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/PatientMedicationPage.js +1 -1
- lx_annotate-1.2.5/staticfiles/PatientOverview.js +1 -0
- lx_annotate-1.2.5/staticfiles/ReportEditorPage.css +1 -0
- lx_annotate-1.2.5/staticfiles/ReportEditorPage.js +6 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ReportExportPage.js +2 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ReportTemplateBuilderPage.js +1 -1
- lx_annotate-1.2.5/staticfiles/ReportingShell.css +1 -0
- lx_annotate-1.2.5/staticfiles/ReportingShell.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ReportingWorklistPage.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/StudyCohortPage.js +1 -1
- lx_annotate-1.2.5/staticfiles/Timeline.css +1 -0
- lx_annotate-1.2.5/staticfiles/Timeline.js +2 -0
- lx_annotate-1.2.5/staticfiles/VideoExamination.css +1 -0
- lx_annotate-1.2.5/staticfiles/VideoExamination.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/SETUP_GUIDE.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/documentation_options.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/api/index.html +2 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/genindex.html +32 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/ai-training-data-export.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/anonymization-validation-correction-workflow.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/asset-deployment.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/core-concept-contract.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/core-concept-readiness-verdict.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/core-concept-type-matrix.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/deployment-strategy.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/dtypes-findings-migration.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/encrypted-model-weights-inference.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/encrypted-storage-process.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/frame-annotation-availability.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/general-documentation.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/hub-export-workflow.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/hub-storage-load-balancing.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/openapi-type-generation.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/pypi.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/reporting-shell-aaa-testing.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/reporting-template-requirements-page.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/runtime-environment-contract-test.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/secure-backup-disaster-recovery.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/segment-annotation-workflow.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/terminology-delivery.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/guides/wheel-deployment.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/index.html +1 -1
- lx_annotate-1.2.5/staticfiles/docs/objects.inv +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/py-modindex.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/search.html +1 -1
- lx_annotate-1.2.5/staticfiles/docs/searchindex.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/examinationStore.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/knowledgeBaseGraphApi.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/main.css +1 -1
- lx_annotate-1.2.5/staticfiles/main.js +39 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/mediaTypeStore.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/patientExaminationStore.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/patientService.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/patientStore.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/studyCohortExportStore.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/terminologyStore.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/timeHelpers.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/useAuthenticatedVideoStream.js +1 -1
- lx_annotate-1.2.5/staticfiles/useDebug.js +1 -0
- lx_annotate-1.2.5/staticfiles/useFindingSelectors.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/useReportTemplates.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/uv.lock +12 -335
- lx_annotate-1.2.4/staticfiles/AiDatasetBucketsPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/AiDatasetSettingsPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/AnnotationDashboard.css +0 -1
- lx_annotate-1.2.4/staticfiles/AnnotationDashboard2.js +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationValidationComponent.css +0 -1
- lx_annotate-1.2.4/staticfiles/ApplicationSettingsPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/CaseSetupPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/CaseSetupPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/Export.js +0 -1
- lx_annotate-1.2.4/staticfiles/FindingsCapturePage.js +0 -1
- lx_annotate-1.2.4/staticfiles/FrameAnnotation.js +0 -1
- lx_annotate-1.2.4/staticfiles/PatientOverview.js +0 -1
- lx_annotate-1.2.4/staticfiles/ReportEditorPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/ReportEditorPage.js +0 -4
- lx_annotate-1.2.4/staticfiles/ReportingShell.css +0 -1
- lx_annotate-1.2.4/staticfiles/ReportingShell.js +0 -1
- lx_annotate-1.2.4/staticfiles/Timeline.css +0 -1
- lx_annotate-1.2.4/staticfiles/Timeline.js +0 -2
- lx_annotate-1.2.4/staticfiles/VideoExamination.css +0 -1
- lx_annotate-1.2.4/staticfiles/VideoExamination.js +0 -1
- lx_annotate-1.2.4/staticfiles/docs/objects.inv +0 -0
- lx_annotate-1.2.4/staticfiles/docs/searchindex.js +0 -1
- lx_annotate-1.2.4/staticfiles/main.js +0 -39
- lx_annotate-1.2.4/staticfiles/useDebug.js +0 -1
- lx_annotate-1.2.4/staticfiles/useFindingSelectors.js +0 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/.gitignore +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/LICENSE +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/README.md +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/api_urls.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/apps.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/celery.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/checks.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/cli.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/file_watcher.py +15 -15
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_cleanup.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_contracts.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_envelope.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_health.py +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_payloads.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_reconciliation.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/hub_export_worker.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/node_provisioning.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_balance_worker.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_ingest.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_orchestration.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_provider.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_publication.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_reconciliation.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_recovery.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_rekey.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_report_provider.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_resolver.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_telemetry.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/storage_transfer_client.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/hub/transfer_transport.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/check_hub_export_health.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/check_migration_compatibility.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/export_openapi.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/export_route_manifest.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/provision_hub_nodes.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/reap_verified_hub_exports.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/recover_runtime_data.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/repair_legacy_migration_history.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/repair_managed_payloads.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/run_filewatcher.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/runtime_acceptance.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/management/commands/verify_encrypted_storage.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migration_history_safety.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/0001_outboundhubtransferjob.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/0002_outboundhubtransferjob_local_cleanup_fields.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/0003_outboundhubtransferjob_failure_class.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/0004_storagenodeactionreceipt.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/0005_storageoperatordispatchreceipt.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/0006_storageartifactpublication.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/0007_outbound_hub_receipt_cleanup.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/migrations/max_migration.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/models.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/monitoring/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/monitoring/configuration.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/monitoring/contracts.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/monitoring/database.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/monitoring/runtime.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/monitoring/service.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/operational_support.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/permissions.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/runtime_commands/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/services/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/services/access_management.py +2 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/services/runtime_recovery.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/settings/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/settings/oidc.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/settings/settings_base.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/settings/settings_dev.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/settings/settings_prod.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/signals.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/storage/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/storage/encrypted.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/storage/encryption.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/tasks.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/templates/base.html +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/administration.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/anonymization_overview.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/application_settings.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/frame_annotation.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/hub_export.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/report_llm.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/study_export.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/lx_annotate/views/video_state_repair.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/manage.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/.vite/manifest.json +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AboutUs.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AdministrationPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AiDatasetBucketsPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AiDatasetSettingsPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnnotationDashboard.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationCorrectionComponent.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationEvaluation.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationEvaluation.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationMetrics.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/AnonymizationOverview.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ApplicationSettingsPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ColoReg.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/Comfortaa-Bold.ttf +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/Comfortaa-Regular.ttf +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/Documentation.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/Documentation.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/Export.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/FinalizedResultPage.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/FindingsCapturePage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/FrameAnnotation.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/FrameSelectorPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/HubExport.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ModelTrainingPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/MonitoringPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/PageOverview.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/PageOverview.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/PatientDocumentsPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/PatientDocumentsPage.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/PatientMedicationPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/PatientOverview.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/Profile.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ReportExportPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/ReportTemplateBuilderPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/StudyCohortPage.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/administrationApi.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/aiDatasetApi.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/annotationPrincipal.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/applicationSettingsApi.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/casesApi.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/dateHelpers.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/.buildinfo +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/SETUP_GUIDE.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/api/index.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/ai-training-data-export.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/anonymization-validation-correction-workflow.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/asset-deployment.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/core-concept-contract.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/core-concept-readiness-verdict.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/core-concept-type-matrix.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/deployment-strategy.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/dtypes-findings-migration.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/encrypted-model-weights-inference.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/encrypted-storage-process.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/frame-annotation-availability.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/general-documentation.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/hub-export-workflow.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/hub-storage-load-balancing.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/openapi-type-generation.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/pypi.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/reporting-shell-aaa-testing.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/reporting-template-requirements-page.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/runtime-environment-contract-test.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/secure-backup-disaster-recovery.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/segment-annotation-workflow.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/terminology-delivery.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/guides/wheel-deployment.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_sources/index.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/basic.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/check-solid.svg +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/clipboard.min.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/copy-button.svg +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/copybutton.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/copybutton.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/copybutton_funcs.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/debug.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/doctools.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/file.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/language_data.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/minus.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/plus.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/pygments.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/scripts/furo-extensions.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/scripts/furo.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/scripts/furo.js.LICENSE.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/scripts/furo.js.map +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/searchtools.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/skeleton.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/sphinx_highlight.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/styles/furo-extensions.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/styles/furo-extensions.css.map +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/styles/furo.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/docs/_static/styles/furo.css.map +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/frameStreams.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/img/favicon.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/mediaUrls.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/nucleo-icons.eot +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/nucleo-icons.svg +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/nucleo-icons.ttf +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/nucleo-icons.woff +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/nucleo-icons.woff2 +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/pdf.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/pdf.worker.min.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/pdf.worker.min.mjs +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/reportExportApi.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/reportTemplateLifecycleContext.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/reportingError.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/reportingExaminationResolution.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/reportingIndicationContract.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/reportingPresentation.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/reportingTimelineApi.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/studyApi.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/useReportTemplates.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.5}/staticfiles/useReportingKnowledgeBase.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lx-annotate
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.5
|
|
4
4
|
Summary: This webapp provides a frontend interface for pseudonymizing and annotating data and applying AI predictions.
|
|
5
5
|
Author-email: Max Hild <hild_m@ukw.de>, "Thomas J. Lux" <lux_t1@ukw.de>
|
|
6
6
|
Maintainer: Hamza Zahid
|
|
@@ -29,9 +29,9 @@ Requires-Dist: django-webpack-loader>=0.7.0
|
|
|
29
29
|
Requires-Dist: django==6.0.3
|
|
30
30
|
Requires-Dist: djangorestframework>=3.12.4
|
|
31
31
|
Requires-Dist: drf-spectacular>=0.28.0
|
|
32
|
-
Requires-Dist: endoreg-db==1.2.
|
|
32
|
+
Requires-Dist: endoreg-db==1.2.7
|
|
33
33
|
Requires-Dist: gunicorn>=23.0.0
|
|
34
|
-
Requires-Dist: lx-dtypes==0.3.
|
|
34
|
+
Requires-Dist: lx-dtypes==0.3.2
|
|
35
35
|
Requires-Dist: mozilla-django-oidc>=4.0.1
|
|
36
36
|
Requires-Dist: numpy>=1.21.0
|
|
37
37
|
Requires-Dist: pillow>=9.0.0
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"""ASGI config for lx-annotate."""
|
|
2
2
|
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
3
5
|
import os
|
|
4
6
|
|
|
5
7
|
from django.core.asgi import get_asgi_application
|
|
6
8
|
|
|
7
|
-
|
|
8
9
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lx_annotate.settings.settings_prod")
|
|
9
10
|
|
|
10
11
|
application = get_asgi_application()
|
|
@@ -1027,6 +1027,7 @@ def _validate_failed_job_for_operator_retry(
|
|
|
1027
1027
|
elif job.resource_kind == OutboundHubTransferJob.ResourceKind.REPORT:
|
|
1028
1028
|
if job.raw_pdf_file_id is None or not is_report_hub_export_eligible(
|
|
1029
1029
|
job.raw_pdf_file,
|
|
1030
|
+
verify_processed_media=True,
|
|
1030
1031
|
):
|
|
1031
1032
|
raise ValueError(
|
|
1032
1033
|
"The failed report transfer is no longer eligible for hub export.",
|
|
@@ -1171,7 +1172,7 @@ def _mark_report_for_hub_upload(
|
|
|
1171
1172
|
marked_by: Any,
|
|
1172
1173
|
) -> tuple[OutboundHubTransferJob, bool]:
|
|
1173
1174
|
report = RawPdfFile.objects.select_related("center").get(pk=resource_id)
|
|
1174
|
-
if not is_report_hub_export_eligible(report):
|
|
1175
|
+
if not is_report_hub_export_eligible(report, verify_processed_media=True):
|
|
1175
1176
|
raise ValueError(f"Report {resource_id} is not eligible for hub export.")
|
|
1176
1177
|
return OutboundHubTransferJob.objects.get_or_create(
|
|
1177
1178
|
raw_pdf_file=report,
|
|
@@ -276,22 +276,43 @@ def is_video_hub_export_eligible(video: VideoFile) -> bool:
|
|
|
276
276
|
return resolve_video_hub_export_state(video).transfer_eligible
|
|
277
277
|
|
|
278
278
|
|
|
279
|
-
def report_hub_export_blocked_reason(
|
|
279
|
+
def report_hub_export_blocked_reason(
|
|
280
|
+
report: RawPdfFile,
|
|
281
|
+
*,
|
|
282
|
+
verify_processed_media: bool = False,
|
|
283
|
+
) -> str:
|
|
280
284
|
if report.center is None:
|
|
281
285
|
return "source center missing"
|
|
282
286
|
state = report.state
|
|
283
|
-
if state is None or
|
|
287
|
+
if state is None or state.anonymization_status != AnonymizationState.VALIDATED:
|
|
284
288
|
return "not ready for export"
|
|
285
289
|
processed_file_sha256 = getattr(state, "processed_file_sha256", None)
|
|
286
290
|
if processed_file_sha256 is not None and not str(processed_file_sha256).strip():
|
|
287
291
|
return "processed media missing"
|
|
288
292
|
if not has_usable_processed_artifact(report):
|
|
289
293
|
return "processed media missing"
|
|
294
|
+
if verify_processed_media:
|
|
295
|
+
try:
|
|
296
|
+
actual_digest = sha256_file(report.processed_file)
|
|
297
|
+
except (OSError, TypeError, ValueError):
|
|
298
|
+
return "processed media unreadable"
|
|
299
|
+
if actual_digest != processed_file_sha256:
|
|
300
|
+
return "processed media hash mismatch"
|
|
290
301
|
return ""
|
|
291
302
|
|
|
292
303
|
|
|
293
|
-
def is_report_hub_export_eligible(
|
|
294
|
-
|
|
304
|
+
def is_report_hub_export_eligible(
|
|
305
|
+
report: RawPdfFile,
|
|
306
|
+
*,
|
|
307
|
+
verify_processed_media: bool = False,
|
|
308
|
+
) -> bool:
|
|
309
|
+
return (
|
|
310
|
+
report_hub_export_blocked_reason(
|
|
311
|
+
report,
|
|
312
|
+
verify_processed_media=verify_processed_media,
|
|
313
|
+
)
|
|
314
|
+
== ""
|
|
315
|
+
)
|
|
295
316
|
|
|
296
317
|
|
|
297
318
|
def _sync_outbound_jobs(
|
|
@@ -13,7 +13,6 @@ from typing import Any
|
|
|
13
13
|
from django.conf import settings
|
|
14
14
|
from django.http import HttpRequest, HttpResponse
|
|
15
15
|
from django.utils.deprecation import MiddlewareMixin
|
|
16
|
-
|
|
17
16
|
from endoreg_db.utils.file_operations import (
|
|
18
17
|
advisory_file_lock,
|
|
19
18
|
atomic_write_file,
|
|
@@ -21,7 +21,7 @@ from lx_dtypes.models.contracts.knowledge_base_graph import (
|
|
|
21
21
|
)
|
|
22
22
|
from pydantic import BaseModel, ConfigDict, Field
|
|
23
23
|
|
|
24
|
-
PROMPT_VERSION = "clinical-graph-report-
|
|
24
|
+
PROMPT_VERSION = "clinical-graph-report-v2"
|
|
25
25
|
MAX_INPUT_BYTES = 100_000
|
|
26
26
|
MAX_RESPONSE_BYTES = 200_000
|
|
27
27
|
SYSTEM_PROMPT = """You draft clinical examination reports for clinician review.
|
|
@@ -80,6 +80,7 @@ class GenerateReportRequest(BaseModel):
|
|
|
80
80
|
patient_examination_id: int = Field(gt=0)
|
|
81
81
|
template_name: str = Field(min_length=1, max_length=200)
|
|
82
82
|
language: Literal["de", "en"]
|
|
83
|
+
verbosity: Literal["short", "standard", "detailed"] = "standard"
|
|
83
84
|
graph: GraphReference
|
|
84
85
|
documented_findings: list[JsonObject] = Field(max_length=200)
|
|
85
86
|
section_notes: list[SectionNote] = Field(max_length=100)
|
|
@@ -265,10 +266,30 @@ def build_messages(
|
|
|
265
266
|
raise ReportLlmError(
|
|
266
267
|
"invalid_template", "Die gewählte Vorlage ist nicht veröffentlicht.", 409
|
|
267
268
|
)
|
|
269
|
+
template_data = template.model_dump(mode="json")
|
|
270
|
+
verbosity_options = template_data.get("verbosity_options")
|
|
271
|
+
if not isinstance(verbosity_options, list):
|
|
272
|
+
raise ReportLlmError(
|
|
273
|
+
"template_contract_unavailable",
|
|
274
|
+
"Die installierte lx-dtypes-Version unterstützt den Berichtsumfang noch nicht. Bitte das Terminologiepaket aktualisieren.",
|
|
275
|
+
)
|
|
276
|
+
if data.verbosity not in verbosity_options:
|
|
277
|
+
raise ReportLlmError(
|
|
278
|
+
"invalid_verbosity",
|
|
279
|
+
"Dieser Berichtsumfang wird von der Vorlage nicht unterstützt.",
|
|
280
|
+
400,
|
|
281
|
+
)
|
|
282
|
+
style = {
|
|
283
|
+
"short": "Use compact clinical clauses with minimal connective wording.",
|
|
284
|
+
"standard": "Use concise complete clinical sentences.",
|
|
285
|
+
"detailed": "Use full clinical sentences and explicit labels for every documented classification and measurement.",
|
|
286
|
+
}[data.verbosity]
|
|
287
|
+
style += " Preserve ALL documented facts at every verbosity level. Never add facts or change required findings."
|
|
268
288
|
context = graph.model_dump(mode="json")
|
|
269
|
-
context["report_templates"] = [
|
|
289
|
+
context["report_templates"] = [template_data]
|
|
270
290
|
evidence = {
|
|
271
291
|
"language": "German" if data.language == "de" else "English",
|
|
292
|
+
"verbosity": data.verbosity,
|
|
272
293
|
"terminology_graph": context,
|
|
273
294
|
"selected_template": data.template_name,
|
|
274
295
|
"documented_findings": data.documented_findings,
|
|
@@ -282,7 +303,7 @@ def build_messages(
|
|
|
282
303
|
413,
|
|
283
304
|
)
|
|
284
305
|
return [
|
|
285
|
-
{"role": "system", "content": SYSTEM_PROMPT},
|
|
306
|
+
{"role": "system", "content": SYSTEM_PROMPT + "\nREPORT STYLE:\n" + style},
|
|
286
307
|
{"role": "user", "content": content},
|
|
287
308
|
]
|
|
288
309
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
from typing import Annotated
|
|
5
3
|
import ast
|
|
6
4
|
import json
|
|
7
5
|
import os
|
|
8
6
|
import shlex
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Annotated
|
|
9
|
+
|
|
9
10
|
from pydantic import AliasChoices, Field, field_validator, model_validator
|
|
10
11
|
from pydantic_settings import BaseSettings, NoDecode, SettingsConfigDict
|
|
11
12
|
|
|
@@ -7,19 +7,21 @@ These settings prioritize speed and isolation:
|
|
|
7
7
|
- External services (Keycloak) mocked or disabled
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
10
12
|
import os
|
|
11
13
|
import tempfile
|
|
12
14
|
from copy import deepcopy
|
|
13
|
-
from typing import Any, cast
|
|
14
15
|
from pathlib import Path
|
|
16
|
+
from typing import Any, cast
|
|
15
17
|
|
|
16
18
|
# The base settings fail closed when no deployment secret is configured.
|
|
17
19
|
# Tests supply their explicitly isolated, non-production key before importing base.
|
|
18
20
|
os.environ.setdefault("DJANGO_SECRET_KEY", "test-insecure-key-do-not-use-00000000")
|
|
19
21
|
|
|
20
22
|
# Import everything from base
|
|
21
|
-
from .settings_base import * # noqa: F403
|
|
22
23
|
from . import settings_base as base
|
|
24
|
+
from .settings_base import * # noqa: F403
|
|
23
25
|
|
|
24
26
|
# -----------------------------------------------------------------------------
|
|
25
27
|
# 1. SETUP MUTABLE COPIES
|
|
@@ -8,14 +8,13 @@ from typing import Any
|
|
|
8
8
|
|
|
9
9
|
from django.conf import settings
|
|
10
10
|
from django.utils import timezone
|
|
11
|
-
from
|
|
12
|
-
from rest_framework.decorators import api_view, permission_classes
|
|
13
|
-
from rest_framework.response import Response
|
|
14
|
-
|
|
11
|
+
from endoreg_db.authz.permissions import PolicyPermission
|
|
15
12
|
from endoreg_db.models.hub.quarantine_item import QuarantineItem
|
|
16
13
|
from endoreg_db.services.hub import resolve_allowed_center_id
|
|
17
|
-
from endoreg_db.authz.permissions import PolicyPermission
|
|
18
14
|
from endoreg_db.utils.permissions import EnvironmentAwarePermission
|
|
15
|
+
from rest_framework import status
|
|
16
|
+
from rest_framework.decorators import api_view, permission_classes
|
|
17
|
+
from rest_framework.response import Response
|
|
19
18
|
|
|
20
19
|
VIDEO_EXTENSIONS = {".avi", ".m4v", ".mkv", ".mov", ".mp4", ".webm"}
|
|
21
20
|
REPORT_EXTENSIONS = {".pdf"}
|
|
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "lx-annotate"
|
|
7
7
|
|
|
8
|
-
version = "1.2.
|
|
8
|
+
version = "1.2.5"
|
|
9
9
|
description = "This webapp provides a frontend interface for pseudonymizing and annotating data and applying AI predictions."
|
|
10
10
|
authors = [
|
|
11
11
|
{ name = "Max Hild", email = "hild_m@ukw.de"},
|
|
@@ -52,7 +52,7 @@ dependencies = [
|
|
|
52
52
|
"daphne>=4.2.1",
|
|
53
53
|
"psycopg[binary,pool]>=3.2.12",
|
|
54
54
|
"mozilla-django-oidc>=4.0.1",
|
|
55
|
-
"endoreg-db==1.2.
|
|
55
|
+
"endoreg-db==1.2.7",
|
|
56
56
|
"pydantic-settings>=2.12.0",
|
|
57
57
|
"pydantic>=2.12.5",
|
|
58
58
|
"sops>=1.18",
|
|
@@ -60,7 +60,7 @@ dependencies = [
|
|
|
60
60
|
"cryptography>=45.0.0",
|
|
61
61
|
"django-linear-migrations>=2.19.0",
|
|
62
62
|
"redis>=5.0.3,<6.5",
|
|
63
|
-
"lx-dtypes==0.3.
|
|
63
|
+
"lx-dtypes==0.3.2",
|
|
64
64
|
"pre-commit[dev]>=4.6.1",
|
|
65
65
|
"pylint-django>=2.8.0",
|
|
66
66
|
"asgiref>=3.12.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ae,v as se,o as re,g as i,h as e,t as l,j as o,F as c,M as ie,w as oe,u as ue,R as de,n as g,x as m,i as p,ad as ce,y as Z,A as ge,z as ve,r as d,l as $,ak as me,f as r,_ as be}from"./main.js";import{f as w,a as pe,b as fe,u as he,c as ye,d as ke}from"./administrationApi.js";const _e={class:"admin-page container-fluid py-4 px-3 px-lg-4"},Se={class:"admin-hero"},Ce=["disabled"],we={key:0,class:"alert alert-danger mt-3",role:"alert"},Ae={class:"status-grid mt-4","aria-label":"Hub-Status"},Ke={class:"status-card"},Be={class:"status-card"},xe={class:"status-card"},Pe={class:"status-card"},Re={key:1,class:"admin-card mt-4","data-test":"host-status"},Ie={class:"section-heading"},ze={class:"badge bg-secondary"},Ne={class:"table-responsive"},Te={class:"table align-middle mb-0"},$e={class:"d-block text-muted"},De=["data-test"],Ee={key:0},Me={key:2,class:"admin-card mt-4","data-test":"storage-balancing"},He={class:"section-heading"},Le={key:0,class:"alert alert-warning",role:"status"},Ue={class:"storage-control-grid mb-3","data-test":"storage-planner-status"},We={key:1,class:"d-flex flex-wrap gap-2 mb-3","data-test":"storage-operator-controls"},Ve=["disabled"],Ze=["disabled"],Ge=["disabled"],Fe={class:"table-responsive"},qe={class:"table align-middle mb-0"},Oe={key:0},Qe={class:"d-block text-muted"},Je={class:"d-block text-muted"},Xe=["data-test"],Ye={key:0},je=["data-test","disabled","onClick"],et={key:0},tt=["colspan"],nt={class:"mt-4","data-test":"storage-balance-work"},lt={class:"table-responsive"},at={class:"table align-middle mb-0"},st={key:0},rt={class:"d-block text-muted"},it={key:0,class:"d-block text-muted"},ot={key:1,class:"d-block text-muted"},ut={key:0},dt=["data-test","disabled","onClick"],ct=["data-test","disabled","onClick"],gt={key:0},vt=["colspan"],mt={class:"admin-card mt-4","data-test":"effective-permissions"},bt={class:"section-heading"},pt={class:"badge bg-secondary"},ft={class:"permission-grid"},ht={class:"role-list"},yt={key:0,class:"text-muted"},kt={class:"alert alert-info mt-3 mb-0",role:"status"},_t={class:"admin-card mt-4","data-test":"transfer-monitoring"},St={class:"table-responsive"},Ct={class:"table align-middle mb-0"},wt={class:"correlation-cell"},At={key:0},Kt={class:"error-cell"},Bt={key:0},xt={key:3,class:"admin-card mt-4","data-test":"center-scope-management"},Pt={key:0,class:"alert alert-warning"},Rt={class:"table-responsive"},It={class:"table align-middle"},zt={key:0},Nt={key:0,class:"text-muted small"},Tt=["onClick"],$t=["onClick"],Dt={class:"d-flex justify-content-between align-items-center mt-2"},Et={class:"text-muted"},Mt={class:"d-flex gap-2"},Ht=["disabled"],Lt=["disabled"],Ut={key:0},Wt={key:1,class:"form-label"},Vt=["value"],Zt={class:"form-label mt-3"},Gt={class:"d-flex gap-2 mt-3"},Ft=["disabled"],qt=["disabled"],Ot=ae({__name:"AdministrationPage",setup(Qt){function k(a,t){return me(a)?a.response?.data.detail||a.message||t:a instanceof Error&&a.message?a.message:t}const s=d(null),D=d([]),x=d([]),f=d(1),P=d(0),A=d(!1),C=d(!1),v=d(""),_=d(""),h=d(""),y=d(""),R=d(null),I=d(null),S=d(null),b=d(null);let z=null;async function N(){A.value=!0,v.value="";try{s.value=await w(),s.value.effectivePermissions.centerScopeAdmin&&await T()}catch(a){v.value=k(a,"Administration konnte nicht geladen werden.")}finally{A.value=!1}}async function T(a=f.value){_.value="";try{const t=await pe(a);D.value=t.users,x.value=t.centers,f.value=t.page,P.value=t.total}catch(t){_.value=k(t,"Center-Zugriffe konnten nicht geladen werden.")}}async function G(a){const t=a.isDraining?"resume":"drain",n=window.prompt(t==="drain"?"Begründung für das Entleeren dieses Storage-Knotens:":"Begründung für die Wiederaufnahme dieses Storage-Knotens:")?.trim();if(!(!n||!window.confirm(t==="drain"?`Storage-Knoten ${a.nodeKey} für neue Platzierungen sperren?`:`Storage-Knoten ${a.nodeKey} wieder für neue Platzierungen freigeben?`))){R.value=a.nodeKey,v.value="";try{await he({action:t,nodeKey:a.nodeKey,expectedIsDraining:a.isDraining,reason:n,idempotencyKey:crypto.randomUUID()}),s.value=await w()}catch(V){v.value=k(V,"Storage-Knotenstatus konnte nicht geändert werden.")}finally{R.value=null}}}async function F(a){if(!a.cancellable)return;const t=window.prompt("Begründung für das Stornieren dieses Ausgleichsauftrags:")?.trim();if(t&&window.confirm(`Ausgleichsauftrag ${a.workItemId} vor dem Kopieren stornieren?`)){I.value=a.workItemId,v.value="";try{await ye(a.workItemId,{reason:t,idempotencyKey:crypto.randomUUID()}),s.value=await w()}catch(n){v.value=k(n,"Ausgleichsauftrag konnte nicht sicher storniert werden.")}finally{I.value=null}}}async function K(a,t){const n=window.prompt(`Begründung für die Storage-Aktion „${a}“:`)?.trim();if(n&&window.confirm(`Storage-Aktion „${a}“ verbindlich anfordern?`)){S.value=a,v.value="";try{const u=await fe({action:a,reason:n,idempotencyKey:crypto.randomUUID(),...t?{workItemId:t.workItemId}:{}});s.value=await w(),u.dispatchQueued||(v.value="Storage-Aktion wurde dauerhaft gespeichert und wird nach Wiederherstellung der Queue automatisch zugestellt.")}catch(u){v.value=k(u,"Storage-Aktion konnte nicht sicher gespeichert werden.")}finally{S.value=null}}}async function E(a){await T(a)}function M(a){const t=new Set(a.centers.map(n=>n.centerKey));return x.value.filter(n=>!t.has(n.centerKey))}function H(a,t,n=""){b.value={user:a,operation:t},y.value=t==="assign"?M(a)[0]?.centerKey||"":n,h.value=""}function L(){b.value=null,h.value="",y.value=""}async function q(){const a=b.value;if(!a||!h.value)return;const t=a.operation==="assign"?"Center-Zuordnung verbindlich speichern?":"Center-Zugriff verbindlich entziehen?";if(window.confirm(t)){C.value=!0,_.value="";try{await ke(a.user.id,{operation:a.operation,centerKey:y.value,expectedCenterKeys:a.user.centers.map(n=>n.centerKey).sort(),reason:h.value}),L(),await T(),s.value=await w()}catch(n){_.value=k(n,"Center-Zuordnung konnte nicht geändert werden.")}finally{C.value=!1}}}const O=a=>({marked:"Markiert",queued:"Wartend",registering:"Registrierung",awaiting_media:"Wartet auf Medium",uploading:"Upload",completed:"Abgeschlossen",failed:"Fehlgeschlagen"})[a]||a,Q=a=>a==="failed"?"bg-danger":a==="completed"?"bg-success":"bg-warning text-dark",J=a=>({not_applicable:"Nicht vorgesehen",retained:"Aufbewahrt",eligible:"Freigegeben",cleaned:"Bereinigt"})[a]||a,X=a=>a==="cleaned"?"bg-success":a==="eligible"?"bg-warning text-dark":"bg-secondary",Y=a=>({assigned:"Zugeordnet",unassigned:"Nicht zugeordnet",incomplete:"Unvollständig"})[a],j=a=>a==="assigned"?"bg-success":a==="unassigned"?"bg-warning text-dark":"bg-danger",ee=$(()=>{const a=s.value?.storageBalancing.topologyState;return{unavailable:"Vertrag nicht verfügbar",not_configured:"Nicht konfiguriert",single_node_non_redundant:"Einzelknoten · nicht redundant",multi_node_control_plane_only:"Mehrere Knoten · nur Steuerung",multi_node_operational:"Mehrere Knoten · aktiv"}[a||"unavailable"]||a}),te=$(()=>s.value?.storageBalancing.dataPlaneOperational?"bg-success":"bg-warning text-dark"),ne=$(()=>{const a=s.value?.storageBalancing.planner;return!a||a.status==="contract_unavailable"?"Vertrag nicht verfügbar":a.compatible?a.queueExecutionEnabled?"Planung und Ausführung aktiv":"Nur Planung · keine Ausführung":"Vertrag inkompatibel"}),U=a=>{const t=Object.entries(a);return t.length?t.map(([n,u])=>`${n}: ${String(u)}`).join(" · "):"keine Einträge"},B=a=>new Intl.NumberFormat("de-DE",{style:"unit",unit:"megabyte",maximumFractionDigits:1}).format(a/1e6),le=a=>a<60?`${String(a)} s`:a<3600?`${String(Math.floor(a/60))} min`:`${String(Math.floor(a/3600))} h`,W=a=>new Intl.DateTimeFormat("de-DE",{dateStyle:"short",timeStyle:"short"}).format(new Date(a));return se(()=>{N(),z=window.setInterval(()=>{C.value||N()},3e4)}),re(()=>{z!==null&&window.clearInterval(z)}),(a,t)=>(r(),i("div",_e,[e("header",Se,[t[7]||(t[7]=e("div",null,[e("p",{class:"eyebrow"},"Betrieb und Zugriff"),e("h1",null,"Administration"),e("p",{class:"intro"}," Überwachen Sie den sicheren Hub-Transfer und verwalten Sie lokale Center-Zuordnungen. Technische Rollen werden hier ausschließlich angezeigt. ")],-1)),e("button",{class:"btn btn-outline-light",type:"button",disabled:A.value,onClick:N},l(A.value?"Aktualisiere …":"Aktualisieren"),9,Ce)]),v.value?(r(),i("div",we,l(v.value),1)):o("",!0),s.value?(r(),i(c,{key:1},[s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),ie(ue(de),{key:0,to:"/administration/monitoring",class:"btn btn-outline-primary mt-4"},{default:oe(()=>[...t[8]||(t[8]=[p("Application monitoring",-1)])]),_:1})):o("",!0),e("section",Ae,[e("article",Ke,[t[9]||(t[9]=e("span",{class:"status-label"},"Hub-Konfiguration",-1)),e("strong",{class:g(s.value.hubHealth.ready?"text-success":"text-danger")},l(s.value.hubHealth.ready?"Betriebsbereit":"Nicht bereit"),3),e("small",null,"Quellknoten: "+l(s.value.hubHealth.sourceNodeKey||"nicht konfiguriert"),1)]),e("article",Be,[t[10]||(t[10]=e("span",{class:"status-label"},"Transport",-1)),e("strong",{class:g(s.value.hubHealth.transport.ready?"text-success":"text-danger")},l(s.value.hubHealth.transport.requireMtls?"mTLS erforderlich":"TLS"),3),e("small",null,"Transportmaterial: "+l(s.value.hubHealth.transport.ready?"bereit":"nicht bereit"),1)]),e("article",xe,[t[11]||(t[11]=e("span",{class:"status-label"},"Transferaufträge",-1)),e("strong",null,l(s.value.transferMonitoring.total),1),e("small",null,l(s.value.transferMonitoring.counts.failed||0)+" fehlgeschlagen",1)]),e("article",Pe,[t[12]||(t[12]=e("span",{class:"status-label"},"Automatische Queue",-1)),e("strong",null,l(s.value.hubHealth.autoQueueEnabled?"Aktiv":"Inaktiv"),1),e("small",null,l(s.value.hubHealth.exactlyOneActiveHub?"Ein aktiver Hub":"Hub-Auswahl uneindeutig"),1)])]),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("section",Re,[e("div",Ie,[t[13]||(t[13]=e("div",null,[e("h2",null,"Host-Status"),e("p",null," Alle registrierten Netzwerk-Knoten. Der Status zeigt die lokale Aktivierung und Konfiguration; es wird kein Remote-Liveness-Probe ausgelöst. ")],-1)),e("span",ze,l(s.value.hostStatus.active)+" / "+l(s.value.hostStatus.total)+" aktiv ",1)]),e("div",Ne,[e("table",Te,[t[15]||(t[15]=e("thead",null,[e("tr",null,[e("th",null,"Host"),e("th",null,"Rolle"),e("th",null,"Center"),e("th",null,"Status"),e("th",null,"Verbindung"),e("th",null,"Aktualisiert")])],-1)),e("tbody",null,[(r(!0),i(c,null,m(s.value.hostStatus.hosts,n=>(r(),i("tr",{key:n.nodeKey},[e("td",null,[e("strong",null,l(n.displayName),1),e("small",$e,l(n.nodeKey),1)]),e("td",null,l(n.roleLabel),1),e("td",null,l(n.owningCenterName||n.owningCenterKey||"—"),1),e("td",null,[e("span",{class:g(["badge",n.active?"bg-success":"bg-secondary"]),"data-test":`host-status-${n.nodeKey}`},l(n.active?"Aktiv":"Inaktiv"),11,De)]),e("td",null,l(n.httpsConfigured?"HTTPS konfiguriert":n.baseUrlConfigured?"ohne HTTPS":"keine URL"),1),e("td",null,l(W(n.updatedAt)),1)]))),128)),s.value.hostStatus.hosts.length?o("",!0):(r(),i("tr",Ee,[...t[14]||(t[14]=[e("td",{colspan:"6",class:"text-center text-muted py-4"}," Keine Netzwerk-Knoten registriert. ",-1)])]))])])])])):o("",!0),s.value.effectivePermissions.storageMonitorRead?(r(),i("section",Me,[e("div",He,[t[16]||(t[16]=e("div",null,[e("h2",null,"Storage-Knoten"),e("p",null," Persistierte Kapazität und Platzierungssteuerung des Hubs. Die Datenebene wird separat bereitgestellt und hier niemals stillschweigend vorausgesetzt. ")],-1)),e("span",{class:g(["badge",te.value])},l(ee.value),3)]),s.value.storageBalancing.blockedReason?(r(),i("div",Le,l(s.value.storageBalancing.blockedReason),1)):o("",!0),e("div",Ue,[e("div",null,[t[17]||(t[17]=e("span",{class:"status-label"},"Platzierungsplaner",-1)),e("strong",{class:g(s.value.storageBalancing.planner.compatible?"text-warning":"text-danger")},l(ne.value),3),e("small",null," Vertrag: "+l(s.value.storageBalancing.planner.contractVersion??"nicht veröffentlicht")+" / erwartet "+l(s.value.storageBalancing.planner.expectedContractVersion),1)]),e("div",null,[t[18]||(t[18]=e("span",{class:"status-label"},"Reservierungen",-1)),e("strong",null,l(s.value.storageBalancing.activeReservationCount),1),e("small",null,l(U(s.value.storageBalancing.reservationCounts)),1)]),e("div",null,[t[19]||(t[19]=e("span",{class:"status-label"},"Rotationsqueue",-1)),e("strong",null,l(s.value.storageBalancing.queuedRotationCount),1),e("small",null,l(U(s.value.storageBalancing.rotationCounts)),1)]),e("div",null,[t[20]||(t[20]=e("span",{class:"status-label"},"Queue-Ausführung",-1)),e("strong",{class:g(s.value.storageBalancing.planner.queueExecutionEnabled?"text-success":"text-danger")},l(s.value.storageBalancing.planner.queueExecutionEnabled?"Aktiv":"Deaktiviert"),3),e("small",null," Fehler: "+l(s.value.storageBalancing.failedTransferCount)+", überfällige Reservierungen: "+l(s.value.storageBalancing.overdueReservationCount)+", auslaufende Schlüsselobjekte: "+l(s.value.storageBalancing.retiredTransferCount),1)]),e("div",null,[t[21]||(t[21]=e("span",{class:"status-label"},"Reconciliation",-1)),e("strong",{class:g(s.value.storageBalancing.reconciliationCriticalCount?"text-danger":"text-muted")},l(s.value.storageBalancing.reconciliationCriticalCount)+" kritisch · "+l(s.value.storageBalancing.reconciliationWarningCount)+" Warnungen ",3),e("small",null,l(s.value.storageBalancing.reconciliationRunCount)+" Läufe · "+l(s.value.storageBalancing.lastReconciliationAt??"noch nicht ausgeführt"),1)])]),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("div",We,[e("button",{class:"btn btn-sm btn-outline-warning mb-0",type:"button",disabled:S.value!==null,onClick:t[0]||(t[0]=n=>K(s.value.storageBalancing.planner.operatorPaused?"resume":"pause"))},l(s.value.storageBalancing.planner.operatorPaused?"Balancing fortsetzen":"Balancing pausieren"),9,Ve),e("button",{class:"btn btn-sm btn-outline-secondary mb-0",type:"button",disabled:S.value!==null,onClick:t[1]||(t[1]=n=>K("reconcile"))}," Reconciliation anfordern ",8,Ze),e("button",{class:"btn btn-sm btn-outline-primary mb-0",type:"button",disabled:S.value!==null||s.value.storageBalancing.planner.operatorPaused,onClick:t[2]||(t[2]=n=>K("rebalance"))}," Rebalance anfordern ",8,Ge)])):o("",!0),e("div",Fe,[e("table",qe,[e("thead",null,[e("tr",null,[t[22]||(t[22]=e("th",null,"Knoten",-1)),t[23]||(t[23]=e("th",null,"Status",-1)),t[24]||(t[24]=e("th",null,"Nutzbar",-1)),t[25]||(t[25]=e("th",null,"Reserviert / in Arbeit",-1)),t[26]||(t[26]=e("th",null,"Belegt",-1)),t[27]||(t[27]=e("th",null,"Messalter",-1)),t[28]||(t[28]=e("th",null,"Platzierungen",-1)),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("th",Oe,"Aktion")):o("",!0)])]),e("tbody",null,[(r(!0),i(c,null,m(s.value.storageBalancing.nodes,n=>(r(),i("tr",{key:n.nodeKey},[e("td",null,[e("strong",null,l(n.displayName),1),e("small",Qe,l(n.nodeKey),1),e("small",Je,l(n.failureDomain)+" · "+l(n.residencyKey),1)]),e("td",null,[e("span",{"data-test":`storage-node-status-${n.nodeKey}`,class:g(["badge",n.active?n.isReachable?n.acceptingWrites?n.isDraining?"bg-warning text-dark":"bg-success":"bg-info text-dark":"bg-danger":"bg-secondary"])},l(n.active?n.isReachable?n.acceptingWrites?n.isDraining?"Wird entleert":"Aktiv":"Schreibgeschützt":"Nicht erreichbar":"Inaktiv"),11,Xe)]),e("td",null,l(B(n.availableBytes)),1),e("td",null,l(B(n.reservedBytes+n.inFlightBytes)),1),e("td",null,l(B(n.committedBytes)),1),e("td",null,l(le(n.healthFreshnessSeconds)),1),e("td",null,l(n.currentPlacementCount),1),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("td",Ye,[e("button",{class:g(["btn btn-sm mb-0",n.isDraining?"btn-outline-success":"btn-outline-warning"]),"data-test":`storage-node-action-${n.nodeKey}`,type:"button",disabled:R.value===n.nodeKey,onClick:u=>G(n)},l(n.isDraining?"Wieder aufnehmen":"Entleeren"),11,je)])):o("",!0)]))),128)),s.value.storageBalancing.nodes.length?o("",!0):(r(),i("tr",et,[e("td",{colspan:s.value.effectivePermissions.centerScopeGlobalAdmin?8:7,class:"text-center text-muted py-4"}," Keine Storage-Knoten konfiguriert. ",8,tt)]))])])]),e("div",nt,[t[33]||(t[33]=e("h3",null,"Ausgleichsaufträge",-1)),e("div",lt,[e("table",at,[e("thead",null,[e("tr",null,[t[29]||(t[29]=e("th",null,"Artefakt",-1)),t[30]||(t[30]=e("th",null,"Pfad",-1)),t[31]||(t[31]=e("th",null,"Status",-1)),t[32]||(t[32]=e("th",null,"Größe",-1)),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("th",st,"Aktion")):o("",!0)])]),e("tbody",null,[(r(!0),i(c,null,m(s.value.storageBalancing.workItems,n=>(r(),i("tr",{key:n.workItemId},[e("td",null,[e("strong",null,l(n.artifactKey),1),e("small",rt,l(n.artifactKind)+" · "+l(n.reason),1)]),e("td",null,l(n.sourceNodeKey)+" → "+l(n.targetNodeKey??"kein Ziel"),1),e("td",null,[p(l(n.rotationState??n.status)+" ",1),n.cancellationReceiptId?(r(),i("small",it," storniert · "+l(n.cancellationReceiptId),1)):n.terminalReason?(r(),i("small",ot,l(n.terminalReason),1)):o("",!0)]),e("td",null,l(B(n.expectedSizeBytes)),1),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("td",ut,[e("button",{class:"btn btn-sm btn-outline-danger mb-0",type:"button","data-test":`cancel-storage-work-${n.workItemId}`,disabled:!n.cancellable||I.value===n.workItemId,onClick:u=>F(n)}," Stornieren ",8,dt),e("button",{class:"btn btn-sm btn-outline-primary mb-0 ms-1",type:"button","data-test":`retry-storage-work-${n.workItemId}`,disabled:!n.retryable||S.value!==null,onClick:u=>K("retry",n)}," Neu platzieren ",8,ct)])):o("",!0)]))),128)),s.value.storageBalancing.workItems.length?o("",!0):(r(),i("tr",gt,[e("td",{colspan:s.value.effectivePermissions.centerScopeGlobalAdmin?5:4,class:"text-center text-muted py-3"}," Keine Ausgleichsaufträge vorhanden. ",8,vt)]))])])])])])):o("",!0),e("section",mt,[e("div",bt,[t[34]||(t[34]=e("div",null,[e("h2",null,"Effektive Berechtigungen"),e("p",null,"Nur-Lese-Ansicht der synchronisierten Rollen und lokalen Center-Zuordnungen.")],-1)),e("span",pt,l(s.value.effectivePermissions.username),1)]),e("dl",ft,[e("div",null,[t[35]||(t[35]=e("dt",null,"Center",-1)),e("dd",null,l(s.value.effectivePermissions.centers.map(n=>n.displayName).join(", ")||"nicht zugeordnet"),1)]),e("div",null,[t[36]||(t[36]=e("dt",null,"Center-Administration",-1)),e("dd",null,l(s.value.effectivePermissions.centerScopeAdmin?"erlaubt":"nicht erlaubt"),1)]),t[37]||(t[37]=e("div",null,[e("dt",null,"Keycloak-Rollen ändern"),e("dd",null,"nicht unterstützt")],-1))]),e("div",ht,[(r(!0),i(c,null,m(s.value.effectivePermissions.roles,n=>(r(),i("span",{key:n,class:"role-chip"},l(n),1))),128)),s.value.effectivePermissions.roles.length?o("",!0):(r(),i("span",yt,"Keine Rollen synchronisiert"))]),e("div",kt,[t[38]||(t[38]=p(" Keycloak-Gruppen sind die maßgebliche Quelle. Lokale Änderungen gelten sofort, können aber bei der nächsten Anmeldung durch ",-1)),t[39]||(t[39]=e("code",null,"/centers/<center_key>",-1)),t[40]||(t[40]=p("-Gruppen ersetzt werden. Globale Keycloak-Administration erfordert ",-1)),e("code",null,l(s.value.effectivePermissions.centerScopeRoles.global),1),t[41]||(t[41]=p(". Weisen Sie diese Rolle als Realm-Rolle direkt in Keycloak zu; diese Anwendung verändert keine Keycloak-Rollen. ",-1))])]),e("section",_t,[t[44]||(t[44]=e("div",{class:"section-heading"},[e("div",null,[e("h2",null,"Transfer-Monitoring"),e("p",null," Letzte Aufträge mit Korrelations- und Cleanup-Status; keine Schlüssel oder Rohmediendaten. ")])],-1)),e("div",St,[e("table",Ct,[t[43]||(t[43]=e("thead",null,[e("tr",null,[e("th",null,"Status"),e("th",null,"Korrelation"),e("th",null,"Typ"),e("th",null,"Ziel"),e("th",null,"Center"),e("th",null,"Versuche"),e("th",null,"Cleanup"),e("th",null,"Aktualisiert"),e("th",null,"Hinweis")])],-1)),e("tbody",null,[(r(!0),i(c,null,m(s.value.transferMonitoring.recentAttentionJobs,n=>(r(),i("tr",{key:n.id},[e("td",null,[e("span",{class:g(["badge",Q(n.localStatus)])},l(O(n.localStatus)),3)]),e("td",wt,[e("code",null,l(n.id),1),e("small",null,"Transfer: "+l(n.transferKey),1),n.remoteTransferId?(r(),i("small",At,"Remote: "+l(n.remoteTransferId),1)):o("",!0)]),e("td",null,l(n.resourceKind==="video"?"Video":"Bericht"),1),e("td",null,l(n.targetNodeKey),1),e("td",null,l(n.sourceCenterKey||"—"),1),e("td",null,l(n.retryCount),1),e("td",null,[e("span",{class:g(["badge",X(n.localCleanupStatus)])},l(J(n.localCleanupStatus)),3)]),e("td",null,l(W(n.updatedAt)),1),e("td",Kt,l(n.lastError||"—"),1)]))),128)),s.value.transferMonitoring.recentAttentionJobs.length?o("",!0):(r(),i("tr",Bt,[...t[42]||(t[42]=[e("td",{colspan:"9",class:"text-center text-muted py-4"}," Noch keine Transferaufträge vorhanden. ",-1)])]))])])])]),s.value.effectivePermissions.centerScopeAdmin?(r(),i("section",xt,[t[51]||(t[51]=e("div",{class:"section-heading"},[e("div",null,[e("h2",null,"Center-Zugriffsverwaltung"),e("p",null," Änderungen gelten für zukünftige geschützte Anfragen und werden dauerhaft auditiert. ")])],-1)),_.value?(r(),i("div",Pt,l(_.value),1)):o("",!0),e("div",Rt,[e("table",It,[t[45]||(t[45]=e("thead",null,[e("tr",null,[e("th",null,"Benutzer"),e("th",null,"Status"),e("th",null,"Center"),e("th",null,"Rollen (nur Lesen)"),e("th",null,"Aktion")])],-1)),e("tbody",null,[(r(!0),i(c,null,m(D.value,n=>(r(),i("tr",{key:n.id},[e("td",null,l(n.username),1),e("td",null,[e("span",{class:g(["badge",j(n.assignmentStatus)])},l(Y(n.assignmentStatus)),3)]),e("td",null,[(r(!0),i(c,null,m(n.centers,u=>(r(),i("span",{key:u.centerKey,class:"role-chip role-chip-small"},l(u.displayName),1))),128)),n.centers.length?o("",!0):(r(),i("span",zt,"—"))]),e("td",null,[(r(!0),i(c,null,m(n.roles,u=>(r(),i("span",{key:u,class:"role-chip role-chip-small"},l(u),1))),128))]),e("td",null,[n.canMutate?(r(),i(c,{key:1},[M(n).length?(r(),i("button",{key:0,class:"btn btn-sm btn-outline-primary mb-0",type:"button",onClick:u=>H(n,"assign")}," Zuordnen ",8,Tt)):o("",!0),(r(!0),i(c,null,m(n.centers,u=>(r(),i("button",{key:`revoke-${u.centerKey}`,class:"btn btn-sm btn-outline-danger mb-0",type:"button",onClick:V=>H(n,"revoke",u.centerKey)},l(u.displayName)+" entziehen ",9,$t))),128))],64)):(r(),i("span",Nt,"Eigenes Konto"))])]))),128))])])]),e("div",Dt,[e("small",Et,l(P.value)+" Benutzer · Seite "+l(f.value),1),e("div",Mt,[e("button",{class:"btn btn-sm btn-outline-secondary mb-0",type:"button",disabled:f.value<=1,onClick:t[3]||(t[3]=n=>E(f.value-1))}," Zurück ",8,Ht),e("button",{class:"btn btn-sm btn-outline-secondary mb-0",type:"button",disabled:f.value*25>=P.value,onClick:t[4]||(t[4]=n=>E(f.value+1))}," Weiter ",8,Lt)])]),b.value?(r(),i("form",{key:1,class:"change-panel",onSubmit:ce(q,["prevent"])},[e("h3",null,l(b.value.operation==="assign"?"Center zuordnen":"Center-Zugriff entziehen"),1),e("p",null,[t[46]||(t[46]=p(" Benutzer: ",-1)),e("strong",null,l(b.value.user.username),1)]),b.value.operation==="revoke"?(r(),i("p",Ut,[t[47]||(t[47]=p(" Center: ",-1)),e("strong",null,l(y.value),1)])):o("",!0),b.value.operation==="assign"?(r(),i("label",Wt,[t[49]||(t[49]=p(" Center ",-1)),Z(e("select",{"onUpdate:modelValue":t[5]||(t[5]=n=>y.value=n),class:"form-select mt-1",required:""},[t[48]||(t[48]=e("option",{value:"",disabled:""},"Center auswählen",-1)),(r(!0),i(c,null,m(x.value,n=>(r(),i("option",{key:n.centerKey,value:n.centerKey},l(n.displayName)+" · "+l(n.centerKey),9,Vt))),128))],512),[[ge,y.value]])])):o("",!0),e("label",Zt,[t[50]||(t[50]=p(" Begründung ",-1)),Z(e("textarea",{"onUpdate:modelValue":t[6]||(t[6]=n=>h.value=n),class:"form-control mt-1",rows:"3",maxlength:"1000",required:""},null,512),[[ve,h.value,void 0,{trim:!0}]])]),e("div",Gt,[e("button",{class:"btn btn-primary mb-0",type:"submit",disabled:C.value||!h.value||b.value.operation==="assign"&&!y.value}," Bestätigen ",8,Ft),e("button",{class:"btn btn-outline-secondary mb-0",type:"button",disabled:C.value,onClick:L}," Abbrechen ",8,qt)])],32)):o("",!0)])):o("",!0)],64)):o("",!0)]))}}),Yt=be(Ot,[["__scopeId","data-v-63e6e86c"]]);export{Yt as default};
|
|
1
|
+
import{c as ae,v as se,o as re,g as i,h as e,t as l,j as o,F as c,N as ie,w as oe,u as ue,R as de,n as g,x as m,i as p,ae as ce,y as Z,z as ge,A as ve,r as d,l as $,al as me,f as r,_ as be}from"./main.js";import{f as w,a as pe,b as fe,u as he,c as ye,d as ke}from"./administrationApi.js";const _e={class:"admin-page container-fluid py-4 px-3 px-lg-4"},Se={class:"admin-hero"},Ce=["disabled"],we={key:0,class:"alert alert-danger mt-3",role:"alert"},Ae={class:"status-grid mt-4","aria-label":"Hub-Status"},Ke={class:"status-card"},Be={class:"status-card"},xe={class:"status-card"},Pe={class:"status-card"},Re={key:1,class:"admin-card mt-4","data-test":"host-status"},Ie={class:"section-heading"},ze={class:"badge bg-secondary"},Ne={class:"table-responsive"},Te={class:"table align-middle mb-0"},$e={class:"d-block text-muted"},De=["data-test"],Ee={key:0},Me={key:2,class:"admin-card mt-4","data-test":"storage-balancing"},He={class:"section-heading"},Le={key:0,class:"alert alert-warning",role:"status"},Ue={class:"storage-control-grid mb-3","data-test":"storage-planner-status"},We={key:1,class:"d-flex flex-wrap gap-2 mb-3","data-test":"storage-operator-controls"},Ve=["disabled"],Ze=["disabled"],Ge=["disabled"],Fe={class:"table-responsive"},qe={class:"table align-middle mb-0"},Oe={key:0},Qe={class:"d-block text-muted"},Je={class:"d-block text-muted"},Xe=["data-test"],Ye={key:0},je=["data-test","disabled","onClick"],et={key:0},tt=["colspan"],nt={class:"mt-4","data-test":"storage-balance-work"},lt={class:"table-responsive"},at={class:"table align-middle mb-0"},st={key:0},rt={class:"d-block text-muted"},it={key:0,class:"d-block text-muted"},ot={key:1,class:"d-block text-muted"},ut={key:0},dt=["data-test","disabled","onClick"],ct=["data-test","disabled","onClick"],gt={key:0},vt=["colspan"],mt={class:"admin-card mt-4","data-test":"effective-permissions"},bt={class:"section-heading"},pt={class:"badge bg-secondary"},ft={class:"permission-grid"},ht={class:"role-list"},yt={key:0,class:"text-muted"},kt={class:"alert alert-info mt-3 mb-0",role:"status"},_t={class:"admin-card mt-4","data-test":"transfer-monitoring"},St={class:"table-responsive"},Ct={class:"table align-middle mb-0"},wt={class:"correlation-cell"},At={key:0},Kt={class:"error-cell"},Bt={key:0},xt={key:3,class:"admin-card mt-4","data-test":"center-scope-management"},Pt={key:0,class:"alert alert-warning"},Rt={class:"table-responsive"},It={class:"table align-middle"},zt={key:0},Nt={key:0,class:"text-muted small"},Tt=["onClick"],$t=["onClick"],Dt={class:"d-flex justify-content-between align-items-center mt-2"},Et={class:"text-muted"},Mt={class:"d-flex gap-2"},Ht=["disabled"],Lt=["disabled"],Ut={key:0},Wt={key:1,class:"form-label"},Vt=["value"],Zt={class:"form-label mt-3"},Gt={class:"d-flex gap-2 mt-3"},Ft=["disabled"],qt=["disabled"],Ot=ae({__name:"AdministrationPage",setup(Qt){function k(a,t){return me(a)?a.response?.data.detail||a.message||t:a instanceof Error&&a.message?a.message:t}const s=d(null),D=d([]),x=d([]),f=d(1),P=d(0),A=d(!1),C=d(!1),v=d(""),_=d(""),h=d(""),y=d(""),R=d(null),I=d(null),S=d(null),b=d(null);let z=null;async function N(){A.value=!0,v.value="";try{s.value=await w(),s.value.effectivePermissions.centerScopeAdmin&&await T()}catch(a){v.value=k(a,"Administration konnte nicht geladen werden.")}finally{A.value=!1}}async function T(a=f.value){_.value="";try{const t=await pe(a);D.value=t.users,x.value=t.centers,f.value=t.page,P.value=t.total}catch(t){_.value=k(t,"Center-Zugriffe konnten nicht geladen werden.")}}async function G(a){const t=a.isDraining?"resume":"drain",n=window.prompt(t==="drain"?"Begründung für das Entleeren dieses Storage-Knotens:":"Begründung für die Wiederaufnahme dieses Storage-Knotens:")?.trim();if(!(!n||!window.confirm(t==="drain"?`Storage-Knoten ${a.nodeKey} für neue Platzierungen sperren?`:`Storage-Knoten ${a.nodeKey} wieder für neue Platzierungen freigeben?`))){R.value=a.nodeKey,v.value="";try{await he({action:t,nodeKey:a.nodeKey,expectedIsDraining:a.isDraining,reason:n,idempotencyKey:crypto.randomUUID()}),s.value=await w()}catch(V){v.value=k(V,"Storage-Knotenstatus konnte nicht geändert werden.")}finally{R.value=null}}}async function F(a){if(!a.cancellable)return;const t=window.prompt("Begründung für das Stornieren dieses Ausgleichsauftrags:")?.trim();if(t&&window.confirm(`Ausgleichsauftrag ${a.workItemId} vor dem Kopieren stornieren?`)){I.value=a.workItemId,v.value="";try{await ye(a.workItemId,{reason:t,idempotencyKey:crypto.randomUUID()}),s.value=await w()}catch(n){v.value=k(n,"Ausgleichsauftrag konnte nicht sicher storniert werden.")}finally{I.value=null}}}async function K(a,t){const n=window.prompt(`Begründung für die Storage-Aktion „${a}“:`)?.trim();if(n&&window.confirm(`Storage-Aktion „${a}“ verbindlich anfordern?`)){S.value=a,v.value="";try{const u=await fe({action:a,reason:n,idempotencyKey:crypto.randomUUID(),...t?{workItemId:t.workItemId}:{}});s.value=await w(),u.dispatchQueued||(v.value="Storage-Aktion wurde dauerhaft gespeichert und wird nach Wiederherstellung der Queue automatisch zugestellt.")}catch(u){v.value=k(u,"Storage-Aktion konnte nicht sicher gespeichert werden.")}finally{S.value=null}}}async function E(a){await T(a)}function M(a){const t=new Set(a.centers.map(n=>n.centerKey));return x.value.filter(n=>!t.has(n.centerKey))}function H(a,t,n=""){b.value={user:a,operation:t},y.value=t==="assign"?M(a)[0]?.centerKey||"":n,h.value=""}function L(){b.value=null,h.value="",y.value=""}async function q(){const a=b.value;if(!a||!h.value)return;const t=a.operation==="assign"?"Center-Zuordnung verbindlich speichern?":"Center-Zugriff verbindlich entziehen?";if(window.confirm(t)){C.value=!0,_.value="";try{await ke(a.user.id,{operation:a.operation,centerKey:y.value,expectedCenterKeys:a.user.centers.map(n=>n.centerKey).sort(),reason:h.value}),L(),await T(),s.value=await w()}catch(n){_.value=k(n,"Center-Zuordnung konnte nicht geändert werden.")}finally{C.value=!1}}}const O=a=>({marked:"Markiert",queued:"Wartend",registering:"Registrierung",awaiting_media:"Wartet auf Medium",uploading:"Upload",completed:"Abgeschlossen",failed:"Fehlgeschlagen"})[a]||a,Q=a=>a==="failed"?"bg-danger":a==="completed"?"bg-success":"bg-warning text-dark",J=a=>({not_applicable:"Nicht vorgesehen",retained:"Aufbewahrt",eligible:"Freigegeben",cleaned:"Bereinigt"})[a]||a,X=a=>a==="cleaned"?"bg-success":a==="eligible"?"bg-warning text-dark":"bg-secondary",Y=a=>({assigned:"Zugeordnet",unassigned:"Nicht zugeordnet",incomplete:"Unvollständig"})[a],j=a=>a==="assigned"?"bg-success":a==="unassigned"?"bg-warning text-dark":"bg-danger",ee=$(()=>{const a=s.value?.storageBalancing.topologyState;return{unavailable:"Vertrag nicht verfügbar",not_configured:"Nicht konfiguriert",single_node_non_redundant:"Einzelknoten · nicht redundant",multi_node_control_plane_only:"Mehrere Knoten · nur Steuerung",multi_node_operational:"Mehrere Knoten · aktiv"}[a||"unavailable"]||a}),te=$(()=>s.value?.storageBalancing.dataPlaneOperational?"bg-success":"bg-warning text-dark"),ne=$(()=>{const a=s.value?.storageBalancing.planner;return!a||a.status==="contract_unavailable"?"Vertrag nicht verfügbar":a.compatible?a.queueExecutionEnabled?"Planung und Ausführung aktiv":"Nur Planung · keine Ausführung":"Vertrag inkompatibel"}),U=a=>{const t=Object.entries(a);return t.length?t.map(([n,u])=>`${n}: ${String(u)}`).join(" · "):"keine Einträge"},B=a=>new Intl.NumberFormat("de-DE",{style:"unit",unit:"megabyte",maximumFractionDigits:1}).format(a/1e6),le=a=>a<60?`${String(a)} s`:a<3600?`${String(Math.floor(a/60))} min`:`${String(Math.floor(a/3600))} h`,W=a=>new Intl.DateTimeFormat("de-DE",{dateStyle:"short",timeStyle:"short"}).format(new Date(a));return se(()=>{N(),z=window.setInterval(()=>{C.value||N()},3e4)}),re(()=>{z!==null&&window.clearInterval(z)}),(a,t)=>(r(),i("div",_e,[e("header",Se,[t[7]||(t[7]=e("div",null,[e("p",{class:"eyebrow"},"Betrieb und Zugriff"),e("h1",null,"Administration"),e("p",{class:"intro"}," Überwachen Sie den sicheren Hub-Transfer und verwalten Sie lokale Center-Zuordnungen. Technische Rollen werden hier ausschließlich angezeigt. ")],-1)),e("button",{class:"btn btn-outline-light",type:"button",disabled:A.value,onClick:N},l(A.value?"Aktualisiere …":"Aktualisieren"),9,Ce)]),v.value?(r(),i("div",we,l(v.value),1)):o("",!0),s.value?(r(),i(c,{key:1},[s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),ie(ue(de),{key:0,to:"/administration/monitoring",class:"btn btn-outline-primary mt-4"},{default:oe(()=>[...t[8]||(t[8]=[p("Application monitoring",-1)])]),_:1})):o("",!0),e("section",Ae,[e("article",Ke,[t[9]||(t[9]=e("span",{class:"status-label"},"Hub-Konfiguration",-1)),e("strong",{class:g(s.value.hubHealth.ready?"text-success":"text-danger")},l(s.value.hubHealth.ready?"Betriebsbereit":"Nicht bereit"),3),e("small",null,"Quellknoten: "+l(s.value.hubHealth.sourceNodeKey||"nicht konfiguriert"),1)]),e("article",Be,[t[10]||(t[10]=e("span",{class:"status-label"},"Transport",-1)),e("strong",{class:g(s.value.hubHealth.transport.ready?"text-success":"text-danger")},l(s.value.hubHealth.transport.requireMtls?"mTLS erforderlich":"TLS"),3),e("small",null,"Transportmaterial: "+l(s.value.hubHealth.transport.ready?"bereit":"nicht bereit"),1)]),e("article",xe,[t[11]||(t[11]=e("span",{class:"status-label"},"Transferaufträge",-1)),e("strong",null,l(s.value.transferMonitoring.total),1),e("small",null,l(s.value.transferMonitoring.counts.failed||0)+" fehlgeschlagen",1)]),e("article",Pe,[t[12]||(t[12]=e("span",{class:"status-label"},"Automatische Queue",-1)),e("strong",null,l(s.value.hubHealth.autoQueueEnabled?"Aktiv":"Inaktiv"),1),e("small",null,l(s.value.hubHealth.exactlyOneActiveHub?"Ein aktiver Hub":"Hub-Auswahl uneindeutig"),1)])]),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("section",Re,[e("div",Ie,[t[13]||(t[13]=e("div",null,[e("h2",null,"Host-Status"),e("p",null," Alle registrierten Netzwerk-Knoten. Der Status zeigt die lokale Aktivierung und Konfiguration; es wird kein Remote-Liveness-Probe ausgelöst. ")],-1)),e("span",ze,l(s.value.hostStatus.active)+" / "+l(s.value.hostStatus.total)+" aktiv ",1)]),e("div",Ne,[e("table",Te,[t[15]||(t[15]=e("thead",null,[e("tr",null,[e("th",null,"Host"),e("th",null,"Rolle"),e("th",null,"Center"),e("th",null,"Status"),e("th",null,"Verbindung"),e("th",null,"Aktualisiert")])],-1)),e("tbody",null,[(r(!0),i(c,null,m(s.value.hostStatus.hosts,n=>(r(),i("tr",{key:n.nodeKey},[e("td",null,[e("strong",null,l(n.displayName),1),e("small",$e,l(n.nodeKey),1)]),e("td",null,l(n.roleLabel),1),e("td",null,l(n.owningCenterName||n.owningCenterKey||"—"),1),e("td",null,[e("span",{class:g(["badge",n.active?"bg-success":"bg-secondary"]),"data-test":`host-status-${n.nodeKey}`},l(n.active?"Aktiv":"Inaktiv"),11,De)]),e("td",null,l(n.httpsConfigured?"HTTPS konfiguriert":n.baseUrlConfigured?"ohne HTTPS":"keine URL"),1),e("td",null,l(W(n.updatedAt)),1)]))),128)),s.value.hostStatus.hosts.length?o("",!0):(r(),i("tr",Ee,[...t[14]||(t[14]=[e("td",{colspan:"6",class:"text-center text-muted py-4"}," Keine Netzwerk-Knoten registriert. ",-1)])]))])])])])):o("",!0),s.value.effectivePermissions.storageMonitorRead?(r(),i("section",Me,[e("div",He,[t[16]||(t[16]=e("div",null,[e("h2",null,"Storage-Knoten"),e("p",null," Persistierte Kapazität und Platzierungssteuerung des Hubs. Die Datenebene wird separat bereitgestellt und hier niemals stillschweigend vorausgesetzt. ")],-1)),e("span",{class:g(["badge",te.value])},l(ee.value),3)]),s.value.storageBalancing.blockedReason?(r(),i("div",Le,l(s.value.storageBalancing.blockedReason),1)):o("",!0),e("div",Ue,[e("div",null,[t[17]||(t[17]=e("span",{class:"status-label"},"Platzierungsplaner",-1)),e("strong",{class:g(s.value.storageBalancing.planner.compatible?"text-warning":"text-danger")},l(ne.value),3),e("small",null," Vertrag: "+l(s.value.storageBalancing.planner.contractVersion??"nicht veröffentlicht")+" / erwartet "+l(s.value.storageBalancing.planner.expectedContractVersion),1)]),e("div",null,[t[18]||(t[18]=e("span",{class:"status-label"},"Reservierungen",-1)),e("strong",null,l(s.value.storageBalancing.activeReservationCount),1),e("small",null,l(U(s.value.storageBalancing.reservationCounts)),1)]),e("div",null,[t[19]||(t[19]=e("span",{class:"status-label"},"Rotationsqueue",-1)),e("strong",null,l(s.value.storageBalancing.queuedRotationCount),1),e("small",null,l(U(s.value.storageBalancing.rotationCounts)),1)]),e("div",null,[t[20]||(t[20]=e("span",{class:"status-label"},"Queue-Ausführung",-1)),e("strong",{class:g(s.value.storageBalancing.planner.queueExecutionEnabled?"text-success":"text-danger")},l(s.value.storageBalancing.planner.queueExecutionEnabled?"Aktiv":"Deaktiviert"),3),e("small",null," Fehler: "+l(s.value.storageBalancing.failedTransferCount)+", überfällige Reservierungen: "+l(s.value.storageBalancing.overdueReservationCount)+", auslaufende Schlüsselobjekte: "+l(s.value.storageBalancing.retiredTransferCount),1)]),e("div",null,[t[21]||(t[21]=e("span",{class:"status-label"},"Reconciliation",-1)),e("strong",{class:g(s.value.storageBalancing.reconciliationCriticalCount?"text-danger":"text-muted")},l(s.value.storageBalancing.reconciliationCriticalCount)+" kritisch · "+l(s.value.storageBalancing.reconciliationWarningCount)+" Warnungen ",3),e("small",null,l(s.value.storageBalancing.reconciliationRunCount)+" Läufe · "+l(s.value.storageBalancing.lastReconciliationAt??"noch nicht ausgeführt"),1)])]),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("div",We,[e("button",{class:"btn btn-sm btn-outline-warning mb-0",type:"button",disabled:S.value!==null,onClick:t[0]||(t[0]=n=>K(s.value.storageBalancing.planner.operatorPaused?"resume":"pause"))},l(s.value.storageBalancing.planner.operatorPaused?"Balancing fortsetzen":"Balancing pausieren"),9,Ve),e("button",{class:"btn btn-sm btn-outline-secondary mb-0",type:"button",disabled:S.value!==null,onClick:t[1]||(t[1]=n=>K("reconcile"))}," Reconciliation anfordern ",8,Ze),e("button",{class:"btn btn-sm btn-outline-primary mb-0",type:"button",disabled:S.value!==null||s.value.storageBalancing.planner.operatorPaused,onClick:t[2]||(t[2]=n=>K("rebalance"))}," Rebalance anfordern ",8,Ge)])):o("",!0),e("div",Fe,[e("table",qe,[e("thead",null,[e("tr",null,[t[22]||(t[22]=e("th",null,"Knoten",-1)),t[23]||(t[23]=e("th",null,"Status",-1)),t[24]||(t[24]=e("th",null,"Nutzbar",-1)),t[25]||(t[25]=e("th",null,"Reserviert / in Arbeit",-1)),t[26]||(t[26]=e("th",null,"Belegt",-1)),t[27]||(t[27]=e("th",null,"Messalter",-1)),t[28]||(t[28]=e("th",null,"Platzierungen",-1)),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("th",Oe,"Aktion")):o("",!0)])]),e("tbody",null,[(r(!0),i(c,null,m(s.value.storageBalancing.nodes,n=>(r(),i("tr",{key:n.nodeKey},[e("td",null,[e("strong",null,l(n.displayName),1),e("small",Qe,l(n.nodeKey),1),e("small",Je,l(n.failureDomain)+" · "+l(n.residencyKey),1)]),e("td",null,[e("span",{"data-test":`storage-node-status-${n.nodeKey}`,class:g(["badge",n.active?n.isReachable?n.acceptingWrites?n.isDraining?"bg-warning text-dark":"bg-success":"bg-info text-dark":"bg-danger":"bg-secondary"])},l(n.active?n.isReachable?n.acceptingWrites?n.isDraining?"Wird entleert":"Aktiv":"Schreibgeschützt":"Nicht erreichbar":"Inaktiv"),11,Xe)]),e("td",null,l(B(n.availableBytes)),1),e("td",null,l(B(n.reservedBytes+n.inFlightBytes)),1),e("td",null,l(B(n.committedBytes)),1),e("td",null,l(le(n.healthFreshnessSeconds)),1),e("td",null,l(n.currentPlacementCount),1),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("td",Ye,[e("button",{class:g(["btn btn-sm mb-0",n.isDraining?"btn-outline-success":"btn-outline-warning"]),"data-test":`storage-node-action-${n.nodeKey}`,type:"button",disabled:R.value===n.nodeKey,onClick:u=>G(n)},l(n.isDraining?"Wieder aufnehmen":"Entleeren"),11,je)])):o("",!0)]))),128)),s.value.storageBalancing.nodes.length?o("",!0):(r(),i("tr",et,[e("td",{colspan:s.value.effectivePermissions.centerScopeGlobalAdmin?8:7,class:"text-center text-muted py-4"}," Keine Storage-Knoten konfiguriert. ",8,tt)]))])])]),e("div",nt,[t[33]||(t[33]=e("h3",null,"Ausgleichsaufträge",-1)),e("div",lt,[e("table",at,[e("thead",null,[e("tr",null,[t[29]||(t[29]=e("th",null,"Artefakt",-1)),t[30]||(t[30]=e("th",null,"Pfad",-1)),t[31]||(t[31]=e("th",null,"Status",-1)),t[32]||(t[32]=e("th",null,"Größe",-1)),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("th",st,"Aktion")):o("",!0)])]),e("tbody",null,[(r(!0),i(c,null,m(s.value.storageBalancing.workItems,n=>(r(),i("tr",{key:n.workItemId},[e("td",null,[e("strong",null,l(n.artifactKey),1),e("small",rt,l(n.artifactKind)+" · "+l(n.reason),1)]),e("td",null,l(n.sourceNodeKey)+" → "+l(n.targetNodeKey??"kein Ziel"),1),e("td",null,[p(l(n.rotationState??n.status)+" ",1),n.cancellationReceiptId?(r(),i("small",it," storniert · "+l(n.cancellationReceiptId),1)):n.terminalReason?(r(),i("small",ot,l(n.terminalReason),1)):o("",!0)]),e("td",null,l(B(n.expectedSizeBytes)),1),s.value.effectivePermissions.centerScopeGlobalAdmin?(r(),i("td",ut,[e("button",{class:"btn btn-sm btn-outline-danger mb-0",type:"button","data-test":`cancel-storage-work-${n.workItemId}`,disabled:!n.cancellable||I.value===n.workItemId,onClick:u=>F(n)}," Stornieren ",8,dt),e("button",{class:"btn btn-sm btn-outline-primary mb-0 ms-1",type:"button","data-test":`retry-storage-work-${n.workItemId}`,disabled:!n.retryable||S.value!==null,onClick:u=>K("retry",n)}," Neu platzieren ",8,ct)])):o("",!0)]))),128)),s.value.storageBalancing.workItems.length?o("",!0):(r(),i("tr",gt,[e("td",{colspan:s.value.effectivePermissions.centerScopeGlobalAdmin?5:4,class:"text-center text-muted py-3"}," Keine Ausgleichsaufträge vorhanden. ",8,vt)]))])])])])])):o("",!0),e("section",mt,[e("div",bt,[t[34]||(t[34]=e("div",null,[e("h2",null,"Effektive Berechtigungen"),e("p",null,"Nur-Lese-Ansicht der synchronisierten Rollen und lokalen Center-Zuordnungen.")],-1)),e("span",pt,l(s.value.effectivePermissions.username),1)]),e("dl",ft,[e("div",null,[t[35]||(t[35]=e("dt",null,"Center",-1)),e("dd",null,l(s.value.effectivePermissions.centers.map(n=>n.displayName).join(", ")||"nicht zugeordnet"),1)]),e("div",null,[t[36]||(t[36]=e("dt",null,"Center-Administration",-1)),e("dd",null,l(s.value.effectivePermissions.centerScopeAdmin?"erlaubt":"nicht erlaubt"),1)]),t[37]||(t[37]=e("div",null,[e("dt",null,"Keycloak-Rollen ändern"),e("dd",null,"nicht unterstützt")],-1))]),e("div",ht,[(r(!0),i(c,null,m(s.value.effectivePermissions.roles,n=>(r(),i("span",{key:n,class:"role-chip"},l(n),1))),128)),s.value.effectivePermissions.roles.length?o("",!0):(r(),i("span",yt,"Keine Rollen synchronisiert"))]),e("div",kt,[t[38]||(t[38]=p(" Keycloak-Gruppen sind die maßgebliche Quelle. Lokale Änderungen gelten sofort, können aber bei der nächsten Anmeldung durch ",-1)),t[39]||(t[39]=e("code",null,"/centers/<center_key>",-1)),t[40]||(t[40]=p("-Gruppen ersetzt werden. Globale Keycloak-Administration erfordert ",-1)),e("code",null,l(s.value.effectivePermissions.centerScopeRoles.global),1),t[41]||(t[41]=p(". Weisen Sie diese Rolle als Realm-Rolle direkt in Keycloak zu; diese Anwendung verändert keine Keycloak-Rollen. ",-1))])]),e("section",_t,[t[44]||(t[44]=e("div",{class:"section-heading"},[e("div",null,[e("h2",null,"Transfer-Monitoring"),e("p",null," Letzte Aufträge mit Korrelations- und Cleanup-Status; keine Schlüssel oder Rohmediendaten. ")])],-1)),e("div",St,[e("table",Ct,[t[43]||(t[43]=e("thead",null,[e("tr",null,[e("th",null,"Status"),e("th",null,"Korrelation"),e("th",null,"Typ"),e("th",null,"Ziel"),e("th",null,"Center"),e("th",null,"Versuche"),e("th",null,"Cleanup"),e("th",null,"Aktualisiert"),e("th",null,"Hinweis")])],-1)),e("tbody",null,[(r(!0),i(c,null,m(s.value.transferMonitoring.recentAttentionJobs,n=>(r(),i("tr",{key:n.id},[e("td",null,[e("span",{class:g(["badge",Q(n.localStatus)])},l(O(n.localStatus)),3)]),e("td",wt,[e("code",null,l(n.id),1),e("small",null,"Transfer: "+l(n.transferKey),1),n.remoteTransferId?(r(),i("small",At,"Remote: "+l(n.remoteTransferId),1)):o("",!0)]),e("td",null,l(n.resourceKind==="video"?"Video":"Bericht"),1),e("td",null,l(n.targetNodeKey),1),e("td",null,l(n.sourceCenterKey||"—"),1),e("td",null,l(n.retryCount),1),e("td",null,[e("span",{class:g(["badge",X(n.localCleanupStatus)])},l(J(n.localCleanupStatus)),3)]),e("td",null,l(W(n.updatedAt)),1),e("td",Kt,l(n.lastError||"—"),1)]))),128)),s.value.transferMonitoring.recentAttentionJobs.length?o("",!0):(r(),i("tr",Bt,[...t[42]||(t[42]=[e("td",{colspan:"9",class:"text-center text-muted py-4"}," Noch keine Transferaufträge vorhanden. ",-1)])]))])])])]),s.value.effectivePermissions.centerScopeAdmin?(r(),i("section",xt,[t[51]||(t[51]=e("div",{class:"section-heading"},[e("div",null,[e("h2",null,"Center-Zugriffsverwaltung"),e("p",null," Änderungen gelten für zukünftige geschützte Anfragen und werden dauerhaft auditiert. ")])],-1)),_.value?(r(),i("div",Pt,l(_.value),1)):o("",!0),e("div",Rt,[e("table",It,[t[45]||(t[45]=e("thead",null,[e("tr",null,[e("th",null,"Benutzer"),e("th",null,"Status"),e("th",null,"Center"),e("th",null,"Rollen (nur Lesen)"),e("th",null,"Aktion")])],-1)),e("tbody",null,[(r(!0),i(c,null,m(D.value,n=>(r(),i("tr",{key:n.id},[e("td",null,l(n.username),1),e("td",null,[e("span",{class:g(["badge",j(n.assignmentStatus)])},l(Y(n.assignmentStatus)),3)]),e("td",null,[(r(!0),i(c,null,m(n.centers,u=>(r(),i("span",{key:u.centerKey,class:"role-chip role-chip-small"},l(u.displayName),1))),128)),n.centers.length?o("",!0):(r(),i("span",zt,"—"))]),e("td",null,[(r(!0),i(c,null,m(n.roles,u=>(r(),i("span",{key:u,class:"role-chip role-chip-small"},l(u),1))),128))]),e("td",null,[n.canMutate?(r(),i(c,{key:1},[M(n).length?(r(),i("button",{key:0,class:"btn btn-sm btn-outline-primary mb-0",type:"button",onClick:u=>H(n,"assign")}," Zuordnen ",8,Tt)):o("",!0),(r(!0),i(c,null,m(n.centers,u=>(r(),i("button",{key:`revoke-${u.centerKey}`,class:"btn btn-sm btn-outline-danger mb-0",type:"button",onClick:V=>H(n,"revoke",u.centerKey)},l(u.displayName)+" entziehen ",9,$t))),128))],64)):(r(),i("span",Nt,"Eigenes Konto"))])]))),128))])])]),e("div",Dt,[e("small",Et,l(P.value)+" Benutzer · Seite "+l(f.value),1),e("div",Mt,[e("button",{class:"btn btn-sm btn-outline-secondary mb-0",type:"button",disabled:f.value<=1,onClick:t[3]||(t[3]=n=>E(f.value-1))}," Zurück ",8,Ht),e("button",{class:"btn btn-sm btn-outline-secondary mb-0",type:"button",disabled:f.value*25>=P.value,onClick:t[4]||(t[4]=n=>E(f.value+1))}," Weiter ",8,Lt)])]),b.value?(r(),i("form",{key:1,class:"change-panel",onSubmit:ce(q,["prevent"])},[e("h3",null,l(b.value.operation==="assign"?"Center zuordnen":"Center-Zugriff entziehen"),1),e("p",null,[t[46]||(t[46]=p(" Benutzer: ",-1)),e("strong",null,l(b.value.user.username),1)]),b.value.operation==="revoke"?(r(),i("p",Ut,[t[47]||(t[47]=p(" Center: ",-1)),e("strong",null,l(y.value),1)])):o("",!0),b.value.operation==="assign"?(r(),i("label",Wt,[t[49]||(t[49]=p(" Center ",-1)),Z(e("select",{"onUpdate:modelValue":t[5]||(t[5]=n=>y.value=n),class:"form-select mt-1",required:""},[t[48]||(t[48]=e("option",{value:"",disabled:""},"Center auswählen",-1)),(r(!0),i(c,null,m(x.value,n=>(r(),i("option",{key:n.centerKey,value:n.centerKey},l(n.displayName)+" · "+l(n.centerKey),9,Vt))),128))],512),[[ge,y.value]])])):o("",!0),e("label",Zt,[t[50]||(t[50]=p(" Begründung ",-1)),Z(e("textarea",{"onUpdate:modelValue":t[6]||(t[6]=n=>h.value=n),class:"form-control mt-1",rows:"3",maxlength:"1000",required:""},null,512),[[ve,h.value,void 0,{trim:!0}]])]),e("div",Gt,[e("button",{class:"btn btn-primary mb-0",type:"submit",disabled:C.value||!h.value||b.value.operation==="assign"&&!y.value}," Bestätigen ",8,Ft),e("button",{class:"btn btn-outline-secondary mb-0",type:"button",disabled:C.value,onClick:L}," Abbrechen ",8,qt)])],32)):o("",!0)])):o("",!0)],64)):o("",!0)]))}}),Yt=be(Ot,[["__scopeId","data-v-63e6e86c"]]);export{Yt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as ee,p as $,v as te,g as i,h as e,t as l,y as C,z as V,F as f,x as h,a0 as ae,j as T,r as m,l as c,E as ne,f as o,n as le,a5 as U,_ as se}from"./main.js";import{f as ie,b as oe,a as ue,c as re}from"./aiDatasetApi.js";const de={class:"dataset-buckets-page container-fluid py-4 px-3 px-lg-4"},me={class:"page-heading"},ce={class:"heading-actions"},ve=["disabled"],ge=["disabled"],be={class:"controls-panel"},pe={class:"controls-grid"},fe={class:"field-group"},ke=["disabled"],ye=["value"],he={class:"field-group"},_e=["disabled"],Se=["value"],De={class:"field-group"},Fe=["disabled"],Be=["value"],Le={class:"check-row"},Ce={key:0,class:"alert alert-warning mb-0",role:"alert"},Ae={key:1,class:"alert alert-success mb-0",role:"status"},we={key:0,class:"loading-panel"},Ne={class:"summary-grid","aria-label":"Zusammenfassung der Datensatz-Frame-Buckets"},ze={class:"metric-tile","data-test":"summary-merged-frames"},Me={class:"metric-tile"},Ie={class:"metric-tile"},Ve={class:"metric-tile"},xe={class:"content-grid"},Ke={class:"distribution-panel"},Oe={class:"panel-heading"},Pe={class:"bucket-list","data-test":"target-buckets"},Ze={class:"bucket-label"},Ee={class:"bucket-meter","aria-hidden":"true"},$e={class:"distribution-panel"},Te={class:"panel-heading"},Ue={class:"scope-list"},Ge={class:"distribution-panel table-panel"},We={key:0,class:"empty-state"},je={key:1,class:"table-responsive"},Re={class:"bucket-table","data-test":"label-bucket-table"},qe={class:"label-name"},He={class:"inline-meter"},Je={key:2,class:"empty-state"},Qe=ee({__name:"AiDatasetBucketsPage",setup(Xe){const A=ne("ai-dataset-buckets"),w=m([]),_=m([]),r=m(""),p=m(""),g=m(""),S=m(!0),s=m(null),D=m(!0),k=m(!1),b=m(!1),v=m(""),F=m(""),G=c(()=>w.value.find(a=>String(a.id)===r.value)),W=c(()=>{const a=G.value;return a?`${a.label} (ID ${String(a.id)})`:"Kein Datensatz ausgewählt"}),x=c(()=>_.value.find(a=>String(a.id)===p.value)),N=c(()=>{if(x.value)return x.value.labels;const a=new Map;for(const t of _.value)for(const n of t.labels)a.set(n.id,n);return[...a.values()].sort((t,n)=>t.name.localeCompare(n.name))}),K=c(()=>{const a=new Map(s.value?.targetBuckets.map(t=>[t.bucket,t.frameCount])??[]);return["positive","negative","unknown"].map(t=>({bucket:t,frameCount:a.get(t)??0}))}),j=c(()=>Math.max(1,...K.value.map(a=>a.frameCount))),R=c(()=>s.value?.targetLabelName?`Ziel-Label: ${s.value.targetLabelName}`:"Wählen Sie ein Ziel-Label, um positive, negative und unbekannte Frames zu sehen.");function z(a){return new Map(a.map(t=>[t.labelId,t]))}const M=c(()=>{if(!s.value)return[];const a=z(s.value.annotationFrameBuckets),t=z(s.value.segmentFrameBuckets),n=z(s.value.mergedFrameBuckets),B=new Map(s.value.labelDistribution.map(d=>[d.labelId,d]));return[...new Set([...a.keys(),...t.keys(),...n.keys(),...B.keys()])].map(d=>{const y=n.get(d),Z=a.get(d),E=t.get(d),L=B.get(d);return{labelId:d,labelName:y?.labelName||Z?.labelName||E?.labelName||L?.labelName||`Label ${String(d)}`,mergedFrames:y?.frameCount??0,annotationFrames:Z?.frameCount??0,segmentFrames:E?.frameCount??0,framePositive:L?.framePositive??0,frameNegative:L?.frameNegative??0,segmentCount:L?.segmentCount??0}}).sort((d,y)=>y.mergedFrames-d.mergedFrames||d.labelName.localeCompare(y.labelName))}),q=c(()=>Math.max(1,...M.value.map(a=>a.mergedFrames)));async function H(){D.value=!0,v.value="";try{const[a,t]=await Promise.all([ie(),oe()]);if(w.value=a,_.value=t,!r.value){const n=a.find(B=>B.isActive)??a.at(0);r.value=n?String(n.id):""}}catch(a){A.error("options-load-failed",a),v.value="Die Datensatz- oder Label-Optionen konnten nicht geladen werden."}finally{D.value=!1}}async function I(){if(!r.value){s.value=null;return}k.value=!0,v.value="";try{s.value=await ue(r.value,{labelGroupId:p.value||null,targetLabelId:g.value||null,predictionSegmentsOnly:S.value})}catch(a){A.error("distribution-load-failed",a),s.value=null,v.value="Die Bucket-Verteilung konnte nicht geladen werden."}finally{k.value=!1}}async function J(){if(!(!r.value||b.value)){b.value=!0,v.value="",F.value="";try{const a=await re(r.value,{includeAllAnnotations:!0,includeFrameAnnotations:!1,includeVideoAnnotations:!0});await I(),F.value=`Nachtrag abgeschlossen. Der Datensatz enthält jetzt ${u(a.videoAnnotationCount)} annotierte Segmente.`}catch(a){A.error("segment-backfill-failed",a),v.value="Die annotierten Segmente konnten nicht zum Datensatz hinzugefügt werden."}finally{b.value=!1}}}function Q(a){return a==="positive"?"Positiv":a==="negative"?"Negativ":"Unbekannt"}function O(a){return a==="image"?"Bild":a==="video"?"Video":a}function X(a){return a==="image_multilabel_classification"?"Bild-Multilabel-Klassifikation":a==="video_segment_classification"?"Video-Segmentklassifikation":a}function P(a,t){const n=t>0?a/t:0;return`${String(Math.max(0,Math.min(100,n*100)))}%`}function u(a){return new Intl.NumberFormat("de-DE").format(a)}function Y(a){return new Intl.DateTimeFormat("de-DE",{dateStyle:"medium",timeStyle:"short"}).format(new Date(a))}return $(p,()=>{g.value&&!N.value.some(a=>String(a.id)===g.value)&&(g.value="")}),$([r,p,g,S],()=>{I()}),te(async()=>{await H()}),(a,t)=>(o(),i("div",de,[e("section",me,[t[4]||(t[4]=e("div",null,[e("p",{class:"section-kicker"},"KI-Datensatz"),e("h1",null,"Frame-Bucket-Verteilung"),e("p",{class:"heading-copy"}," Prüfen Sie die aktuellen Frame-Zahlen für datensatzbasierte Annotation und Trainingswarteschlangen. ")],-1)),e("div",ce,[e("button",{type:"button",class:"btn btn-outline-primary btn-sm",disabled:k.value||b.value||!r.value,"data-test":"backfill-segments",onClick:J},l(b.value?"Segmente werden hinzugefügt...":"Annotierte Segmente nachtragen"),9,ve),e("button",{type:"button",class:"btn btn-outline-secondary btn-sm",disabled:k.value||b.value||!r.value,"data-test":"reload-distribution",onClick:I}," Neu laden ",8,ge)])]),e("section",be,[e("div",pe,[e("label",fe,[t[6]||(t[6]=e("span",null,"KI-Datensatz",-1)),C(e("select",{"onUpdate:modelValue":t[0]||(t[0]=n=>r.value=n),class:"form-select","data-test":"dataset-select",disabled:D.value||b.value},[t[5]||(t[5]=e("option",{value:""},"Datensatz auswählen",-1)),(o(!0),i(f,null,h(w.value,n=>(o(),i("option",{key:n.id,value:String(n.id)},l(n.label)+" ("+l(O(n.datasetType))+") ",9,ye))),128))],8,ke),[[V,r.value]])]),e("label",he,[t[8]||(t[8]=e("span",null,"Label-Gruppe",-1)),C(e("select",{"onUpdate:modelValue":t[1]||(t[1]=n=>p.value=n),class:"form-select","data-test":"label-group-select",disabled:D.value},[t[7]||(t[7]=e("option",{value:""},"Alle Labels",-1)),(o(!0),i(f,null,h(_.value,n=>(o(),i("option",{key:n.id,value:String(n.id)},l(n.name)+" v"+l(n.version),9,Se))),128))],8,_e),[[V,p.value]])]),e("label",De,[t[10]||(t[10]=e("span",null,"Ziel-Label",-1)),C(e("select",{"onUpdate:modelValue":t[2]||(t[2]=n=>g.value=n),class:"form-select","data-test":"target-label-select",disabled:N.value.length===0},[t[9]||(t[9]=e("option",{value:""},"Keine Ziel-Buckets",-1)),(o(!0),i(f,null,h(N.value,n=>(o(),i("option",{key:n.id,value:String(n.id)},l(n.name),9,Be))),128))],8,Fe),[[V,g.value]])]),e("label",Le,[C(e("input",{"onUpdate:modelValue":t[3]||(t[3]=n=>S.value=n),class:"form-check-input",type:"checkbox","data-test":"prediction-segments-only"},null,512),[[ae,S.value]]),t[11]||(t[11]=e("span",null,"Nur KI-Segmente für Segment-Buckets",-1))])]),v.value?(o(),i("div",Ce,l(v.value),1)):T("",!0),F.value?(o(),i("div",Ae,l(F.value),1)):T("",!0)]),k.value?(o(),i("section",we,[...t[12]||(t[12]=[e("div",{class:"skeleton-line"},null,-1),e("div",{class:"skeleton-line skeleton-short"},null,-1),e("div",{class:"skeleton-line"},null,-1)])])):s.value?(o(),i(f,{key:1},[e("section",Ne,[e("div",ze,[t[13]||(t[13]=e("span",null,"Bucket-Frames",-1)),e("strong",null,l(u(s.value.summary.mergedFrameCount)),1)]),e("div",Me,[t[14]||(t[14]=e("span",null,"Annotations-Frames",-1)),e("strong",null,l(u(s.value.summary.annotationFrameCount)),1)]),e("div",Ie,[t[15]||(t[15]=e("span",null,"Segment-Frames",-1)),e("strong",null,l(u(s.value.summary.segmentFrameCount)),1)]),e("div",Ve,[t[16]||(t[16]=e("span",null,"Labels",-1)),e("strong",null,l(u(s.value.summary.labelCount)),1)])]),e("div",xe,[e("section",Ke,[e("div",Oe,[e("div",null,[t[17]||(t[17]=e("h2",null,"Ziel-Buckets",-1)),e("p",null,l(R.value),1)])]),e("div",Pe,[(o(!0),i(f,null,h(K.value,n=>(o(),i("div",{key:n.bucket,class:"bucket-row"},[e("div",Ze,[e("span",{class:le(["bucket-dot",`bucket-${n.bucket}`])},null,2),e("span",null,l(Q(n.bucket)),1)]),e("div",Ee,[e("span",{style:U({width:P(n.frameCount,j.value)})},null,4)]),e("strong",null,l(u(n.frameCount)),1)]))),128))])]),e("section",$e,[e("div",Te,[e("div",null,[t[18]||(t[18]=e("h2",null,"Datensatzumfang",-1)),e("p",null,l(W.value),1)])]),e("dl",Ue,[e("div",null,[t[19]||(t[19]=e("dt",null,"Typ",-1)),e("dd",null,l(O(s.value.datasetType)),1)]),e("div",null,[t[20]||(t[20]=e("dt",null,"Modell",-1)),e("dd",null,l(X(s.value.aiModelType)),1)]),e("div",null,[t[21]||(t[21]=e("dt",null,"Videos",-1)),e("dd",null,l(u(s.value.summary.videoCount)),1)]),e("div",null,[t[22]||(t[22]=e("dt",null,"Aktualisiert",-1)),e("dd",null,l(Y(s.value.updatedAt)),1)])])])]),e("section",Ge,[t[24]||(t[24]=e("div",{class:"panel-heading"},[e("div",null,[e("h2",null,"Frame-Buckets pro Label"),e("p",null," Eindeutige Frame-Zahlen aus positiven Annotationen, Segmentbereichen und deren Vereinigung. ")])],-1)),M.value.length===0?(o(),i("div",We," Keine Frame-Buckets für die aktuelle Auswahl vorhanden. ")):(o(),i("div",je,[e("table",Re,[t[23]||(t[23]=e("thead",null,[e("tr",null,[e("th",null,"Label"),e("th",null,"Kombinierte Frames"),e("th",null,"Annotations-Frames"),e("th",null,"Segment-Frames"),e("th",null,"Positive Einträge"),e("th",null,"Negative Einträge"),e("th",null,"Segmente")])],-1)),e("tbody",null,[(o(!0),i(f,null,h(M.value,n=>(o(),i("tr",{key:n.labelId},[e("td",null,[e("span",qe,l(n.labelName),1)]),e("td",null,[e("div",He,[e("span",{style:U({width:P(n.mergedFrames,q.value)})},null,4)]),e("strong",null,l(u(n.mergedFrames)),1)]),e("td",null,l(u(n.annotationFrames)),1),e("td",null,l(u(n.segmentFrames)),1),e("td",null,l(u(n.framePositive)),1),e("td",null,l(u(n.frameNegative)),1),e("td",null,l(u(n.segmentCount)),1)]))),128))])])]))])],64)):(o(),i("section",Je," Wählen Sie einen KI-Datensatz aus, um die aktuelle Bucket-Verteilung zu laden. "))]))}}),at=se(Qe,[["__scopeId","data-v-51669035"]]);export{at as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as te,v as ae,g as c,h as t,n as ne,t as s,ae as P,y as u,A as $,z as A,j as F,a0 as D,F as T,x as K,r as d,af as U,l as b,E as se,al as le,f as m,_ as oe}from"./main.js";import{f as R,b as ie,d as re,e as de,c as ue}from"./aiDatasetApi.js";const ce={class:"dataset-settings-page container-fluid py-4 px-3 px-lg-4"},me={class:"page-heading"},pe=["disabled"],ve={class:"settings-layout"},fe={class:"settings-panel"},be={class:"panel-heading"},ge={class:"create-dataset-grid"},ye={class:"field-group"},he=["disabled"],_e={class:"field-group"},ke=["disabled"],Ae=["disabled"],De={key:0,class:"alert alert-success mb-0 mt-3",role:"status"},Se={class:"attach-options-grid"},Me={class:"check-row"},we=["disabled"],ze={class:"check-row"},Fe=["disabled"],Ve=["disabled"],xe={key:1,class:"alert alert-success mb-0 mt-3",role:"status"},Ie={class:"settings-grid"},Te={class:"field-group"},Ue=["disabled"],Ce=["value"],Be={class:"field-group"},Ne=["disabled"],Oe=["value"],Ee={class:"field-group"},Le=["disabled"],Pe={class:"field-group"},$e=["disabled"],Ke={class:"field-group"},Re=["disabled"],je={class:"check-column"},He={class:"check-row"},Je=["disabled"],We={class:"check-row"},qe=["disabled"],Ze={class:"check-row"},Ge=["disabled"],Qe={key:2,class:"alert alert-warning mb-0 mt-3",role:"alert"},Xe={class:"actions-row"},Ye=["disabled"],et=["disabled"],tt={class:"settings-panel summary-panel"},at={class:"panel-heading"},nt={key:0,class:"status-chip status-chip-ready","data-test":"manifest-ready"},st={key:0,class:"empty-state"},lt={class:"summary-grid","data-test":"manifest-summary"},ot={class:"metric-tile"},it={class:"metric-tile"},rt={class:"metric-tile"},dt={class:"metric-tile"},ut={class:"format-list","data-test":"frame-format-summary"},ct={class:"manifest-json"},mt={"data-test":"lx-ai-core-manifest-json"},pt=te({__name:"AiDatasetSettingsPage",setup(vt){const S=se("ai-dataset-settings");function V(a){return le(a)?a.response?.data.errors||{}:{}}const x=d([]),C=d([]),p=d(""),M=d(!0),h=d(!1),_=d(!1),k=d(!1),i=d(""),g=d(""),y=d(""),w=d(null),o=d(null),I=d(""),v=U({name:"",datasetType:"image"}),f=U({includeFrameAnnotations:!0,includeVideoAnnotations:!0}),r=U({labelSetId:"",treatUnlabeledAsNegative:!1,includeFilePaths:!1,checkFrameFormat:!0,preprocessingStrategy:"preserve_dimensions_black_mask",recommendedModelInputStrategy:"crop_to_endoscope_roi",informationSourceNames:null}),l=b(()=>M.value||h.value||_.value||k.value),B=b(()=>v.name.trim().length>0&&!l.value),N=b(()=>!!p.value&&(f.includeFrameAnnotations||f.includeVideoAnnotations)&&!l.value),j=b(()=>M.value?"Optionen werden geladen":_.value?"Datensatz wird erstellt":k.value?"Annotationen werden hinzugefügt":h.value?"Vorschau wird erstellt":"Bereit"),H=b(()=>{const a=o.value?.summary.frameFormat.status;return a==="passed"?"Bestanden":a==="failed"?"Fehlgeschlagen":"Nicht geprüft"}),J=b(()=>{const a=o.value?.summary.frameFormat;if(!a||a.status==="not_checked")return"Nicht geprüft";const e=a.expectedWidth&&a.expectedHeight?`${String(a.expectedWidth)} x ${String(a.expectedHeight)}`:"Unbekannte Dimensionen";return`${a.expectedImageFormat||"Unbekanntes Format"} - ${e} - ${a.expectedMode||"Unbekannter Modus"}`}),W=b(()=>{const a=o.value?.summary.frameFormat.cropTemplatesByVideoUuid??{};return Object.values(a).filter(e=>Array.isArray(e)).length}),q=b(()=>o.value?JSON.stringify(o.value.lxAiCoreManifest,null,2):"");function O(a){return a==="crop_to_endoscope_roi"?"Endoskop-ROI zuschneiden":"Dimensionen mit schwarzer Maske beibehalten"}function Z(a){return a==="image"?"Bild":"Video"}function G(a){return a==="video"?"video_segment_classification":"image_multilabel_classification"}function Q(){const a=I.value.split(",").map(e=>e.trim()).filter(Boolean);return a.length?a:null}async function E(){M.value=!0,i.value="";try{const[a,e]=await Promise.all([R(),ie()]);if(x.value=a,C.value=e,!p.value){const n=a.find(z=>z.datasetType==="image"&&z.isActive)??a.find(z=>z.datasetType==="image")??a.at(0);p.value=n?String(n.id):""}}catch(a){S.error("options-load-failed",a),i.value="Datensatz-Optionen konnten nicht geladen werden."}finally{M.value=!1}}async function X(){if(B.value){_.value=!0,i.value="",g.value="",y.value="";try{const a=await de({name:v.name.trim(),datasetType:v.datasetType,aiModelType:G(v.datasetType),isActive:!0});x.value=await R(),p.value=String(a.id),v.name="",g.value=`Datensatz "${a.label}" wurde erstellt und ausgewählt.`,L()}catch(a){S.error("dataset-create-failed",a);const e=V(a);e.name?i.value="Bitte geben Sie einen gültigen Namen für den Datensatz ein.":e.datasetType?i.value="Bitte wählen Sie einen gültigen Datensatztyp aus.":e.aiModelType?i.value="Der Modelltyp passt nicht zum ausgewählten Datensatztyp.":i.value="Der Datensatz konnte nicht erstellt werden."}finally{_.value=!1}}}async function Y(){if(N.value){k.value=!0,i.value="",g.value="",y.value="",w.value=null,o.value=null;try{w.value=await ue(p.value,{includeAllAnnotations:!0,includeFrameAnnotations:f.includeFrameAnnotations,includeVideoAnnotations:f.includeVideoAnnotations}),y.value=`Datensatz enthält ${String(w.value.frameAnnotationCount)} Frame-Annotationen und ${String(w.value.videoAnnotationCount)} Video-Segmente.`}catch(a){S.error("annotations-attach-failed",a);const e=V(a);i.value=e.includeAllAnnotations||e.include_all_annotations||e.includeFrameAnnotations||e.include_frame_annotations||e.includeVideoAnnotations||e.include_video_annotations||"Die Annotationen konnten nicht hinzugefügt werden."}finally{k.value=!1}}}async function ee(){if(p.value){h.value=!0,i.value="",g.value="",y.value="",o.value=null;try{o.value=await re(p.value,{...r,labelSetId:r.labelSetId||null,informationSourceNames:Q()})}catch(a){S.error("manifest-build-failed",a);const e=V(a);i.value=e.manifest||e.labelSetId||e.preprocessingStrategy||e.recommendedModelInputStrategy||"Das Manifest konnte mit dieser Konfiguration nicht erstellt werden."}finally{h.value=!1}}}function L(){o.value=null,i.value=""}return ae(()=>{E()}),(a,e)=>(m(),c("div",ce,[t("section",me,[e[12]||(e[12]=t("div",null,[t("p",{class:"section-kicker"},"KI-Datensatz"),t("h1",null,"Training-Manifest"),t("p",{class:"heading-copy"}," Verwalten Sie Datensätze und prüfen Sie die Manifest-Konfiguration für das Modelltraining. ")],-1)),t("button",{type:"button",class:"btn btn-outline-secondary btn-sm",disabled:l.value,"data-test":"reload-options",onClick:E}," Neu laden ",8,pe)]),t("div",ve,[t("section",fe,[t("div",be,[e[13]||(e[13]=t("h2",null,"Datensatz",-1)),t("span",{class:ne(["status-chip",{"status-chip-busy":l.value}])},s(j.value),3)]),t("form",{class:"create-dataset-panel","data-test":"create-dataset-form",onSubmit:P(X,["prevent"])},[e[17]||(e[17]=t("div",null,[t("h3",null,"Neuen Datensatz erstellen"),t("p",null," Erstellt einen leeren Datensatz und wählt ihn direkt für die Manifest-Vorschau aus. ")],-1)),t("div",ge,[t("label",ye,[e[14]||(e[14]=t("span",null,"Name",-1)),u(t("input",{"onUpdate:modelValue":e[0]||(e[0]=n=>v.name=n),class:"form-control","data-test":"new-dataset-name-input",disabled:l.value,placeholder:"z. B. Koloskopie Training Mai 2026",maxlength:"255"},null,8,he),[[$,v.name]])]),t("label",_e,[e[16]||(e[16]=t("span",null,"Datensatztyp",-1)),u(t("select",{"onUpdate:modelValue":e[1]||(e[1]=n=>v.datasetType=n),class:"form-select","data-test":"new-dataset-type-select",disabled:l.value},[...e[15]||(e[15]=[t("option",{value:"image"},"Bilddatensatz",-1),t("option",{value:"video"},"Video-Segmentdatensatz",-1)])],8,ke),[[A,v.datasetType]])]),t("button",{type:"submit",class:"btn btn-outline-primary create-dataset-button","data-test":"create-dataset-button",disabled:!B.value},s(_.value?"Datensatz wird erstellt...":"Datensatz erstellen"),9,Ae)])],32),g.value?(m(),c("div",De,s(g.value),1)):F("",!0),t("form",{class:"attach-annotations-panel","data-test":"attach-annotations-form",onSubmit:P(Y,["prevent"])},[e[20]||(e[20]=t("div",null,[t("h3",null,"Bestehende Annotationen hinzufügen")],-1)),t("div",Se,[t("label",Me,[u(t("input",{"onUpdate:modelValue":e[2]||(e[2]=n=>f.includeFrameAnnotations=n),class:"form-check-input",type:"checkbox","data-test":"attach-frame-annotations-checkbox",disabled:l.value},null,8,we),[[D,f.includeFrameAnnotations]]),e[18]||(e[18]=t("span",null,"Frame-Annotationen",-1))]),t("label",ze,[u(t("input",{"onUpdate:modelValue":e[3]||(e[3]=n=>f.includeVideoAnnotations=n),class:"form-check-input",type:"checkbox","data-test":"attach-video-annotations-checkbox",disabled:l.value},null,8,Fe),[[D,f.includeVideoAnnotations]]),e[19]||(e[19]=t("span",null,"Video-Segmente",-1))]),t("button",{type:"submit",class:"btn btn-outline-primary attach-annotations-button","data-test":"attach-existing-annotations",disabled:!N.value},s(k.value?"Annotationen werden hinzugefügt...":"Annotationen hinzufügen"),9,Ve)])],32),y.value?(m(),c("div",xe,s(y.value),1)):F("",!0),t("div",Ie,[t("label",Te,[e[22]||(e[22]=t("span",null,"KI-Datensatz",-1)),u(t("select",{"onUpdate:modelValue":e[4]||(e[4]=n=>p.value=n),class:"form-select","data-test":"dataset-select",disabled:l.value},[e[21]||(e[21]=t("option",{value:""},"Datensatz auswählen",-1)),(m(!0),c(T,null,K(x.value,n=>(m(),c("option",{key:n.id,value:String(n.id)},s(n.label)+" - "+s(Z(n.datasetType))+" - ID "+s(n.id),9,Ce))),128))],8,Ue),[[A,p.value]])]),t("label",Be,[e[24]||(e[24]=t("span",null,"Label-Set",-1)),u(t("select",{"onUpdate:modelValue":e[5]||(e[5]=n=>r.labelSetId=n),class:"form-select","data-test":"label-set-select",disabled:l.value},[e[23]||(e[23]=t("option",{value:""},"Automatisch erkennen",-1)),(m(!0),c(T,null,K(C.value,n=>(m(),c("option",{key:n.id,value:String(n.id)},s(n.name)+" v"+s(n.version)+" - "+s(n.labelCount)+" Labels ",9,Oe))),128))],8,Ne),[[A,r.labelSetId]])]),t("label",Ee,[e[26]||(e[26]=t("span",null,"Aktuelle Vorverarbeitung",-1)),u(t("select",{"onUpdate:modelValue":e[6]||(e[6]=n=>r.preprocessingStrategy=n),class:"form-select","data-test":"preprocessing-strategy-select",disabled:l.value},[...e[25]||(e[25]=[t("option",{value:"preserve_dimensions_black_mask"}," Dimensionen mit schwarzer Maske beibehalten ",-1),t("option",{value:"crop_to_endoscope_roi"},"Endoskop-ROI zuschneiden",-1)])],8,Le),[[A,r.preprocessingStrategy]])]),t("label",Pe,[e[28]||(e[28]=t("span",null,"Modelleingabe",-1)),u(t("select",{"onUpdate:modelValue":e[7]||(e[7]=n=>r.recommendedModelInputStrategy=n),class:"form-select","data-test":"model-input-strategy-select",disabled:l.value},[...e[27]||(e[27]=[t("option",{value:"crop_to_endoscope_roi"},"Endoskop-ROI zuschneiden",-1),t("option",{value:"preserve_dimensions_black_mask"}," Dimensionen mit schwarzer Maske beibehalten ",-1)])],8,$e),[[A,r.recommendedModelInputStrategy]])]),t("label",Ke,[e[29]||(e[29]=t("span",null,"Informationsquellen",-1)),u(t("input",{"onUpdate:modelValue":e[8]||(e[8]=n=>I.value=n),class:"form-control","data-test":"information-source-input",disabled:l.value,placeholder:"manual_annotation, prediction"},null,8,Re),[[$,I.value]])]),t("div",je,[t("label",He,[u(t("input",{"onUpdate:modelValue":e[9]||(e[9]=n=>r.treatUnlabeledAsNegative=n),class:"form-check-input",type:"checkbox","data-test":"unknowns-negative-checkbox",disabled:l.value},null,8,Je),[[D,r.treatUnlabeledAsNegative]]),e[30]||(e[30]=t("span",null,"Unbekannte als negativ trainieren",-1))]),t("label",We,[u(t("input",{"onUpdate:modelValue":e[10]||(e[10]=n=>r.checkFrameFormat=n),class:"form-check-input",type:"checkbox","data-test":"check-frame-format-checkbox",disabled:l.value},null,8,qe),[[D,r.checkFrameFormat]]),e[31]||(e[31]=t("span",null,"Frame-Format prüfen",-1))]),t("label",Ze,[u(t("input",{"onUpdate:modelValue":e[11]||(e[11]=n=>r.includeFilePaths=n),class:"form-check-input",type:"checkbox","data-test":"include-file-paths-checkbox",disabled:l.value},null,8,Ge),[[D,r.includeFilePaths]]),e[32]||(e[32]=t("span",null,"Lokale Dateipfade einschließen",-1))])])]),i.value?(m(),c("div",Qe,s(i.value),1)):F("",!0),t("div",Xe,[t("button",{type:"button",class:"btn btn-primary","data-test":"build-training-manifest",disabled:l.value||!p.value,onClick:ee},s(h.value?"Manifest wird erstellt...":"Manifest-Vorschau erstellen"),9,Ye),t("button",{type:"button",class:"btn btn-outline-secondary",disabled:l.value,onClick:L}," Ergebnis zurücksetzen ",8,et)])]),t("section",tt,[t("div",at,[e[33]||(e[33]=t("h2",null,"Manifest-Zusammenfassung",-1)),o.value?(m(),c("span",nt,s(o.value.summary.sampleCount)+" Beispiele ",1)):F("",!0)]),o.value?(m(),c(T,{key:1},[t("div",lt,[t("div",ot,[e[34]||(e[34]=t("span",null,"Labels",-1)),t("strong",null,s(o.value.summary.labelCount),1)]),t("div",it,[e[35]||(e[35]=t("span",null,"Beispiele",-1)),t("strong",null,s(o.value.summary.sampleCount),1)]),t("div",rt,[e[36]||(e[36]=t("span",null,"Frame-Prüfung",-1)),t("strong",null,s(H.value),1)]),t("div",dt,[e[37]||(e[37]=t("span",null,"Crop-Vorlagen",-1)),t("strong",null,s(W.value),1)])]),t("dl",ut,[t("div",null,[e[38]||(e[38]=t("dt",null,"Format",-1)),t("dd",null,s(J.value),1)]),t("div",null,[e[39]||(e[39]=t("dt",null,"Vorverarbeitung",-1)),t("dd",null,s(O(o.value.summary.frameFormat.preprocessingStrategy)),1)]),t("div",null,[e[40]||(e[40]=t("dt",null,"Modelleingabe",-1)),t("dd",null,s(O(o.value.summary.frameFormat.recommendedModelInputStrategy)),1)])]),t("details",ct,[e[41]||(e[41]=t("summary",null,"lx-ai-core-Payload",-1)),t("pre",mt,s(q.value),1)])],64)):(m(),c("div",st," Noch keine Manifest-Vorschau vorhanden. "))])])]))}}),gt=oe(pt,[["__scopeId","data-v-b6aa96bd"]]);export{gt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.annotation-stats-overview[data-v-96284ebb]{padding:0}.player-card[data-v-96284ebb],.mission-card[data-v-96284ebb]{border:1px solid rgba(45,48,71,.1);box-shadow:0 12px 26px #131e3514;border-radius:12px}.player-kicker[data-v-96284ebb]{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#596780;font-weight:700}.player-title[data-v-96284ebb]{font-weight:700;color:#2d3047}.achievement-pill[data-v-96284ebb]{background:linear-gradient(135deg,#fff6d6,#ffe9a9);border:1px solid rgba(166,124,0,.25);color:#7a5a00;border-radius:999px;padding:.35rem .75rem;font-weight:700;font-size:.82rem}.achievement-badge[data-v-96284ebb]{border:1px solid rgba(45,48,71,.12);color:#344767;background:linear-gradient(180deg,#fff,#f4f7fc)!important}.mission-card[data-v-96284ebb]{background:linear-gradient(180deg,#fcfdff,#f6faff)}.mission-title[data-v-96284ebb]{font-size:1.03rem;font-weight:700;color:#344767}.bg-gradient-primary[data-v-96284ebb]{background:linear-gradient(135deg,#667eea,#764ba2)}.annotation-type-card[data-v-96284ebb]{cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;border:1px solid rgba(45,48,71,.08);box-shadow:0 10px 24px #131e350f}.annotation-type-card[data-v-96284ebb]:hover{transform:translateY(-2px);box-shadow:0 16px 32px #131e351f;border-color:#2d30472e}.stats-grid[data-v-96284ebb]{display:grid;grid-template-columns:1fr;gap:15px}.stat-item[data-v-96284ebb]{display:flex;align-items:center;padding:10px;border-radius:8px;background:#f8f9fa}.stat-item.pending[data-v-96284ebb]{border-left:4px solid #ffc107}.stat-item.in-progress[data-v-96284ebb]{border-left:4px solid #17a2b8}.stat-item.completed[data-v-96284ebb]{border-left:4px solid #28a745}.stat-icon[data-v-96284ebb]{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:12px;color:#fff;font-size:16px}.stat-item.pending .stat-icon[data-v-96284ebb]{background:#ffc107}.stat-item.in-progress .stat-icon[data-v-96284ebb]{background:#17a2b8}.stat-item.completed .stat-icon[data-v-96284ebb]{background:#28a745}.stat-info[data-v-96284ebb]{flex:1}.stat-number[data-v-96284ebb]{font-size:24px;font-weight:700;line-height:1}.stat-label[data-v-96284ebb]{font-size:12px;color:#6c757d;margin-top:2px}.overall-progress-title[data-v-96284ebb]{font-size:1.05rem;font-weight:700;color:#344767}.overall-completion-value[data-v-96284ebb]{color:#1f7a3f;font-size:2rem;font-weight:800;line-height:1}.overall-completion-label[data-v-96284ebb]{color:#596780;font-size:.82rem;font-weight:700;text-transform:uppercase}.overall-status-strip[data-v-96284ebb]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid rgba(45,48,71,.1);border-radius:8px;overflow:hidden}.overall-status-item[data-v-96284ebb]{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.45rem;min-width:0;padding:.75rem .85rem;background:#fff;border-right:1px solid rgba(45,48,71,.08)}.overall-status-item[data-v-96284ebb]:last-child{border-right:0}.overall-status-label[data-v-96284ebb]{min-width:0;color:#344767;font-size:.9rem;font-weight:700}.overall-status-item strong[data-v-96284ebb]{color:#2d3047;font-size:1.15rem;line-height:1}.overall-status-item small[data-v-96284ebb]{grid-column:2 / 4;color:#667085;font-weight:600}.overall-status-dot[data-v-96284ebb]{width:.65rem;height:.65rem;border-radius:50%}.overall-status-item.completed .overall-status-dot[data-v-96284ebb]{background:#28a745}.overall-status-item.in-progress .overall-status-dot[data-v-96284ebb]{background:#17a2b8}.overall-status-item.pending .overall-status-dot[data-v-96284ebb]{background:#ffc107}.overall-progress-meter[data-v-96284ebb]{height:14px;border-radius:999px;background:#e9eef5}.overall-empty-progress[data-v-96284ebb]{display:flex;align-items:center;min-height:36px;padding:0 .75rem;border-radius:8px;background:#f4f7fb;color:#667085;font-size:.88rem;font-weight:600}.overall-progress-note[data-v-96284ebb]{padding:.75rem .85rem;border-radius:8px;background:#f8fafc;color:#344767;font-size:.9rem;font-weight:600}.quick-action-item[data-v-96284ebb]{display:flex;align-items:center;padding:15px;border-radius:8px;background:linear-gradient(180deg,#f8fafc,#edf2f8);border:1px solid rgba(45,48,71,.08);cursor:pointer;transition:background-color .2s ease,box-shadow .2s ease,border-color .2s ease;margin-bottom:10px}.quick-action-item[data-v-96284ebb]:hover{background:linear-gradient(180deg,#fff,#edf2f8);box-shadow:0 10px 20px #131e351a;border-color:#2d304733}.action-icon[data-v-96284ebb]{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:15px;color:#fff;font-size:18px}.action-content h6[data-v-96284ebb]{margin:0;font-size:16px;font-weight:600}.mini-progress .progress[data-v-96284ebb]{border-radius:3px}.dashboard-loading-state[data-v-96284ebb]{border:1px solid rgba(45,48,71,.08);border-radius:12px;background:#fff;padding:1rem}.skeleton-title[data-v-96284ebb],.skeleton-card[data-v-96284ebb],.skeleton-row[data-v-96284ebb]{background:linear-gradient(90deg,#eef2f7,#e4ebf5,#eef2f7);background-size:200% 100%;animation:skeleton-shimmer-96284ebb 1.35s linear infinite;border-radius:10px}.skeleton-title[data-v-96284ebb]{height:28px;width:42%}.skeleton-card[data-v-96284ebb]{height:132px}.skeleton-row[data-v-96284ebb]{height:84px}@keyframes skeleton-shimmer-96284ebb{0%{background-position:200% 0}to{background-position:-200% 0}}@media(max-width:767.98px){.overall-status-strip[data-v-96284ebb]{grid-template-columns:1fr}.overall-status-item[data-v-96284ebb]{border-right:0;border-bottom:1px solid rgba(45,48,71,.08)}.overall-status-item[data-v-96284ebb]:last-child{border-bottom:0}.overall-completion[data-v-96284ebb]{text-align:left!important}}.annotation-dashboard[data-v-09689640]{--dashboard-border: rgba(45, 48, 71, .1)}.dashboard-hero[data-v-09689640]{background:radial-gradient(circle at top left,#4356ff29,#4356ff08 45%,#fffffff2 70%);border:1px solid var(--dashboard-border);border-radius:14px;padding:1rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.operational-state-grid[data-v-09689640]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.state-card[data-v-09689640]{min-width:0;padding:1rem;border:1px solid var(--dashboard-border);border-radius:12px;background:#fff;box-shadow:0 12px 24px #1a243b0f}.state-card-heading[data-v-09689640]{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem}.state-card h3[data-v-09689640]{margin:0;color:#2d3047;font-size:1rem}.state-kicker[data-v-09689640]{margin:0 0 .2rem;color:#63748a;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.state-link[data-v-09689640]{font-size:.78rem;font-weight:700;white-space:nowrap}.state-message[data-v-09689640]{color:#63748a}.state-metric[data-v-09689640]{display:flex;align-items:baseline;gap:.6rem;margin-bottom:.8rem}.state-metric strong[data-v-09689640]{color:#2d3047;font-size:1.8rem}.state-metric span[data-v-09689640],.hub-readiness>span[data-v-09689640]:last-child{color:#63748a;font-size:.8rem}.state-tags[data-v-09689640]{display:flex;flex-wrap:wrap;gap:.4rem;max-height:6.5rem;overflow-y:auto}.state-tag[data-v-09689640]{padding:.3rem .5rem;border-radius:999px;background:#eef2ff;color:#344767;font-size:.72rem}.state-tag-inactive[data-v-09689640]{background:#f2f3f5;color:#7b809a}.cohort-metrics[data-v-09689640]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.cohort-metrics div[data-v-09689640]{display:flex;flex-direction:column}.cohort-metrics strong[data-v-09689640]{color:#2d3047;font-size:1.25rem}.cohort-metrics span[data-v-09689640],.state-details dt[data-v-09689640]{color:#63748a;font-size:.72rem}.hub-readiness[data-v-09689640]{display:flex;align-items:center;gap:.6rem;margin-bottom:.8rem}.state-details div[data-v-09689640]{display:flex;justify-content:space-between;gap:.75rem;padding:.25rem 0}.state-details dd[data-v-09689640]{margin:0;color:#344767;font-size:.78rem;font-weight:600;overflow-wrap:anywhere}.dashboard-title[data-v-09689640]{font-size:1.35rem;font-weight:700;color:#2d3047}.dashboard-subtitle[data-v-09689640]{color:#63748a}.dashboard-card[data-v-09689640]{box-shadow:0 14px 28px #1a243b14;margin-bottom:20px;border-radius:12px;border:1px solid var(--dashboard-border);overflow:hidden}.dashboard-card-header[data-v-09689640]{background:linear-gradient(180deg,#fcfdff,#f6f9ff);border-bottom:1px solid var(--dashboard-border);padding:.9rem 1rem}.table[data-v-09689640]{margin-bottom:0}.dashboard-table th[data-v-09689640],.dashboard-table td[data-v-09689640]{vertical-align:middle;border-color:#2d304714}.dashboard-table th[data-v-09689640]{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#4f5e79;font-weight:700}.header-actions[data-v-09689640]{display:flex;gap:.5rem}.table-hover tbody tr[data-v-09689640]:hover{background-color:#f4f8ff}.badge[data-v-09689640]{font-size:.75rem}.btn-group-sm .btn[data-v-09689640]{padding:.25rem .5rem;font-size:.875rem}.table-loading-state[data-v-09689640]{display:inline-flex;align-items:center;justify-content:center;color:#4f5e79;font-weight:600;background:linear-gradient(90deg,#f0f4fb,#e7eef9,#f0f4fb);background-size:200% 100%;animation:loading-shimmer-09689640 1.4s linear infinite;padding:.7rem 1rem;border-radius:999px}@keyframes loading-shimmer-09689640{0%{background-position:200% 0}to{background-position:-200% 0}}@media(max-width:768px){.header-actions[data-v-09689640]{flex-direction:column;align-items:stretch}.dashboard-hero[data-v-09689640]{padding:.9rem 1rem;align-items:flex-start;flex-direction:column}.operational-state-grid[data-v-09689640]{grid-template-columns:1fr}.table-responsive[data-v-09689640]{font-size:.875rem}}
|