Skip to content
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

refactor: switch workspace after creation #4015

Merged

Conversation

nivedin
Copy link
Member

@nivedin nivedin commented Apr 29, 2024

Closes HFE-483

Description

This PR add's a improvement in the workspace creation flow where the workspace is automatically switched to the created one.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Copy link
Contributor

@JoelJacobStephen JoelJacobStephen left a comment

Choose a reason for hiding this comment

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

@nivedin When a new workspace is created, the dropdown which allows users to switch workspaces is not updated. Even after switching to the personal workspace, it is not updated.

Screen.Recording.2024-04-30.at.10.49.14.AM.mov

packages/hoppscotch-common/src/components/teams/Add.vue Outdated Show resolved Hide resolved
@nivedin nivedin marked this pull request as draft April 30, 2024 10:25
@nivedin nivedin force-pushed the refactor/workspace-switch-after-creation branch from 4b37c2d to 056f21b Compare May 3, 2024 10:10
@nivedin nivedin changed the base branch from main to release/2024.3.3 May 3, 2024 10:10
@nivedin nivedin marked this pull request as ready for review May 6, 2024 05:55
@nivedin nivedin requested a review from AndrewBastin as a code owner May 6, 2024 05:55
Copy link
Contributor

@JoelJacobStephen JoelJacobStephen left a comment

Choose a reason for hiding this comment

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

There are few type issues and some unnecessary imports in few components such as SaveRequest.vue. Rest looks good to me. Also please bring in the latest changes from release/2024.3.3 to this PR.

@nivedin nivedin force-pushed the refactor/workspace-switch-after-creation branch from 056f21b to 010266f Compare May 7, 2024 06:04
Copy link
Contributor

@JoelJacobStephen JoelJacobStephen left a comment

Choose a reason for hiding this comment

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

LGTM!! 💯

if (team) {
collectionsType.value.type = "team-collections"
teamCollectionAdapter.changeTeamID(team.teamID)
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we need all the changes that happens when a new team is selected to go into one place.

its okey for now. we might update it in the new workspace system.

Copy link
Contributor

@amk-dev amk-dev left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@AndrewBastin AndrewBastin force-pushed the refactor/workspace-switch-after-creation branch from d939f87 to 7f64a74 Compare May 9, 2024 14:58
@AndrewBastin AndrewBastin merged commit ef1117d into release/2024.3.3 May 9, 2024
1 check passed
@AndrewBastin AndrewBastin deleted the refactor/workspace-switch-after-creation branch May 9, 2024 14:58
jobartim44 pushed a commit to jobartim44/hoppscotch-switch-workspace that referenced this pull request May 15, 2024
Co-authored-by: amk-dev <akash.k.mohan98@gmail.com>
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.

None yet

4 participants