analytics: Update labels for mobile apps for Flutter launch.

Updates the labels in the"Messages set by client" chart so that
the Flutter app is no longer labeled as "beta".

The React Native app is now labeled as "old". And the older
Android and iOS apps are now labeled as "ancient".
This commit is contained in:
Lauryn Menard
2025-05-29 17:10:16 +02:00
committed by Tim Abbott
parent dfadc9fa39
commit 3aadb86225
2 changed files with 8 additions and 8 deletions

View File

@@ -675,15 +675,15 @@ class TestMapArrays(ZulipTestCase):
result,
{
"Old desktop app": [32, 36, 39],
"Old iOS app": [1, 2, 3],
"Ancient iOS app": [1, 2, 3],
"Desktop app": [2, 5, 7],
"Mobile app (React Native)": [1, 2, 3],
"Mobile app beta (Flutter)": [2, 2, 2],
"Old mobile app (React Native)": [1, 2, 3],
"Mobile app (Flutter)": [2, 2, 2],
"Web app": [1, 2, 3],
"Python API": [2, 4, 6],
"SomethingRandom": [4, 5, 6],
"GitHub webhook": [7, 7, 9],
"Old Android app": [64, 63, 65],
"Ancient Android app": [64, 63, 65],
"Terminal app": [9, 10, 11],
},
)

View File

@@ -599,13 +599,13 @@ def client_label_map(name: str) -> str:
if name == "ZulipTerminal":
return "Terminal app"
if name == "ZulipAndroid":
return "Old Android app"
return "Ancient Android app"
if name == "ZulipiOS":
return "Old iOS app"
return "Ancient iOS app"
if name == "ZulipMobile":
return "Mobile app (React Native)"
return "Old mobile app (React Native)"
if name in ["ZulipFlutter", "ZulipMobile/flutter"]:
return "Mobile app beta (Flutter)"
return "Mobile app (Flutter)"
if name in ["ZulipPython", "API: Python"]:
return "Python API"
if name.startswith("Zulip") and name.endswith("Webhook"):