feat: add support for RADIO field type in filtering logic by including textValue in agent field matching
This commit is contained in:
@@ -236,7 +236,12 @@ export class ProfileFieldsService {
|
||||
* De-duplicates by both slug AND name to handle duplicate fields with different slugs
|
||||
*/
|
||||
async getFilterableFields() {
|
||||
const filterableTypes: FieldType[] = [FieldType.CHECKBOX_GROUP, FieldType.SELECT, FieldType.MULTI_SELECT];
|
||||
const filterableTypes: FieldType[] = [
|
||||
FieldType.CHECKBOX_GROUP,
|
||||
FieldType.SELECT,
|
||||
FieldType.MULTI_SELECT,
|
||||
FieldType.RADIO, // experience-style single-choice fields (years_in_business, contracts_completed)
|
||||
];
|
||||
|
||||
const fields = await this.prisma.profileField.findMany({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user