question: where to get labels for facet fields
for the "Browse by {facet}" sections on the marketplace homepage, the label for "facet" is currently hardcoded on the frontend, i.e. "Browse by activity type", "Browse by keyword", "Browse by source", "Browse by item type".
i had hoped it would be possible to get these labels from the /api/property-types
endpoint, which returns { code, label }
for activity
, keyword
, object-type
. however, source
is not a property type, so it seems there is no good way to get a backend-configured label for the "source" facet field.
maybe we could add an item-facets
endpoint or something, with the only purpose of returning { code, label }
for every key of an indexed field (currently 'activity', 'keyword', 'source', 'object-type').