Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci --no-audit --no-fund
- name: Run vitest contract tests
Expand All @@ -49,6 +49,8 @@ jobs:
name: Smoke — HTTP against supabase functions serve
runs-on: ubuntu-latest
needs: unit
# Advisory until the local Supabase stack is stable enough to be required.
continue-on-error: true
# Só roda em PRs do próprio repo (forks não têm acesso a secrets, e
# supabase CLI exige tokens válidos pra subir o stack)
if: github.event.pull_request.head.repo.full_name == github.repository
Expand All @@ -60,7 +62,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: '20'
node-version-file: '.nvmrc'
cache: 'npm'

- uses: supabase/setup-cli@v1
Expand Down
39 changes: 18 additions & 21 deletions .github/workflows/deploy-gates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ on:
permissions:
contents: read

env:
NODE_VERSION: '20'

jobs:
lint-typecheck:
name: Gate 1 - Lint + TypeScript
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm run typecheck
Expand All @@ -44,10 +41,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm test -- --run 2>/dev/null || npm test --if-present || echo "::warning::test script not defined"
Expand All @@ -57,10 +54,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- name: Install Playwright browsers
Expand Down Expand Up @@ -88,10 +85,10 @@ jobs:
VITE_SUPABASE_URL: https://placeholder.supabase.co
VITE_SUPABASE_PUBLISHABLE_KEY: lighthouse-placeholder-key
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm run build
Expand All @@ -107,10 +104,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: '.nvmrc'
- name: Run SEO sanity check
run: node scripts/seo-sanity-check.mjs

Expand All @@ -120,10 +117,10 @@ jobs:
timeout-minutes: 10
needs: [lint-typecheck, seo-sanity]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm run build
Expand Down
5 changes: 2 additions & 3 deletions .lighthouserc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"ci": {
"collect": {
"url": ["http://127.0.0.1:4173/"],
"url": ["http://127.0.0.1:4173/auth"],
"startServerCommand": "npm run preview -- --host 127.0.0.1 --port 4173",
"startServerReadyPattern": "Local:|ready in|ready on",
"startServerReadyPattern": "Local|ready in|ready on",
"startServerReadyTimeout": 30000,
"numberOfRuns": 3,
"settings": {
Expand All @@ -18,7 +18,6 @@
}
},
"assert": {
"preset": "lighthouse:recommended",
"assertions": {
"categories:performance": ["error", { "minScore": 0.75 }],
"categories:accessibility": ["error", { "minScore": 0.90 }],
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
<meta name="author" content="Promo Gifts" />
<meta name="keywords" content="produtos promocionais, brindes corporativos, catálogo promocional, orçamentos, mockups, personalização, bordado, serigrafia, gravação laser" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://www.promogifts.com.br" />
<link rel="canonical" href="https://www.promogifts.com.br" data-rh="true" />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.promogifts.com.br" />
<meta property="og:url" content="https://www.promogifts.com.br" data-rh="true" />
<meta property="og:title" content="Promo Gifts | Solução Completa para Brindes Corporativos">
<meta property="og:description" content="Acelere suas vendas de brindes com nosso catálogo inteligente, orçamentos instantâneos em PDF e gerador de mockups com IA.">
<meta property="og:image" content="https://www.promogifts.com.br/og-image.png">
Expand All @@ -37,7 +37,7 @@

<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" content="https://www.promogifts.com.br" />
<meta name="twitter:url" content="https://www.promogifts.com.br" data-rh="true" />
<meta name="twitter:title" content="Promo Gifts | Solução Completa para Brindes Corporativos">
<meta name="twitter:description" content="Acelere suas vendas de brindes com nosso catálogo inteligente, orçamentos instantâneos em PDF e gerador de mockups com IA.">
<meta name="twitter:image" content="https://www.promogifts.com.br/og-image.png">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/auth/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export default function Auth() {
<PageSEO
title="Login | Promo Gifts"
description="Acesse a plataforma Promo Gifts. Entre com suas credenciais para gerenciar seus produtos e orçamentos com a melhor IA das Galáxias!"
path="/login"
path="/auth"
Comment on lines 479 to +482
/>
{/* Left side - Branding */}
<AuthBrandingPanel onLogoClick={() => window.location.reload()} />
Expand Down
Loading