feat: implement market page with QueryProvider and dynamic listings

- wrap root layout with QueryProvider for React Query
- replace market UnderConstruction placeholder with MarketClient and real data fetching
- implement search, pagination, and sort via search params using getActiveListings
- add necessary client components and queries
- update dependencies (e.g., prisma, pkg-types)
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-05 01:58:03 -03:00
1 parent 55eebde0ba
commit ab37b477df
106 files changed
+15261 -301

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
# Script PowerShell seguro para executar migração mantendo dados
Write-Host "🚀 Iniciando migração segura do banco de dados..." -ForegroundColor Cyan
Write-Host ""
Write-Host "📋 Esta migração irá:" -ForegroundColor Yellow
Write-Host " ✅ Adicionar colunas opcionais (min_bid_increment, initial_price_*)" -ForegroundColor Green
Write-Host " ✅ Preencher dados de leilões existentes" -ForegroundColor Green
Write-Host " ✅ NÃO remover nenhum dado" -ForegroundColor Green
Write-Host ""
# Executar migração
Write-Host "📝 Executando migração..." -ForegroundColor Cyan
pnpm run db:migrate
# Verificar se foi bem-sucedida
if ($LASTEXITCODE -eq 0) {
Write-Host ""
Write-Host "✅ Migração executada com sucesso!" -ForegroundColor Green
Write-Host ""
Write-Host "🔄 Regenerando Prisma Client..." -ForegroundColor Cyan
pnpm run prisma:generate
if ($LASTEXITCODE -eq 0) {
Write-Host ""
Write-Host "🎉 Migração completa! Todos os dados foram preservados." -ForegroundColor Green
} else {
Write-Host ""
Write-Host "⚠️ Migração executada, mas falha ao regenerar Prisma Client" -ForegroundColor Yellow
Write-Host " Execute manualmente: pnpm run prisma:generate" -ForegroundColor Yellow
}
} else {
Write-Host ""
Write-Host "❌ Erro ao executar migração" -ForegroundColor Red
exit 1
}