Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(amazonq): show code diff instead of only code fix for fix preview #6742

Merged
merged 3 commits into from
Mar 11, 2025

Conversation

atonaamz
Copy link
Contributor

@atonaamz atonaamz commented Mar 7, 2025

Problem

We currently see only code fix for fix preview. We want to see the diff containing both code fix and original code.

Solution

Remove logic to generate only the code fix.

Remove logic for line number as it will be different for the diff.

/review: show code diff instead of only code fix for fix preview

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@atonaamz atonaamz requested review from a team as code owners March 7, 2025 01:25
Copy link

github-actions bot commented Mar 7, 2025

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

\`\`\`
`)
const parser = new DOMParser()
const doc = parser.parseFromString(htmlString, 'text/html')
const referenceTracker = doc.querySelector('.reference-tracker')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will need this soon, but it probably won't work with the diff view.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we can add it back once it is needed.

@ctlai95 ctlai95 changed the title /review: show code diff instead of only code fix for fix preview feat(amazonq): show code diff instead of only code fix for fix preview Mar 8, 2025
@ctlai95 ctlai95 closed this Mar 8, 2025
@ctlai95 ctlai95 reopened this Mar 8, 2025
@hayemaxi hayemaxi merged commit 27a698f into aws:master Mar 11, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants