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

GT-2430 disable share links on cyoa #2256

Merged

Conversation

rachaelblue
Copy link
Collaborator

No description provided.

@rachaelblue rachaelblue marked this pull request as ready for review August 22, 2024 20:14
…obal/godtools-swift into GT-2430-disable-share-links-on-cyoa

# Conflicts:
#	godtools.xcodeproj/project.pbxproj
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 28 lines in your changes missing coverage. Please review.

Project coverage is 40.72%. Comparing base (3547daa) to head (ab7248a).
Report is 5 commits behind head on feature/cyoa-tool-settings.

Files Patch % Lines
...s/Presentation/ToolSettings/ToolSettingsView.swift 0.00% 13 Missing ⚠️
.../ToolSettingsOptions/ToolSettingsOptionsView.swift 0.00% 9 Missing ⚠️
...sentation/ToolSettings/ToolSettingsViewModel.swift 0.00% 4 Missing ⚠️
...s/ToolSettings/Observer/ToolSettingsObserver.swift 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                       @@
##           feature/cyoa-tool-settings    #2256      +/-   ##
==============================================================
- Coverage                       40.73%   40.72%   -0.01%     
==============================================================
  Files                            1116     1116              
  Lines                           36492    36502      +10     
==============================================================
+ Hits                            14864    14865       +1     
- Misses                          21628    21637       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


import Foundation

protocol LinkShareable {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @rachaelblue these changes are looking good. The View fix looks good too.

I'm wondering if we should think about adding the dependencies needed into the protocols? Going to think about that a bit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't me reviewing the PR haha, but @rachaelblue I really like how you set up Tool Options, allowing easy disable and enable of the different parts.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @aaronlaib welcome. I agree.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good @levieggertcru. And thanks @aaronlaib!

@@ -28,15 +28,18 @@ struct ToolSettingsOptionsView: View {
ScrollView(.horizontal, showsIndicators: false) {
HStack {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might make a separate ticket to add a ForEach here and do that later. I should have originally done that. We could then just check for toolOptions.isEmpty in ToolSettingsView which would be a little safer.

@levieggertcru levieggertcru self-requested a review August 23, 2024 15:26
Copy link
Collaborator

@levieggertcru levieggertcru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rachaelblue this looks good. I ended up making a separate ticket (https://jira.cru.org/browse/GT-2434) for adding a ForEach to the HStack for tool options. I should've done that originally. Not a high priority, but something that would be nice to update to in the future.

@rachaelblue rachaelblue merged commit 02e77e4 into feature/cyoa-tool-settings Aug 23, 2024
4 checks passed
@rachaelblue rachaelblue deleted the GT-2430-disable-share-links-on-cyoa branch August 23, 2024 19:47
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.

3 participants