-
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: Removing unused files & components #38832
base: release
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request involves a comprehensive cleanup of unused components, primarily focusing on removing legacy onboarding and explorer-related React components. The changes target components and associated utilities in the editor and onboarding sections, systematically eliminating code that is no longer required after recent architectural updates. The modifications span multiple files across the client-side application, removing Redux actions, reducers, and React components related to first-time user onboarding and entity exploration. Changes
Assessment against linked issues
Possibly related PRs
Suggested Reviewers
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 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.
We can remove this file itself because it is not resizable
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.
Its being used in Package editor as of now. Hence I'd removed but then had to add it back.
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.
Are we using any other onboarding functionality from here?
If not, we can delete these as well
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.
yup others seem to be getting used
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 (2)
app/client/src/pages/Editor/IDE/EditorPane/UI/List.test.tsx (2)
88-88
: Validate usage of new prop.
PassingsetFocusSearchInput
is helpful for test verification, but consider adding a test checking if the search input actually focuses.
174-174
: Repeated rendering approach.
Same usage pattern; no issues but consider a helper function to avoid duplication in future.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/client/src/pages/Editor/IDE/EditorPane/UI/List.test.tsx
(7 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (8)
- GitHub Check: perform-test / client-build / client-build
- GitHub Check: perform-test / rts-build / build
- GitHub Check: perform-test / server-build / server-unit-tests
- GitHub Check: client-unit-tests / client-unit-tests
- GitHub Check: client-lint / client-lint
- GitHub Check: client-build / client-build
- GitHub Check: client-prettier / prettier-check
- GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
🔇 Additional comments (8)
app/client/src/pages/Editor/IDE/EditorPane/UI/List.test.tsx (8)
16-16
: Good import addition.
Imports the new ListWidgets component, aligning with the component replacement focus of this PR.
54-54
: Appropriate mocking approach.
Usingjest.fn()
forsetFocusSearchInput
is a convenient way to verify function calls.
55-55
: No change needed.
This is simply a blank line and doesn't affect functionality.
56-56
: Clearer test description.
Renaming the test suite to "Widget List in Explorer tests" provides more context.
94-94
: Dynamic label usage.
Usingchildren[0].widgetName
for the widget label is more robust than a static string. Good move!
133-133
: Consistent component usage.
Reusing<ListWidgets setFocusSearchInput={setFocusSearchInput} />
maintains consistency across tests.
231-231
: Consistency in multi-selection tests.
Again, consistent approach for verifying multi-select behavior. Looks good.
325-325
: Alignment with container tests.
The usage is consistent in container widget tests as well; no concerns here.
Description
Removing unused files & components from the codebase.
Fixes #38834
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/12948390264
Commit: 57771b0
Cypress dashboard.
Tags:
@tag.All
Spec:
Fri, 24 Jan 2025 12:07:41 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Removals
Refactoring
Impact