iachat/app/views/api/v1/accounts
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
..
actions/contact_merges feat: Reverse the contact merge (#8057) 2023-10-10 08:20:48 +05:30
agent_bots feat: Ability to reset api_access_token (#11565) 2025-05-29 14:42:13 +05:30
agents chore: Fix agent API returning 500 error (#9193) 2024-04-04 19:44:47 +05:30
articles feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
assignable_agents fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
assignment_policies feat: Agent assignment policy index page with CRUD actions (#12373) 2025-09-10 12:07:21 +05:30
automation_rules fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
callbacks fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
campaigns fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
categories feat: Adds the ability to set an emoji for help center category (#8111) 2023-10-20 13:52:30 +05:30
channels/twilio_channels fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
contact_inboxes chore: Add an API to find the contacts using contact inbox sourceId (#8012) 2023-09-28 15:26:28 -07:00
contacts feat: Add infinite scroll to contacts search page (#13376) 2026-01-27 18:55:19 -08:00
conversations feat: APIs to assign agents_bots as assignee in conversations (#12836) 2025-11-18 18:20:58 -08:00
csat_survey_responses feat(ee): Review Notes for CSAT Reports (#13289) 2026-01-15 19:53:57 -08:00
custom_attribute_definitions fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
custom_filters fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
dashboard_apps fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
inbox_members fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
inboxes feat: Add assignment policies controllers with jbuilder views (#12199) 2025-08-18 19:15:21 -07:00
integrations feat: Linear OAuth 2.0 (#10851) 2025-02-27 18:15:53 +05:30
labels Feature: Label APIs (#931) 2020-06-07 11:17:13 +05:30
macros fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
notification_settings Feature: Add web push notification permission in frontend (#766) 2020-05-06 00:10:56 +05:30
notifications feat(v4): Update Inbox view card design (#10599) 2025-01-07 21:11:54 +05:30
portals feat: Add draft status for help center locales (#13768) 2026-03-17 12:45:54 +04:00
search feat: Advanced Search Backend (#12917) 2026-01-07 15:30:49 +05:30
team_members fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
teams fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
webhooks feat: add per-webhook secret with backfill migration (#13573) 2026-02-26 17:26:12 +05:30
whatsapp/callbacks feat: Whatsapp embedded signup (#11612) 2025-07-14 21:37:06 -07:00
create.json.jbuilder fix: Cannot read properties of undefined (reading 'always_play_audio_alert') (#7260) 2023-06-06 15:16:25 -07:00
show.json.jbuilder feat: allow feature plan map in super admin (#9318) 2024-05-08 22:58:46 -07:00
update.json.jbuilder fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00