Skip to content

fix(tag-cloud): WIP - Proposal to fix TagCloud "onlyValuesFromList" behavior + additional flag to force it from the admin (until we attach policies to EValues) - #971

Draft
cdujeu wants to merge 1 commit into
v5-devfrom
fix/metadata-tag-cloud
Draft

Conversation

@cdujeu

@cdujeu cdujeu commented Jul 18, 2026

Copy link
Copy Markdown
Member

DRAFT : not to be merged as is.

This PR proposes three things:

WPB 27252 - TagsCloudInput onlyValuesFromList not working (Search mode)

A fix to TagsCloudInput when onlyValuesFromList prop is set (WPB 27252), by simply switching the underlying Mantine component to MultiSelect (searchable) instead of capturing keypress

TagsCloud default values placeholder

In the admin NS Editor, the Default Values field shown when selecting tagCloud does not display the expected placeholder (the string exists, but wrong prop set, hintText instead of placeholder). I did not create a bug for that one, feel free to do so (and check possible wrong other usage of hintText?).

TagCloud "closed list" in Edit mode

A simple implementation to for a TagCloud to use that display mode even in Edit mode.

1 - Adding a "policyContextEditable" flag in the NSDefinition
This will be used later when we attach policies to EntityValues. We already use that pattern in other API's to evaluate PolicyContextEditable at runtime to inform UX whether the current use is allowed to create values or not. As such, this schema change is not temporary and can be re-used.

2 - Adding a checkbox in the Admin
Until we have policies to evaluate that value properly, simply show a checkbox in the admin NS editor to set it. It defaults to true (even if not set) to avoid breaking backward compat.

Still todo

  • Add a new string for the new checkbox
  • Rebase or combine with fix to WPB27253
  • Compile JS
  • The current diff in MetaNamespace.js is not that big, mostly formatting...

…ehavior + additional flag to force it from the admin (until we attach policies to EValues)
@cdujeu
cdujeu requested review from ghecquet and osalama7 July 18, 2026 08:59
@ghecquet
ghecquet marked this pull request as draft July 20, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant