chatwoot/app/javascript/dashboard
Sivin Varghese 5bf39d20e5
feat: Update Captain navigation structure (#12761)
# Pull Request Template

## Description

This PR includes an update to the Captain navigation structure.

## Route Structure

```javascript
1. captain_assistants_responses_index    → /captain/:assistantId/faqs
2. captain_assistants_documents_index    → /captain/:assistantId/documents
3. captain_assistants_scenarios_index    → /captain/:assistantId/scenarios
4. captain_assistants_playground_index   → /captain/:assistantId/playground
5. captain_assistants_inboxes_index      → /captain/:assistantId/inboxes
6. captain_tools_index                   → /captain/tools
7. captain_assistants_settings_index     → /captain/:assistantId/settings
8. captain_assistants_guardrails_index   → /captain/:assistantId/settings/guardrails
9. captain_assistants_guidelines_index   → /captain/:assistantId/settings/guidelines
10. captain_assistants_index             → /captain/:navigationPath
```

**How it works:**

1. User clicks sidebar item → Routes to `captain_assistants_index` with
`navigationPath`
2. `AssistantsIndexPage` validates route and gets last active assistant,
if not redirects to assistant create page.
3. Routes to actual page: `/captain/:assistantId/:page`
4. Page loads with correct assistant context

Fixes
https://linear.app/chatwoot/issue/CW-5832/updating-captain-navigation

## Type of change

- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?




## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
2025-11-06 16:31:23 -08:00
..
api feat: Changelog card components (#12673) 2025-10-27 14:39:49 +05:30
assets chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
components feat: Enhance button interactions (#12738) 2025-11-06 16:24:05 +05:30
components-next feat: Update Captain navigation structure (#12761) 2025-11-06 16:31:23 -08:00
composables feat: allow quoted email thread in reply (#12545) 2025-09-30 17:47:09 +05:30
constants chore: Enable flexible whatsapp onboarding (Manual + Embedded Signup) options (#12344) 2025-09-15 19:59:56 +05:30
helper fix: Rendering on email without html content (#12561) 2025-10-01 13:43:05 +05:30
i18n feat: Update Captain navigation structure (#12761) 2025-11-06 16:31:23 -08:00
mixins chore: Default file limits for private notes and reset attachment on mode switch (#12310) 2025-08-27 11:56:07 +05:30
modules chore: Adds URL-based search and tab selection (#12663) 2025-10-27 11:17:04 +05:30
routes feat: Update Captain navigation structure (#12761) 2025-11-06 16:31:23 -08:00
store feat: Update Captain navigation structure (#12761) 2025-11-06 16:31:23 -08:00
App.vue feat: Agent language settings (#11222) 2025-09-09 14:27:36 +05:30
featureFlags.js feat: Improve captain conversation handling (#12599) 2025-10-06 10:51:58 -07:00