This update introduces the `addContexts` function, which adds context handling to the evaluation popup logic. Contexts are now appended when the session contains specific classes, enhancing the popup with additional context information. The code adjustments ensure that class management is consistent when determining whether to add features, contexts, or suggestions.
GitOrigin-RevId: 4318850b2be63f091f59a595957bde5f54c7259f
Eliminated `addContexts` function and related code as it was unused. Simplified logic in `addCommonFeatures` and `addSuggestions` by removing references to non-existent contexts.
GitOrigin-RevId: c1d5e1f4dfd067019a5a6fa249f6fac42320b3d9
Several updates were made to the script.js file: Code generation prompts (e.g., "cover this method with logging", "simplify the following method") were added and the updatePopup function was modified to handle these prompts. This includes extending the conditions for adding features and contexts, as well as adding a check for whether a prompt is among the defined code generation prompts before deciding between adding a diff view or suggestions.
GitOrigin-RevId: 9d98eb5035aeaff87753a38e1c581850c9021c1e
The line difference calculation code was refactored and moved from 'script.js' to 'diff.js' to improve code organization. This change improves maintainability and clarifies the source of these functions. Furthermore, it allows a more modular structure, with related functions grouped together. The function call in 'script.js' has been updated to reflect this change.
GitOrigin-RevId: a24c07b86588106acae1946f605e48c7472fca44
The update removes all instances of "suggestions" from the sessionDiv class list methods in script.js. The code has been streamlined for better maintainability, where redundant references to "suggestions" were removed as part of an overall effort to improve code readability and performance.
GitOrigin-RevId: 43fbc3d6acd06fe14828fc8f95ca47c42d2f75a7
Two new script resources, diff.js and script.js, have been added to the report generators in FileReportGenerator.kt and HtmlReportGenerator.kt. They are expected to enhance the reporting capabilities towards the plugin's evaluation process. An unnecessary import statement from script.js has also been removed.
GitOrigin-RevId: eb2953c95e0f0c2a070ca4988575309dfa4a2354
Removed unnecessary java-code-generation.json, as it seems to be a duplicate file. Refactored script.js, by moving the Diff class to a new separate file diff.js, for better code organization and readability. This change will make the code easier to maintain.
GitOrigin-RevId: 5a4fd4d0cbc97a75731ba71fef26af28a5ec7480
The commit adds console logging in the diff function to display changes. It also corrects the handling of CSS classes between different context views for sessionDiv in the evaluation plugin. Specifically, the "diffView" class is correctly added and removed when switching between different contexts. This ensures proper styling and functionality across different components.
GitOrigin-RevId: 6c5cc92c05ab67300d7c8184733d3d1946c00b2b
The change in the script.js file of the evaluation-plugin sets the style of lineDiv to 'pre'. This modification will help in preserving the indentation in the generated output by maintaining white spaces as they are without collapsing them.
GitOrigin-RevId: 3a0dd4acfda92aa36f58be3dfd749076c0aa5a19
This update enhances the readability of code differences visualized by the evaluation plugin. Added and removed lines are now clearly tagged with their respective old and new line numbers. This addition offers a more straightforward way to see which lines have been changed or removed from the previous version.
GitOrigin-RevId: 310a7070ec40f76135dccd8c7453a776b7c4c2ae
The revision involves an overall code cleanup and improves the script's readability and efficiency. Changes include converting a function constructor to a modern JavaScript class and refactoring the `addDiffView` function to utilize the new `unifiedSlideDiff` function that was created to generate a unified diff view. Unnecessary console logs were also removed for better performance.
GitOrigin-RevId: 870c7c1297474c7c6df5c2e25782a3e93f995f07
Added DiffView to the evaluation plugin core and created a new file for Java code generation configuration.
DiffView presents the differences between the old and new code which aids in code evaluations. Also, included Java code configuration which allows to customize code evaluation features such as filters, user prompts and actions.
GitOrigin-RevId: a11d276f746b3a1a0d0149b08938b217d0c4b0a4
We used a non-existent property when building a window with context, it was displayed as `undefined`. This commit fixes it.
GitOrigin-RevId: 2100f4c0fcb9d3c03fd0986967d0b462976fa7c3