Compare commits

...

1 Commits

Author SHA1 Message Date
kelly
ec9853c571 fix: sidebar double-click bug and standardize 'Accounts' terminology
- Add width constraint (w-8) to collapse checkbox in CSS to prevent
  it from overlaying menu items below the collapse title
- Rename 'Customers' to 'Accounts' across CRM views:
  - accounts/index.blade.php: title, button labels, empty state text
  - accounts/create.blade.php: page title and submit button
  - accounts/edit.blade.php: page title and breadcrumb
  - accounts/contacts-edit.blade.php: breadcrumb
  - accounts/locations-edit.blade.php: breadcrumb
- Update SuiteMenuResolver route from seller.business.customers.index
  to seller.business.crm.accounts.index
2025-12-14 16:08:14 -07:00
7 changed files with 19 additions and 18 deletions

View File

@@ -124,9 +124,9 @@ class SuiteMenuResolver
// Legacy items kept for backwards compatibility but reassigned
'buyers_accounts' => [
'label' => 'Customers',
'label' => 'Accounts',
'icon' => 'heroicon-o-user-group',
'route' => 'seller.business.customers.index',
'route' => 'seller.business.crm.accounts.index',
'section' => 'Commerce',
'order' => 51,
],

View File

@@ -131,9 +131,10 @@
.collapse {
input {
/* Constrain checkbox to title height only - DaisyUI default has z-index:1 and width:100%
which causes it to overlay the collapse-content and intercept clicks on menu items */
@apply min-h-8 max-h-8 p-0;
/* Constrain checkbox to title area only - DaisyUI default has z-index:1 and width:100%
which causes it to overlay the collapse-content and intercept clicks on menu items.
Fix: constrain both height AND width to match the collapse-title toggle area */
@apply min-h-8 max-h-8 w-8 p-0;
}
.collapse-title {

View File

@@ -15,7 +15,7 @@
</div>
<div class="breadcrumbs hidden p-0 text-sm sm:inline">
<ul>
<li><a href="{{ route('seller.business.crm.accounts.index', $business->slug) }}">Customers</a></li>
<li><a href="{{ route('seller.business.crm.accounts.index', $business->slug) }}">Accounts</a></li>
<li><a href="{{ route('seller.business.crm.accounts.show', [$business->slug, $account->slug]) }}">{{ $account->name }}</a></li>
<li><a href="{{ route('seller.business.crm.accounts.contacts', [$business->slug, $account->slug]) }}">Contacts</a></li>
<li class="opacity-80">Edit</li>

View File

@@ -9,8 +9,8 @@
<span class="icon-[heroicons--arrow-left] size-5"></span>
</a>
<div>
<h1 class="text-2xl font-semibold">Add Customer</h1>
<p class="text-sm text-base-content/60">Create a new customer account</p>
<h1 class="text-2xl font-semibold">Add Account</h1>
<p class="text-sm text-base-content/60">Create a new account</p>
</div>
</div>
</header>
@@ -211,7 +211,7 @@
</a>
<button type="submit" class="btn btn-primary btn-sm gap-1">
<span class="icon-[heroicons--check] size-4"></span>
Create Customer
Create Account
</button>
</div>
</form>

View File

@@ -7,7 +7,7 @@
<div>
<p class="text-lg font-medium flex items-center gap-2">
<span class="icon-[heroicons--building-storefront] size-5"></span>
Edit Customer
Edit Account
</p>
<p class="text-base-content/60 text-sm mt-1">
{{ $account->name }}
@@ -16,7 +16,7 @@
<div class="breadcrumbs hidden p-0 text-sm sm:inline">
<ul>
<li><a href="{{ route('seller.business.dashboard', $business->slug) }}">Dashboard</a></li>
<li><a href="{{ route('seller.business.crm.accounts.index', $business->slug) }}">Customers</a></li>
<li><a href="{{ route('seller.business.crm.accounts.index', $business->slug) }}">Accounts</a></li>
<li><a href="{{ route('seller.business.crm.accounts.show', [$business->slug, $account->slug]) }}">{{ $account->name }}</a></li>
<li class="opacity-80">Edit</li>
</ul>

View File

@@ -2,13 +2,13 @@
@section('content')
<x-cb-list-page
title="Customers"
title="Accounts"
:count="$accounts->total()"
:primary-action-url="route('seller.business.crm.accounts.create', $business->slug)"
primary-action-label="Add Customer"
primary-action-label="Add Account"
:search-value="request('q')"
search-name="q"
search-placeholder="Search customers..."
search-placeholder="Search accounts..."
:clear-url="route('seller.business.crm.accounts.index', $business->slug)"
:form-action="route('seller.business.crm.accounts.index', $business->slug)"
>
@@ -44,10 +44,10 @@
<div class="w-10 h-10 rounded-lg bg-base-200/50 flex items-center justify-center mb-3">
<span class="icon-[heroicons--building-storefront] size-5 text-base-content/30"></span>
</div>
<p class="text-sm font-medium text-base-content/80 mb-1">No customers yet</p>
<p class="text-xs text-base-content/60 mb-4 max-w-sm">Add your first customer to start tracking orders and opportunities.</p>
<p class="text-sm font-medium text-base-content/80 mb-1">No accounts yet</p>
<p class="text-xs text-base-content/60 mb-4 max-w-sm">Add your first account to start tracking orders and opportunities.</p>
<div class="flex gap-2">
<a href="{{ route('seller.business.crm.accounts.create', $business->slug) }}" class="btn btn-primary btn-sm">Add Customer</a>
<a href="{{ route('seller.business.crm.accounts.create', $business->slug) }}" class="btn btn-primary btn-sm">Add Account</a>
<a href="{{ route('seller.business.crm.deals.index', $business->slug) }}" class="btn btn-ghost btn-sm">Pipeline</a>
</div>
</div>

View File

@@ -15,7 +15,7 @@
</div>
<div class="breadcrumbs hidden p-0 text-sm sm:inline">
<ul>
<li><a href="{{ route('seller.business.crm.accounts.index', $business->slug) }}">Customers</a></li>
<li><a href="{{ route('seller.business.crm.accounts.index', $business->slug) }}">Accounts</a></li>
<li><a href="{{ route('seller.business.crm.accounts.show', [$business->slug, $account->slug]) }}">{{ $account->name }}</a></li>
<li class="opacity-80">Edit Location</li>
</ul>