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

Abierto
#74 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
macos, swift
Área
desktop, frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Swift
Estrellas
1
Forks
1
Merge medio
3 h 11 min
PR fusionados (30 d)
28

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de thecharydev/catnotch

Todos los issues de thecharydev/catnotch

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.