-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Add support for report translation #20
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
Draft
psyray
wants to merge
6
commits into
release/v0.5.0
Choose a base branch
from
feat/multi-language-prompt
base: release/v0.5.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
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
This change introduces multilingual support for Oasis reports. Users can now specify a target language for report generation using the --lang command-line argument. The reports are translated using the configured LLM model, preserving markdown formatting and code blocks. The dashboard UI has been updated to display a language flag indicating the report's language.
Reviewer's Guide by SourceryThis pull request introduces multilingual support for Oasis reports. It allows users to specify a target language for report generation, translates the reports using a configured LLM, and updates the dashboard UI to display a language flag indicating the report's language. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This change simplifies the report filtering logic in the backend and improves the handling of report dates in the frontend. Filtering parameters are now consistently applied across all API endpoints, and the frontend now uses a template for displaying dates, making the code cleaner and more maintainable. The translation of report content has been removed. The language of the report is now displayed next to the date.
This change refactors the way report languages are handled in the dashboard. Instead of hardcoding language names and emojis in the JavaScript, they are now loaded from the server-side configuration. This makes it easier to manage and update the supported languages. Additionally, the dashboard refresh logic is updated to handle potential errors more gracefully, displaying an error message to the user if the refresh fails.
This change adds model emojis to the date tags displayed on the dashboard. A default format of "md" is also used if the report format is not specified.
This change introduces several enhancements to Oasis, improving reporting, analysis, and user experience. It adds support for specifying the report language, improves the handling of model selection, refactors statistics calculation, and enhances the web dashboard with better modal and tag display. Additionally, the ASCII flowchart format in reports is standardized, and the total number of findings is now included in risk summaries.
The progress bar updates during vulnerability analysis were inaccurate and have been corrected to reflect the actual progress. Previously, the main progress bar was incrementing by 0.5 for each vulnerability scan, resulting in an incorrect total progress. This change ensures the main progress bar increments by 1 for each scan, accurately representing the overall progress.
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.
Fix #7
Adds support for report translation to allow users to generate reports in different languages using the configured LLM model. The dashboard UI is updated to display a language flag indicating the report's language.
New Features: