feat: implement multi-select checkbox interface for bulk host group assignment

- Add new backend endpoint PUT /api/hosts/bulk/groups for multi-group assignment
- Update BulkAssignModal to use checkbox interface instead of single select
- Replace single group selection with multi-select checkboxes
- Maintain visual consistency with existing multi-select patterns
- Add proper validation and error handling for multiple groups
- Remove unused bulkHostGroupId variable to fix linting error

This allows users to assign multiple hosts to multiple groups simultaneously,
improving the bulk assignment workflow and user experience.
This commit is contained in:
Muhammad Ibrahim
2025-10-18 02:01:06 +01:00
parent 9db563dec3
commit 52c8ba6b03

View File

@@ -1794,7 +1794,6 @@ const BulkAssignModal = ({
isLoading, isLoading,
}) => { }) => {
const [selectedGroupIds, setSelectedGroupIds] = useState([]); const [selectedGroupIds, setSelectedGroupIds] = useState([]);
const bulkHostGroupId = useId();
// Fetch host groups for selection // Fetch host groups for selection
const { data: hostGroups } = useQuery({ const { data: hostGroups } = useQuery({