-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add ability to customize feature detail fields with configuration expressions #1987
Conversation
fe1b462
to
6c82853
Compare
Codecov Report
@@ Coverage Diff @@
## main #1987 +/- ##
==========================================
+ Coverage 60.87% 61.38% +0.50%
==========================================
Files 473 470 -3
Lines 22549 22228 -321
Branches 5244 5109 -135
==========================================
- Hits 13727 13644 -83
+ Misses 8539 8309 -230
+ Partials 283 275 -8
Continue to review full report at Codecov.
|
grooming just now: how bout we add a little bit of doc in the config guide and then merge |
b90586e
to
0c4db06
Compare
some possible considerations that are not necessarily addressed by this
then it looks like this not sure how to solve gracefully, could hack in a workaround like keeping track of core details on a separate object but sort of tricky to make a nice elegant solution |
this one appears to have been frozen following discussions and will be rebooted in some separate way |
This is a way to provide customization to the feature detail panels without making a plugin+ making a custom display type + making a custom widget panel
It allows a jexl expression instead in the config so that you can have something like this
This would add a field called hello with value world to the feature details
You can also stitch together multiple attributes, or rewrite existing fields. It uses object spread which will overwrite fields or create new ones. This can be used to make links
Example here
This is possibly a bit verbose if you want to provide multiple customization, as it is all contained in one field and possibly on a single line in json. Users facing this issue could make a plugin that adds some custom jexl expressions and then possibly it could look just like this