Skip to content

feat: Invite all testing and unstable users to telemetry #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,39 @@
"url": "https://archive.org/details/ukts-archive-files-1-1000"
}
]
},
{
"date": "2025-05-23",
"title": "Opt-in telemetry for system data",
"includeIf": ["update_mode_testing_unstable", "telemetry_system_undecided"],
"itemList": [
{
"$type": "ORTS.Heading, Menu",
"label": "Opt-in telemetry for system data"
},
{
"$type": "ORTS.Text, Menu",
"label": "We would like to invite you to participate in our telemetry program."
},
{
"$type": "ORTS.Text, Menu",
"label": "Data collected: Application, runtime, operating system, and hardware properties."
},
{
"$type": "ORTS.Text, Menu",
"label": "Telemetry is currently 'undecided (off)'. Choose 'on' or 'off' to hide this notification."
},
{
"$type": "ORTS.Dialog, Menu",
"label": "Telemetry Options",
"value": "Preview data and turn telemetry on or off",
"form": "TelemetryForm"
},
{
"$type": "ORTS.Text, Menu",
"label": "You can return to the telemetry settings at any time from 'Options' > 'General'."
}
]
}
],
"checkList": [
Expand All @@ -94,6 +127,45 @@
}
]
},
{
"id": "update_mode_testing_unstable",
"comment": "Include if update mode is testing or unstable",
"anyOfList": [
{
"allOfList": [
{
"$type": "ORTS.Equals, Menu",
"property": "{{update_mode}}",
"value": "Testing"
}
]
},
{
"allOfList": [
{
"$type": "ORTS.Equals, Menu",
"property": "{{update_mode}}",
"value": "Unstable"
}
]
}
]
},
{
"id": "telemetry_system_undecided",
"comment": "Include if system telemetry is undecided (neither on nor off)",
"anyOfList": [
{
"allOfList": [
{
"$type": "ORTS.Equals, Menu",
"property": "{{Settings.Telemetry.StateSystem}}",
"value": "1899-01-01"
}
]
}
]
},
{
"id": "demo_model_1_route_installed",
"comment": "Include if installed_routes.Contains('SCE'), i.e. folder named for 'Scottish Capitals Express",
Expand Down
3 changes: 3 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"url": {
"type": "string"
},
"form": {
"type": "string"
},
"stableUrl": {
"type": "string"
},
Expand Down