diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 55614fa..aef2f7a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: file: ./apps/web/Dockerfile # Only push on 'push' event (merge to master), not on 'pull_request' push: ${{ github.event_name == 'push' }} - tags: killercf/sgc:latest + tags: sgsedevs/sgse-app:latest platforms: linux/amd64 build-args: | PUBLIC_CONVEX_URL=${{ secrets.PUBLIC_CONVEX_URL }} diff --git a/apps/web/src/routes/(dashboard)/almoxarifado/+page.svelte b/apps/web/src/routes/(dashboard)/almoxarifado/+page.svelte index d55b30b..aee471f 100644 --- a/apps/web/src/routes/(dashboard)/almoxarifado/+page.svelte +++ b/apps/web/src/routes/(dashboard)/almoxarifado/+page.svelte @@ -3,6 +3,7 @@ import { useConvexClient, useQuery } from 'convex-svelte'; import { goto } from '$app/navigation'; import { resolve } from '$app/paths'; + import { SvelteMap } from 'svelte/reactivity'; import { Package, AlertTriangle, @@ -23,8 +24,8 @@ // Criar mapa de materiais para lookup eficiente const materiaisMap = $derived.by(() => { - if (!materiaisQuery.data) return new Map(); - const map = new Map(); + if (!materiaisQuery.data) return new SvelteMap(); + const map = new SvelteMap(); for (const material of materiaisQuery.data) { map.set(material._id, material); } @@ -41,7 +42,7 @@ } const produtos = ultimosProdutosQuery.data; - + // Ordenar do mais antigo para o mais recente (para o gráfico) const produtosOrdenados = [...produtos].reverse(); @@ -56,7 +57,7 @@ '#f43f5e', // red '#fb7185', // pink-400 '#f87171', // red-400 - '#fb923c' // orange-400 + '#fb923c' // orange-400 ]; return { @@ -89,14 +90,12 @@
- Controle de estoque e gestão de materiais -
+Controle de estoque e gestão de materiais
Mostrando os últimos 10 produtos cadastrados ordenados por data de criação
| Material | @@ -236,13 +243,13 @@|||
|---|---|---|---|
|
{material?.nome || 'Carregando...'}
{#if material?.codigo}
- {material.codigo}
+ {material.codigo}
{/if}
|
@@ -255,7 +262,7 @@ {/if} | - {alerta.quantidadeAtual} + {alerta.quantidadeAtual} | {alerta.quantidadeMinima} @@ -273,11 +280,8 @@ |