Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@prisma/client": "6.5.0",
"axios": "^1.8.4",
"date-fns": "^4.1.0",
"flowbite-svelte-blocks": "^1.1.4",
"flowbite-svelte-blocks": "^2.0.0",
"flowbite-svelte-icons": "^2.1.1",
"svelte-fa": "^4.0.3",
"uuid": "^11.1.0"
Expand Down
2 changes: 2 additions & 0 deletions prisma/migrations/20250418063418_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Case" ADD COLUMN "dueDate" TIMESTAMP(3);
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ model Case {
origin String? // Email, Web, Phone
type String? // Problem, Feature Request, Question
reason String? // Example: "User didn't attend training, Complex functionality"
dueDate DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
closedAt DateTime?
Expand Down
106 changes: 1 addition & 105 deletions src/routes/(app)/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,80 +36,6 @@
activeMainSidebar = navigation.to?.url.pathname ?? '';
});

let menu = [
{ name: 'Dashboard', icon: 'ChartPieOutline', href: '/app/dashboard' },
{ name: 'Leads', icon: 'FunnelOutline', href: '/app/leads' },
{ name: 'Contacts', icon: 'UserOutline', href: '/app/contacts' },
{
name: 'Accounts',
icon: 'BuildingOfficeOutline',
children: {
'All Accounts': '/app/accounts',
'New Account': '/app/accounts/new',
'Account Opportunities': '/app/accounts/opportunities',
'Deleted/Archived Accounts': '/app/accounts/deleted'
}
},
{
name: 'Opportunities',
icon: 'CurrencyDollarOutline',
children: {
'All Opportunities': '/app/opportunities',
'New Opportunity': '/app/opportunities/new'
}
},
{
name: 'Cases',
icon: 'LifebuoyOutline',
children: {
'All Cases': '/app/cases',
'New Case': '/app/cases/new'
}
},
{
name: 'Tasks',
icon: 'ClipboardOutline',
children: {
'All Tasks': '/app/tasks',
'New Task': '/app/tasks/new',
Calendar: '/app/tasks/calendar'
}
},
{
name: 'Invoices',
icon: 'ReceiptOutline',
children: {
'All Invoices': '/app/invoices',
'Create Invoice': '/app/invoices/new'
}
},
{
name: 'Reports',
icon: 'ChartBarOutline',
children: {
'Sales Reports': '/app/reports/sales',
'Case Stats': '/app/reports/cases',
'Invoice Trends': '/app/reports/invoices'
}
},
{
name: 'Settings',
icon: 'CogOutline',
children: {
'User Management': '/app/settings/users',
'Custom Fields': '/app/settings/fields',
Integrations: '/app/settings/integrations'
}
}
];
let links = [
{
label: 'Support',
href: 'https://discord.gg/',
icon: LifeSaverSolid
}
];
let dropdowns = Object.fromEntries(Object.keys(menu).map((x) => [x, false]));
</script>

<Sidebar
Expand Down Expand Up @@ -143,11 +69,6 @@
href="/app/leads/open"
class={`${itemClass} ${mainSidebarUrl === '/app/leads/open' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`}
/>
<SidebarDropdownItem
label="Closed Leads"
href="/app/leads/closed"
class={`${itemClass} ${mainSidebarUrl === '/app/leads/closed' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`}
/>
<SidebarDropdownItem
label="Create Lead"
href="/app/leads/new"
Expand All @@ -171,26 +92,7 @@
href="/app/accounts/opportunities"
class={`${itemClass} ${mainSidebarUrl === '/app/accounts/opportunities' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`}
/>
<SidebarDropdownItem
label="Deleted/Archived Accounts"
href="/app/accounts/deleted"
class={`${itemClass} ${mainSidebarUrl === '/app/accounts/deleted' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`}
/>
</SidebarDropdownWrapper>

<SidebarDropdownWrapper label="Opportunities">
<SidebarDropdownItem
label="All Opportunities"
href="/app/opportunities"
class={`${itemClass} ${mainSidebarUrl === '/app/opportunities' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`}
/>
<SidebarDropdownItem
label="New Opportunity"
href="/app/opportunities/new"
class={`${itemClass} ${mainSidebarUrl === '/app/opportunities/new' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`}
/>
</SidebarDropdownWrapper>

<SidebarDropdownWrapper label="Cases">
<SidebarDropdownItem
label="All Cases"
Expand All @@ -217,13 +119,7 @@
/>
</SidebarDropdownWrapper>
</SidebarGroup>
<SidebarGroup ulClass={groupClass}>
{#each links as { label, href, icon } (label)}
<SidebarItem {label} {href} spanClass="ml-3" class={itemClass} target="_blank">
<svelte:component this={icon} slot="icon" class={iconClass} />
</SidebarItem>
{/each}
</SidebarGroup>

</nav>
</SidebarWrapper>
</Sidebar>
Expand Down
1 change: 1 addition & 0 deletions src/routes/(app)/app/accounts/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
/>
<select
class="border border-gray-300 dark:border-gray-600 rounded px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"
style="width: 90px;"
bind:value={statusFilter}
on:change={updateQueryParams}
>
Expand Down
Loading