sistema-de-chamados/convex
rever-tecnologia 70cba99424
All checks were successful
CI/CD Web + Desktop / Detect changes (push) Successful in 6s
CI/CD Web + Desktop / Deploy (VPS Linux) (push) Successful in 3m15s
Quality Checks / Lint, Test and Build (push) Successful in 3m35s
CI/CD Web + Desktop / Deploy Convex functions (push) Successful in 1m20s
feat(automations): historico expandivel com detalhes das acoes
- Adiciona linhas expandiveis no historico de execucoes
- Mostra detalhes completos de cada acao (destinatarios, assunto, etc.)
- Salva mais informacoes no backend para acoes de e-mail
- Remove log de progresso do dashboard de reports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 10:51:37 -03:00
..
_generated feat: checklists em tickets + automações 2025-12-13 20:51:47 -03:00
alerts.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
automations.ts feat(automations): historico expandivel com detalhes das acoes 2025-12-18 10:51:37 -03:00
automationsEngine.ts fix: automações (gatilhos, histórico) e chat desktop 2025-12-13 11:26:42 -03:00
bootstrap.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
categories.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
categorySlas.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
checklistTemplates.ts fix(checklist): corrige exibicao da descricao do template no ticket 2025-12-16 19:34:25 -03:00
commentTemplates.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
companies.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
companySlas.ts fix(sla): adiciona import de Id no companySlas 2025-12-17 19:22:47 -03:00
convex.config.ts chore: trigger convex rebuild 2025-10-22 02:16:32 -03:00
crons.ts fix(convex): mover cron jobs para API HTTP + crontab do Linux 2025-12-10 08:51:32 -03:00
dashboards.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
deviceExportTemplates.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
deviceFieldDefaults.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
deviceFields.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
devices.ts feat: dispositivos e ajustes de csat e relatórios 2025-11-03 19:29:50 -03:00
emprestimos.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
fields.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
files.ts chore: reorganize project structure and ensure default queues 2025-10-06 22:59:35 -03:00
incidents.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
invites.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
liveChat.ts feat(chat): vincula timer automaticamente com inicio/fim do chat ao vivo 2025-12-17 18:57:58 -03:00
machines.ts chore: remove debug logs do heartbeat 2025-12-18 10:06:14 -03:00
machineSoftware.ts feat(devices): implementa tabela separada para softwares instalados 2025-12-18 08:00:40 -03:00
metrics.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
migrations.ts fix: remove duplicacao de comentario na troca de responsavel e corrige avatar 2025-12-15 18:53:49 -03:00
ops.ts feat: add health dashboard and local ticket archive 2025-12-10 14:43:13 -03:00
queues.ts fix(dashboard): "Em andamento" conta apenas tickets com play ativo 2025-12-17 14:39:39 -03:00
rbac.ts feat: automações de tickets e testes de regressão 2025-12-13 10:30:29 -03:00
reactEmail.tsx feat(email): adiciona templates React Email e melhora UI admin 2025-12-17 11:46:02 -03:00
README.md chore: trigger convex deploy 2025-11-17 16:02:12 -03:00
reports.ts feat(automations): historico expandivel com detalhes das acoes 2025-12-18 10:51:37 -03:00
revision.ts chore(convex): bump revision to force functions deploy 2025-10-21 11:34:14 -03:00
schema.ts feat: adiciona informacoes de reinicio e melhora SLA global 2025-12-18 09:38:58 -03:00
seed.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
slas.ts feat: adiciona informacoes de reinicio e melhora SLA global 2025-12-18 09:38:58 -03:00
teams.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
ticketChecklist.ts feat(checklist): exibe descricao do template e do item no ticket 2025-12-16 09:45:09 -03:00
ticketForms.config.ts chore: prep platform improvements 2025-11-09 21:09:38 -03:00
ticketFormSettings.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
ticketFormTemplates.ts fix(convex): corrigir memory leak com .collect() sem limite e adicionar otimizacoes 2025-12-09 21:41:30 -03:00
ticketNotifications.ts fix(email): adiciona tratamento de erros no envio de e-mails de automacao 2025-12-17 19:05:24 -03:00
tickets.ts feat(chat): vincula timer automaticamente com inicio/fim do chat ao vivo 2025-12-17 18:57:58 -03:00
tsconfig.json chore: reorganize project structure and ensure default queues 2025-10-06 22:59:35 -03:00
url.ts feat(email): adota React Email em notificações e automações 2025-12-13 13:11:41 -03:00
usbPolicy.ts fix(convex): adicionar logs obrigatorios em cron jobs para evitar shape_inference errors 2025-12-10 00:01:49 -03:00
users.ts feat: melhorias de UX e redesign de comentários 2025-12-15 22:05:27 -03:00

Welcome to your Convex functions directory!

CI note: touching a file under convex/** intentionally triggers the Convex deploy job. // minor note to bump convex deploy

Write your Convex functions here. See https://docs.convex.dev/functions for more.

A query function that takes two arguments looks like:

// convex/myFunctions.ts
import { query } from "./_generated/server";
import { v } from "convex/values";

export const myQueryFunction = query({
  // Validators for arguments.
  args: {
    first: v.number(),
    second: v.string(),
  },

  // Function implementation.
  handler: async (ctx, args) => {
    // Read the database as many times as you need here.
    // See https://docs.convex.dev/database/reading-data.
    const documents = await ctx.db.query("tablename").collect();

    // Arguments passed from the client are properties of the args object.
    console.log(args.first, args.second);

    // Write arbitrary JavaScript here: filter, aggregate, build derived data,
    // remove non-public properties, or create new objects.
    return documents;
  },
});

Using this query function in a React component looks like:

const data = useQuery(api.myFunctions.myQueryFunction, {
  first: 10,
  second: "hello",
});

A mutation function looks like:

// convex/myFunctions.ts
import { mutation } from "./_generated/server";
import { v } from "convex/values";

export const myMutationFunction = mutation({
  // Validators for arguments.
  args: {
    first: v.string(),
    second: v.string(),
  },

  // Function implementation.
  handler: async (ctx, args) => {
    // Insert or modify documents in the database here.
    // Mutations can also read from the database like queries.
    // See https://docs.convex.dev/database/writing-data.
    const message = { body: args.first, author: args.second };
    const id = await ctx.db.insert("messages", message);

    // Optionally, return a value from your mutation.
    return await ctx.db.get(id);
  },
});

Using this mutation function in a React component looks like:

const mutation = useMutation(api.myFunctions.myMutationFunction);
function handleButtonPress() {
  // fire and forget, the most common way to use mutations
  mutation({ first: "Hello!", second: "me" });
  // OR
  // use the result once the mutation has completed
  mutation({ first: "Hello!", second: "me" }).then((result) =>
    console.log(result),
  );
}

Use the Convex CLI to push your functions to a deployment. See everything the Convex CLI can do by running npx convex -h in your project root directory. To learn more, launch the docs with npx convex docs.