From e863ab9d721cffe80e4c9068097b8ec16627f110 Mon Sep 17 00:00:00 2001 From: adm01-debug Date: Sat, 23 May 2026 17:52:06 -0300 Subject: [PATCH] fix(ci): corrige posicao da anotacao rls-allow em QuoteViewPage (destrava seller-scope gate) O check-seller-scope.mjs so aceita a anotacao // rls-allow: na mesma linha do .from(...) ou imediatamente acima. A anotacao estava 2 linhas acima (separada por 'await supabase'), entao o gate marcava QuoteViewPage.tsx:210 como violacao e derrubava o job 'Lint, Typecheck & Test' no CI. Move o comentario para imediatamente acima de .from('quotes'). Query inalterada (lookup por id, RLS valida ownership). Apenas reposiciona 1 linha. --- src/pages/quotes/QuoteViewPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/quotes/QuoteViewPage.tsx b/src/pages/quotes/QuoteViewPage.tsx index c8e0dea7c..092fd89d7 100644 --- a/src/pages/quotes/QuoteViewPage.tsx +++ b/src/pages/quotes/QuoteViewPage.tsx @@ -205,8 +205,8 @@ export default function QuoteViewPage() { { try { - // rls-allow: lookup por id; RLS valida ownership await supabase + // rls-allow: lookup por id; RLS valida ownership .from('quotes') .update({ status: 'pending' } as Record) .eq('id', quote.id);