9 Commits

Author SHA1 Message Date
Alexander Brandon Coles 434043bfd5 [OP-19453] Add spec coverage for filter input forms
Adds 47 specs across 6 form classes and a shared context.
Covers TextForm, ListForm, DateForm, BooleanForm, AutocompleteForm, and
AddFilterForm with assertions on rendered structure, data attributes,
and operator routing.

https://community.openproject.org/wp/OP-19453
2026-06-02 19:52:05 +02:00
Alexander Brandon Coles 3de22aeb81 Fix naming collision in with *form shared contexts
Prefixes methods with `vc_` - similar to convention used in
`ViewComponent::TestHelpers`.

See https://github.com/ViewComponent/view_component/blob/main/lib/view_component/test_helpers.rb#L245
2025-11-26 10:16:21 -03:00
Alexander Brandon Coles 7d45642376 [#69095] Primerize Admin > System Settings forms 2025-11-25 19:05:02 -03:00
Alexander Brandon Coles e309d8a7c6 Introduce new settings input methods
Introduces `text_area`, `check_box_group` and `select_list` inputs.
Makes various refactorings to ensure that handling of explicit `valus`
params is as robust as possible.
2025-11-25 18:47:40 -03:00
Alexander Brandon Coles d18e9135e8 [#69073] Rework Template Selector on Create form
Updates the UI to show a "more visual" representation, making use of the
newly-created "advanced" radio button group input.

Extracts the inline form into `TemplateSelectForm` for easier reuse/
adaptability for upcoming project creation wizard.
2025-11-17 00:05:59 -03: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 beb6ecfa7f Add initial form specs for CustomField::Inputs 2025-06-16 08:38:07 +01:00
Alexander Brandon Coles a76a8f9dde Fix display of not visible parent in autocompleter
Users who do not have the permissions to view the parent project should
see a placeholder value.
2025-04-28 15:13:23 +01:00
Alexander Brandon Coles b8988b3a69 [#61889] Primerize Project Settings>Information forms
Updates the form visuals and functionality according to new wireframes:
the form on the Project Settings > Information page has been split into
multiple discrete forms.

In detail:

* Introduces `Projects::Settings::General::ShowComponent`.
* Creates Primer forms with basic specs.
* Adds `Projects::Settings::GeneralController#update` action, routes and
  accompanying permissions.
* Updates "Edit Settings" feature specs for new forms, also rewriting
  some expectations that were reliant on `data-qa-name` attribute that
  Primer form components do not render by default.
2025-04-28 15:13:05 +01:00