Skip to content

feat(phase-0): wire glass chrome and debug sign-in to unblock flow#2

Merged
renatobardi merged 3 commits into
mainfrom
feat/phase-0-glass
Jun 1, 2026
Merged

feat(phase-0): wire glass chrome and debug sign-in to unblock flow#2
renatobardi merged 3 commits into
mainfrom
feat/phase-0-glass

Conversation

@renatobardi

Copy link
Copy Markdown
Owner

What

Completa o código da Fase 0 com o chrome Liquid Glass e um caminho de sign-in para desenvolvimento:

  • popover.appearance = nil no AppDelegate — habilita o chrome glass automático do NSPopover no macOS 26.
  • KuraGlassContainer em Theme.swift — wrapper que abstrai o #available(macOS 26, *) do GlassEffectContainer; em versões anteriores renderiza o conteúdo sem wrapper.
  • Glass interativo aplicado ao botão Sign in with Apple (LoginView) e ao botão sign-out do header (DashboardView).
  • AuthManager.debugSignIn() atrás de #if DEBUG + botão "Dev Sign In" na LoginView.
  • CLAUDE.md atualizado: itens marcados como done, novas decisões técnicas documentadas.

Why

A aprovação da conta Apple Developer está demorando, e o entitlement Sign in with Apple é o único bloqueio real da Fase 0. O debugSignIn usa o mesmo fluxo de Keychain e authState da produção, permitindo testar login → dashboard → sign-out sem o entitlement — sem retrabalho: ao ativar o Firebase, basta deletar os blocos #if DEBUG. Os itens de glass não dependiam da conta e estavam pendentes sem motivo.

How

  • KuraGlassContainer centraliza o guard de disponibilidade para que as call sites fiquem livres de #if available.
  • Glass aplicado apenas na camada de navegação (botões/header), seguindo a regra Apple HIG já documentada no CLAUDE.md.
  • debugSignIn isolado em #if DEBUG garante que o código é excluído da release build — caminho de produção intocado.
  • Build verde: xcodebuild build com BUILD SUCCEEDED.

renatobardi and others added 3 commits May 31, 2026 16:59
- popover.appearance = nil enables NSPopover glass chrome on macOS 26
- add KuraGlassContainer wrapper abstracting GlassEffectContainer availability
- apply interactive glass to Sign in with Apple and sign-out buttons
- add AuthManager.debugSignIn() behind #if DEBUG to test the full flow
  without an approved Apple Developer account

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- mark KeychainHelper nonisolated so Task.detached actually reads the
  Keychain off the main thread and compiles under Swift 6 language mode
- drop glass from the opaque Sign in with Apple button (no visible effect,
  Apple HIG forbids altering the SIWA button)
- remove nested glass on the sign-out button; glass stays only on the
  header bar to avoid glass-sampling-glass artifact

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Jun 1, 2026

Copy link
Copy Markdown

@renatobardi
renatobardi merged commit bb8644c into main Jun 1, 2026
2 checks passed
@renatobardi
renatobardi deleted the feat/phase-0-glass branch June 3, 2026 01:04
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.

1 participant