151 Commits

Author SHA1 Message Date
ulferts 82768cc752 remove sprint.rb and move agile/sprint.rb 2026-04-29 11:29:34 +02:00
OpenProject Actions CI 2c218d839a Merge branch 'release/17.4' into dev 2026-04-23 10:50:04 +00:00
Mir Bhatia c8148ab799 Fix more redirection HTTP statuses 2026-04-22 16:44:50 +02:00
Henriette Darge 3cccc60387 Remove unnecessary title updates 2026-04-21 09:15:05 +02:00
Henriette Darge 4aa4f5221e Remove uiRouter from Boards module 2026-04-07 08:38:10 +02:00
Henriette Darge 6522519e23 Use turbo: false to allow correct rendering on browser back 2026-03-26 12:59:04 +01:00
Alexander Brandon Coles 9680d2f8b2 [#73188] Remove EE guards from boards
Make action boards available in Community Edition by removing
board_view-based frontend and create-form gating, and align boards
feature coverage with the new default behavior.

https://community.openproject.org/wp/73188
2026-03-23 18:22:20 +00:00
Alexander Brandon Coles c6e175d61d Replace Task.type fallback with project types
Uses `params[:project].type_ids` instead of `Task.type` when
the sprint has no work packages. This avoids the dependency on
the global backlogs Setting and uses the types actually enabled
for the project.

Removes the now-unnecessary `Setting.plugin_openproject_backlogs`
stubs from both service specs and ensures projects are created
with the required types.
2026-03-23 14:02:45 +00:00
Alexander Brandon Coles e6a6ba039d Preserve status column order from previous board
`Status.where(id:)` does not preserve the order of the input IDs.
Extracts `statuses_in_order` to look up statuses by ID and return them
in the widget column order from the previous sprint board.
2026-03-22 00:31:24 -04:00
Alexander Brandon Coles 81f0b666c8 Fix Rubocop ABC size in before_perform
Extracts failure aggregation into its own method.
2026-03-21 23:17:35 -04:00
Alexander Brandon Coles 19d12d33fd Aggregate query creation failures
Collects all failed query creation results as dependent results on a
single `ServiceResult`, rather than returning only the first failure.
2026-03-21 21:04:33 -04:00
Alexander Brandon Coles 28ffe98d6f Derive sprint board columns dynamically
Determines status columns based on context rather than always using the
Task type's statuses. Reuses columns from the most recently created
sprint board on the project when one exists. Otherwise, derives columns
from the union of statuses across all work package types assigned to the
sprint. Falls back to Task type statuses when the sprint has no work
packages.
2026-03-21 20:57:59 -04:00
Alexander Brandon Coles af7211356f Align sprint boards with shared sprints 2026-03-18 23:11:59 -07:00
Alexander Brandon Coles acc92848bd [#69139] Add sprint task board creation
Introduce Boards::SprintTaskBoardCreateService and use it to create a
sprint task board with one query and widget per task status.

https://community.openproject.org/wp/69139
2026-03-13 12:58:53 -05:00
Alexander Brandon Coles cd0587bde8 Add polymorphic board linkage
Add optional linked_type/linked_id columns to grids and wire
sprint task board lookup through model associations.
2026-03-13 12:58:53 -05:00
Klaus Zanders 4df1faa79b Merge branch 'release/17.0' into release/17.1 2026-02-26 09:14:02 +01:00
ulferts f900dd54f5 prevent deletion of other users˚ queries via boards 2026-02-25 13:14:23 +01:00
Alexander Brandon Coles eec61a8b1b Merge branch 'dev' into merge-release/17.0-20251224035028 2025-12-24 20:31:01 -03:00
Oliver Günther 9bea79d6f3 Set the default appendTo=body 2025-12-17 16:25:39 +01:00
Klaus Zanders e9385d90d5 Move destroy action into the project scope 2025-12-17 10:23:52 +01:00
Klaus Zanders 2c97e7aac3 Properly authorize permission for destroying boards 2025-12-17 08:50:20 +01:00
Behrokh Satarnejad a93c851288 [64225] [Accessibility] Provide alternative text for images (#21183)
* add an input for the principal component to pass an alt text of avatar image

* Add avatar alt text in user menu for the user avatar

* Add alt text for assignee in wp single card

* add some description for the canvas

* add alt for images

* Show the summary of chart on it

* change the method parameters

* Hide the gantt chart from screen reader because it doesnt add any value for the screen reader user

* Use better name for inputs and improve the methods definitions

* fix eslint errors

* fix rubocup errors

* remove alt for bcf snapshot

* better structure for avatar in user menu
2025-11-26 16:07:58 +01:00
Behrokh Satarnejad a913c3f858 update page header breadcrumbs in index pages 2025-11-05 10:58:12 +01:00
Oliver Günther 14192a74c3 Replace confirm with turbo-confirm, method with turbo-method 2025-09-26 09:15:04 +02:00
Henriette Darge 44f5e054cd Cleanup code 2025-07-04 15:02:04 +02:00
Henriette Darge 8d46e97468 Create a OP specific patch for the PageHeader to always prepend the organization name as the first element in the breadcrumb 2025-07-04 11:31:59 +02:00
Jan Sandbrink 40aff02f11 Remove params argument from BaseCallable#perform
This is making the interface of BaseCallable more consistent.
Previously it was unclear, whether the params passed to perform
should be used to reference parameters or whether the attribute accessor
should be used. Different code used different approaches.

To apply this change more consistently, BaseContracted also removed
params from the methods called inside its own perform method, e.g.
before_perform or after_validate.

At a later point we might consider removing this argument from other large
inheritors as well, for example `BaseServices::SetAttributes#set_attributes`.
2025-06-30 11:47:03 +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 ee8452282a [63485] Remove show_local_breadcrumb and default_breadcrumb (#18663)
* add a new helper for breadcrumb in wiki page

* set page header in destroy page

* set page header in edit page

* set page header in history and rename and edit parent pages

* change toolbar items into page header items

* add new wiki action to sub header

* remove version edit page which is not in use any more

* add export as a menu item of the header

* fix rubocup errors

* fix failing tests

* replace page header in annotate page

* replace page header in diff page

* add page header in select menu page

* fix rubocup errors

* fix errors on rename test

* fix errors on selecting items from toolbar

* fix errors on tests for child pages

* set correct permission for configure menu item

* replace page header in summary page

* replace page header in summary details page

* edit docs of sub header

* add page header in wiki new page

* remove controller and a route for edit method

* undo changes for docs of sub header

* extract header in show page into a new component

* use helper method in header component

* add wiki module to the breadcrumb

* rename page header component for wiki page

* simplify how lock and lock implemented

* extract sub header

* remove wiki title from header of history page

* fix page header in new page

* use page.find_test_selector in test

* fix failing test for summary page

* fix failing test for wiki child pages

* change the summary test

* use test selector for page header title

* undo changes for activate user in admin

* use test selector in adding editing history test

* use test selector in attachment upload test

* use test selector in child pages tests

* use test selector in wiki menu items tests

* change test selector for breadcrumbs

* extract conditions to show edit button into a method

* extract conditions to show rollback action menu item into a method

* extract conditions to show create button into a method

* fix duplicated code in test

* Remove outdated `show_local_breadcrumb` method which is replaced by the Primer::PageHeader breadcrumb

* Remove `default_breadcrumb` method as it serves no prupose any more

* Remove the old breadcrumb and its hook completely

* remove breadcrumbs path from rename

* fix translations errors in storages

* undo changes on translations

* remove default breadcrumbs in time tracking controller

---------

Co-authored-by: Behrokh Satarnejad <b.satarnejad@openproject.com>
Co-authored-by: Behrokh Satarnejad <62008897+bsatarnejad@users.noreply.github.com>
2025-04-23 10:40:43 +02:00
Oliver Günther aed79dd957 Replace board_view banner 2025-04-07 10:55:18 +02:00
Ivan Kuchin ca5f8fb878 erb_lint auto fix trailing commas 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 14c88b9711 erb_lint auto fix hash style 2025-02-11 18:49:20 +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
Behrokh Satarnejad f638ab3de1 Merge branch 'dev' into 53810-update-pageheaders-subheaders-in-the-rails-project-pages 2024-12-03 15:45:38 +01:00
Henriette Darge 0180ad4fa2 Remove unused template 2024-11-28 14:21:44 +01:00
Behrokh Satarnejad bd3fb3e07d Merge branch 'dev' into 53810-update-pageheaders-subheaders-in-the-rails-project-pages 2024-11-17 12:43:21 +01:00
Behrokh Satarnejad d814a0e910 update page header in boards pages 2024-11-13 07:41:16 +01:00
Behrokh Satarnejad 723eb33889 change header in new board page 2024-11-05 23:02:30 +01:00
Oliver Günther 9ccb841dd9 Disable turbo after board creation 2024-10-17 16:19:27 +02:00
Oliver Günther c5e4c7a329 Merge branch 'dev' into experiment/enable-turbo-drive 2024-10-17 15:18:06 +02:00
Christophe Bliard 9ec34f08ce Merge pull request #16957 from opf/bug/58360-statuses-edit-page-should-show-all-checkboxes-and-disable-those-leading-to-impossible-states
[58360] Disable "is read-only" checkbox in admin statuses when "is default" is checked
2024-10-15 11:46:23 +02:00
Christophe Bliard ec708dfae7 [58411] Show enterprise banner on new board page
https://community.openproject.org/wp/58411
2024-10-15 11:29:58 +02:00
Oliver Günther 0d9b4bdcf0 Map filters on the board itself 2024-10-14 13:51:18 +02:00
Henriette Darge efe54cf8ca Use Primer Button for "AddButtonComponent" 2024-10-11 09:46:24 +02:00
Oliver Günther fa99c5bef6 Render with status: :unprocessable_entity 2024-10-11 08:42:58 +02:00
Henriette Darge d200c2694c Don't show the instance name on a project level 2024-10-11 08:40:33 +02:00
Behrokh Satarnejad 200d9e380c fix meeting breadcrumb in new page 2024-10-11 08:28:09 +02:00