forked from git.gladyson/openmonetis
feat: implementar melhorias em importação, compartilhamento e contas inativas
- Corrigir cálculo de valor na importação de lançamentos parcelados
- Exibir valor total (parcela × quantidade) ao invés do valor da parcela individual
- Permite recriar parcelamentos importados com valor correto
- Permitir que usuários compartilhados se descompartilhem de pagadores
- Adicionar componente PagadorLeaveShareCard na aba Perfil
- Usuário filho pode sair do compartilhamento sem precisar do usuário pai
- Manter autorização bidirecionada na action de remoção de share
- Implementar submenu "Inativos" para contas bancárias
- Criar página /contas/inativos seguindo padrão de cartões
- Filtrar contas ativas e inativas em páginas separadas
- Adicionar ícone e navegação no sidebar
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
import {
|
||||
RiArchiveLine,
|
||||
RiArrowLeftRightLine,
|
||||
RiBankCardLine,
|
||||
RiBankCard2Line,
|
||||
RiBankLine,
|
||||
RiCalendarEventLine,
|
||||
RiDashboardLine,
|
||||
RiFileChartLine,
|
||||
RiFundsLine,
|
||||
RiGroupLine,
|
||||
RiNoCreditCardLine,
|
||||
RiPriceTag3Line,
|
||||
RiSettingsLine,
|
||||
RiSparklingLine,
|
||||
RiTodoLine,
|
||||
RiEyeOffLine,
|
||||
type RemixiconComponentType,
|
||||
} from "@remixicon/react";
|
||||
|
||||
@@ -98,12 +100,28 @@ export function createSidebarNavData(pagadores: PagadorLike[]): SidebarNavData {
|
||||
{
|
||||
title: "Cartões",
|
||||
url: "/cartoes",
|
||||
icon: RiBankCardLine,
|
||||
icon: RiBankCard2Line,
|
||||
items: [
|
||||
{
|
||||
title: "Inativos",
|
||||
url: "/cartoes/inativos",
|
||||
key: "cartoes-inativos",
|
||||
icon: RiNoCreditCardLine,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Contas",
|
||||
url: "/contas",
|
||||
icon: RiBankLine,
|
||||
items: [
|
||||
{
|
||||
title: "Inativas",
|
||||
url: "/contas/inativos",
|
||||
key: "contas-inativos",
|
||||
icon: RiEyeOffLine,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Orçamentos",
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
import { getAvatarSrc } from "@/lib/pagadores/utils";
|
||||
import {
|
||||
RiArrowRightSLine,
|
||||
RiStackshareLine,
|
||||
RiUserSharedLine,
|
||||
type RemixiconComponentType,
|
||||
} from "@remixicon/react";
|
||||
import Link from "next/link";
|
||||
@@ -182,7 +182,7 @@ export function NavMain({ sections }: { sections: NavSection[] }) {
|
||||
) : null}
|
||||
<span>{subItem.title}</span>
|
||||
{subItem.isShared ? (
|
||||
<RiStackshareLine className="size-3.5 text-muted-foreground" />
|
||||
<RiUserSharedLine className="size-3.5 text-muted-foreground" />
|
||||
) : null}
|
||||
</Link>
|
||||
</SidebarMenuSubButton>
|
||||
|
||||
Reference in New Issue
Block a user