Repository navigation
Conversation
This branch has not been deployed
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.
Fixes #597.
"Highlight row on click" existed only inside the generated page, with its default hardcoded to
falseinutil.js. Unlike its neighbours (dark_mode,redraw_on_drag,offset_back_rotation, …) it was never wired into the generated config, so there was no way to preset it from the command line, an ini file, or the settings dialog — which is what the reporter needs for a downstream export script.This wires it through the same plumbing as the other boolean HTML settings:
highlight_row_on_clickconfig field (defaultfalse, so generated pages behave exactly as before unless the option is used), included in the config embedded in the generated HTML.--highlight-row-on-click/--no-highlight-row-on-click, plus ini support (both the wx ini load/save and--use-ini).settings_dialog.fbpand the generateddialog_base.py, mirroring the Offset back rotation checkbox), withset_from_dialog/transfer_to_dialogsupport.util.jsnow takes the setting's default fromconfig.highlight_row_on_click; a viewer's stored choice still overrides it, like the other settings.DATAFORMAT.mdconfig struct updated.Testing: I don't have a KiCad/wxPython setup here, so I verified headless with a minimal generic-JSON board through the real CLI: on the old code the flag is rejected (
unrecognized arguments) and the config key is absent; with this change the default run embeds"highlight_row_on_click": false,--highlight-row-on-clickembedstrue, and--use-iniwith the key set inibom.config.inialso embedstrue. The dialog transfer code was exercised against a mock dialog in both directions, but I could not open the real wx dialog — worth a quick visual check from someone with KiCad.One scoping note: a few other viewer settings share the same hardcoded-default shape (references/values/tracks/zones visibility, DNP outline). I left those alone to keep this PR to the requested setting, but they could be wired the same way if you'd like a follow-up.
Full disclosure: this fix was prepared with AI assistance (Spark, an AI agent working for me). I have reviewed the diff and the test results myself and I own the change — happy to explain or adjust any part of it.