27 Commits

Author SHA1 Message Date
Eric Schubert 2c574f623e [chore] add forms dsl input for filterable tree views 2026-06-11 14:29:52 +01:00
David F 88a29a0aff Turn checkbox filters into toggle switch. wp/74380 2026-05-26 08:14:56 +02:00
David F f22771f5fc Replace old select with toggle with autocompleter. wp/74380 2026-05-26 08:14:56 +02:00
David F 1ce489a2e0 Turn partials into form components. wp/74380 2026-05-26 08:14:56 +02:00
David F 68f3d335fa Add optional hidden sentinel field for Primer’s checkbox groups. wp/74398 2026-04-30 11:10:28 +02:00
Henriette Darge 35d481edb7 Pimerize the reminders form 2026-03-26 14:41:54 +01: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
Oliver Günther 3552df22a6 Implement attribute help text caption 2025-11-25 22:06:38 +01:00
Alexander Brandon Coles 2c3a84df04 Implement advanced check, radio form controls 2025-11-17 00:05:59 -03: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
Bruno Pagno 10e839fb41 make blocknote input part of the form DSL 2025-06-30 08:54:37 +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 d9621e9efe Decorate options for all remaining input types 2025-06-03 12:34:50 +01:00
Alexander Brandon Coles 304c6ea85e [#63737] Render help text icon in Primerized forms
Renders `AttributeHelpTextComponent` in Primerized forms automatically
if the form model supports attribute help texts and the
`include_help_text: true` option is passed to the form DSL method.
2025-06-03 12:34:50 +01:00
Bruno Pagno b0fefb83fc create a pattern autocompleter input
This commit introduces a new type of input field which can handle autocomplete with 'tokens', so that we can build
patterns like `Example pattern {{token}} value`.
2025-02-04 08:40:46 +01:00
Dombi Attila 56445a9770 Add DatePicker component and dsl for single_date_picker and range_date_picker form fields 2024-12-17 15:54:15 +02:00
Christophe Bliard 8bd7889d1f Primerize statuses create/edit form
Except the color picker which still uses an angular component.

Also fixed an issue where the "Default value" checkbox could disappear
from the form after submitting with an error in the form.
2024-10-09 15:26:40 +02:00
Christophe Bliard 61d2daa4cd Display warning text when progress calculation changes
There is also a new helper to display HTML content in forms.
2024-09-11 18:42:18 +02:00
Kabiru Mwenja 6399345e0b chore[Op#55967]: use the correct translations 2024-08-06 15:54:52 +03:00
Kabiru Mwenja 9c08378e16 [#55967] Implement file picker for the existing folders with manually managed permissions in the dialog
https://community.openproject.org/work_packages/55967
2024-08-06 15:54:46 +03:00
Oliver Günther a320a767a6 Add input for projects 2024-05-06 11:02:16 +02:00
Oliver Günther 539c000b86 Add separate work_package_autocompleter input 2024-05-06 10:54:05 +02:00
Klaus Zanders 9ac02d6e82 Also remove autocompleter mentioned in input methods file
The class was removed in b2bba8e767
2024-03-26 09:59:52 +01:00
Henriette Darge b83c97e052 Introduce UserAutocompleterInput for Primer Forms 2023-10-23 09:09:07 +02:00
jjabari-op 1a9d031a77 Feature/49951 meetings tab on work package page (#13749)
* [#49951] Meetings tab on work package page

https://community.openproject.org/work_packages/49951

* added meetings tab for work package page as and add-on feature for #13725, specs missing

* cleanup and updated to-do comments

* cleanup left-overs of include child wps draft

* Use autocomplete select decoration for meeting selector

* Use proper prefix for turbo frame src and add content-loader example

* WIP: Adding specs for meetings tab, specs for adding agenda items through meetings tab missing

* re-enabled temporarly disabled specs

* cleanup redundant UI update

* implemented potentiallly reuseable async primer dialog, using turbo frame and a bit of stimulus

* cleanup

* finalized meeting tabs specs

* adjusted contracts towards usage in meetings tab

* Do not output meetings tab on new work packages

* Don't use through association to check for presence, use meeting itself

* Add TurboElement type to prevent any

* Rework into view

* Visit response in case frame is missing

If you're setting up the wrong frame response, you get "Content missing" by default. This is not very helpful for identifying the error.

We can listen to the turbo frame-missing event and promote it to a full visit instead

https://community.openproject.org/work_packages/50210

* Add nowrap to "Added by"

* Unify "added by" display

* Adapt create contract spec for visibility check

* Use contract to get assignable meetings

* Use explicit option to set decorated status, even if options empty

---------

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2023-09-28 14:48:07 +02:00
Oliver Günther 35e79e2f02 Add autocompleter extensions to primer forms 2023-09-20 09:51:28 +02:00