chatwoot/app/javascript/dashboard
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
..
api feat: Allow users to see heatmap for last 30 days (#10848) 2025-02-19 14:54:15 -08:00
assets revert: Next bubble improvements (#10795) 2025-01-29 20:04:45 -08:00
components feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
components-next feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
composables feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
constants feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
helper fix: Initialize SDK along with emitter registration (#10896) 2025-02-12 22:14:04 -08:00
i18n fix: Incorrect translation in contact merge modal and resolve z-index issue (#10943) 2025-02-20 22:01:36 -08:00
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: show email subject in conversation search results (#10843) 2025-02-06 10:38:57 +05:30
routes feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
store feat: Allow users to see heatmap for last 30 days (#10848) 2025-02-19 14:54:15 -08:00
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00