Skip to content

Conversation

@ajinkya-browserstack
Copy link
Contributor

Closes issue:

📜 Summary of changes:

🎥 Demo Video:

Video/Demo:

✅ Checklist:

  • Make sure linting and unit tests pass.
  • No install/build warnings introduced.
  • Verified UI in browser.
  • For UI changes, added/updated analytics events (if applicable).
  • For changes in extension's code, manually tested in Chrome and Firefox.
  • Added/updated unit tests for this change.
  • Raised pull request to update corresponding documentation (if already exists).
  • Added demo video showing the changes in action (if applicable).

🧪 Test instructions:

🔗 Other references:

@linear
Copy link

linear bot commented Dec 5, 2025

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 5, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch engg-4237-deletion-modal

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ajinkya-browserstack ajinkya-browserstack changed the title [ENGG-4237]: Add Deletion Modal to Local Workspace Deletion [ENGG-4237]: Add Deletion Modal & Analytics Events to Local Workspace Deletion Dec 5, 2025
Comment on lines 28 to 29
export const trackWorkspaceDeleted = (params) => {
trackEvent(TEAMS.WORKSPACE_DELETED, params);
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes committed.

@ajinkya-browserstack ajinkya-browserstack merged commit f758039 into engg-4237-support-to-delete-workspaces Dec 5, 2025
3 checks passed
ajinkya-browserstack added a commit that referenced this pull request Dec 5, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants