-
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
chore: Extracting out showNudge
config from screen mode toggle component
#38833
Conversation
WalkthroughThe pull request focuses on refactoring the Changes
Assessment against linked issues
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
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
🧹 Nitpick comments (1)
app/client/src/pages/Editor/IDE/EditorTabs/ScreenModeToggle.tsx (1)
19-22
: Consider using a more descriptive interface name.
Using a genericProps
name for the interface may lead to ambiguity in larger codebases. A more specific name (e.g.,ScreenModeToggleProps
) could help with clarity.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
app/client/src/pages/Editor/IDE/EditorTabs/ScreenModeToggle.tsx
(1 hunks)app/client/src/pages/Editor/IDE/EditorTabs/index.tsx
(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: client-unit-tests / client-unit-tests
- GitHub Check: client-lint / client-lint
- GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
- GitHub Check: client-build / client-build
- GitHub Check: client-prettier / prettier-check
🔇 Additional comments (4)
app/client/src/pages/Editor/IDE/EditorTabs/ScreenModeToggle.tsx (1)
24-25
: Well-structured prop usage.
DestructuringdismissNudge
andshowNudge
from props is clean and easy to read.app/client/src/pages/Editor/IDE/EditorTabs/index.tsx (3)
13-17
: Import organization looks good.
Bringing in theuseShowSideBySideNudge
hook here helps keep concerns separated and the code maintainable.
39-39
: Effective custom hook usage.
Destructuring[showNudge, dismissNudge]
neatly conveys the hook’s returned values.
155-155
: Consistent prop passing toScreenModeToggle
.
PassingdismissNudge
andshowNudge
aligns perfectly with the new interface.
Description
Extracting out
showNudge
config from screen mode toggle component to make this component re-usable in other IDEs.Fixes #37690
Automation
/ok-to-test tags="@tag.Sanity, @tag.IDE"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/12948269268
Commit: 1a30130
Cypress dashboard.
Tags:
@tag.Sanity, @tag.IDE
Spec:
Fri, 24 Jan 2025 11:40:32 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Improvements