iachat/app/javascript/dashboard/components-next/sidebar
Shivam Mishra 161024db9d
feat: Add visibility checks for installation types (#10773)
This pull request includes multiple changes to the sidebar and route
metas to configure visibility of features on the dashboard.

Here's a summary of the changes

1. Added `installationTypes`, field to routes `meta`, this works along
side `permissions` and `featureFlags`
This allows us to decide weather a particular feature is accessible on a
particular type. For instance, the Billing pages should only be
available on Cloud
2. Updated `usePolicy` and `policy.vue` to use the new
`installationTypes` config
3. Updated Sidebar related components to remove `showOnlyOnCloud` to use
the new policy updates.

Testing the PR

Here's the matrix of cases:
https://docs.google.com/spreadsheets/d/15AAJntJZoyudaby77BOnRcC4435FGuT7PXbUXoTyU50/edit?usp=sharing

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
Co-authored-by: Pranav <pranavrajs@gmail.com>
2025-02-21 14:48:31 -08:00
..
ChannelLeaf.vue feat: add channel icon component (#10471) 2024-11-20 20:23:12 -08:00
provider.js feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
Sidebar.vue feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
SidebarAccountSwitcher.vue chore: Disable account switcher for single-account users (#10768) 2025-01-27 13:19:48 +05:30
SidebarGroup.vue feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
SidebarGroupEmptyLeaf.vue feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00
SidebarGroupHeader.vue feat: Add unread badge to sidebar for inbox view (#10803) 2025-01-31 15:14:10 +05:30
SidebarGroupLeaf.vue feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
SidebarGroupSeparator.vue feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00
SidebarNotificationBell.vue feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00
SidebarProfileMenu.vue chore: Add internal feature flags for Chatwoot Cloud (#10902) 2025-02-15 16:21:46 -08:00
SidebarProfileMenuStatus.vue fix: Update UI issues with sidebar (#10535) 2024-12-04 13:48:12 -08:00
SidebarSubGroup.vue feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
useSidebarKeyboardShortcuts.js feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00