Repository navigation
refactor(upgrades): remove unreachable executed-task link dropdown - #218
Merged
Merged
Conversation
Co-authored-by: Toshi <toshi-noreply@coinbase.com> J-Engine-Session: toshi:a5789614-b6af-453d-8496-0287e8b486b8
Collaborator
✅ Heimdall Review Status
|
Collaborator
Author
Review round 1Reviewers: cbhq-openai/gpt-6.1-sol
🤖 Reply generated with Toshi |
jackchuma
marked this pull request as ready for review
October 29, 2026 12:14
0xth4nh
reviewed
Oct 29, 2026
0xth4nh
left a comment
Contributor
There was a problem hiding this comment.
Looks Good to Thanh's Toshi
xenoliss
approved these changes
Oct 29, 2026
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.
What changed? Why?
Removes the executed-task link dropdown in the upgrade list and the execution-link parsing behind it. That code can never run:
UpgradeSelectiononly fetches/api/upgrades?readyToSign=true.readyToSign=trueand keeps onlyREADY TO SIGNtasks.READY TO SIGN. ItsEXECUTEDhover dropdown,executionLinksprop,|| 'neutral'fallback andsuccess/neutralvariant entries are dead.Changes:
UpgradeSelection.tsx: replaceStatusBadgeandSTATUS_VARIANT_MAPwith<Badge variant="warning">{option.status}</Badge>. Same output for every task the API returns.deployments.ts:parseExecutionStatuskeeps status detection only (find theStatus:line, return Executed / ReadyToSign / Pending, unchanged, with the same error handling). Deletes link collection,MAX_STATUS_FOLLOW_UP_LINESandnormalizeUrl.types/shared.ts: deletesExecutionLinkandUpgrade.executionLinks.TaskStatus.Executedstays; the API filter still uses status detection to exclude executed tasks.README.md: drops link-format docs and the two "Executed with…" examples. Status rules stay.Interfaces removed
Upgrade.executionLinksfield (and/api/upgradesJSON field)StatusBadgebranch. Ready-to-sign parsing never populated it, so successful/api/upgradesresponses already omitted it.ExecutionLinktypeexecutionLinksandStatusBadge.normalizeUrl(exported fromdeployments.ts)src,scripts, configs or fixtures.History check: the dropdown and link parsing came from the initial commit; later commits restyled them or hardened URL validation. None shows plans for future use.
Notes to reviewers
normalizeUrltests (cover removed code). The "omits execution links" test keeps itsStatus: EXECUTED→TaskStatus.Executedassertion, renamed to describe executed-status parsing; only its links assertion went. Added one test that a README with no status line yields nostatus, since that remaining outcome had no test.How has it been tested?
npm test: 154 passednpm run lint,npx tsc --noEmit,npx prettier --check .,npm run build: passrgfinds no remaining references to the removed names.Why this cleanup
Upgrade.executionLinks,ExecutionLink,normalizeUrl(see table above).