69 Commits

Author SHA1 Message Date
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 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 8403bb74f2 Generalize datetime helper for advanced filters. 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 fe39ccec97 Improve input group markup for advanced filters. 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
Wieland Lindenthal 60e63674e8 [#70191] Allow searching for work package types and status when selecting work package for time entries (#21522) 2026-03-25 19:31:09 +01:00
Henriette Darge c82f493c9f [71069] Use autocompleters in Admin/Backlogs page (#21841)
* Replace selectPanel with autocompleters

* Fix specs for updated autocompleter

* Attempt to fix test

* Replace ng.getComponent by ViewChild API
2026-02-11 13:57:03 +01: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
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
Bruno Pagno d75aa36613 Merge pull request #21184 from opf/impl/68699-readonly-on-blocknote
Make BlockNote editor read only when the user cannot edit a document
2025-11-26 11:54:46 +01:00
Bruno Pagno 90f2ee4380 make BlockNote editor read only when the user cannot edit a document 2025-11-26 08:53:52 +01:00
Oliver Günther 3552df22a6 Implement attribute help text caption 2025-11-25 22:06:38 +01:00
Bruno Pagno b8564ca1fe Merge pull request #21025 from opf/impl/68764-awareness-live-updates
Impl/68764 awareness live updates
2025-11-20 12:16:56 +01:00
Bruno Pagno 1c2d38f385 show live list of connected users on documents 2025-11-19 14:31:07 +01:00
Mir Bhatia ee42e49ae6 Update form and only show email text area when checked 2025-11-18 17:36:42 +01: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 23a632107b use oauth token instead of custom JWT for auth 2025-10-20 13:40:27 +02:00
Bruno Pagno 7c389738d0 blocknote editor use ydoc when collaboration is disabled 2025-10-20 13:40:27 +02:00
Bruno Pagno d17415aed3 send both document id and name 2025-10-20 13:40:26 +02: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
Jan Sandbrink cd17640f13 Disable pattern input instead of hiding it for enterprise
This required to allow disabling the pattern input. For that
it received the additional FormControl-input class, which makes
sense, because it behaves like a form input and made it react
to the disabled attribute.

A side effect of the new class seems to be that some paddings changed
slightly, but it still looks good to me.
2025-08-01 10:14:03 +02:00
Eric Schubert e36d115295 [#65242] moved most of the wp types related files to new namespace
- https://community.openproject.org/work_packages/65242
- moved a lot of classes under ::Types or ::WorkPackages::Types to
  ::WorkPackageTypes namespace
2025-06-30 13:31:39 +02:00
Bruno Pagno 2497921908 improve style for documents form 2025-06-30 10:19:22 +02: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
Alexander Brandon Coles bc5501c896 Fix autocompleter handling of options with nil ids
Ensures `AutocompleterInput::Option` is always serialized with explicit
nils.
2025-04-28 15:13:23 +01:00
Dombi Attila 77b22f3e72 Change the primerized version autocompleter to handle grouped options 2025-03-05 12:45:08 +01:00
Henriette Darge 4bc6b9e637 Remove unused angular components which are going to be replaced by ViewComponents 2025-02-25 09:13:48 +01:00
Bruno Pagno 4aa5d23d6d make form control look like a form control 2025-02-04 08:40:46 +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
Oliver Günther 869190c2ff Allow passing custom classes for highlighting 2025-01-14 09:13:09 +01:00
Oliver Günther e3d02dc504 Get rid of decorated select altogether 2025-01-07 09:35:48 +01:00
Dombi Attila a96fdd1de1 Address CR comments 2024-12-17 16:59:45 +02: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
Kabiru Mwenja 52beb63d99 Merge branch 'dev' into feature/54733-primerise-the-activity-panel 2024-10-14 12:22:03 +03: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
jjabari-op 9c5bf53dc0 Merge branch 'dev' into feature/54733-primerise-the-activity-panel 2024-09-16 21:42:33 +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