chatwoot/app/javascript/dashboard/components-next/AssignmentPolicy/components
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
..
story feat(inbox): Enable conversation continuity for social channels (#11079) 2026-02-25 13:56:51 +04:00
AddDataDropdown.vue chore: Assignment policy improvements (#12429) 2025-09-16 14:10:10 +05:30
BaseInfo.vue feat: Agent capacity policy Create/Edit pages (#12424) 2025-09-12 18:42:55 +05:30
CardPopover.vue feat: Agent capacity policy index page with CRUD actions (#12409) 2025-09-12 16:22:42 +05:30
DataTable.vue fix: V2 Assignment service enhancements (#13036) 2026-02-11 12:24:45 +05:30
ExclusionRules.vue feat: allow zero conversation limit capacity policy (#13964) 2026-04-06 11:39:14 +05:30
FairDistribution.vue fix: V2 Assignment service enhancements (#13036) 2026-02-11 12:24:45 +05:30
InboxCapacityLimits.vue feat: allow zero conversation limit capacity policy (#13964) 2026-04-06 11:39:14 +05:30