iachat/app/views
Pranav d79d9e8b46
fix: Include uncategorized articles in the all article section to allow edit/delete (#10153)
Fixes https://github.com/chatwoot/chatwoot/issues/9935
Fixes https://github.com/chatwoot/chatwoot/issues/8213

The articles were grouped by category, with locale being a derived
attribute from the category. If a category was deleted, the article
wouldn't appear on the dashboard. However, due to a bug, it would show
up in the uncategorized section on the public portal, leaving agents
unable to edit or update the article.

To address this issue, I've added a locale attribute directly to the
article. This attribute is automatically set from the category or the
portal's default locale if not supplied. The API parameters now use this
attribute to filter articles. As a result, the dashboard will display
articles even if they're not associated with a category, improving the
overall workflow.

**Main updates:** 
- Add locale attribute to the Article model. Add db migration to back
fill the data based on the above logic.
- Add a new scope search_by_locale and use it instead of
search_by_category_locale.
- Update the ERB template to include the locale filter.
- Move from `joins` to `left_outer_joins` to include the articles with
no categories.

---------

Co-authored-by: Sojan <sojan@pepalo.com>
2024-09-23 23:39:03 -07:00
..
android_app chore: Universal Linking for Android (#2324) 2021-06-02 08:46:45 -07:00
api chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
apple_app Chore: Apple site association file for deep linking (#805) 2020-05-03 12:16:11 +05:30
dashboard Initial Commit 2019-08-14 15:18:44 +05:30
devise fix: Fixes wrong copy being sent to users via email invite [cw-1290] (#7159) 2023-05-23 09:37:40 +05:30
fields chore: Reorganize the installation config settings (#8794) 2024-01-31 16:48:42 +04:00
icons feat: Updates branding logo and name in public portal footer (#8745) 2024-01-19 13:37:24 +04:00
installation/onboarding feat: Super admin design improvements (#8517) 2023-12-08 19:40:35 -08:00
layouts feat: allow setting dashboard scripts from super_admin (#9514) 2024-05-23 14:30:41 +05:30
mailers feat: Add push/email notification support for SLA (#9140) 2024-03-29 20:27:21 +11:00
microsoft fix: Identity JSON response header (#6326) 2023-02-02 11:01:18 +05:30
platform/api/v1 chore: Adds API for agent bot avatar upload (#8533) 2023-12-11 19:02:11 -08:00
public/api/v1 fix: Include uncategorized articles in the all article section to allow edit/delete (#10153) 2024-09-23 23:39:03 -07:00
super_admin feat: allow setting dashboard scripts from super_admin (#9514) 2024-05-23 14:30:41 +05:30
survey/responses feat: CSAT response collection public page (#2685) 2021-08-03 18:22:50 +05:30
widget_tests feat: Adds the ability to disable the "new message notification" popup (#9594) 2024-06-11 08:14:58 +05:30
widgets feat: remove feature flag checks for message reply to (#8352) 2023-11-15 13:05:58 +05:30