24 Commits

Author SHA1 Message Date
Alexander Brandon Coles ae83523492 [chore] cover help texts for filterable tree view
Enables the shared help-text examples for the new tree view input.
2026-06-11 14:38:03 +01:00
Alexander Brandon Coles a3507d8883 [chore] render filterable tree view in fieldset
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.
2026-06-11 14:31:33 +01:00
Eric Schubert 0be3025f64 [chore] add unit tests to new dsl input 2026-06-11 14:29:52 +01:00
Alexander Brandon Coles 53fad52076 Add spec coverage for segmented control form input
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.
2026-06-02 19:52:15 +02:00
David F 542792764e Add input_methods spec for segmented_control. wp/74380
As per review feedback from myabc.
2026-05-26 08:14:56 +02:00
Alexander Brandon Coles ab76984c5b Make datepicker_options optional
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>
2026-02-08 16:28:43 -03:00
Alexander Brandon Coles 67cdb49dda Add initial spec for DatePicker inputs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 16:27:09 -03:00
Behrokh Satarnejad e29a1f8798 Replace fieldset form component 2026-01-23 17:12:51 +01:00
Alexander Brandon Coles 5436a27358 [#70200] Introduce Fieldset component, input group
Introduces both an unstyled, low-level `FieldsetComponent` and the
`fieldset_group` input group for use with the Primer Forms DSL.

https://community.openproject.org/work_packages/70200
2026-01-14 05:43:56 -03:00
Alexander Brandon Coles dfbf5f0f6c Implement select panel form control/input
Makes `SelectPanel` easily usable via the Forms DSL. Based on upstream
`ActionMenuInput` implementation.
2026-01-09 15:48:32 -03:00
Copilot de219c8a5b Remove redundant name parameter from radio_button calls in specs (#21049)
* Initial plan

* Remove redundant name parameter from radio_button calls in spec

Co-authored-by: myabc <755+myabc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: myabc <755+myabc@users.noreply.github.com>
2025-11-17 01:27:24 -03:00
Alexander Brandon Coles 2c3a84df04 Implement advanced check, radio form controls 2025-11-17 00:05:59 -03:00
Judith Roth d311809ad2 [#68710] Add Files section to existing document edit view
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).
2025-11-04 14:22:06 +01:00
Judith Roth 459c55aef5 [#67403] Basic file upload from blocknote (to server or storage)
https://community.openproject.org/wp/67403

Working, but not yet polished
2025-10-24 09:32:31 +02:00
Bruno Pagno 66b62c08a4 fix existing tests 2025-10-20 13:40:26 +02:00
Alexander Brandon Coles 3027716973 Add spec examples for scope_id_to_model: false
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
2025-09-25 09:32:57 +01:00
Alexander Brandon Coles b966007f4c Fix RichTextArea namespace handling
- 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
2025-09-25 09:32:57 +01:00
Alexander Brandon Coles 56c9b3c2a6 Simplify Forms #html_content implementation
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.
2025-09-01 08:30:32 +01:00
Pavel Balashou dc63efdffd [#65875] Enable collaborative editing. 2025-08-20 09:49:38 +02:00
Alexander Brandon Coles 6a799e39cb Fix RichTextArea label ids, form namespace support 2025-07-07 14:18:54 +01:00
Bruno Pagno 2497921908 improve style for documents form 2025-06-30 10:19:22 +02:00
Alexander Brandon Coles 4d23b31ca1 Support attribute help texts for multi input types
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.
2025-06-16 08:38:09 +01:00
Alexander Brandon Coles 641fc0910e [#64583] Support help texts for project attributes
Teaches `CustomField::Inputs` (except `Bool`) support for attribute
help texts.
2025-06-16 08:38:08 +01:00
Alexander Brandon Coles 3ef1222eca Add initial spec for InputMethods 2025-06-16 08:38:08 +01:00