24 Commits

Author SHA1 Message Date
as-op 966973f8db [#61940] Work package exports also shows sub-project despite excluded
https://community.openproject.org/work_packages/61940
2025-08-21 11:33:02 +02:00
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +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
Dombi Attila 4804473ab9 Wait longer for project include component 2024-02-01 14:23:21 +02:00
Christophe Bliard 8fa8584538 Run rubocop --autocorrect on all files
Only the safe cops have run. rubocop version is 1.59.0.
2024-01-05 15:27:09 +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
Oliver Günther 92259181ce Adapt specs to use introduced helpers 2023-09-13 09:02:42 +02:00
Christophe Bliard 9e865b4f7b lint: Run rubocop safe autocorrect
Command is `rubocop --safe --autocorrect app lib lib_static modules spec`
2023-03-09 10:25:57 +01:00
Benjamin Bädorf 00403470b9 Fix project include spec selectors 2023-02-01 09:55:17 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard e3f4a6b582 Include Capybara::RSpecMatchers where DSL is included
This is needed to make these two statements equivalent:

    expect(page).not_to have_xpath('a')
    expect(page).to have_no_xpath('a')

So that the both matchers return early on element absence, instead of
timing out.

This is the continuation of e85b47979a.
2022-11-14 11:52:52 +01:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Benjamin Bädorf 009198051b Fix spec selector for project include toggle 2022-05-17 13:19:59 +02:00
Benjamin Bädorf 338feb2ca6 Fix/revert old style change (#10667)
* Revert "Fix selector in spec"

This reverts commit c5ad3c37ab2a9a7684a12a399fc7e4297915681a.

* Revert "Move back to old styles in some instances"

This reverts commit c9085ab6b82cf39b44436445901c69e9b250123b.
2022-05-10 14:49:43 +00:00
Benjamin Bädorf cf762066c4 Fix selector in spec 2022-05-10 16:33:50 +02:00
Oliver Günther 53b72e2c9e [41923] Show loading during initial backend API request (#10558)
* [41923] Show loading during initial backend API request

There is still a slight delay between initial loading and the
re-rendering, but that appears to be minimal.

https://community.openproject.org/wp/41923

* Ensure we click on a non-disabled button
2022-04-27 11:52:51 +02:00
Benjamin Bädorf b7f732ddcc Feature/41135 include all subprojects (#10413)
* Add new query attribute include_subprojects

* Set include_subprojects in factories

* Replace create_query helper with default endpoint

* Adapt spec to new query create service

* Add spec for changed subproject behavior

* Extend project filter with replaced values and add spec

* Fix spec trying to save default query

* Fix ordered_work_packages now that we're base service compatible

* Basic frontend for include all subprojects

* Fix disabled state, update button colors

* Add new query attribute include_subprojects

* Set include_subprojects in factories

* Replace create_query helper with default endpoint

* Adapt spec to new query create service

* Add spec for changed subproject behavior

* Extend project filter with replaced values and add spec

* Add a ParserStruct overriding Enumerable#group_by

* Fix ordered_work_packages now that we're base service compatible

* Add tooltip

* Add tooltips to include projects

* Add is parameter to query props for query space

* Fix specs, add i18n strings

* Correctly parse and update the query with includeSubprojects

* FIx most spec

* Fix badge count for team planner spec, fix duplicated where def in project filter

* Only load project list if opening drop modal

* Expect that sub_sub_bug is also present

* I18nify the strings

* Fix typo

* Fix specs

* Fix linting errors

* Fix specs

* Fix linting errors

* Fix linting errors

* Fix failing specs

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2022-04-07 11:40:36 +00:00
Oliver Günther 1ca05fbd1b Merge pull request #10219 from opf/skeleton-view-include-project-modal
[41213]Include projects - Loading skeleton view
2022-03-02 16:15:10 +01:00
bsatarnejad 67b0c375cd Check if there is no loading indicator then test 2022-03-02 12:33:08 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther 67eb51769a Feature/40330 projects include filter (#10199)
* Add SPOT foundation styles

* Initial work on buttons

* Implement basic examples page

* Improve spot-checkbox

* Add outline buttons in HTML

* Checkbox works

* Add filter chips

* Initial text field implementation

* Chip field initial implementation, add filter-chip component

* Keep old styleguide page

* Add drop modal component

* Finish checkbox list

* Improve action bar

* Add drop modal alignment options

* Fix drop modal zindex

* Make sure clicks do not close the drop modal, add escape closing event for drop modal

* Add spot-body

* Don't hide drop modal body via display

* Start work on project select

* Add basic form

* Switch to FormGroup

* Generate project data structure

* Basic selecting and unselecting works

* Update buttons and colors

* Add basic button type

* Start work on project select

* Add basic form

* Switch to FormGroup

* Generate project data structure

* Basic selecting and unselecting works

* Increase specificity of toolbar button styles

* Set line height for typography styles

* Fix buttons

* Filtering works

* Add basic toggle component

* Work on better sorting

* Set to query space filters

* Better docs

* Fix disabling current project

* Select and deselect works

* Don't use reactive forms

* Fix heading styles

* Fix toggle font size

* Add number of projects to button

* Change the position of the project include modal in th ework packages table

* Add project include tp spec file, also search for assignees in other projects in tp

* Add current date color

* Rename project-select, initial specs working

* Fix names for form components

* Fix lst add assignee spec

* Add specs for calendar

* Add specs for calendar and wp, refactor specs

* i18nify the strings, remove button to select subprojects

* Fix import to typogrpahy after DS got merged

This otherwise raises an error

* Fix filtering for projects

* Show badge content only when loaded

* Linting

* Move duplicated specs into a shared example

* Improve selectors with retry_blocks

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
2022-02-22 11:02:33 +01:00