Lint de vidro: proibir `border` de vidro e `backdrop-filter` inline
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- developer-experience, tooling
Rechercherichtung
Start at cli/ui-guard.ts:5-6, where the existing hex and px rules live, and copy their shape for two new rules plus the per-file allow handling. Look at glass-overlay.test.ts and the raw surface.css / data-ca-blur usage to see what a valid glass surface looks like, then build fixtures with the two snippets from the acceptance criteria. Done means codeatlas-ui lint reports glass-border and inline-backdrop with file:line, honours allow, and exits 1 on the fixture and 0 once it is fixed.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Versão: @codeatlasdev/ui 4.6.0 · código lido em main (950628f2) · classe: lacuna (migração do AC)
Problema
O AC depende deste comportamento hoje e a lib não o oferece. Sem ele, a migração perde qualidade no desktop, no mobile ou no PWA.
O que a lib já oferece (para não duplicar) e o que falta
ui-guard tem regras hex e px (cli/ui-guard.ts:5-6, clone). Não confirmei regra de vidro. A lib já tem o mecanismo certo (data-ca-blur, surface.css raw), mas nada obriga o uso.
Referência no AC
Caminhos do repo AC (repo privado, só caminho):
AGENTS.md:158-160 (três camadas; borda como box-shadow); packages/ui/src/styles.css:1331,1346.
Defeitos do AC (verificados por leitura do código): 27 arquivos usam border ... [var(--glass-border)] (D1.2). 11 declarações têm backdrop-filter literal fora de data-ca-blur (D1.1). Nada no CI impede isso: glass-overlay.test.ts só confere alfa e presença de classe.
Proposta
regras glass-border (classe de vidro com border em vez de box-shadow) e inline-backdrop (backdrop-filter literal fora de [data-ca-blur]/.glass-*), com allow por arquivo, como as outras regras do codeatlas-ui lint.
Critério de aceite (testável)
-
<div class="border border-[var(--glass-border)] bg-[var(--glass-bg)]">geraglass-bordercomfile:line. -
style="backdrop-filter: blur(24px)"gerainline-backdrop.data-ca-blur="regular"passa. -
codeatlas-ui lintsai com código 1 no fixture e 0 após a correção. -
allowpor arquivo funciona e aparece no relatório.
Mãe: #1089
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6
- Forks
- 3
- Ø Merge
- 5 Std. 21 Min.
- Gemergte PRs (30 T.)
- 378
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codeatlasdev/ui
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
codeatlasdev/ui#1340 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:a11y area:components bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
codeatlasdev/ui#1336 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
codeatlasdev/ui#1329 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
codeatlasdev/ui#1292 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:components enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
codeatlasdev/ui#1198 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codeatlasdev/ui
Ähnliche Issues
-
bug frontend
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
CivicTechWR/accessible-housing-portal#578 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
nekko-labs/nekko-agent#2998 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
sandbox-quantum/switch#2163 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement ux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
lolimmlost/aidj#433 ·
Maintainer antworten meist innerhalb von 1 Tag
-
test: ipcShownDialogKeys.test.tsx can fail the unit run with 'window is not defined' after it endsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag