feat: add support for RADIO field type in filtering logic by including textValue in agent field matching

This commit is contained in:
pradeepkumar
2026-04-15 23:45:12 +05:30
parent ef52858990
commit 678630fa8e
2 changed files with 15 additions and 1 deletions

View File

@@ -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: {