mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-04 06:43:08 +00:00
O escopo A/C do gate (PR #1370) é superado por decisão do dono (2026-10-01, aval jurídico declarado): o índice vira anônimo (archivePhotoFace, foto + descritor 128-d, sem nome/vínculo), o enrollment por pessoa morre (faceSubject/faces:enroll removidos) e qualquer visitante encontra as próprias fotos aprovadas. - faces:index persiste os descritores por foto (transação substitui as linhas + marker = modelo); desaprovar/remover/deletar foto apaga os descritores (hooks + FK cascade) - POST /api/fotos/selfie casa o vetor da consulta contra o índice em memória (TTL 60 s) e devolve só a interseção com o read aprovado do C233, sem score/nome de terceiro; leave-index apaga os descritores que casarem - Consentimentos seguem fail-closed: busca-selfie-fotos (consulta) e busca-selfie-indice (aviso público do índice), textos versionados em scripts/lib/faceConsentTexts.mjs e provisionados por pnpm seed:face-consents - pnpm archive:publish aprova o acervo em lote (draft -> approved; removed nunca) com guardas e recibo - C243: seção condicional SelfieSearchHomeSection (port do design hi-fi, cenas 390/1280) entre a Central e a newsletter; sem engine/captura na home e sem CTA morto quando fechada - docs: planos C242/C243, AGENTS-public, runbook §C242, changelog Provas: gate:fast 457 arquivos/5.055 testes; int full 109/1.075; e2e frontendFotosSelfie 9/9; knip verde.
30 lines
1.6 KiB
TypeScript
30 lines
1.6 KiB
TypeScript
import { cn } from '@/lib/utils'
|
||
|
||
/** Shared class contracts of the public photo album (artefato C233, cenas 01–07). */
|
||
|
||
export const ARCHIVE_PHOTO_FOCUS =
|
||
'focus-visible:outline-[3px] focus-visible:outline-offset-[3px] focus-visible:outline-(--pt-yellow) focus-visible:shadow-[0_0_0_6px_rgb(24_78_146/72%)]'
|
||
|
||
export const ARCHIVE_PHOTO_CHIP = cn(
|
||
'inline-flex min-h-11 items-center gap-1.5 rounded-full border border-(--campaign-line) bg-white px-3 text-xs font-bold text-black',
|
||
ARCHIVE_PHOTO_FOCUS,
|
||
)
|
||
|
||
export const ARCHIVE_PHOTO_ACTIVE_CHIP = cn(
|
||
'inline-flex min-h-11 items-center gap-1.5 rounded-full border border-[#184e92]/35 bg-[#eef4fb] px-3 text-xs font-bold text-[#184e92]',
|
||
ARCHIVE_PHOTO_FOCUS,
|
||
)
|
||
|
||
export const ARCHIVE_PHOTO_PRIMARY_BUTTON = cn(
|
||
'inline-flex min-h-11 items-center justify-center gap-2 rounded-[10px] bg-(--pt-red) px-4 font-[family-name:var(--font-exo2)] text-sm font-extrabold text-white no-underline',
|
||
'shadow-[0_4px_0_#7f1616] transition-[transform,box-shadow] duration-150 ease-out hover:-translate-y-0.5 active:translate-y-[2px] active:shadow-[0_2px_0_#7f1616] motion-reduce:transition-none',
|
||
ARCHIVE_PHOTO_FOCUS,
|
||
)
|
||
|
||
export const ARCHIVE_PHOTO_SECONDARY_BUTTON = cn(
|
||
'inline-flex min-h-11 items-center justify-center gap-2 rounded-[10px] border border-(--campaign-line) bg-white px-4 font-[family-name:var(--font-exo2)] text-sm font-extrabold text-black no-underline',
|
||
'transition-colors duration-150 ease-out hover:border-black/30 motion-reduce:transition-none',
|
||
ARCHIVE_PHOTO_FOCUS,
|
||
)
|
||
|
||
export const ARCHIVE_PHOTO_CARD = cn('block rounded-xl text-left', ARCHIVE_PHOTO_FOCUS)
|