Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jayrhynas
Copy link

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.

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.
Copy link
Contributor

@MattKiazyk MattKiazyk left a 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:
Copy link
Contributor

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")
Copy link
Contributor

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";
Copy link
Contributor

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

@jayrhynas
Copy link
Author

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
@jayrhynas
Copy link
Author

Fixed merge conflicts for Xcodes 2 update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants