chore: Remove function calling flag#39790
Conversation
WalkthroughThe PR removes the deprecated Changes
Sequence Diagram(s)sequenceDiagram
participant JSV as JSResponseView Component
participant Store as Redux Store
participant Selector as getIsAnvilEnabledInCurrentApplication
JSV->>Store: useSelector(getIsAnvilEnabledInCurrentApplication)
Store-->>Selector: Pass current state
Selector-->>Store: Return isAnvilEnabled flag
Store-->>JSV: Deliver flag value
JSV->>JSV: Conditionally add visualization tab if flag is true
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (4)
💤 Files with no reviewable changes (3)
🧰 Additional context used🧬 Code Definitions (1)app/client/src/components/editorComponents/JSResponseView.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (3)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
| const ideViewMode = useSelector(getIDEViewMode); | ||
| const location = useLocation(); | ||
| const isFnCallingEnabled = useSelector(getReleaseFnCallingEnabled); | ||
| const isAnvilEnabled = useSelector(getIsAnvilEnabledInCurrentApplication); |
There was a problem hiding this comment.
You should getIsAnvilLayoutEnabled if you want to check release_anvil_enabled flag
There was a problem hiding this comment.
The current app check is required because you might be have anvil enabled but be working with a non-anvil app as well right?
There was a problem hiding this comment.
Valid point. Let's keep it and and use getIsAnvilLayoutEnabled if we need to show the tab only if release_anvil_enabled: true
## Description > [!TIP] > _Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team)._ > > _Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR._ Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Updated the logic that determines when the visualization view is enabled, now relying on a refined integration check. - **Chores** - Removed an outdated configuration toggle from overall feature settings. - Streamlined override options by eliminating an unnecessary flag. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Tip
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.
Fixes #
Issue Numberor
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags=""
🔍 Cypress test results
Caution
If you modify the content in this section, you are likely to disrupt the CI result for your PR.
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Refactor
Chores