WEB-655 feat(clients): filter datatables by client subtype (Person/En… #3120
+17
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…tity)
When viewing a client, all registered datatables were displayed as tabs regardless of the client's subtype. This meant a Person client would see Entity-only datatables (e.g., ENTITY_DATA) and vice versa, which is confusing and incorrect.
This change filters the datatable tabs in the Client View based on the client's
Person clients (legalForm.id = 1) only see datatables with entitySubType: 'person'
Entity clients (legalForm.id = 2) only see datatables with entitySubType: 'entity'
Datatables without an entitySubType remain visible for all client types
WEB-655
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
If you have multiple commits please combine them into one commit by squashing them.
Read and understood the contribution guidelines at
web-app/.github/CONTRIBUTING.md.Summary by CodeRabbit
New Features