[WEB-4857]fix: applied filters root update#7750
Conversation
WalkthroughConditional rendering tightened in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks (1 passed, 1 warning, 1 inconclusive)❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
Poem
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Pull Request Linked with Plane Work Items Comment Automatically Generated by Plane |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
apps/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-root.tsx (1)
93-104: Also gate on params presence to avoid undefined IDs.If
SaveFilterViewexpects non-null ids, render only whenworkspaceSlugandprojectIdexist; then drop optional chaining.- {isEditingAllowed && storeType === EIssuesStoreType.PROJECT && ( + {isEditingAllowed && storeType === EIssuesStoreType.PROJECT && workspaceSlug && projectId && ( <SaveFilterView - workspaceSlug={workspaceSlug?.toString()} - projectId={projectId?.toString()} + workspaceSlug={workspaceSlug.toString()} + projectId={projectId.toString()} filterParams={{ filters: appliedFilters, display_filters: issueFilters?.displayFilters, display_properties: issueFilters?.displayProperties, }} trackerElement={PROJECT_VIEW_TRACKER_ELEMENTS.PROJECT_HEADER_SAVE_AS_VIEW_BUTTON} /> )}
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-root.tsx(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Build and lint web apps
🔇 Additional comments (2)
apps/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-root.tsx (2)
93-104: Visibility gate tightened correctly.Rendering
SaveFilterViewonly whenisEditingAllowedandstoreType === EIssuesStoreType.PROJECTmatches the PR intent and avoids exposing the action in EPIC context.
93-104: SaveFilterView not used in EPIC flows. Verified imports of SaveFilterView appear only in project-root.tsx, cycle-root.tsx, and module-root.tsx; no Epic-root or EPIC context references.
* chore: added access for workspace admin to edit project settings * chore: workspace admin to update members details * chore: workspace admin to label, state, workflow settings * Revert "chore: added access for workspace admin to edit project settings" This reverts commit 803b56514887339d884eaef170de8a9e4ecfda8c. * chore: updated worspace admin access for projects * Revert "chore: workspace admin to update members details" This reverts commit ac465d618d7a89ef696db3484e515957b6b5e264. * Revert "chore: workspace admin to label, state, workflow settings" This reverts commit f01a89604e71792096cbae8e029cac160ea209fb. * chore: workspace admin access in permission classes and decorator * chore: check for teamspace members * chore: refactor permission logic * [WIKI-632] chore: accept additional props for document collaborative editor (#7718) * chore: add collaborative document editor extended props * fix: additional rich text extension props * fix: formatting * chore: add types to the trailing node extension --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com> * [WEB-4854] chore: project admin accesss to workspace admins (#7749) * chore: project admin accesss to workspace admins * chore: frontend changes * chore: remove console.log * chore: refactor permission decorator * chore: role enum * chore: rearrange role_choices * Potential fix for code scanning alert no. 636: URL redirection from remote source (#7760) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * [WEB-4441]fix: members account type dropdown position #7759 * [WEB-4857] fix: applied filters root update #7750 * [WEB-4858]chore: updated content for error page (#7766) * chore: updated content for error page * chore: updated btn url * fix: merge conflicts * fix: merge conflicts * fix: use enum for roles --------- Co-authored-by: vamsikrishnamathala <matalav55@gmail.com> Co-authored-by: Lakhan Baheti <94619783+1akhanBaheti@users.noreply.github.com> Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Vamsi Krishna <46787868+vamsikrishnamathala@users.noreply.github.com>
Description
Show save filter view option only in project context by adding store type check, ensuring the feature appears exclusively when both editing permissions are granted and the store type is
PROJECTType of Change
Screenshots and Media (if applicable)
Test Scenarios
References
Summary by CodeRabbit