Skip to content

Commit 54c400a

Browse files
BryanQQYueclaude
andcommitted
fix: rename MiniMaxi to MiniMax for correct branding (#116)
The correct brand name is MiniMax (https://www.minimax.io/), not MiniMaxi. Renamed all code identifiers (classes, protocols, files, directories, display names, provider IDs, asset names) from MiniMaxi to MiniMax. API URLs (www.minimaxi.com, platform.minimaxi.com) and UserDefaults key strings are preserved unchanged for backward compatibility. Closes #116 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 816aaf7 commit 54c400a

File tree

16 files changed

+139
-139
lines changed

16 files changed

+139
-139
lines changed

Sources/App/ClaudeBarApp.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ struct ClaudeBarApp: App {
8585
settingsRepository: settingsRepository
8686
),
8787
KiroProvider(probe: KiroUsageProbe(), settingsRepository: settingsRepository),
88-
MiniMaxiProvider(
89-
probe: MiniMaxiUsageProbe(settingsRepository: settingsRepository),
88+
MiniMaxProvider(
89+
probe: MiniMaxUsageProbe(settingsRepository: settingsRepository),
9090
settingsRepository: settingsRepository
9191
),
9292
])

Sources/App/Resources/Assets.xcassets/MiniMaxiIcon.imageset/Contents.json renamed to Sources/App/Resources/Assets.xcassets/MiniMaxIcon.imageset/Contents.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"images" : [
33
{
4-
"filename" : "minimaxi_64.png",
4+
"filename" : "minimax_64.png",
55
"idiom" : "universal",
66
"scale" : "1x"
77
},
88
{
9-
"filename" : "minimaxi_128.png",
9+
"filename" : "minimax_128.png",
1010
"idiom" : "universal",
1111
"scale" : "2x"
1212
},
1313
{
14-
"filename" : "minimaxi_192.png",
14+
"filename" : "minimax_192.png",
1515
"idiom" : "universal",
1616
"scale" : "3x"
1717
}

Sources/App/Resources/Assets.xcassets/MiniMaxiIcon.imageset/minimaxi_128.png renamed to Sources/App/Resources/Assets.xcassets/MiniMaxIcon.imageset/minimax_128.png

File renamed without changes.

Sources/App/Resources/Assets.xcassets/MiniMaxiIcon.imageset/minimaxi_192.png renamed to Sources/App/Resources/Assets.xcassets/MiniMaxIcon.imageset/minimax_192.png

File renamed without changes.

Sources/App/Resources/Assets.xcassets/MiniMaxiIcon.imageset/minimaxi_64.png renamed to Sources/App/Resources/Assets.xcassets/MiniMaxIcon.imageset/minimax_64.png

File renamed without changes.

Sources/App/Views/ProviderIcons.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ struct ProviderIconView: View {
9494
case "gemini": return "sparkles"
9595
case "zai": return "z.square.fill"
9696
case "copilot": return "chevron.left.forwardslash.chevron.right"
97-
case "minimaxi": return "waveform"
97+
case "minimax": return "waveform"
9898
default: return "questionmark"
9999
}
100100
}

Sources/App/Views/ProviderVisualIdentity.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ extension KiroProvider: ProviderVisualIdentity {
296296
}
297297
}
298298

299-
// MARK: - MiniMaxiProvider Visual Identity
299+
// MARK: - MiniMaxProvider Visual Identity
300300

