247 Commits

Author SHA1 Message Date
Alexander Brandon Coles e8767481e9 [#70166] Fix accessibility errors found by ERB Lint (#21503)
* Fix GitHub/NoTitleAttribute, LinkHasHref errors

- Replaces `title` attribute with `aria-label` for interactive elements.
- Removes `title` from non-interactive elements.
- Converts `<a>` tags without proper `href` to `<button>` elements,
  using Primer `Button`/`IconButton` where possible.

# Conflicts:
#	app/views/custom_fields/_custom_options.html.erb
#	spec/features/admin/custom_fields/shared_custom_field_expectations.rb
#	spec/features/admin/custom_fields/work_packages/list_spec.rb

* Fix Autocomplete missing errors

* Fix GitHub/NoPositiveTabIndex errors

Removes all positive `tabindex` values.

* Fix Rails/LinkToBlank errors

* Replace toast with Primer Banner on LDAP form

* Add frozen_string_literal

* Ignore erb lint for deprecated files

* Fix linting errors in repository module

* Fix linting errors in budgets and custom actions

* Fix linting errors in member form and 2fa

* Fix linting errors in mcost types and wiki help and storages

* Fix linting errors in multi select filters, ifc viewer, and unsupported browser banner

* Fix failing spec

* Use Primer banner instead of op-toast where ever it is possible

* Use octicon instead of op_icon

* Fix failing tests

* Use no-decoration-on-hover for button links and change the button with only an icon to primer icon button

* Keep webhook response modal activation selector class-based

* use icon button for edit of hourly rate

---------

Co-authored-by: Behrokh Satarnejad <b.satarnejad@openproject.com>
2026-05-07 10:31:10 +02:00
Henriette Darge 6e228dc06a Fine-tune the shown forms of custom fields & fix tests 2026-02-23 09:08:21 +01:00
Henriette Darge 72a274dbd5 Restore the old customOptions table but within a separate "items" tab 2026-02-19 15:45:20 +01:00
Henriette Darge dd581b800b Add mising form elements to exisiting cf::detailsForm instead of creating two different ways of rendering cf forms 2026-02-18 13:35:42 +01:00
Alexander Brandon Coles 9368247f13 Possible values table 2026-02-13 09:09:45 -03:00
Alexander Brandon Coles 0b19144fab [#70292] Primerize Custom Field forms
https://community.openproject.org/wp/70292
2026-02-13 09:09:19 -03:00
ulferts 7fba5cadbf display cf type in page title 2026-01-27 17:58:10 +01:00
Alexander Brandon Coles e1c6f3aad2 [#70148] Fix ERb/HTML markup (Herb Parse errors)
Fix malformed HTML (e.g. unmatched closing tags) as well as other issues
identified as "parse errors" when running:

    herb analyze .

https://community.openproject.org/work_packages/70148
2025-12-22 10:39:03 -03:00
ulferts e02569ea9f move the check for component into the component 2025-12-18 09:36:15 +01:00
ulferts fbbb570fe7 differentiate between project attribute and custom field in captions 2025-12-17 18:04:47 +01:00
ulferts a24f6bc414 consolidate custom field form and component 2025-12-17 17:12:45 +01:00
ulferts 64609c8ae8 remove ability of boolean cfs to be required 2025-12-17 13:41:57 +01:00
Tobias Dillmann 57b287de3d [#69399] Add "for all projects" checkbox to project custom fields 2025-12-12 09:59:49 +01:00
Oliver Günther 47477fe687 Add tab for work package custom fields 2025-11-25 22:06:39 +01:00
Oliver Günther 14192a74c3 Replace confirm with turbo-confirm, method with turbo-method 2025-09-26 09:15:04 +02:00
Ivan Kuchin ec114cd2bb don't add field_format hidden field in saved custom field form 2025-09-17 17:53:32 +02:00
Henriette Darge 53e3078589 Remove octicons from rails pages 2025-09-16 08:33:45 +02:00
Eric Schubert be7b7f35fa [#66410] add common denominator for hierarchical lists
- use better interpolated failure message in contract
2025-08-20 15:53:05 +02:00
Eric Schubert 97f14394b9 [#66410] added new custom field type scored list
- https://community.openproject.org/work_packages/66410
- works under the hood for now exactly like hierarchy
- added feature flag
2025-08-19 16:17:19 +02:00
Jens Ulferts 4208aad71f Merge pull request #19418 from opf/bug/65416-custom-field-type-is-not-visible-on-custom-field-creation-page
[#65416] Show custom field format on #new
2025-07-08 11:19:52 +02:00
Tobias Dillmann 90a7b0ed19 [#65416] Show custom field format on #new 2025-07-04 13:25:13 +02:00
Dombi Attila 0e66e4b0f5 [#65513] Form configuration page is broken on the work packages page
https://community.openproject.org/work_packages/65513
2025-07-04 12:56:21 +03:00
Tobias Dillmann 062b0d2b34 [#65074] Remove broken custom field creation option
It was missing the necessary format. As the creation button is right
above this area, I chose to remove it rather than inserting an action
button here.
2025-06-27 14:17:15 +02:00
ulferts 84ea15fa61 use hierarchy format as blueprint for moving to primer forms 2025-06-23 12:00:37 +02:00
ulferts babd747330 apply action menu also to project custom field settings 2025-06-23 12:00:36 +02:00
ulferts d6caec6c55 only display hierarchy option in dropdown if ee permits 2025-06-23 12:00:35 +02:00
ulferts f8fad16c77 move and adapt custom field feature specs 2025-06-23 12:00:33 +02:00
ulferts e1a6f7157b move enterprise banner for hierarchy fields 2025-06-19 16:04:57 +02:00
ulferts db8fc93db6 add field format hidden field 2025-06-19 16:04:56 +02:00
ulferts 146fd6866c remove format toggle from custom field create form 2025-06-19 16:04:55 +02:00
ulferts ee0e78c69b dirty implementation for action menu custom field format selection 2025-06-19 16:04:54 +02:00
Oliver Günther 000f1061b9 Remove application dynamic target 2025-06-17 15:15:30 +02:00
Christophe Bliard f1ca6765f0 On new CF page, show enterprise banner only for hierarchy type 2025-06-10 17:35:56 +02:00
Mir Bhatia a8e2229916 Add custom handling for some trial banners 2025-06-04 11:19:22 +02:00
Henriette Darge d7c006ce82 Update SubHeader implementations to new mobile requirements in version 0.66.1 2025-05-19 15:11:05 +02:00
Henriette Darge da8ec0d4c1 Get rid of with_tab_nav from the tab helper as all pages now use the Primer PageHeader and its tabNav. Thus we can also get rid of an old Angular component 2025-04-30 12:24:32 +02:00
Oliver Günther 8c78134a7c Replace enterprise banner for hierarchies 2025-04-07 10:55:19 +02:00
Ivan Kuchin a98789d986 erb_lint auto fix part of style 2/3 2025-02-11 18:49:21 +01:00
Ivan Kuchin fba9d4b506 erb_lint auto fix quoted symbol 2025-02-11 18:49:21 +01:00
Ivan Kuchin 0f6a12da3a erb_lint auto fix layout 2025-02-11 18:49:20 +01:00
Ivan Kuchin fb715f21b9 erb_lint auto fix quotes 2025-02-11 18:49:19 +01:00
Ivan Kuchin 0b1f73ec79 erb_lint auto except rubocop linter 2025-02-11 18:49:19 +01:00
Eric Schubert de4eb6cfa5 [#60183] add pattern contract validation to subject configuration
- https://community.openproject.org/work_packages/60183
- rewrite work package type routes
- added new controller for subject configuration
- fixed test expectation values for radio buttons
- removed tests for disabled submit button
- extracted tests to new controller
2025-01-17 13:24:27 +01:00
Eric Schubert 540bb8f4a8 [#59807] added form field instructions
- https://community.openproject.org/work_packages/59807
- old new custom field form now contains intstructions for multi-select
2024-12-03 10:41:13 +01:00
Eric Schubert c6fd24d596 [#59219] added upsale text for enterprise banner 2024-11-21 13:48:55 +01:00
Eric Schubert dbde5d5435 [#59284] add correct margins to enterprise banner 2024-11-13 15:52:11 +01:00
Eric Schubert 797e0ff7bd [#58865] fixed flaky custom fields specs 2024-11-13 14:47:50 +01:00
Eric Schubert d27a077d4b [#58865] add enterprise banner to new custom field form
- https://community.openproject.org/work_packages/58865
- show banner below form field selection, if
  - hierarchy is selected AND
  - enterprise token is not active
- disable submit button, if the enterprise banner is shown
2024-11-12 13:59:10 +01:00
Eric Schubert a8a6d112da [#58426] add feature spec for custom fields of type hierarchy
- https://community.openproject.org/work_packages/58426
- add a couple of test selectors
- add page objects
2024-10-25 10:49:58 +02:00
Eric Schubert 6fdbc59911 [#57814] added predicate for field_format 2024-10-01 14:02:02 +02:00