Skip to content

Commit 16fc965

Browse files
authored
feat: add feedback link to TestFlight release notes
Automatically appends '问题反馈: https://github.com/v2er-app/iOS/issues' to all TestFlight release notes with proper character limit handling.
1 parent 312eda4 commit 16fc965

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

V2er/View/Feed/FilterMenuView.swift

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,27 +138,19 @@ struct TabFilterMenuItem: View {
138138
}
139139

140140
private var textColor: Color {
141-
if isSelected {
142-
return Color.dynamic(light: .hex(0x2E7EF3), dark: .hex(0x5E9EFF))
143-
} else {
144-
return Color.primaryText
145-
}
141+
return Color.primaryText
146142
}
147143

148144
private var iconColor: Color {
149-
if isSelected {
150-
return Color.dynamic(light: .hex(0x2E7EF3), dark: .hex(0x5E9EFF))
151-
} else {
152-
return Color.dynamic(light: .hex(0x666666), dark: .hex(0x999999))
153-
}
145+
return Color.dynamic(light: .hex(0x666666), dark: .hex(0x999999))
154146
}
155147

156148
private var backgroundColor: Color {
157149
if isPressed {
158-
// Pressed state - slightly darker background
159-
return Color.dynamic(light: .hex(0xE0E0E0).opacity(0.5), dark: .hex(0x2A2A2A).opacity(0.5))
150+
// Pressed state - use lightGray with reduced opacity
151+
return Color.lightGray.opacity(0.6)
160152
} else if isSelected {
161-
return Color.dynamic(light: .hex(0xF0F7FF), dark: .hex(0x1A2533))
153+
return Color.lightGray
162154
} else {
163155
return Color.clear
164156
}

fastlane/changelog_helper.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,17 @@ def self.format_for_testflight(content)
8989
# "1. Feature: xxx" -> "• Feature: xxx"
9090
formatted = content.gsub(/^\d+\.\s+/, "• ")
9191

92+
# Add feedback link at the end
93+
feedback_link = "\n\n问题反馈: https://github.com/v2er-app/iOS/issues"
94+
9295
# Ensure we don't exceed TestFlight's changelog length limit (4000 chars)
93-
if formatted.length > 3900
94-
formatted = formatted[0...3900] + "\n\n(See full changelog at github.com/v2er-app/iOS)"
96+
if (formatted + feedback_link).length > 4000
97+
extra_message = "\n\n(See full changelog at github.com/v2er-app/iOS)"
98+
max_length = 4000 - feedback_link.length - extra_message.length
99+
formatted = formatted[0...max_length] + extra_message
95100
end
96101

97-
formatted
102+
formatted + feedback_link
98103
end
99104

100105
# Get the current version from Version.xcconfig

0 commit comments

Comments
 (0)