fix(ui): secret field json diff visibility issue#5274
Merged
victorvhs017 merged 15 commits intomainfrom Jan 27, 2026
Merged
Conversation
…pprovals - Implement multiline diff with line-by-line comparison for secret values - Add word-level highlighting for changed words within modified lines - Support single-line diff with inline word highlighting (no +/- indicators) - Add auto-scroll to first change in diff containers - Apply darker tinted backgrounds (#120808 for old, #081208 for new) to diff containers - Fix text wrapping for long strings using break-words and whitespace-pre-wrap
…pprovals - Implement multiline diff with line-by-line comparison for secret values - Add word-level highlighting for changed words within modified lines - Support single-line diff with inline word highlighting (no +/- indicators) - Add auto-scroll to first change in diff containers - Apply darker tinted backgrounds (#120808 for old, #081208 for new) to diff containers - Fix text wrapping for long strings using break-words and whitespace-pre-wrap
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
Greptile OverviewGreptile SummaryThis PR adds enhanced diff visualization for secret approval requests using the Key changes:
Issue found:
Confidence Score: 4/5
Important Files Changed
|
...pprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChangeItem.tsx
Show resolved
Hide resolved
Contributor
Contributor
Contributor
Contributor
Author
victorvhs017
requested changes
Jan 26, 2026
...pprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChangeItem.tsx
Outdated
Show resolved
Hide resolved
...pprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChangeItem.tsx
Outdated
Show resolved
Hide resolved
...pprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChangeItem.tsx
Outdated
Show resolved
Hide resolved
Contributor
Contributor
victorvhs017
requested changes
Jan 27, 2026
.../secret-manager/CommitDetailsPage/components/SecretVersionDiffView/SecretVersionDiffView.tsx
Outdated
Show resolved
Hide resolved
.../secret-manager/CommitDetailsPage/components/SecretVersionDiffView/SecretVersionDiffView.tsx
Outdated
Show resolved
Hide resolved
...pprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChangeItem.tsx
Outdated
Show resolved
Hide resolved
Contributor
|
@greptileai re-review and update your summary |
...pprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChangeItem.tsx
Show resolved
Hide resolved
...pprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChangeItem.tsx
Show resolved
Hide resolved
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.










Context
Previously, when reviewing secret changes in the approval workflow, users could only see that a secret value had changed, but couldn't easily identify exactly what changed within the value. This made it difficult to review changes, especially for long strings or multiline values.
This PR implements an enhanced diff visualization for secret approvals that provides:
+for additions,-for deletions)+/-indicators for cleaner display)#120808for old,#081208for new) for better contrastThe implementation uses a word-boundary-aware diff algorithm similar to GitHub's diff view, making it much easier to review and approve secret changes.
Related to: SECRETS-65
Screenshots
Screenshare.-.2026-01-26.4_15_51.PM.mp4
Steps to verify the change
Test Case 1: Single-Line Secret Diff
+/-indicators or line containersTest Case 2: Multiline Secret Diff
-(red) for deletions and+(green) for additionsTest Case 3: Long String Wrapping
Test Case 4: Auto-Scroll Behavior
Test Case 5: Visual Design
#120808)#081208)Test Case 6: Edge Cases
Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).