Enode — API Reference
    Preparing search index...

    Function notInPlanSelectedCount

    • Counts the confirmable selection and the Not-in-plan users inside it, for the user picker's "{count} selected · {n} not in plan" line.

      Parameters

      • selectedIDs: ReadonlySet<string>

        IDs the coach has ticked (may hold IDs not in users).

      • users: readonly UserReducedReturnDto[] | null

        The loaded roster; selected IDs missing from it are ignored.

      • isSelectable: (user: UserReducedReturnDto) => boolean = ...

        The picker's gate; unselectable picks are not counted, so with excludeNotInPlan the Not-in-plan count is always 0.

      Returns PickerSelectionCount

      Before the roster has loaded (users null) it falls back to the raw selection size with no Not-in-plan count.