Skip to content

Diff view review and refactoring#169

Merged
jGauravGupta merged 22 commits into
jeddict:mainfrom
stefanofornari:main
Sep 3, 2025
Merged

Diff view review and refactoring#169
jGauravGupta merged 22 commits into
jeddict:mainfrom
stefanofornari:main

Conversation

@stefanofornari

Copy link
Copy Markdown
Collaborator

This PR aims to refactor for better reuse the panel used to display and deal with diffs.

  • removed the use of an internal class with our dedicated DiffView
  • refactored for better reuse
  • added diffWithOriginal to compare any text (i.e. as returned by the AI) with the original source file
  • added a first UnitTest for FileStreamSource

Note that because #166 was not merged yet, this PR includes those changes too. It's not ideal, but I need to move on my branch. @jGauravGupta, it would be great if you could provide some feedback or more interaction so that we can coordinate better and the contribution process would be more effective.

jGauravGupta and others added 17 commits August 27, 2025 18:23
This commit implements the user story from issue #9, allowing Jeddict icons to be displayed
before menu items in NetBeans, enhancing visibility and usability.

As part of this feature, significant refactoring was undertaken to improve code quality and maintainability:
- Introduced `BaseGitAction` to centralize Git project-related action logic.
- Introduced `BaseContextAction` for common context-aware action functionalities.
- Introduced `BaseProjectContextAction` for project-specific context actions.
- Refactored `GenerateCommitMessageAction` and `ReviewAction` to leverage these new base classes.
- Added comprehensive Javadoc to all classes within the `io.github.jeddict.ai.actions` package for improved code documentation.
- refactored for better review
- added diffWithOriginal to compare any text (i.e. as returned by the AI) 
  with the original source file
…ementation

of the StreamSource which uses a FileObject to read the content.
which is an internal class and therefore a brittle dependency. It also
gives the basis to build specific functionality for Jeddict or cleaning
up the UI removed unused functionalities.
…nu items.

This class provides common functionality for setting the action's name, icon,
and enabled state.
feat: Implement #9: Show Jeddict icon in NetBeans menus
# Conflicts:
#	.gitignore
#	src/main/java/io/github/jeddict/ai/actions/BaseContextAction.java
@jGauravGupta jGauravGupta added this to the 3.3 milestone Sep 2, 2025
@jGauravGupta

Copy link
Copy Markdown
Member

Hi, thanks for the improvements.
I noticed that the main toolbar icon is broken — it should be larger than 16x16.
image

Comment thread src/main/java/io/github/jeddict/ai/components/diff/FileStreamSource.java Outdated
Comment thread src/main/java/io/github/jeddict/ai/components/diff/FileStreamSource.java Outdated
@jGauravGupta

Copy link
Copy Markdown
Member

Only minor typos in comment, All LGTM.

@stefanofornari

stefanofornari commented Sep 3, 2025

Copy link
Copy Markdown
Collaborator Author

Hi, thanks for the improvements. I noticed that the main toolbar icon is broken — it should be larger than 16x16.
...

Fixed, thanks for spotting it

@jGauravGupta jGauravGupta merged commit 87ba2bf into jeddict:main Sep 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants