iachat/app/views/api/v1/models
Sojan Jose 2a90652f05
feat: Add draft status for help center locales (#13768)
This adds a draft status for Help Center locales so teams can prepare
localized content in the dashboard without exposing those locales in the
public portal switcher until they are ready to publish.

Fixes: https://github.com/chatwoot/chatwoot/issues/10412
Closes: https://github.com/chatwoot/chatwoot/issues/10412

## Why

Teams need a way to work on locale-specific Help Center content ahead of
launch. The public portal should only show ready locales, while the
admin dashboard should continue to expose every allowed locale for
ongoing article and category work.

## What this change does

- Adds `draft_locales` to portal config as a subset of `allowed_locales`
- Hides drafted locales from the public portal language switchers while
keeping direct locale URLs working
- Keeps drafted locales fully visible in the admin dashboard for article
and category management
- Adds locale actions to move an existing locale to draft, publish a
drafted locale, and keep the default locale protected from drafting
- Adds a status dropdown when creating a locale so new locales can be
created as `Published` or `Draft`
- Returns each admin locale with a `draft` flag so the locale UI can
reflect the public visibility state

## Validation

- Seed a portal with multiple locales, draft one locale, and confirm the
public portal switcher hides it while `/hc/:slug/:locale` still loads
directly
- In the admin dashboard, confirm drafted locales still appear in the
locale list and remain selectable for articles and categories
- Create a new locale with `Draft` status and confirm it stays out of
the public switcher until published
- Move an existing locale back and forth between `Published` and `Draft`
and confirm the public switcher updates accordingly


## Demo 



https://github.com/user-attachments/assets/ba22dc26-c2e7-463a-b1f5-adf1fda1f9be

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2026-03-17 12:45:54 +04:00
..
_account.json.jbuilder feat: Add support for minutes in auto resolve feature (#11269) 2025-05-07 00:36:15 -07:00
_agent_bot_slim.json.jbuilder feat: APIs to assign agents_bots as assignee in conversations (#12836) 2025-11-18 18:20:58 -08:00
_agent_bot.json.jbuilder feat: Implement UI for Agent Bots in settings and remove CSML support (#11276) 2025-04-16 18:02:49 +05:30
_agent.json.jbuilder feat: SAML feedback changes [CW-5666] (#12511) 2025-09-24 16:07:07 +05:30
_app.json.jbuilder feat: integrate LeadSquared CRM (#11284) 2025-04-29 09:14:00 +05:30
_campaign.json.jbuilder feat: WhatsApp campaigns (#11910) 2025-07-16 09:04:02 +05:30
_contact_inbox.json.jbuilder feat: hide tokens and password on contact inbox payloads (#10888) 2025-02-20 21:22:12 -08:00
_contact.json.jbuilder feat: Add the ability to block/unblock contact via contact details page (#10899) 2025-02-13 14:59:35 -08:00
_conversation.json.jbuilder revert: "fix: message_type inconsistency across message end points" (#10119) 2024-09-16 20:00:11 +05:30
_csat_survey_response.json.jbuilder feat(ee): Review Notes for CSAT Reports (#13289) 2026-01-15 19:53:57 -08:00
_custom_attribute_definition.json.jbuilder feat: Support Regex validation for custom attributes (#7856) 2024-01-23 18:01:57 +04:00
_custom_filter.json.jbuilder fix: Revert the changes for SyncCustomFilterCountJob (#8238) 2023-10-27 10:45:48 -07:00
_dashboard_app.json.jbuilder feat: Allow users to create dashboard apps to give agents more context (#4761) 2022-06-01 11:13:10 +05:30
_hook.json.jbuilder fix: Update email alerts for Slack integration (#7739) 2023-08-17 11:46:37 -07:00
_inbox_slim.json.jbuilder chore: Fix issue with compose conversation form (#10991) 2025-02-27 21:45:20 +05:30
_inbox.json.jbuilder feat: TikTok channel (#12741) 2025-12-17 07:54:50 -08:00
_macro.json.jbuilder chore: Macros enhancement (#5609) 2022-10-20 19:41:48 -07:00
_message.json.jbuilder revert: "fix: message_type inconsistency across message end points" (#10119) 2024-09-16 20:00:11 +05:30
_note.json.jbuilder fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
_portal_config.json.jbuilder feat: Add draft status for help center locales (#13768) 2026-03-17 12:45:54 +04:00
_team.json.jbuilder chore: Improve search, list performance of contact/conversation APIs (#2696) 2021-07-23 18:39:24 +05:30
_user.json.jbuilder chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
_widget_message.json.jbuilder revert: "fix: message_type inconsistency across message end points" (#10119) 2024-09-16 20:00:11 +05:30