-
Notifications
You must be signed in to change notification settings - Fork 31
FWF-4820: [BugFix] modified delete modal for private filters #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FWF-4820: [BugFix] modified delete modal for private filters #623
Conversation
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
className="note" | ||
heading="Note" | ||
content={t( | ||
content={(attributeFilterToEdit.users.length>0) ? t("This action cannot be undone."): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does attributeFilterToEdit.users.length>0 means it is private ? @Bonymol-aot
User description
Issue Tracking
JIRA: https://aottech.atlassian.net/browse/FWF-4820
Issue Type: BUG/ FEATURE
Changes
PR Type
Bug fix
Description
Ensure attributeFilter exists before share logic
Show undo warning for private filters deletion
Update delete button text per ownership scope
Apply same fixes in task filter modal
Changes walkthrough 📝
AttributeFIlterModalBody.tsx
Guard attribute filter share logic
forms-flow-review/src/components/AttributeFilterModal/AttributeFIlterModalBody.tsx
attributeFilter
existence guard in useEffectAttributeFilterModal.tsx
Customize attribute filter delete modal text
forms-flow-review/src/components/AttributeFilterModal/AttributeFilterModal.tsx
attributeFilterToEdit.users
secondaryBtnText
to reflect filter scopeTaskFilterModal.tsx
Customize task filter delete modal text
forms-flow-review/src/components/TaskFilterModal/TaskFilterModal.tsx
filterToEdit.users
secondaryBtnText
to reflect filter scope