iachat/app/javascript/dashboard
Tanmay Deep Sharma 5fd3d5e036
feat: allow zero conversation limit capacity policy (#13964)
## Description

Two improvements to Agent Capacity Policy:

**1. Support exclusion via zero conversation limit**
Allow `conversation_limit` to be `0` on inbox capacity limits. Agents
with a zero limit are excluded from auto-assignment for that inbox while
remaining members for manual assignment.

**2. Fix exclusion rules duration input**
- Default changed from `10` to `null` so time-based exclusion isn't
applied unless explicitly set.
- Minimum lowered from 10 to 1 minute.
- `DurationInput` updated to handle `null` values correctly.

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

- Added model and capacity service specs for zero-limit exclusion
behavior.
- Tested manually via UI flows 

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] 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
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2026-04-06 11:39:14 +05:30
..
api feat: captain custom tools v1 (#13890) 2026-04-02 12:40:11 +05:30
assets fix(ui): resolve unreadable select options in dark mode (#13207) 2026-03-30 13:05:28 +05:30
components fix: align message trimming with configured maxLength (#13947) 2026-03-31 10:39:54 +05:30
components-next feat: allow zero conversation limit capacity policy (#13964) 2026-04-06 11:39:14 +05:30
composables fix: Add fix to only allow confirmed agents to used in Agent Assingments at Macros/Automations (#13225) 2026-03-11 02:01:53 -07:00
constants feat: Add a priority + created at sort for conversations (#13658) 2026-02-25 18:22:41 -08:00
helper fix(i18n): add zh_TW snooze parser locale (#13822) 2026-03-25 16:54:18 +05:30
i18n feat: captain custom tools v1 (#13890) 2026-04-02 12:40:11 +05:30
mixins feat: allow configuring attachment upload limit (#12835) 2025-11-17 14:03:08 -08:00
modules feat: compose form improvements (#13668) 2026-03-02 18:27:51 +05:30
routes feat: allow zero conversation limit capacity policy (#13964) 2026-04-06 11:39:14 +05:30
store fix: show backend error message on API channel creation failure (#13855) 2026-03-27 11:42:33 +05:30
stores feat: Voice Channel (#11602) 2025-12-19 12:41:33 -08:00
App.vue fix(sentry): syntaxError: No error message (#13954) 2026-03-31 21:09:02 +05:30
featureFlags.js feat: captain custom tools v1 (#13890) 2026-04-02 12:40:11 +05:30