commit 5f0d80a1b5276d940177ccf2cc293e788521960c
parent 27f8b81d56ebee7cc79ce16c4dbc3f5a8559a168
Author: triesap <tyson@radroots.org>
Date: Fri, 17 Apr 2026 22:40:23 +0000
app: align macos menu identity
Diffstat:
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/crates/shared/core/src/runtime.rs b/crates/shared/core/src/runtime.rs
@@ -1,7 +1,7 @@
use std::time::{SystemTime, UNIX_EPOCH};
pub const APP_ID: &str = "org.radroots.app";
-pub const APP_NAME: &str = "radroots";
+pub const APP_NAME: &str = "Radroots";
pub const APP_PLATFORM_RUNTIME: &str = "app-desktop-gpui";
pub const APP_PROJECTION_SOURCE: &str = "gpui-native";
pub const APP_RUNTIME_ORIGIN: &str = "gpui://localhost";
diff --git a/crates/shared/core/src/startup.rs b/crates/shared/core/src/startup.rs
@@ -63,7 +63,7 @@ mod tests {
assert_eq!(event.category, "bootstrap");
assert_eq!(event.name, "runtime.launch");
assert_eq!(event.message, "app launch");
- assert_eq!(event.metadata.home_screen, "radroots");
+ assert_eq!(event.metadata.home_screen, "Radroots");
assert_eq!(event.metadata.core_package, "radroots_app_core");
assert_eq!(event.metadata.host_surface, "desktop");
assert_eq!(event.metadata.runtime_mode, "development");
diff --git a/crates/shared/i18n/src/lib.rs b/crates/shared/i18n/src/lib.rs
@@ -107,6 +107,13 @@ mod tests {
}
#[test]
+ fn english_identity_copy_matches_the_macos_menu_contract() {
+ assert_eq!(app_text(AppTextKey::AppName), "Radroots");
+ assert_eq!(app_text(AppTextKey::MenuAbout), "About Radroots");
+ assert_eq!(app_text(AppTextKey::MenuQuit), "Quit Radroots");
+ }
+
+ #[test]
fn host_locale_negotiation_reduces_to_supported_base_locale() {
assert_eq!(resolve_locale_from_host("en_US.UTF-8"), "en");
assert_eq!(resolve_locale_from_host("en-GB"), "en");