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.
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.
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`.
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.
* [#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>