UI bug with similar symptoms as π Some Linker choices have no effect Active and π Can't link field to non-required prop if it's empty on the entity. Active .
Happening for the new suggestion offered when editing component instances in a content template with a type: string, format: uri|uri-reference prop shape, since
β¨
In a content template, how can I link to an entity?
Active
.
Reproduce by instantiating a my-hero test SDC in a ContentTemplate.
The child issues of
π±
[META] Content templates
Active
that built the "select a suggestion from the server-side provided list of suggestions" specifically was designed to have the client side treat the suggested sources as opaque JSON objects (see #/components/schemas/StructuredDataForPropShapeHierarchicalSuggestionPathWithChoice in /openapi.yml). Apparently the /ui code does not do that, it actually parses it into client-side representations of DynamicPropSources β PropLinker.tsx does things like
const fieldSource = selectedModel.source[propName] as DynamicPropSource;
currentExpression = fieldSource.expression;
and
const isActive = item.source?.expression === currentExpression;
But it should not introspect source at all β if it didn't, this bug report would've been avoided.
π
Follow-up for #3541037: Improve how list of field suggestions is displayed in the UI for `ContentTemplates`
Active
seems to have introduced this.
TBD
Active
1.0
Page builder
The change alters the user interface, so before and after screenshots should be added to document the UI change. Make sure to capture the relevant region only. Use a tool such as Aviary on Windows or Skitch on Mac OS X.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.