iachat/app/javascript/dashboard/routes/dashboard
Gabriel Jablonski d2e6d6aee3
fix: Improve handling of empty custom attributes list in settings (#13127)
## Description

This PR fixes a UX bug in the Custom Attributes settings page where
switching tabs becomes impossible when the currently selected tab has no
attributes.

Closes #13120

### The Problem
When viewing the Custom Attributes settings page, if one tab (e.g.,
Conversation) has no attributes, users could not switch to the other tab
(e.g., Contact) which might have attributes.

### Root Cause
The `SettingsLayout` component receives `no-records-found` prop which,
when true, hides the entire body content including the TabBar. Since the
TabBar was inside the body slot, it would be hidden whenever the current
tab had no attributes, preventing users from switching tabs.

### The Fix
- Removed the `no-records-found` and `no-records-message` props from
`SettingsLayout`
- Moved the empty state message inline within the body, displayed below
the TabBar
- The TabBar is now always visible regardless of whether there are
attributes in the selected tab

### Key Changes
- Modified `Index.vue` to handle empty state inline while keeping TabBar
accessible

## Type of change

- [X] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

1. Navigate to Settings > Custom Attributes
2. Ensure only one tab (e.g., Contact) has custom attributes
3. Switch to the empty tab (e.g., Conversation)
4. Verify the TabBar remains visible and the empty state message is
shown
5. Switch back to the tab with attributes
6. Verify attributes are displayed correctly
7. Repeat with both tabs empty and both tabs with attributes
2025-12-22 15:10:45 -08:00
..
campaigns feat: WhatsApp campaigns (#11910) 2025-07-16 09:04:02 +05:30
captain fix: Reactive assistantId issue in Captain Inbox after route changes (#12939) 2025-11-25 18:47:18 +05:30
commands chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
companies feat: Add Pinia support and relocate store factory (#12854) 2025-11-28 16:31:59 +05:30
contacts feat: Bulk delete for contacts (#12778) 2025-11-04 17:47:53 -08:00
conversation feat: TikTok channel (#12741) 2025-12-17 07:54:50 -08:00
customviews chore: Update buttons in dashboard (#11145) 2025-03-31 17:21:32 -07:00
helpcenter chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
inbox feat: Display notification count in sidebar inbox item (#12324) 2025-09-01 15:55:09 +05:30
noAccounts fix: Handle login when there are no accounts (#12816) 2025-11-07 10:14:59 +05:30
notifications chore: Replace Thumbnail with Avatar (#12119) 2025-08-11 15:47:17 +05:30
settings fix: Improve handling of empty custom attributes list in settings (#13127) 2025-12-22 15:10:45 -08:00
suspended chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
upgrade fix: Conditionally fetch limits and assistants for enterprise/cloud (#12099) 2025-08-04 15:06:58 -07:00
dashboard.routes.js feat: Companies page (#12842) 2025-11-18 15:29:15 +05:30
Dashboard.vue feat: Voice Channel (#11602) 2025-12-19 12:41:33 -08:00