Skip to content

Conversation

@simonbs
Copy link
Contributor

@simonbs simonbs commented Nov 11, 2023

This PR simplifies the navigation ahead of introducing the changes in #150.

We no longer use the utilities getProjectId(), getVersionId(), and getSpecificationId() utilities to determine the selection. Instead we pass the path in the URL into the ProjectsPage and ultimately parse the path in the getSelection() utility. This simplifies the logic as we no longer risk the getProjectId(), getVersionId(), and getSpecificationId() utilities coming out of sync with what's returned in getSelection() which has always been possible but even more so when merging #150.

# Conflicts:
#	__test__/projects/projectNavigator.test.ts
#	src/features/projects/domain/getSelection.ts
#	src/features/projects/domain/projectNavigator.ts
#	src/features/projects/view/client/ProjectsPage.tsx
# Conflicts:
#	__test__/common/utils/url.test.ts
#	__test__/projects/getSelection.test.ts
#	src/common/utils/url.ts
#	src/features/projects/domain/getSelection.ts
#	src/features/projects/domain/projectNavigator.ts
#	src/features/projects/view/client/ProjectsPage.tsx
@simonbs simonbs self-assigned this Nov 11, 2023
@simonbs simonbs marked this pull request as ready for review November 11, 2023 15:16
@simonbs simonbs merged commit 2f199a3 into develop Nov 11, 2023
@simonbs simonbs deleted the enhancement/simplifies-navigation branch November 11, 2023 15:27
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.

1 participant