feat: Implement reference value types reordering and confidence level sorting
Deploy Development / deploy (push) Successful in 46s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 14s

- Added a new API endpoint for reordering reference value types based on user-defined order.
- Updated the AdminReferenceValueTypesPage to allow users to reorder types using up/down buttons.
- Introduced a consistent confidence level sorting mechanism across the application.
- Refactored related components to remove unused sort order fields and improve user experience.
This commit is contained in:
Lars committed 2026-04-06 21:40:55 +02:00
1 parent 45e4e64f15
commit 296e79c3b3
7 files changed
+149 -31

No files matched your search

+2 -1
View File
@@ -18,6 +18,7 @@ from auth import require_auth
from db import get_db, get_cursor, r2d
from reference_value_validation import (
REF_VALUE_CONFIDENCE,
REF_VALUE_CONFIDENCE_ORDER,
REF_VALUE_METHODS,
REF_VALUE_SOURCES,
validate_meta_confidence,
@@ -112,7 +113,7 @@ def list_reference_value_meta_enums(session: dict = Depends(require_auth)):
return {
"sources": sorted(REF_VALUE_SOURCES),
"methods": sorted(REF_VALUE_METHODS),
"confidence_levels": sorted(REF_VALUE_CONFIDENCE),
"confidence_levels": [x for x in REF_VALUE_CONFIDENCE_ORDER if x in REF_VALUE_CONFIDENCE],
}