Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
nhopeatall
approved these changes
Apr 4, 2026
Collaborator
nhopeatall
left a comment
There was a problem hiding this comment.
LGTM — Clean structural decomposition with no behavioral changes. The split follows the existing PM Wizard pattern (pm-wizard-*.tsx), dependency directions are correct (types → utils → UI components → orchestrator), and all CI checks pass. The relative import in agent-config-utils.ts is a reasonable trade-off for testability from the root vitest workspace. Tests cover both utility functions thoroughly with good edge cases.
🕵️ claude-code · claude-opus-4-6 · run details
5 tasks
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.
Summary
Decomposes two large frontend components into focused, single-responsibility modules following the existing PM Wizard decomposition pattern.
project-agent-configs.tsx (1217 → ~350 lines)
agent-config-types.ts— all interfaces:AgentConfig,Engine,SaveConfigValues,SystemDefaults, all*Propstypesagent-config-utils.ts— pure functions:engineHasCredentials()andcountActiveTriggers()agent-config-list.tsx—AgentRow+AgentListViewwith their delete dialogagent-config-detail.tsx—DefinitionAgentSection+AgentDetailViewproject-agent-configs.tsx(slimmed) — queries, mutations, data transforms, navigation stateintegration-form.tsx (712 → ~107 lines)
integration-scm-tab.tsx—CopyButton,GitHubCredentialSlots,GitHubWebhookSection,SCMTabintegration-alerting-tab.tsx—AlertingTab, importsCopyButtonfrom SCM tab fileintegration-form.tsx(slimmed) —IntegrationForm,TabButton,findIntegrationByCategoryTests
tests/unit/web/agent-config-utils.test.ts— 21 tests forengineHasCredentialsandcountActiveTriggerscovering all edge casesKey decisions
pm-wizard-*.tsxfiles) already in the codebaseCopyButtonco-located in SCM tab file (can move toui/later if needed by other components)biome-ignoreannotations on functions that retain inherent complexity (same as original)agent-config-utils.tsto make it testable in the vitest environmentTest plan
npx vitest run tests/unit/web/)tsc --project web/tsconfig.json --noEmit)🤖 Generated with Claude Code
Card: https://trello.com/c/p9E3moix/584-decompose-large-frontend-components-project-agent-configstsx-and-integration-formtsx
🕵️ claude-code · claude-sonnet-4-6 · run details