Add displayField configuration to award definitions

Add configurable displayField to award definitions to control what
is shown in award details instead of always using the entity value.

## Award Definitions Updated
- DXCC: displayField = 'entity' (shows country name)
- DXCC CW: displayField = 'entity' (shows country name)
- WAS: displayField = 'state' (shows state name)
- VUCC: displayField = 'grid' (shows grid square)
- RS-44: displayField = 'callsign' (shows callsign)

## Backend Changes
- Preserve displayField when normalizing award rules
- Use displayField to determine entity name in details
- Fallback logic for awards without displayField
- Add satName to entity data for better display

This fixes VUCC showing grid squares instead of country names.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-16 09:12:07 +01:00
parent 3b7dfd74fe
commit 052f0d13bd
11 changed files with 28 additions and 5 deletions

View File

@@ -8,7 +8,8 @@
"baseRule": {
"type": "entity",
"entityType": "dxcc",
"target": 100
"target": 100,
"displayField": "entity"
},
"filters": {
"operator": "AND",

View File

@@ -6,6 +6,7 @@
"rules": {
"type": "entity",
"entityType": "dxcc",
"target": 100
"target": 100,
"displayField": "entity"
}
}

View File

@@ -7,6 +7,7 @@
"type": "counter",
"target": 44,
"countBy": "qso",
"displayField": "callsign",
"filters": {
"operator": "AND",
"filters": [

View File

@@ -7,6 +7,7 @@
"type": "entity",
"entityType": "grid",
"target": 100,
"displayField": "grid",
"filters": {
"operator": "AND",
"filters": [

View File

@@ -7,6 +7,7 @@
"type": "entity",
"entityType": "state",
"target": 50,
"displayField": "state",
"filters": {
"operator": "AND",
"filters": [