You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plans table view for release target should show diff count #1036
Find the Plans table view component (page.$deploymentId.plans.$planId.tsx)
Understand the data model (deploymentPlanTargetResult has current/proposed YAML fields)
Add diff stats computation to backend results tRPC procedure
Update frontend ChangesCell to display GitHub-style +X -Y counts
Commit and push changes
What was changed
packages/trpc/src/routes/deployment-plans.ts
Added a computeDiffStats(current, proposed) helper that uses an LCS (Longest Common Subsequence) algorithm to compute added/removed line counts from the current and proposed YAML fields already stored in the DB
Added current and proposed fields to the results query select
Returned diffStats: { added, removed } | null in each result
A column showing diff count, would be cool if you could follow how gh does it but thats just extra