-
Notifications
You must be signed in to change notification settings - Fork 310
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
Add releasePlusNewBetas
XcodeListCategory
#403
base: main
Are you sure you want to change the base?
Conversation
This adds a new filter option that shows only releases, plus any betas that do not have a release version. So as of today (July 7, 2023 the Xcode 15 betas will be shown but the Xcode 14 betas won't. Note that this will also show betas for older Xcode versions if necessary, for example if an Xcode 14.3.2 beta is released it will be shown until the mainline Xcode 14.3.2 is released.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spending the time! I like the idea - just some clean up to make it compile and the localization string.
@@ -58,6 +59,16 @@ struct MainToolbarModifier: ViewModifier { | |||
.labelStyle(TitleOnlyLabelStyle()) | |||
.foregroundColor(.accentColor) | |||
} | |||
case .releasePlusBeta: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's some errors here around the name. Looks like you may have changed around the enum name and it's invalid here.
@@ -58,6 +59,16 @@ struct MainToolbarModifier: ViewModifier { | |||
.labelStyle(TitleOnlyLabelStyle()) | |||
.foregroundColor(.accentColor) | |||
} | |||
case .releasePlusBeta: | |||
if #available(macOS 11.3, *) { | |||
Label("ReleasePlusBetaOnly", systemImage: "line.horizontal.3.decrease.circle.fill") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This localized string does not exist
@@ -144,6 +144,8 @@ | |||
"ReleaseOnly" = "Release only"; | |||
"Beta" = "Beta"; | |||
"BetaOnly" = "Beta only"; | |||
"ReleasePlusNewBetas" = "Release & New Betas"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I like this one better - the only
word is kind of redundant
Thanks for looking it over! I'm not sure how I ended up committing the wrong enum names and localization keys there, sorry about that! |
# Conflicts: # Xcodes/Resources/en.lproj/Localizable.strings
Fixed merge conflicts for Xcodes 2 update |
This adds a new filter option that shows only releases, plus any betas that do not have a release version. So as of today (July 7, 2023 the Xcode 15 betas will be shown but the Xcode 14 betas won't. Note that this will also show betas for older Xcode versions if necessary, for example if an Xcode 14.3.2 beta is released it will be shown until the mainline Xcode 14.3.2 is released.
This is an implementation for the ideas discussed in #334
I do find the name "Releases & New Betas" to be a little long/wordy, both in the UI and in code. I'm open to suggestions for more succinct names. This also introduces new strings that will need to be localized.