Files
kakeibo/frontend/src/components/layout/nav-items.ts
T
suphicakir ca0d3a505c feat(plan): ilk dönem sihirbazı (dönem, gelir, gider, birikim, bütçe)
- /plan/donem-ac?adim=1..5: her adım hemen kaydedilir, adım adreste
- Panel ve Plan'da açık dönem yoksa "Dönemi başlat" kartı
- MoneyInput (sayısal klavye, Türkçe biçim), moneyText/toKurus, period-dates
- lib/periods.ts: dönem, plan kalemi, özet, bütçe ve öneri kancaları
- SummaryTiles, PageLoading/PageError; 13 yeni vitest

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 08:16:32 +03:00

54 lines
1.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import {
CalendarDays,
ChartLine,
ClipboardCheck,
LayoutDashboard,
Menu,
NotebookPen,
PiggyBank,
Settings,
type LucideIcon,
} from 'lucide-react'
import { t } from '@/lib/strings'
export type NavItem = { to: string; label: string; icon: LucideIcon }
/** Sayfa adresleri tek yerde */
export const paths = {
dashboard: '/',
ledger: '/defter',
planning: '/plan',
/** İlk dönem sihirbazı; `?adim=1..5` */
periodWizard: '/plan/donem-ac',
savings: '/birikim',
more: '/diger',
review: '/degerlendirme',
reports: '/raporlar',
settings: '/ayarlar',
login: '/giris',
register: '/kayit',
} as const
const dashboard: NavItem = { to: paths.dashboard, label: t.nav.dashboard, icon: LayoutDashboard }
const ledger: NavItem = { to: paths.ledger, label: t.nav.ledger, icon: NotebookPen }
const planning: NavItem = { to: paths.planning, label: t.nav.planning, icon: CalendarDays }
const savings: NavItem = { to: paths.savings, label: t.nav.savings, icon: PiggyBank }
const review: NavItem = { to: paths.review, label: t.nav.review, icon: ClipboardCheck }
const reports: NavItem = { to: paths.reports, label: t.nav.reports, icon: ChartLine }
const settings: NavItem = { to: paths.settings, label: t.nav.settings, icon: Settings }
/** Mobil alt menü: 5 öğe (KAKEIBO_PROMPT §9) */
export const bottomNav: NavItem[] = [
dashboard,
ledger,
planning,
savings,
{ to: paths.more, label: t.nav.more, icon: Menu },
]
/** "Diğer" altında toplananlar (mobil) */
export const moreNav: NavItem[] = [review, reports, settings]
/** Masaüstü sol menü: hepsi doğrudan */
export const sideNav: NavItem[] = [dashboard, ledger, planning, review, savings, reports, settings]