45 Commits

Author SHA1 Message Date
Alexander Brandon Coles 2b144e8542 Fix wording: Change "Favored" to "Favorited"
Favorite is the correct term in the context of expressing a preference
for a particular project / other OpenProject domain object.

Updates `ActsAsFavorable` to `ActsAsFavoritable`, as well as filenames,
identifiers and strings to:

    favored => favorited
    favorable => favoritable
    favoring => favoriting
2025-09-10 19:08:15 +01:00
ulferts e77c21dc72 adapt select and order for project phase 2025-04-01 16:39:42 +03:00
ulferts 464e97499c rename steps and step definitions 2025-04-01 16:39:37 +03:00
Dombi Attila 8ae3253161 Apply view permission on the row level of the Project List page. 2024-12-18 21:18:05 +02:00
Tobias Dillmann 68dc092358 [#58160] Use index_by to fetch single value per key 2024-12-16 09:52:01 +01:00
Tobias Dillmann f3a8d06403 [#58160] avoid expensive queries 2024-12-16 09:51:59 +01:00
ulferts 8ce7e23ebe load storage/activity data only for admins 2024-11-11 12:35:05 +01:00
Tobias Dillmann c06ed0c690 [#52147] not all project tables use quick actions
In the project storage module, there is a project list that should not
use these quick actions as the columns there are not sortable.

Same for custom field settings.
2024-10-18 14:17:59 +02:00
Tobias Dillmann 7c0f8c4ec6 [#52147] show the quick action menu for non-sortable columns
Since you can do more things, such as (re)moving a column, it would be a
shame to not offer these options.

For non-sortable columns, we will just not offer the sort-action.
2024-10-17 15:05:49 +02:00
Tobias Dillmann d3efcf3212 [#52147] remove unnecessary helper method 2024-10-17 08:56:38 +02:00
Tobias Dillmann 39322117e2 [#52147] reorganize quick action table header methods 2024-10-17 08:56:37 +02:00
Tobias Dillmann 01485db270 [#52147] i18n, rubocop styling
WIP - remove column

WIP - remove column refactor

WIP - move column left or right

WIP - small refactor

WIP - filter by

WIP - style adjustments as discussed with the frontend
2024-10-17 08:56:36 +02:00
Aaron Contreras 75b827e60d Merge branch 'dev' into project-index-turbofy 2024-08-06 10:27:32 -05:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Klaus Zanders dba374098b Allow making will_paginate aware of turbo 2024-07-30 08:31:20 +02:00
Klaus Zanders 5a8925c337 Use turbo stream when sorting columns 2024-07-30 08:31:20 +02:00
Klaus Zanders 0419cbb98c Add turbo component wrappers for everything in the projects page 2024-07-30 08:31:19 +02:00
Henriette Darge cda0286f9b Extend the base layout to split into content-header, content-body, and content-body-right. The later is currently reserved to render the split screen of a WP. It may be extended later. This layout is designed to span 100% of the content height, so that the split screen can span until the very bottom of the page (while not overlapping the content-header). In that scope, I removed as much old/obsolete code that was interfering with those elements. 2024-06-18 10:25:48 +02:00
Kabiru Mwenja 5d296a12be feat[#55504] Allow pagination options to be passed in Projects::TableComponent
https://community.openproject.org/work_packages/55504

In Turbo streamable components, we need to be able to specify the url_for(action:) so that links are
generated in the context of the component index action, instead of any turbo stream actions performing
partial updates on the page.
2024-06-14 16:08:32 +03:00
Judith Roth fadea631ec [#55502] Sorting suggested to be possible when it isn't
Only marking the table component as not sortable was not sufficient
since then it would raise in ProjectsHelper#projects_sort_header_tag,
which is used when rendering the component.
2024-06-13 11:22:11 +02:00
Ivan Kuchin 77f256ff4c create a separate helper for sort param names
To use it both in TableComponent and projects_sort_header_tag helper
2024-05-31 16:56:16 +02:00
Ivan Kuchin a3e0b9a60b create urls and forms with all query parameters instead of relying on stimulus controller 2024-05-29 17:45:03 +02:00
Klaus Zanders 6988711217 Fix accidentally commited merge 2024-05-23 16:59:20 +02:00
Klaus Zanders 76f76d6acb Fix Rubocop 2024-05-23 16:56:08 +02:00
Klaus Zanders ca6e583cdb Add methods to publish and unpublish a project list based on permission 2024-05-23 16:56:04 +02:00
Andreas Pfohl 86b0c19410 [55123] Moved streamable include to derived project table 2024-05-21 15:02:38 +02:00
Andreas Pfohl 1bc11f4235 [55123] Fixed empty project attribute mapping list unlink response 2024-05-21 11:05:52 +02:00
Oliver Günther abc7b48fac Apply suggestions from code review
Co-authored-by: Klaus Zanders <klaustopher@users.noreply.github.com>
2024-04-23 15:44:38 +02:00
Oliver Günther e96d2e6506 Add favorites 2024-04-23 14:46:30 +02:00
Henriette Darge 5324e36cca Replace the dropdown menu in the projects list with a Primer::Alpha::Action menu 2024-04-15 10:26:12 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
ulferts 9c5b60fa34 adapt project export 2024-03-01 10:03:40 +01:00
ulferts ba6cfc9554 keep column selection on page manipulations 2024-03-01 10:03:35 +01:00
ulferts ec29bf8d33 column registration 2024-03-01 10:01:07 +01:00
ulferts f43770eae0 default columns 2024-03-01 09:43:44 +01:00
ulferts 346ee9e9ac allow column selection 2024-03-01 09:43:42 +01:00
ulferts c7eec30bdf move helper methods to project table/row component 2024-03-01 09:43:40 +01:00
Behrokh Satarnejad a5ee5ca606 [52127] project list truncate long text fields and disable expand action (#14838)
* remove unnecessary code

* remove column for collapsing in table

* truncate project status description and add dialog to the end of it

* change dialog title for project status description

* change dialog title for custom fields of long text

* add dialog and truncation for project description

* add a test for it

* change element for long text and add divider for modal header

* show the expand link for the long text with table

* move styes from table sass file to projects list style sheet

* change class names

* Update _table.sass

* show expand button when there is a macro in a long text field

* change size of modal to large

* remove divider of modal header

* create a separate component to be used for attribute dialog

* create a new stimulus controller for cell changes

* create a new component for showing a long text in a cell

* remove unnecessary classes

* use attribute component to show long text value on list

* check if the attribute value is multi type then show a specific text for it

* delete project controller

* add more test cases

* remove margin from text element

* remove duplicated code

* remove gear icon from table header

* use targetConnected callback instead of connect
2024-02-29 17:29:00 +01:00
ulferts 820fc9b561 fall back to "Projects" when changing filters of a persisted or static list 2024-01-26 16:08:53 +01:00
ulferts 241d76c3bf introduce queries/new action - show errors inline 2024-01-25 20:11:13 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Dombi Attila 804462f00c Remove including helpers in ViewComponents, use the #helpers method instead (#12709)
* Remove including helpers in ViewComponents, and use the #helpers method instead
2023-05-30 06:43:37 +02:00
Dombi Attila 5ce9405ee8 [#47013] Replace Projects::TableCell by ViewComponent
https://community.openproject.org/work_packages/47013
2023-05-23 15:31:46 +03:00