-
Notifications
You must be signed in to change notification settings - Fork 538
[ENGG-4237]: Add Deletion Modal & Analytics Events to Local Workspace Deletion #3968
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
[ENGG-4237]: Add Deletion Modal & Analytics Events to Local Workspace Deletion #3968
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
| export const trackWorkspaceDeleted = (params) => { | ||
| trackEvent(TEAMS.WORKSPACE_DELETED, params); |
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.
use the exact params here in the args because its a js file. The consumers won't be able to know what params to pass. If we are clear about it in the args then it would be clear to the consumer
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.
Changes committed.
…stly into engg-4237-deletion-modal
Co-authored-by: Nafees Nehar <[email protected]>
f758039
into
engg-4237-support-to-delete-workspaces
* fix: Fix active workspace name * fix: Fix dependency array for activeWorkspaceName, code cleanup * [WIP] feat: Add Delete functionality for local workspaces * fix: Apply CodeRabbit suggestion to avoid rendering until teamDetails is valid * refactor: Move local workspace deletion code to a separate component * refactor: Remove previousPath typecasting as per PR suggestion * refactor: Change variable name as per PR suggestion * refactor/fix: Replace window.state with useSelector to access Redux state * change: Change removeWorkspace timeout from 80s to 10s * refactor: Use WorkspaceType.LOCAL instead of string literal * refactor: Move refresh and navigation code in DeleteWorkspaceSection to a separate function * refactor/fix: Change type for removeWorkspace to FileSystemResult<void> * refactor: Rename DeleteWorkspaceSection to DeleteLocalWorkspaceSection * refactor: Use existing type FileSystemResult and remove newly declared types for removeWorkspace * refactor: Remove optional chaining from getNonLocalWorkspaces * refactor: Use getAllWorkspaces() as getAllLocalWorkspaces() in DeleteWorkspaceSection * refactor: Rename local workspace deletion component and move styling to a separate file * change: Move toast after setAllWorkspaces dispatch * refactor: Switch to useParams to get workspaceId * refactor: Use WorkspaceType.LOCAL instead of string literal * change: Add Sentry captureException to addWorkspaceToView * refactor/fix: Remove redundant FileSystemError type from FsManagerServiceAdapter * refactor: Refactor Sentry captureException * refactor: Revert successful workspace deletion toast position & add a toast to indicate refresh failure * fix: Check result type for removeWorkspace * refactor: Remove comment for removeWorkspace * refactor: Move DeleteLocalWorkspaceSection files to a separate folder * feat: Add compatibility check for DeleteLocalWorkspace * fix: workspace selectors * [ENGG-4237]: Add Deletion Modal & Analytics Events to Local Workspace Deletion (#3968) * add: Add Deletion Modal for local workspace deletion * add: Add analytics tracking for workspaceDeleteClicked and workspaceDeleted * refactor: Specify exact params for trackWorkspaceDeleted * Update app/src/modules/analytics/events/common/teams/index.js Co-authored-by: Nafees Nehar <[email protected]> --------- Co-authored-by: Nafees Nehar <[email protected]> --------- Co-authored-by: nafees87n <[email protected]>
Closes issue:
📜 Summary of changes:
🎥 Demo Video:
Video/Demo:
✅ Checklist:
🧪 Test instructions:
🔗 Other references: