feat: enhance LGPD request handling with email notifications and response templates; update frontend filters for improved user experience
This commit is contained in:
@@ -22,18 +22,19 @@
|
||||
import { ptBR } from 'date-fns/locale';
|
||||
import { toast } from 'svelte-sonner';
|
||||
|
||||
type StatusFiltro = 'pendente' | 'em_analise' | 'concluida' | 'rejeitada' | null;
|
||||
type StatusFiltro = '' | 'pendente' | 'em_analise' | 'concluida' | 'rejeitada';
|
||||
type TipoFiltro =
|
||||
| ''
|
||||
| 'acesso'
|
||||
| 'correcao'
|
||||
| 'exclusao'
|
||||
| 'portabilidade'
|
||||
| 'revogacao_consentimento'
|
||||
| 'informacao_compartilhamento'
|
||||
| null;
|
||||
| 'informacao_compartilhamento';
|
||||
|
||||
let statusFiltro = $state<StatusFiltro>(null);
|
||||
let tipoFiltro = $state<TipoFiltro>(null);
|
||||
// '' = Todos (sem filtro)
|
||||
let statusFiltro = $state<StatusFiltro>('');
|
||||
let tipoFiltro = $state<TipoFiltro>('');
|
||||
let termoBusca = $state('');
|
||||
|
||||
const client = useConvexClient();
|
||||
@@ -221,7 +222,7 @@
|
||||
<span class="label-text font-semibold">Status</span>
|
||||
</label>
|
||||
<select bind:value={statusFiltro} class="select select-bordered">
|
||||
<option value={null}>Todos</option>
|
||||
<option value="">Todos</option>
|
||||
<option value="pendente">Pendente</option>
|
||||
<option value="em_analise">Em Análise</option>
|
||||
<option value="concluida">Concluída</option>
|
||||
@@ -234,7 +235,7 @@
|
||||
<span class="label-text font-semibold">Tipo</span>
|
||||
</label>
|
||||
<select bind:value={tipoFiltro} class="select select-bordered">
|
||||
<option value={null}>Todos</option>
|
||||
<option value="">Todos</option>
|
||||
<option value="acesso">Acesso</option>
|
||||
<option value="correcao">Correção</option>
|
||||
<option value="exclusao">Exclusão</option>
|
||||
|
||||
Reference in New Issue
Block a user