Fieldset-style inputs never go through the `FormControl` wrapper, so the
legend needs the `FormControl-label` class applied by the component. The
input does not support validation for the time being.
Wrapper arguments stay on the fieldset, while the component-specific and
form arguments flow to the inner tree view.
Covers the SegmentedControl DSL input behind boolean filter rows: label
and button rendering, the hidden value field, value defaulting to the
first item, and wrapper data attributes.
Default `datepicker_options` to `{}` in `SingleDatePickerInput`
(inherited by `RangeDatePickerInput`), and remove now-redundant
empty hash arguments from callsites.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
https://community.openproject.org/work_packages/68710
In addition to adding the files section to the document edit view,
this commit makes it optional to be able to attach files to blocknote.
This is, for example, not necessary when blocknote is rendered in
read-only mode (that's not happening yet, but planned).
This requires an upstream fix. However, given the potential to cause
accessibility problems and broken UX (e.g. focus), we should track the
current and desired/fixed behavior downstream.
See primer/view_components#3696
See primer/view_components#3695
- Fixes namespace handling when passed an explicit `id:`.
- Updates `RichTextArea` spec for Action View fixes:
ActionView 8.0.3 fixes generation of label `for` values, so that the
namespace:` option on the Form Builder is now respected.
See rails/rails#51237
This change also resolves issues with block scope after upgrading to
ViewComponent 4.0:
ActionView::Template::Error:
undefined local variable or method 'model' for an instance of #<Class:0x00000003020e3cb0>
# ./app/forms/scim_clients/form.rb:93:in 'block (2 levels) in <class:Form>'
# ./lib/primer/open_project/forms/html_content.rb:15:in 'BasicObject#instance_exec'
Additionally, since we are only interested in the passed `html_block`,
there is no need define a separate `HtmlContentInput` class.
Decorates options for additional input types defined in
`Primer::Forms::Dsl::InputMethods`.
See also d9621e9efe.
As a result, `CustomField::Inputs::Bool` now supports help texts.