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

[Shield] Logic for count by name #20

Merged
merged 4 commits into from
Mar 13, 2025
Merged

Conversation

Programistich
Copy link
Collaborator

No description provided.

}
let shieldAttemptService = ShieldAttemptService.shared

private var today: Date {
Copy link
Member

Choose a reason for hiding this comment

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

you can move to shared as Date extension

}

func configuration(
shielding name: String
) -> ShieldConfiguration {
blocked += 1
shieldAttemptService.add(by: name)
Copy link
Member

Choose a reason for hiding this comment

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

please move this out of configuration and store shielding token in addition to name

@@ -7,7 +7,14 @@ extension TimerView {
@Environment(\.appState) var appState

@AppStorage("completed", store: .group) var completed: Int = 0
@AppStorage("blocked", store: .group) var blocked: Int = 0

private var today: Date {
Copy link
Member

Choose a reason for hiding this comment

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

// same here

@tonyfreeman tonyfreeman changed the title [Shield] Logic for count attempt [Shield] Logic for count by name Mar 13, 2025
@tonyfreeman tonyfreeman merged commit a8fef10 into dev Mar 13, 2025
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