ENG-2598: Add read-only conditions list to policy detail page#7457
Merged
gilluminate merged 12 commits intomainfrom Feb 25, 2026
Merged
ENG-2598: Add read-only conditions list to policy detail page#7457gilluminate merged 12 commits intomainfrom
gilluminate merged 12 commits intomainfrom
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
02efb58 to
419e852
Compare
Contributor
Greptile SummaryAdds a read-only conditions list to the policy detail page, displaying routing conditions as field/operator/value rows using Ant Design's List component. The implementation follows established patterns from the manual tasks feature and includes proper recursive flattening of nested condition groups. The policies list page now shows condition count summaries alongside each policy. Major Changes:
Quality Indicators:
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 6ce98af |
clients/admin-ui/src/features/policies/utils/extractLeafConditions.ts
Outdated
Show resolved
Hide resolved
d95d065 to
6ce98af
Compare
Contributor
Author
|
@greptile |
clients/admin-ui/src/features/policies/conditions/PolicyConditionsTab.tsx
Outdated
Show resolved
Hide resolved
Co-Authored-By: Cursor <cursoragent@cursor.com>
Switch import to named export to resolve import/no-named-as-default ESLint error, and remove redundant default export. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
6ed87f5 to
c3bf38d
Compare
speaker-ender
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ticket ENG-2598
Description Of Changes
Add a read-only conditions list to the policy detail page, matching the pattern established by the Manual Tasks conditions tab (
TaskConditionsTab). Policies with routing conditions now display them as a list of field / operator / value rows using Ant Design'sListcomponent.policy.conditionsdown toPolicyConditionsTabConditionGroup | ConditionLeaf | nullshape into a flatConditionLeaf[]for displayoperatorLabels,formatFieldDisplay,formatConditionValue) from the manual tasks featureGET /dsr/policy/:key)Code Changes
clients/admin-ui/src/features/policies/conditions/PolicyConditionsTab.tsx- Rewritten from stub to render conditions as an AntListwith field name, operator tag, and valueclients/admin-ui/src/pages/privacy-requests/policies/[key].tsx- Passpolicy.conditionsprop toPolicyConditionsTabclients/admin-ui/src/pages/privacy-requests/policies/index.tsx- Show condition count summary per policy, sort non-default policies alphabeticallyclients/admin-ui/src/features/policies/utils/summarizeConditions.ts- Utility to count and pluralize condition leaves for displayclients/admin-ui/src/features/policies/utils/summarizeConditions.test.ts- Unit tests for summarizeConditions (null, leaf, group, nested)clients/admin-ui/cypress/e2e/policies/policy-detail.cy.ts- Cypress E2E tests for conditions list (empty state, single leaf, condition group)Steps to Confirm
npm run dev:mockfromclients/admin-uiPre-Merge Checklist
CHANGELOG.mdupdatedAdd a db-migration labelAdd a high-risk labelUpdates unreleased work already in ChangelogNo UX review neededNo followup issuesEnsure that your downrev is up to dateEnsure that your downgrade() migration is correctDocumentation completeDocumentation issue createdMade with Cursor