nojronatron / Bigfoot-Bib-Report-WL-Form

Customized Winlink Race Tracker Form and Template for use in Bigfoot ultramarathon events.
https://enchanting-pony-09ae40.netlify.app/bigfoot-bib-report-initial
The Unlicense
5 stars 1 forks source link

Save, Load Race Data in Human Readable JSON format #47

Closed nojronatron closed 1 month ago

nojronatron commented 3 months ago

Is your feature request related to a problem? Please describe.

Whenever I look at the output from Save Race Data button, I struggle to read and understand the data. Usually this isn't a problem because the data is stored for backup and for moving to a computer with Winlink Express installed and not looked at. But for instances where data verification is necessary (for whatever reason), reading through the current formatting is tedious (at best), and definitely time consuming.

I think this can be improved.

Describe the solution you'd like

When saving race data, the formatting should include newlines, and proper spacing and indentation for readability. This includes the bib records themselves: They should be properly comma-separated rather than tabs, and if possible, displayed as collections. When loading race data, it should be able to read-in this neatly formatted data so as not to break

Describe alternatives you've considered

Additional context

An ideal output would look something like:

{
  "thisVersion": "2.0.0",
  "EventTitle": "Bigfoot FF Test",
  "MessageNumber": "1",
  "address": "N0CALL",
  "Location": "WM_Wright Meadow (Rd.9327)",
  "msgsubject": "Bigfoot FF Test Wright Meadow (Rd.9327) Message #1",
  "numlines": "4",
  "TheData": [
    "106,DROP, 1510, 24, WM", 
    "106, IN, 1510, 24, WM", 
    "105, OUT, 1510, 24, WM", 
    "105, IN, 1510, 24, WM",
    ],
  "Comment": "Testing FF.",
  "previousRecord": {
    "runner": "106",
    "action": "DROP",
    "time": "15:10",
    "dayOfMonth": "24",
    "location": "WM",
    "messageNumber": "1"
  }
}
nojronatron commented 1 month ago

This particular issue has been fixed. The Save Race data button stores form data in neatly formatted JSON, with the bib records stored in comma-separated collections. The Load Race data button can re-load that stored data and set the form field values accordingly.