Release v2.8.1 — Focus sneak peek on activation/deactivation#13
Merged
Conversation
Quand l'utilisateur active ou désactive un mode Focus (Travail, Sommeil, Ne pas déranger…), un peek 2.5s s'affiche sous l'encoche avec l'icône du mode + label « X activé » ou « Focus désactivé ». Comparable au HUD volume mais déclenché par changement d'état, pas par interaction utilisateur. Implémentation : - NotchIAViewCoordinator : `case focus` ajouté à SneakContentType, exempté du gate hudReplacement (c'est une notification d'état, pas un HUD) - FocusModeManager : observer `\$isActive.dropFirst().removeDuplicates()` qui déclenche `coordinator.toggleSneakPeek(type: .focus, duration: 2.5)` - ContentView : branche de rendu pour `.focus` — capsule noire stroke blanc avec icône + label, padding 10×4 - Localizable.xcstrings : « %@ activé » et « Focus désactivé » en EN/FR/ES/DE Le toggle existant `enableFocusModeDetection` gate aussi le peek (cohérent — si l'utilisateur a désactivé toute la détection Focus, pas de peek non plus). Version bump 2.8.0 → 2.8.1 (build 20801, formule monotone). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Owner
Author
|
/release 2.8.1 |
Owner
Author
|
/release 2.8.1 |
1 similar comment
Owner
Author
|
/release 2.8.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a 2.5s sneak peek under the notch when a Focus mode (Work/Sleep/DND) turns on or off. Same UX pattern as volume/brightness HUD, but driven by state change.