-
Notifications
You must be signed in to change notification settings - Fork 122
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
Correct invalid html generated by _repr_html_()
#975
Conversation
- this fixes the incorrect html and missing link targets - bug caused by link.target's preference to return the resolved STAC object rather than the target href string
- consistent: all lowercase; prior was a mix of capitalized and uncapitalized - match JSON: things like 'bbox' instead of 'bounding box' and 'type' instead of 'media type' for a 1:1 with the JSON
- addresses the extra_field 'properties' containing a blank dictionary
… titles - reorder: basically, make field ordering more consistent between assets and links - remove link heading: the existing link heading was only populated when a title existed, and, IMO, looked awkward. I moved the title to the heading to be consistent with the asset structure - guard against missing titles: no longer display 'None' in the asset heading when there is no title
_repr_html_()
Codecov ReportBase: 90.09% // Head: 90.21% // Increases project coverage by
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #975 +/- ##
==========================================
+ Coverage 90.09% 90.21% +0.11%
==========================================
Files 47 47
Lines 6090 6090
Branches 915 915
==========================================
+ Hits 5487 5494 +7
+ Misses 422 414 -8
- Partials 181 182 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Related Issue(s):
_repr_html_()
#955Description:
Fixes a few bugs and makes the display formatting more consistent.
Fixes:
<strong>
tag added to Catalog idNone
is no longer displayed in Asset heading when the Asset does not have a title.{}
, when they exist in extra_fieldsFormats:
bbox
in place ofBounding Box
,type
in place ofMedia Type
, andhref
in place ofTarget
for a 1:1 with the JSON fields.PR Checklist:
pre-commit run --all-files
)scripts/test
)For comparison to the image in issue #955: