-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
fix: issue with opening custom widget source editor #35463
Conversation
WalkthroughThis update refines the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CodeEditor
participant ReduxStore
User->>CodeEditor: Click "Edit Source"
CodeEditor->>ReduxStore: Request currentPageId
ReduxStore-->>CodeEditor: Provide currentPageId
alt if currentPageId is valid
CodeEditor->>ReduxStore: Get entitiesForNavigation
ReduxStore-->>CodeEditor: Return entities
else if currentPageId is not valid
CodeEditor->>CodeEditor: Set entitiesForNavigation to {}
end
CodeEditor->>User: Render editor with entities
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- app/client/src/components/editorComponents/CodeEditor/index.tsx (2 hunks)
Additional comments not posted (3)
app/client/src/components/editorComponents/CodeEditor/index.tsx (3)
1776-1776
: Great job introducing thecurrentPageId
variable!This ensures the code is more readable and maintainable by clearly defining what
currentPageId
represents.
1778-1783
: Excellent use of conditional logic!By checking if
currentPageId
is truthy before assigningentitiesForNavigation
, you avoid unnecessary computations, which can improve performance.
1784-1784
: Good structure in returning the state properties!The return statement is well-organized and ensures all necessary properties are included in the state.
Description
Custom widget source editor crashes when open from an application connected to packages
Fixes #35462
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10271875888
Commit: f36faa4
Cypress dashboard.
Tags:
@tag.All
Spec:
Tue, 06 Aug 2024 19:15:42 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit