Add per-parameter "visible in symbol" flag for KiCad EDA export#1444
Open
Dant-hw wants to merge 1 commit into
Open
Add per-parameter "visible in symbol" flag for KiCad EDA export#1444Dant-hw wants to merge 1 commit into
Dant-hw wants to merge 1 commit into
Conversation
Introduce a nullable tri-state eda_symbol_visibility on part parameters
that drives the KiCad field's "visible" flag in the EDA HTTP-library API
response. This is independent of the existing eda_visibility, which only
controls whether the parameter is exported as a field at all.
When the per-parameter flag is null, the new system default
KiCadEDASettings::defaultParameterSymbolVisibility applies. Both default
such that exported parameter fields keep their previous behavior
("visible": "False"), so the change is backward compatible.
- Entity: eda_symbol_visibility column + accessors, with matching
serialization groups and a multi-platform migration
- Form: second TriStateCheckboxType, shown for part parameters only
- KiCadHelper: resolve the flag (explicit, else system default) and pass
it to createField()
- Settings: defaultParameterSymbolVisibility (default false)
- Templates: new eye-icon column in the specifications table
- Translations (en) + tests
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1444 +/- ##
============================================
- Coverage 58.48% 58.47% -0.01%
- Complexity 8707 8709 +2
============================================
Files 639 639
Lines 28146 28156 +10
============================================
+ Hits 16461 16465 +4
- Misses 11685 11691 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Dant-hw
marked this pull request as ready for review
July 14, 2026 10:30
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
Adds a per-part-parameter flag that controls whether an exported parameter is
shown on the schematic symbol in KiCad, i.e. the KiCad field's
"visible"attribute in the EDA HTTP-library API response.
Previously Part-DB always emitted parameter fields with
"visible": "False",so a parameter exported to KiCad was never displayed on the symbol without the
user manually toggling it in KiCad. This adds first-class control over that.
Two independent "visibilities"
The existing
eda_visibilityand the neweda_symbol_visibilitydo differentthings and are deliberately independent:
eda_visibility(existing)eda_symbol_visibility(new)"visible": "True"/"False")The new flag only has an effect once the parameter is actually exported.
Behavior
eda_symbol_visibilityis a nullable tri-state on part parameters,mirroring the existing
eda_visibility.null, the new system defaultKiCadEDASettings::defaultParameterSymbolVisibilityapplies.false, so existing installations keep the previousbehavior — exported parameter fields stay
"visible": "False"until theflag (or the setting) is turned on. Fully backward compatible.
Changes
eda_symbol_visibilitycolumn onAbstractParameterwith accessors and matching serialization groups; multi-platform migration
(MySQL / SQLite / PostgreSQL).
TriStateCheckboxType, shown for part parameters only.and passes it to
createField().defaultParameterSymbolVisibility(defaultfalse).next to the existing EDA-export column.
"visible": "True"when the flag is set, and that thedefault stays
"False".Screenshot
Testing
KiCadHelperTestpasses (24 tests, 45 assertions), including the two new cases.eda_symbol_visibilitycolumn iscreated as expected.
the new column is present, and the edit form renders the new column.
Notes
touched (could follow the same pattern later if wanted).
messages.en.xlfis updated; other locales fall back to English untilCrowdin syncs.
🤖 Generated with Claude Code