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

feat(History): Navigate to last opened workspace on app load #7755

Merged

Conversation

gatzjames
Copy link
Contributor

@gatzjames gatzjames commented Jul 25, 2024

Highlights:

  • On first load navigate to the previously opened workspace

Closes #6928

@gatzjames gatzjames self-assigned this Jul 25, 2024
@gatzjames gatzjames requested a review from a team July 25, 2024 11:17
@gatzjames gatzjames force-pushed the feat/reopen-app-on-last-visited-workspace branch from 00dceba to 740d122 Compare July 25, 2024 12:44
@gatzjames gatzjames merged commit 225b266 into Kong:develop Jul 25, 2024
8 checks passed
@gatzjames gatzjames deleted the feat/reopen-app-on-last-visited-workspace branch July 25, 2024 15:39
return `/organization/${match.params.organizationId}/project/${existingProject._id}/workspace/${existingWorkspace._id}/${scopeToActivity(existingWorkspace.scope)}`;
}

const firstWorkspace = await database.getWhere<Workspace>(models.workspace.type, {
Copy link
Member

Choose a reason for hiding this comment

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

If the last visited workspace doesn't exist. If we use the project dashboard as the fallback rather than the first workspace?

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.

App does not remember default collection
4 participants