Skip to content

[WEB-4857]fix: applied filters root update#7750

Merged
sriramveeraghanta merged 1 commit intopreviewfrom
fix-applied_filters
Sep 11, 2025
Merged

[WEB-4857]fix: applied filters root update#7750
sriramveeraghanta merged 1 commit intopreviewfrom
fix-applied_filters

Conversation

@vamsikrishnamathala
Copy link
Member

@vamsikrishnamathala vamsikrishnamathala commented Sep 9, 2025

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 PROJECT

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

References

Summary by CodeRabbit

  • Bug Fixes
    • The “Save Filter” option now appears only when editing is allowed in Project views.
    • It is no longer shown in non-Project contexts (e.g., Epic), ensuring context-appropriate visibility.
    • Default behavior for Project views remains unchanged.

@vamsikrishnamathala vamsikrishnamathala self-assigned this Sep 9, 2025
@vamsikrishnamathala vamsikrishnamathala added the 🐛bug Something isn't working label Sep 9, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 9, 2025

Walkthrough

Conditional rendering tightened in ProjectAppliedFiltersRoot: SaveFilterView now renders only when isEditingAllowed is true and storeType === EIssuesStoreType.PROJECT. No other logic or exports changed.

Changes

Cohort / File(s) Summary
Filters UI gating
apps/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-root.tsx
Added storeType === EIssuesStoreType.PROJECT to the existing isEditingAllowed condition for rendering SaveFilterView; defaults remain unchanged; no API/prop changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

🌐frontend

Suggested reviewers

  • sriramveeraghanta

Pre-merge checks (1 passed, 1 warning, 1 inconclusive)

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description correctly includes a detailed change summary and type of change but leaves the “Test Scenarios” and “References” sections empty, omitting required information about how the fix was verified and the related ticket. Please add the specific tests you ran to verify the gating behavior in different store types and include a reference link to issue WEB-4857 to complete the template.
Title Check ❓ Inconclusive The current title “[WEB-4857]fix: applied filters root update” is related to the changeset but remains overly generic and does not clearly convey the specific behavior change of gating the SaveFilterView to the project context. Consider renaming the title to clearly reflect the main change, for example “fix: show SaveFilterView only in project context” to improve clarity and focus.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Poem

I twitch my whiskers, flip a bit,
Filters save when they truly fit.
Project burrow? Yes—proceed!
Else I pause my hopping speed.
Small nibble, tidy flow,
Carrots stacked in status quo. 🥕✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-applied_filters

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@vamsikrishnamathala vamsikrishnamathala changed the title fix: applied filters root update [WEB-4857]fix: applied filters root update Sep 9, 2025
@makeplane
Copy link

makeplane bot commented Sep 9, 2025

Pull Request Linked with Plane Work Items

Comment Automatically Generated by Plane

@vamsikrishnamathala vamsikrishnamathala marked this pull request as ready for review September 9, 2025 09:12
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 SaveFilterView expects non-null ids, render only when workspaceSlug and projectId exist; 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

📥 Commits

Reviewing files that changed from the base of the PR and between a8a6536 and 685636a.

📒 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 SaveFilterView only when isEditingAllowed and storeType === EIssuesStoreType.PROJECT matches 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.

@sriramveeraghanta sriramveeraghanta merged commit 4cfea87 into preview Sep 11, 2025
8 of 9 checks passed
@sriramveeraghanta sriramveeraghanta deleted the fix-applied_filters branch September 11, 2025 08:51
aaryan610 added a commit that referenced this pull request Sep 30, 2025
* 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>
yarikoptic pushed a commit to yarikoptic/plane that referenced this pull request Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛bug Something isn't working ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants