> For the complete documentation index, see [llms.txt](https://help.tahua.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tahua.io/product-news/2026/june/true_select_all_for_application_selection_modal.md).

# True Select All for Application Selection Modal

## Problem

The "Select All" checkbox in the application selection modal (used when assigning applications to Milestone Batches and other batch operations) previously only selected applications on the currently visible page. Admins working with large application pools had to navigate to each page and click "Select All" repeatedly, making bulk selection tedious and error-prone.

## How It Works

The modal now supports two selection modes:

**Explicit mode** (unchanged): Individual checkboxes are checked/unchecked, and the selection is tracked as a list of application IDs. This mode works as before.

**Select All mode**: When the "Select All" header checkbox is clicked, the system enters select-all mode. Rather than tracking every selected ID, it tracks only the *excluded* applications — any individual items the user subsequently unchecks. On submission, the server computes the final selection as: all applications matching the current filters minus any excluded IDs.

## UI Changes

* **"Select All" checkbox**: Clicking this now selects all matching applications across all pages, not just the visible page.
* **Individual uncheck**: After clicking "Select All", unchecking an individual row removes that application from the selection without leaving select-all mode. The selection count updates immediately.
* **Selection count**: The header count ("X application(s) selected") correctly reflects the total across all pages, accounting for any exclusions.
* **Filters and pagination**: Selections (in either mode) are fully preserved when changing filters or navigating between pages. Applying a filter no longer clears what has been selected.
* **Keyword search**: The Enter key no longer accidentally submits the filter form when typing in the keyword field — the "Search" button must be clicked explicitly.

## Submission

When a form using select-all mode is submitted, the server re-runs the active filter query (from the session) and subtracts any excluded IDs to determine the final set of applications to save. This means the saved selection always reflects the current filter scope.
