Implemented filter on FULL_NAME sub-fields (#11628)

This PR implements what's missing to have sub-field filtering.

There is a backend modification to save subFieldName, we just add this
field on view filter workspace entity.

This PR adds subFieldName where missing in frontend, notably in
applyFilter calls, that will be refactored soon.

Also fixes a bug in ViewBar where Add Filter button was at the right
side of the ViewBar, while it should be right after the chips section.

Another bug fixed where we wouldn't delete an empty record filter on
dropdown click outside from the view bar, which was already the case
where using the filter chip dropdown.

<img width="512" alt="image"
src="https://github.com/user-attachments/assets/e9a2f8d2-a66f-4800-853a-4df5c6b627a9"
/>

<img width="495" alt="image"
src="https://github.com/user-attachments/assets/7542697b-0689-4095-9c3c-b5e47875355f"
/>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Lucas Bordeau
2025-04-17 17:03:56 +02:00
committed by GitHub
parent 1ba0c24071
commit caf44207fd
30 changed files with 193 additions and 48 deletions

View File

@ -94,4 +94,15 @@ export class ViewFilterWorkspaceEntity extends BaseWorkspaceEntity {
})
@WorkspaceIsNullable()
positionInViewFilterGroup: number | null;
@WorkspaceField({
standardId: VIEW_FILTER_STANDARD_FIELD_IDS.subFieldName,
type: FieldMetadataType.TEXT,
label: msg`Sub field name`,
description: msg`Sub field name`,
icon: 'IconSubtask',
defaultValue: null,
})
@WorkspaceIsNullable()
subFieldName: string | null;
}