Turning Calendar off while on Calendar shows the Files page; open Notch may swallow clicks in its margins

Aperta
#74 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
macos, swift
Ambito
desktop, frontend

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

bug good first issue

[!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

  1. Turning Calendar off while on the Calendar page shows the Files page. When a page is switched off in Settings, NotchPanel moves to Home only if the page is in pagesOff (CatNotch/NotchPanel.swift:169-172). But Calendar is switched off with a separate setting (showCalendar, via AgendaModel), not pagesOff. So the Notch stays on .calendar, and NotchBody (CatNotch/NotchBody.swift:629, :711-719) falls through to the Files content with the dock showing no section selected.
    Fix idea: when showCalendar turns off and model.page == .calendar, go to .home.
  2. 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 sets ignoresMouseEvents = 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.swift
  • CatNotchCore/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 hits to what is actually drawn, with a test in NotchHoverTests.swift.
Lingua principale
Swift
Stelle
1
Fork
1
Merge medio
3h 11m
PR unite (30g)
28

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di thecharydev/catnotch

Tutte le issue di thecharydev/catnotch

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.