iachat/app/javascript/dashboard/i18n/locale
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
..
am chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ar chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
az chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
bg chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
bn chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ca chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
cs chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
da chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
de chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
el chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
en feat: Update Captain navigation structure (#12761) 2025-11-06 16:31:23 -08:00
es chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
et chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
fa chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
fi chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
fr chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
he chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
hi chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
hr chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
hu chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
hy chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
id chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
is chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
it chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ja chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ka chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ko chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
lt chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
lv chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ml chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ms chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ne chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
nl chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
no chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
pl chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
pt chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
pt_BR chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ro chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ru chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
sh chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
sk chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
sl chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
sq chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
sr chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
sv chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ta chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
th chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
tl chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
tr chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
uk chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ur chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
ur_IN chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
vi chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
zh chore: Update translations, add pnpm sync:i18n command (#10893) 2025-02-12 17:43:46 -08:00
zh_CN chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
zh_TW chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30