Add strategy descriptions to web UI dropdown#14
Merged
Conversation
Each dropdown option now shows a translated description via tooltip (title attribute) and a text label below the select that updates on change. Descriptions are i18n-translated in both German and English.
Contributor
Greptile SummaryThis PR enriches the anonymization strategy dropdown in the web UI with i18n-translated descriptions. Each
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Browser
participant results.html
participant review.js
participant i18n
Browser->>results.html: Page load / HTMX swap
results.html->>i18n: _('strategy.' + s) for each option
i18n-->>results.html: Translated description string
results.html-->>Browser: <option title="description"> rendered
Browser->>review.js: DOMContentLoaded → init()
review.js->>review.js: syncStrategyField()
review.js->>review.js: updateStrategyDescription()
review.js-->>Browser: #strategy-description.textContent = option.title
Browser->>review.js: User changes dropdown (change event)
review.js->>review.js: syncStrategyField()
review.js->>review.js: updateStrategyDescription()
review.js-->>Browser: #strategy-description updated with new description
Reviews (1): Last reviewed commit: "Add strategy descriptions to web UI drop..." | Re-trigger Greptile |
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.
Summary
<option>has atitleattribute with the description (native tooltip)<span>below the dropdown shows the description of the currently selected strategyupdateStrategyDescription()in review.jsTest plan
make checkpasses (275 tests, 95.50% coverage)