Repository: supabase/supabase
File: apps/studio/components/interfaces/Auth/Users/UsersV2.tsx (TypeScript)

Code before:
              <ButtonTooltip
                type="default"
                icon={<X />}
                className="px-1.5"
                onClick={() => setSelectedUsers(new Set([]))}
                tooltip={{ content: { side: 'bottom', text: 'Cancel selection' } }}
              />
            </div>
          ) : (
            <>
              <div className="flex flex-wrap items-center gap-2">
                <Input
                  size="tiny"
                  className="w-52 pl-7 bg-transparent"
                  iconContainerClassName="pl-2"
                  icon={<Search size={14} className="text-foreground-lighter" />}
                  placeholder="Search email, phone or UID"
                  value={search}
                  onChange={(e) => setSearch(e.target.value)}
                  onKeyDown={(e) => {
                    if (e.code === 'Enter' || e.code === 'NumpadEnter') {
                      const query = search.trim()
                      setSearch(query)
                      setFilterKeywords(query.toLocaleLowerCase())
                      sendEvent({
                        action: 'auth_users_searched',
                        properties: {
                          trigger: 'search_input',
                          ...telemetryProps,
                          keywords: query,
                        },
                        groups: telemetryGroups,
                      })
                    }
                  }}
                  actions={[
                    search && (
                      <Button
                        size="tiny"
                        type="text"
                        icon={<X />}
                        onClick={() => clearSearch()}
                        className="p-0 h-5 w-5"
                      />
                    ),
                  ]}
                />

                {showUserTypeFilter && (
                  <Select_Shadcn_
                    value={filter}

Review comment (security):
```suggestion
                        action: 'auth_users_search_submitted',
```

Code after:
                  }}
                />

                {showUserTypeFilter && specificFilterColumn === 'freeform' && (
                  <Select_Shadcn_
                    value={filter}
                    onValueChange={(val) => {
                      setFilter(val as Filter)
                      sendEvent({
                        action: 'auth_users_search_submitted',
                        properties: {
                          trigger: 'user_type_filter',
                          ...telemetryProps,
                          user_type: val,
                        },
                        groups: telemetryGroups,
                      })
                    }}
                  >
                    <SelectContent_Shadcn_>
                      <SelectTrigger_Shadcn_
                        size="tiny"
                        className={cn(
                          'w-[140px] !bg-transparent',
                          filter === 'all' && 'border-dashed'
                        )}
                      >
                        <SelectValue_Shadcn_ />
                      </SelectTrigger_Shadcn_>
                      <SelectGroup_Shadcn_>
                        <SelectItem_Shadcn_ value="all" className="text-xs">
                          All users
                        </SelectItem_Shadcn_>
                        <SelectItem_Shadcn_ value="verified" className="text-xs">
                          Verified users
                        </SelectItem_Shadcn_>
                        <SelectItem_Shadcn_ value="unverified" className="text-xs">
                          Unverified users
                        </SelectItem_Shadcn_>
                        <SelectItem_Shadcn_ value="anonymous" className="text-xs">
                          Anonymous users
                        </SelectItem_Shadcn_>
                      </SelectGroup_Shadcn_>
                    </SelectContent_Shadcn_>
                  </Select_Shadcn_>
                )}

                {showProviderFilter && specificFilterColumn === 'freeform' && (
                  <FilterPopover
                    name="Provider"
                    options={PROVIDER_FILTER_OPTIONS}