Repository navigation
Conversation
7 tasks done
Collaborator
|
good work! Looks good to me. merging it now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Removes the semantic mismatch between the route parameter name (
:id) and the domain concept it carries (a deployment suffix). The URL shape is unchanged —/deployments/:valueand/deployments/:value/logsstill work the same way, so existing bookmarks and navigation links are unaffected.What changed:
AppRouter.tsx— both deployment routes renamed from:idto:suffix.DeploymentFunctionPage.tsx—const { id: suffix } = useParams()simplified toconst { suffix } = useParams(). The aliasing was only needed because the param was named:id; it's now a direct destructure.LogsViewerPage.tsx— same alias removal as above.deployment_function_page_test.tsx— existing toast tests updated to register the route under:suffix; new describe block added asserting thatapi.inspectByNamereceives the correct slug when the route uses:suffix(not:id).appRouter_test.tsx(new file) — two focused tests: one confirmssuffixis populated correctly from the URL segment, one confirmsparams.idisundefinedon the same route, ruling out any residual:idreference.Type of Change
refactor:Code refactor (no functional changes, no API changes)test:Adding or updating testsChecklist
npm run unitandnpm run test).npm run lint).