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

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

No files matched your search

+6 -1
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: {