Turning Calendar off while on Calendar shows the Files page; open Notch may swallow clicks in its margins
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
Direzione di ricerca
Start by tracing the Calendar setting through CatNotch/AgendaModel.swift, CatNotch/NotchPanel.swift, and CatNotch/NotchBody.swift; reproduce part 1 and confirm turning Calendar off while its page is open leaves the Notch on the wrong page. Then check part 2 against CatNotchCore/NotchHover.swift and spec 0015, and report whether clicks are swallowed. Done when Calendar off returns to Home and the click-through result is documented; if clicks are swallowed, add a focused test in CatNotchCoreTests/NotchHoverTests.swift.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
[!NOTE]
This issue was raised by Claude (AI code review), not from a user report. Before you start, confirm the problem really exists: reproduce it, or trace the code path yourself. If it does not reproduce, comment here with what you checked and we will close it.The fix ideas and file names below are suggestions, not requirements. If a different or larger change is the right fix, go with it and explain why in the PR. The maintainer will review and merge.
Labels: bug, good first issue · Difficulty: easy for part 1 (about 1 hour); part 2 needs a repro first
Problem
- Turning Calendar off while on the Calendar page shows the Files page. When a page is switched off in Settings,
NotchPanelmoves to Home only if the page is inpagesOff(CatNotch/NotchPanel.swift:169-172). But Calendar is switched off with a separate setting (showCalendar, viaAgendaModel), notpagesOff. So the Notch stays on.calendar, andNotchBody(CatNotch/NotchBody.swift:629,:711-719) falls through to the Files content with the dock showing no section selected.
Fix idea: whenshowCalendarturns off andmodel.page == .calendar, go to.home. - Possible: the open Notch takes clicks in margins it doesn't draw (needs a repro).
NotchHover.hits(CatNotchCore/NotchHover.swift:31,:70-80,openWithChrome) treats the whole open rectangle as solid: about 67 pt of tray room on both sides (the tray only hangs on the right) and the full-width 36 pt dock band beside the narrow dock pill. Over that area the panel setsignoresMouseEvents = false(CatNotch/NotchPanel.swift:221). If the window server doesn't pass clicks through fully transparent pixels, clicks on menu-bar items or windows next to the open Notch land on the panel. That would conflict with spec 0015 AC-2.
Steps to reproduce
- Part 1: open the Notch on Calendar, open Settings, turn Calendar off, look at the Notch.
- Part 2: open the Notch, then click a menu-bar item or window just to the left of it, or beside the dock pill. Note whether the click reaches it.
Relevant files
CatNotch/NotchPanel.swift,CatNotch/NotchBody.swift,CatNotch/AgendaModel.swiftCatNotchCore/NotchHover.swift,CatNotchCoreTests/NotchHoverTests.swift- Spec:
docs/specs/0015-native-notch-panel-and-click-through.md
Acceptance criteria
- Part 1: turning Calendar off while on Calendar goes to Home.
- Part 2: a comment here with the repro result. If clicks are swallowed, shrink
hitsto what is actually drawn, with a test inNotchHoverTests.swift.
- Lingua principale
- Swift
- Stelle
- 1
- Fork
- 1
- Merge medio
- 3h 11m
- PR unite (30g)
- 28
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di thecharydev/catnotch
-
bug good first issue ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
thecharydev/catnotch#68 ·
I maintainer di solito rispondono entro 1 giorno
-
Claude settings.json can be overwritten when unreadable, and a symlinked one becomes a plain fileApertabug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
thecharydev/catnotch#66 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
thecharydev/catnotch#41 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
thecharydev/catnotch#40 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
thecharydev/catnotch#39 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di thecharydev/catnotch
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openwatersio/slackwater-ios#976 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
difficulty: beginner documentation help wanted networking
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
openwatersio/slackwater#591 ·
I maintainer di solito rispondono entro 1 giorno