26 Commits

Author SHA1 Message Date
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
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
Sven d429ea6b69 [Gantt-Chart] Scroll to Today's Position #40167 (#11573)
* scroll gantt to visibleBeforeTodayInZoomLevel zoom levels before today

using visibleBeforeTodayInZoomLevel=2

* fix tests that rely on timeline being scrolled to the left

* add example to check that today_line always is in view

---------

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2023-04-27 14:17:51 +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
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard db276034ce Fix flaky test 2022-11-22 16:01:56 +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
Dombi Attila 86773a814f [#43637] Update gantt chart for duration and non-working days (#11189)
* Introduce the MouseDirection type and the applyRendererMoveChanges function on the timeline cell mouse handler and renderer

* [#43637] Update gantt chart for duration and non-working days

https://community.openproject.org/work_packages/43637
2022-09-01 22:25:36 +02:00
Eric Schubert c8f1e16005 [#43684] migrated op-modal to spot-modal (#11172)
* [#43684] migrated op-modal to spot-modal

- https://community.openproject.org/work_packages/43684
- amended styles
- removed "modal--title"
- removed header component
- removed closing icon
- fixed backdrop click
- removed jquery from modal service

* [#43684] removed unused styling

- fixed some inconsitencies
- readded removed icon
- removed listener on close button

* [#43684] combined spot-action-bar

- used spot-action-bar in combination with spot-modal--footer
- fixed some styling in action bar

* [#43684] replaced more op-modal

- moved spec selectors to spot-modal
- replaced found op-modal in html templates

* [#43684] add no margin to old buttons in new dialogs

- added mobile modal behavior
- fixed some feature spec selectors

* [#43684] added modal close on mobile resolutions

* [#43684] fixed PR issues

- removed old css classes from html
- fixed feature spec click
- readded tour trigger on modal cancel

* when clicking outside the modal it will be closed instaed of clicking on a close button

* exclude _center class from spot-modal sass file itself and add it to the component style sheet

* Words should be break in any case like when there is no space there

* remove unnecessary classes that never used like _fullscreen and _cente, remove _limited-height class to make all the modal look the same

Co-authored-by: bsatarnejad <b.satarnejad@gmail.com>
Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
2022-08-29 10:53:41 +00:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Aleix Suau 44cf9e0c5e Epic/placeholder users frontend (#8977)
* Add new button added to select-edit-field

* Permissions Service + show button if canInviteUsersToProject

* Permissions Service + show button if canInviteUsersToProject

* Add initial invite user modal

* Small change to invite user modal

* Small use rmodal changes

* Builds

* Added invite user modal title translation

* Changed modal to module

* Figured out basic modal setup

* Fixed build

* Started adding option-list component

* Adding reactive forms

* vim

* Reactive forms working for option-list

* op-form-field is implemented, project-selection step works

* Working on principal step

* Basics of principal selection are done

* Remove console logs

* Added role step and role api bindings, updated directory structure

* Added basics of message step

* Added summary page

* Add in-project check for selected principal

* Add documentation for principal filters

* Create modal-heading component

* Fix principal emit

* Add API calls to summary component

* Work on translations, rework close fn

* Added translations

* Fixed styling

* Add autofocus, fix typing

* Improve typing

* Add form-binding directive to fix form-field

* Fixed typescript errors

* Fix more translations

* Codeclimate and TSLint errors

* Failing test commented with TODO

* Codeclimate fixes

* Codeclimate fixes

* Open invite user modal from user selection

* Remove console and debugger calls

* Opening modal from CreateAutocompleterComponent

* Add new button added to select-edit-field

* Permissions Service + show button if canInviteUsersToProject

* Permissions Service + show button if canInviteUsersToProject

* Codeclimate and TSLint errors

* Failing test commented with TODO

* Codeclimate fixes

* Codeclimate fixes

* Add initial invite user modal

* Small change to invite user modal

* Small use rmodal changes

* Builds

* Added invite user modal title translation

* Changed modal to module

* Figured out basic modal setup

* Fixed build

* Started adding option-list component

* Adding reactive forms

* vim

* Reactive forms working for option-list

* op-form-field is implemented, project-selection step works

* Working on principal step

* Basics of principal selection are done

* Remove console logs

* Added role step and role api bindings, updated directory structure

* Added basics of message step

* Added summary page

* Add in-project check for selected principal

* Add documentation for principal filters

* Create modal-heading component

* Fix principal emit

* Add API calls to summary component

* Work on translations, rework close fn

* Added translations

* Fixed styling

* Add autofocus, fix typing

* Improve typing

* Add form-binding directive to fix form-field

* Fixed typescript errors

* Fix more translations

* Refactor/op modal (#8978)

* Initial modal refactoring

* Updated modal imports

* More modal module imports

* Fix one more import

* Fixed some styles

* Fixed failing modal specs

* Fix more spec selectors

* Fix more specs

* Updated backend modals

* Improved code style

* Fix export modal styles

* Fix wiki export modal

* Fix more specs

* Fix webhooks modal

* Added loading indicator back into modals

* Fixed wp preview modal

* InviteUserButtonComponent in

* InviteUserButtonComponent in

* InviteUserButtonComponent in MultiSelectEditFieldComponent and SelectEditFieldComponent

* Remove extraneous module

* Add Dragula import

* Remove empty spec

* Fix option-list component

* Remove group creation from invite user modal

* Write feature spec

* Fix TS errors

* Add Placeholder and Group apis to the frontend

* Better api typing

* Remove unnecessary interface

* Remove group creation call

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
Co-authored-by: Benjamin Bädorf <hello@benjaminbaedorf.eu>
2021-02-26 14:38:14 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther a08d9d8ccc Hover the element now 2019-06-20 15:54:00 +02:00
Oliver Günther c65be9aa1b Consolidate all existing modal styles into one
This does not include the legacy jquery-ui modal window (which is still
used in, e.g., backlogs).
2018-04-25 14:45:55 +02:00
Oliver Günther 1836389946 Fix more tests 2018-04-11 13:09:44 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Jens Ulferts 6775a51511 fix label hover spec 2017-10-05 10:42:47 +02:00
Oliver Günther ed1a0c87de [25999] Make timeline labels configurable
https://community.openproject.com/wp/25999
2017-08-22 13:04:11 +02:00