301-
extension MiniMaxiProvider: ProviderVisualIdentity {
301+
extension MiniMaxProvider: ProviderVisualIdentity {
302302
public var symbolIcon: String { "waveform" }
303303

304-
public var iconAssetName: String { "MiniMaxiIcon" }
304+
public var iconAssetName: String { "MiniMaxIcon" }
305305

306306
public func themeColor(for scheme: ColorScheme) -> Color {
307307
// MiniMax brand pink-orange
@@ -408,7 +408,7 @@ enum ProviderVisualIdentityLookup {
408408
return scheme == .dark
409409
? Color(red: 0.55, green: 0.35, blue: 0.85)
410410
: Color(red: 0.45, green: 0.25, blue: 0.75)
411-
case "minimaxi":
411+
case "minimax":
412412
return scheme == .dark
413413
? Color(red: 0.91, green: 0.27, blue: 0.42)
414414
: Color(red: 0.82, green: 0.20, blue: 0.35)
@@ -463,7 +463,7 @@ enum ProviderVisualIdentityLookup {
463463
secondaryColor = scheme == .dark
464464
? Color(red: 0.70, green: 0.45, blue: 0.95)
465465
: Color(red: 0.60, green: 0.35, blue: 0.85)
466-
case "minimaxi":
466+
case "minimax":
467467
secondaryColor = scheme == .dark
468468
? Color(red: 0.96, green: 0.53, blue: 0.24)
469469
: Color(red: 0.86, green: 0.43, blue: 0.14)
@@ -495,7 +495,7 @@ enum ProviderVisualIdentityLookup {
495495
case "ampcode": return "AmpCodeIcon"
496496
case "kimi": return "KimiIcon"
497497
case "kiro": return "KiroIcon"
498-
case "minimaxi": return "MiniMaxiIcon"
498+
case "minimax": return "MiniMaxIcon"
499499
default: return "QuestionIcon"
500500
}
501501
}
@@ -513,7 +513,7 @@ enum ProviderVisualIdentityLookup {
513513
case "ampcode": return "Amp"
514514
case "kimi": return "Kimi"
515515
case "kiro": return "Kiro"
516-
case "minimaxi": return "MiniMaxi"
516+
case "minimax": return "MiniMax"
517517
default: return providerId.capitalized
518518
}
519519
}
@@ -531,7 +531,7 @@ enum ProviderVisualIdentityLookup {
531531
case "ampcode": return "bolt.fill"
532532
case "kimi": return "k.square.fill"
533533
case "kiro": return "wand.and.stars.inverse"
534-
case "minimaxi": return "waveform"
534+
case "minimax": return "waveform"
535535
default: return "questionmark.circle.fill"
536536
}
537537
}

Sources/App/Views/SettingsView.swift

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ struct SettingsContentView: View {
6161
@State private var kimiConfigExpanded: Bool = false
6262
@State private var kimiProbeMode: KimiProbeMode = .cli
6363

64-
// MiniMaxi settings state
65-
@State private var miniMaxiConfigExpanded: Bool = false
66-
@State private var miniMaxiApiKeyInput: String = ""
67-
@State private var miniMaxiAuthEnvVarInput: String = ""
68-
@State private var showMiniMaxiApiKey: Bool = false
69-
@State private var isTestingMiniMaxi = false
70-
@State private var miniMaxiTestResult: String?
64+
// MiniMax settings state
65+
@State private var miniMaxConfigExpanded: Bool = false
66+
@State private var miniMaxApiKeyInput: String = ""
67+
@State private var miniMaxAuthEnvVarInput: String = ""
68+
@State private var showMiniMaxApiKey: Bool = false
69+
@State private var isTestingMiniMax = false
70+
@State private var miniMaxTestResult: String?
7171

7272
// Hook settings state
7373
@State private var hooksExpanded: Bool = false
@@ -82,7 +82,7 @@ struct SettingsContentView: View {
8282
static let zai = "zai"
8383
static let bedrock = "bedrock"
8484
static let kimi = "kimi"
85-
static let minimaxi = "minimaxi"
85+
static let minimax = "minimax"
8686
}
8787

8888
/// The Claude provider from the monitor (cast to ClaudeProvider for probe mode access)
@@ -133,8 +133,8 @@ struct SettingsContentView: View {
133133
monitor.provider(for: ProviderID.kimi) as? KimiProvider
134134
}
135135

136-
private var isMiniMaxiEnabled: Bool {
137-
monitor.provider(for: ProviderID.minimaxi)?.isEnabled ?? false
136+
private var isMiniMaxEnabled: Bool {
137+
monitor.provider(for: ProviderID.minimax)?.isEnabled ?? false
138138
}
139139

140140
private var isBedrockEnabled: Bool {
@@ -177,8 +177,8 @@ struct SettingsContentView: View {
177177
kimiConfigCard
178178
.transition(.opacity.combined(with: .move(edge: .top)))
179179
}
180-
if isMiniMaxiEnabled {
181-
miniMaxiConfigCard
180+
if isMiniMaxEnabled {
181+
miniMaxConfigCard
182182
.transition(.opacity.combined(with: .move(edge: .top)))
183183
}
184184
if isCopilotEnabled {
@@ -242,8 +242,8 @@ struct SettingsContentView: View {
242242
// Initialize Kimi settings
243243
kimiProbeMode = UserDefaultsProviderSettingsRepository.shared.kimiProbeMode()
244244

245-
// Initialize MiniMaxi settings
246-
miniMaxiAuthEnvVarInput = UserDefaultsProviderSettingsRepository.shared.minimaxiAuthEnvVar()
245+
// Initialize MiniMax settings
246+
miniMaxAuthEnvVarInput = UserDefaultsProviderSettingsRepository.shared.minimaxiAuthEnvVar()
247247

248248
// Initialize Hook settings
249249
hooksEnabled = UserDefaultsProviderSettingsRepository.shared.isHookEnabled()
@@ -514,8 +514,8 @@ struct SettingsContentView: View {
514514
claudeBudgetExpanded = false
515515
case ProviderID.bedrock:
516516
bedrockConfigExpanded = false
517-
case ProviderID.minimaxi:
518-
miniMaxiConfigExpanded = false
517+
case ProviderID.minimax:
518+
miniMaxConfigExpanded = false
519519
default:
520520
break
521521
}
@@ -1018,21 +1018,21 @@ struct SettingsContentView: View {
10181018
}
10191019
}
10201020

1021-
// MARK: - MiniMaxi Config Card
1021+
// MARK: - MiniMax Config Card
10221022

1023-
private var miniMaxiConfigCard: some View {
1024-
DisclosureGroup(isExpanded: $miniMaxiConfigExpanded) {
1023+
private var miniMaxConfigCard: some View {
1024+
DisclosureGroup(isExpanded: $miniMaxConfigExpanded) {
10251025
Divider()
10261026
.background(theme.glassBorder)
10271027
.padding(.vertical, 12)
10281028

1029-
miniMaxiConfigForm
1029+
miniMaxConfigForm
10301030
} label: {
1031-
miniMaxiConfigHeader
1031+
miniMaxConfigHeader
10321032
.contentShape(.rect)
10331033
.onTapGesture {
10341034
withAnimation(.easeInOut(duration: 0.2)) {
1035-
miniMaxiConfigExpanded.toggle()
1035+
miniMaxConfigExpanded.toggle()
10361036
}
10371037
}
10381038
}
@@ -1056,7 +1056,7 @@ struct SettingsContentView: View {
10561056
)
10571057
}
10581058

1059-
private var miniMaxiConfigHeader: some View {
1059+
private var miniMaxConfigHeader: some View {
10601060
HStack(spacing: 10) {
10611061
ZStack {
10621062
Circle()
@@ -1078,7 +1078,7 @@ struct SettingsContentView: View {
10781078
}
10791079

10801080
VStack(alignment: .leading, spacing: 2) {
1081-
Text("MiniMaxi Configuration")
1081+
Text("MiniMax Configuration")
10821082
.font(.system(size: 14, weight: .bold, design: theme.fontDesign))
10831083
.foregroundStyle(theme.textPrimary)
10841084

@@ -1091,7 +1091,7 @@ struct SettingsContentView: View {
10911091
}
10921092
}
10931093

1094-
private var miniMaxiConfigForm: some View {
1094+
private var miniMaxConfigForm: some View {
10951095
VStack(alignment: .leading, spacing: 14) {
10961096
// API Key input
10971097
VStack(alignment: .leading, spacing: 6) {
@@ -1116,10 +1116,10 @@ struct SettingsContentView: View {
11161116

11171117
HStack(spacing: 6) {
11181118
Group {
1119-
if showMiniMaxiApiKey {
1120-
TextField("", text: $miniMaxiApiKeyInput, prompt: Text("eyJhbGci...").foregroundStyle(theme.textTertiary))
1119+
if showMiniMaxApiKey {
1120+
TextField("", text: $miniMaxApiKeyInput, prompt: Text("eyJhbGci...").foregroundStyle(theme.textTertiary))
11211121
} else {
1122-
SecureField("", text: $miniMaxiApiKeyInput, prompt: Text("eyJhbGci...").foregroundStyle(theme.textTertiary))
1122+
SecureField("", text: $miniMaxApiKeyInput, prompt: Text("eyJhbGci...").foregroundStyle(theme.textTertiary))
11231123
}
11241124
}
11251125
.font(.system(size: 12, weight: .medium, design: theme.fontDesign))
@@ -1137,9 +1137,9 @@ struct SettingsContentView: View {
11371137

11381138
// Eye button
11391139
Button {
1140-
showMiniMaxiApiKey.toggle()
1140+
showMiniMaxApiKey.toggle()
11411141
} label: {
1142-
Image(systemName: showMiniMaxiApiKey ? "eye.slash.fill" : "eye.fill")
1142+
Image(systemName: showMiniMaxApiKey ? "eye.slash.fill" : "eye.fill")
11431143
.font(.system(size: 11))
11441144
.foregroundStyle(theme.textSecondary)
11451145
.frame(width: 28, height: 28)
@@ -1159,7 +1159,7 @@ struct SettingsContentView: View {
11591159
.foregroundStyle(theme.textSecondary)
11601160
.tracking(0.5)
11611161

1162-
TextField("", text: $miniMaxiAuthEnvVarInput, prompt: Text("MINIMAX_API_KEY").foregroundStyle(theme.textTertiary))
1162+
TextField("", text: $miniMaxAuthEnvVarInput, prompt: Text("MINIMAX_API_KEY").foregroundStyle(theme.textTertiary))
11631163
.font(.system(size: 12, weight: .medium, design: theme.fontDesign))
11641164
.foregroundStyle(theme.textPrimary)
11651165
.padding(.horizontal, 10)
@@ -1172,7 +1172,7 @@ struct SettingsContentView: View {
11721172
.stroke(theme.glassBorder, lineWidth: 1)
11731173
)
11741174
)
1175-
.onChange(of: miniMaxiAuthEnvVarInput) { _, newValue in
1175+
.onChange(of: miniMaxAuthEnvVarInput) { _, newValue in
11761176
UserDefaultsProviderSettingsRepository.shared.setMinimaxiAuthEnvVar(newValue)
11771177
}
11781178
}
@@ -1193,7 +1193,7 @@ struct SettingsContentView: View {
11931193
}
11941194

11951195
// Save & Test button
1196-
if isTestingMiniMaxi {
1196+
if isTestingMiniMax {
11971197
HStack {
11981198
ProgressView()
11991199
.scaleEffect(0.7)
@@ -1204,7 +1204,7 @@ struct SettingsContentView: View {
12041204
} else {
12051205
Button {
12061206
Task {
1207-
await testMiniMaxiConnection()
1207+
await testMiniMaxConnection()
12081208
}
12091209
} label: {
12101210
Text("Save & Test Connection")
@@ -1220,21 +1220,21 @@ struct SettingsContentView: View {
12201220
.buttonStyle(.plain)
12211221
}
12221222

1223-
if let result = miniMaxiTestResult {
1223+
if let result = miniMaxTestResult {
12241224
Text(result)
12251225
.font(.system(size: 9, weight: .semibold, design: theme.fontDesign))
12261226
.foregroundStyle(result.contains("Success") ? theme.statusHealthy : theme.statusCritical)
12271227
}
12281228

12291229
// Help link
12301230
VStack(alignment: .leading, spacing: 4) {
1231-
Text("Get your API key from MiniMaxi platform")
1231+
Text("Get your API key from MiniMax platform")
12321232
.font(.system(size: 9, weight: .semibold, design: theme.fontDesign))
12331233
.foregroundStyle(theme.textTertiary)
12341234

12351235
Link(destination: URL(string: "https://platform.minimaxi.com/user-center/basic-information/interface-key")!) {
12361236
HStack(spacing: 3) {
1237-
Text("Open MiniMaxi API Keys")
1237+
Text("Open MiniMax API Keys")
12381238
.font(.system(size: 9, weight: .semibold, design: theme.fontDesign))
12391239
Image(systemName: "arrow.up.right")
12401240
.font(.system(size: 7, weight: .bold))
@@ -1247,8 +1247,8 @@ struct SettingsContentView: View {
12471247
if UserDefaultsProviderSettingsRepository.shared.hasMinimaxiApiKey() {
12481248
Button {
12491249
UserDefaultsProviderSettingsRepository.shared.deleteMinimaxiApiKey()
1250-
miniMaxiApiKeyInput = ""
1251-
miniMaxiTestResult = nil
1250+
miniMaxApiKeyInput = ""
1251+
miniMaxTestResult = nil
12521252
} label: {
12531253
HStack(spacing: 4) {
12541254
Image(systemName: "trash.fill")
@@ -2928,32 +2928,32 @@ struct SettingsContentView: View {
29282928
isTestingCopilot = false
29292929
}
29302930

2931-
private func testMiniMaxiConnection() async {
2932-
isTestingMiniMaxi = true
2933-
miniMaxiTestResult = nil
2931+
private func testMiniMaxConnection() async {
2932+
isTestingMiniMax = true
2933+
miniMaxTestResult = nil
29342934

29352935
// Save current inputs
2936-
UserDefaultsProviderSettingsRepository.shared.setMinimaxiAuthEnvVar(miniMaxiAuthEnvVarInput)
2937-
if !miniMaxiApiKeyInput.isEmpty {
2938-
AppLog.credentials.info("Saving MiniMaxi API key for connection test")
2939-
UserDefaultsProviderSettingsRepository.shared.saveMinimaxiApiKey(miniMaxiApiKeyInput)
2940-
miniMaxiApiKeyInput = ""
2936+
UserDefaultsProviderSettingsRepository.shared.setMinimaxiAuthEnvVar(miniMaxAuthEnvVarInput)
2937+
if !miniMaxApiKeyInput.isEmpty {
2938+
AppLog.credentials.info("Saving MiniMax API key for connection test")
2939+
UserDefaultsProviderSettingsRepository.shared.saveMinimaxiApiKey(miniMaxApiKeyInput)
2940+
miniMaxApiKeyInput = ""
29412941
}
29422942

2943-
// Try to refresh the MiniMaxi provider
2944-
AppLog.credentials.info("Testing MiniMaxi connection via provider refresh")
2945-
await monitor.refresh(providerId: ProviderID.minimaxi)
2943+
// Try to refresh the MiniMax provider
2944+
AppLog.credentials.info("Testing MiniMax connection via provider refresh")
2945+
await monitor.refresh(providerId: ProviderID.minimax)
29462946

29472947
// Check if there's an error after refresh
2948-
if let error = monitor.provider(for: ProviderID.minimaxi)?.lastError {
2949-
AppLog.credentials.error("MiniMaxi connection test failed: \(error.localizedDescription)")
2950-
miniMaxiTestResult = "Failed: \(error.localizedDescription)"
2948+
if let error = monitor.provider(for: ProviderID.minimax)?.lastError {
2949+
AppLog.credentials.error("MiniMax connection test failed: \(error.localizedDescription)")
2950+
miniMaxTestResult = "Failed: \(error.localizedDescription)"
29512951
} else {
2952-
AppLog.credentials.info("MiniMaxi connection test succeeded")
2953-
miniMaxiTestResult = "Success: Connection verified"
2952+
AppLog.credentials.info("MiniMax connection test succeeded")
2953+
miniMaxTestResult = "Success: Connection verified"
29542954
}
29552955

2956-
isTestingMiniMaxi = false
2956+
isTestingMiniMax = false
29572957
}
29582958
}
29592959

0 commit comments

Comments
 (0)