72 Commits

Author SHA1 Message Date
Aleix Suau 7e2e05c88f Feature/36390 code structure (#9319)
* core/shared/features in progress

* shared/components in progress

* Fix rebase errors

* core: added admin + apiv3

* shared: attachments + attirbute-help-text

* core: OpenprojectAugmentingModule

* shared: OpenprojectAutocompleterModule

* shared: Autocompleter

* feature: backlog

* feature: bim

* feature: boards

* shared: calendar

* core: userModule

* feature: dashboards

* shared: editor

* shared: fields

* shared: focus

* core: globalsearch

* shared: grid

* shared: grid fix

* core: hal

* shared: icon

* feature: invite user modal

* feature: job status

* shared: members autocomplete

* shared: modal

* feature: my page

* feature: overview

* shared: principal

* feature: projects

* feature: repoting

* core: routing

* shared: time entries

* shared: OpenprojectWorkPackageGraphsModule

* feature: workpackages

* core: active window

* shared: autofocus

* features: wp: back-button

* core: browser

* shared: collapseible section

* core: config

* shared: copy-to-clipboard

* shared: date-time

* shared: helpers: drag-and-drop

* shared: draggable autocompleter

* shared: dynamic bootstrapper

* shared: dynamic forms

* features: wp: edit actions bar

* shared: EditableToolbarTitleComponent

* core: BannersService

* shared: OpFormFieldComponent

* shared: hide section

* shared: highlight col

* core: I18 + Sanitizer

* shared: isClickedWithModifier

* core: LoadingIndicator

* core: Modal Heading

* core: Model auth

* shared: no results

* shared: notifications

* shared: datepicker

* shared: option-list

* core: path helper

* shared: persistent toggle

* shared: remote field

* shared: set click position

* shared: slide toggle

* shared: tabs

* shared: drag-scroll

* shared: keyCodes

* shared: OPSharedModule

* global styles: common

* core:

* import fixes

* shared: Enterprise banner

* features: wps: filters

* features: home screen

* import fixes

* core: html

* import fixes

* core: main-menu

* features: home screen

* shared: modals

* shared: op-context-menu

* core + shared: current project

* core: schema-cache

* shared: table-pagination

* features: wps: time-entries

* shared: user-link

* features: wps

* features: wps

* features: wps: all wp-* components

* core: states

* Rename: angular4-modules to app.module

* core: expression service

* Modules just with plugins

* Test fixes

* added missing content-tabs.component.sass

* Replaced with .op-ckeditor--wrapper

* Replaced by .op-ckeditor-source-element

* Replaced by the entire wysiwyg_editor.rb with dev version

* Replacements by ckeditor-augmented-textarea

* Fixes ./spec/support/components/work_packages/table_configuration_modal.rb:106

* Fixes ./modules/reporting/spec/features/update_entries_spec.rb:69

* work_packages renamed to work-packages

* TimeEntryChangeset moved to helpers

* 'filters' moved to wps/components

* 'admin' moved to features

* HAL moved to shared

* plugins moved to features

* plugins moved to features

* Test fixes

* Unit test fixes

* plugin generator into /features/plugins

* fix sass rule indentation

* Revert "plugins moved to features"

This reverts commit f65ccbfd4b.

* Import fixes

* Avoid commiting in linked plugins

Co-authored-by: ulferts <jens.ulferts@googlemail.com>
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-06-08 21:10:58 +02:00
Benjamin Bädorf 68949daa03 Feature/35521 ium capabilities (#9158)
* Started experimenting with capabilities

* Started adding akita store

* Use current user store to filter projects

* Work on integrating capabilities

* Added capability checks

* Fix project select

* Working on ium specs

* Change ng select option list format

* Fix proejct search label

* Fix some specs

* Fix issue with principal select

* Add spec for missing placeholder user capabilities

* Add new capability specs, fix existing ones

* Fix import

* Update shrinkwrap

* Add JSDoc deprecations

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-04-21 07:54:34 +02:00
ulferts aa4397cf28 Merge branch 'release/11.2' into dev 2021-04-12 09:51:14 +02:00
Markus Kahl c375646dc0 docker dev and test setup fixes (#9135)
* docker dev and test setup fixes

* added missing >

* include test instructions in quickstart

* fixed typo

Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>

* removed obsolete comment

Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>

* amendments

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>
2021-04-06 13:35:32 +01:00
Benjamin Bädorf 2667cd1581 Refactor/app header (#9110)
* [35527] Add quick add button menu in top menu

* Add quick menu item to top menu

* Refactor top_menu.sass to follow BEM

* Only render project-based path if persisted

* Render project types when in project context

* Add headline and determine if any types are visible

* Hide quick add menu for unauthorized users

* Fix login menu dropdown by adding class

* Add schematic for correctly generating components

* Add augment service for triggering invite user modal

* Fix allowed_to? check in menu

* Add spec

* Highlight types and show all

* Fix help menu overridden

* Extend spec

* Add parent_id to project in dropdown and expand advanced settings

* Reload the page if the modal returned any data

* Fix invalid url allowed check if there is no URL to check

* Basic BEM changes

* Remove old classes

* Update more classes

* Update togling logic

* Fixed menu opening and some styles

* Added op-menu

* Fix some help menu styles

* Add op-menu to help menug

* Add avatar border

* Fix auth_provider_spec

* Fix zen mode

* Fix static link help menu

* Fixed top menu specs

* Fix self registration specs

* Fix logout spec

* Fix bim revit navigation spec

* Fixed menu permissions spec

* Fix homescreen onboarding tour spec

* Fix top menu item spec

* Remove unused file

* Fix a lot of mobile styles

* Fix more mobile styles

* Fixed build

* Move quick add menu to right hand side

* Improve quick-add-button styles, fix main-menu-toggle close icon

* Remove add new project spec

* Fix spec

* Update project dropdown styles

* Fix click handler for chrome mobile, update some styles

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-04-06 11:09:06 +02:00
Oliver Günther d329db23ff Finish user invite modal (#9061)
* Fix some ium stylings

* Extend create service to also test with empty names

* Add PrincipalLike type to pass around non-created placeholder refs

* Add icon-context

* Move principal rendering to its own module

* Fix emit create new placeholder to principals

* Revert op-principal for now

* Add memberships form API to properly post

* Fix types for returned principals

* Move untilDestroyed in role

* Filter input if not string in role-search

* Pass correct inputs to success component

* Return principal after saving membership

* Fix small stuff around  the ium

* Fix the way HalResources are selected and passed

* Move principal module to be exported by common

* Disable quotemark in tslint until eslint is enabled

* Fix image path in success

* Adapt modal to run all steps in one within the modal helper component

* Several fixes to modals

* Fix ium success component styles,
* Registration modal y-overflow
* Add SMTP parameters to .env.example

* Add disabled option to op-option-list, disabled placeholder users for non-ee instances

* Add correct ee link to placeholder user option

* Fix build

* Removed unused sass files

* Fix principal search not found indicator, added placeholder add image

* Fix enterprise edition url, use dirty instead of touched check

* Use backend class names for frontend principal types

* Fix duplicate import and principal type usage

* Also disable banners if with_ee is present in test

* Extend specs for placeholders

* Fix disabled attribute

* Extend spec WIP

* Improved inline-validation styles, fixed more PrincipalType usages

* Add group happy path test, fix more PrincipalType usage

* Fix a translation

* Revert line deletion

* Rewrite same spec examples into shared examples

* Fix name of shared example

* Dont run assets:clean to remove angular assets

* Output whether assets are there at all

* Fix placeholder path

* Revert "Output whether assets are there at all"

This reverts commit 42219c2755.

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
2021-03-04 21:47:25 +01: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
Oliver Günther 4d02e3844a Fix local feature testing by opt-in ENV variable in ci/docker 2021-02-04 20:29:08 +01:00
Cyril Rohr b4086b2968 Standalone CI docker container (#8943) 2021-02-02 15:33:33 +01:00
Benjamin Bädorf 488cd3eff9 Fix/wysiwyg changes (#8884)
* Only set styling on code-block when editing

* CKEditor fixes

Adds op-uc-figure--content fix for tables,
Adds op-uc-container to preview,

* Left align figure content by default, making the changes in appearance less severe

* Revert wrapping table in op-uc-figure--content in edit mdoe

* Update CSS Classes spec

* Resize figcaption together with image

* Add underlines to headings on wiki pages

* Remove word breaking from tables

* Left align images in editor

* Avoid break inside all figures, including images

* linting

* restrict lines under headings to h1 only

* remove ckeditor changes

* adapt spec to altered l10n string

* revert expected css classes since ckeditor remains unchanged

Co-authored-by: ulferts <jens.ulferts@googlemail.com>
2020-12-16 13:38:41 +01:00
Markus Kahl be2c5ed347 Made docker dev setup more accessible, added Quickstart to docs. 2020-11-27 14:07:58 +00:00
Benjamin Bädorf 5f45ee07ab Move development docker-compose file to the main directory (#8798)
* Move development docker-compose file to the main directory

This requires us to move some other files around, like the pullpreview and example docker-compose file for production
setups. This commit also does some housekeeping, like removing some old files and deduping configuration.

* Updated to selenium grid

* Fix in-Docker Selenium tests

The Selenium tests now run inside a Docker Chrome Container. Backwards compatability with non-docker setups is not
guaranteed, though it should not be hard to implement with a couple of small fixes.

* Updated docker development documentation

* Improved test timings, changed the documentation

* Updated docker testing again

* Run npm in the frontend directory

* Really run npm in the frontend directory

* Also run npm in frontend when setting up travis cache

* Change directory for one command only

* Change default test driver name

* CI test change fixes

* Fixed syntax error

* Added dev check

* Trying to fix firefox resizing

* Trying to get tests running

* Stop resizing firefox

* Fixed apple icon spec

* fix host in url helpers for omniauth spec

* Fix omniauth specs

* Fix docs

* Small fixes to docker tests

* Added package.json back in

* Change env variables

Co-authored-by: Markus Kahl <machisuji@gmail.com>
2020-11-12 14:05:03 +00:00
Markus Kahl df7948d7af Updated docker tag to use correct release (11) 2020-11-02 09:35:45 +00:00
Cyril Rohr bdaef63ee2 [docker] Depend on seeder process 2020-05-08 15:15:16 +00:00
Markus Kahl f0e68a100b don't build docker image in docker-compose but just pull it 2020-03-20 15:04:45 +00:00
Cyril Rohr ed9319bad3 Fix installation and ops guides 2020-02-10 19:36:12 +00:00
Cyril Rohr a37166607d Add support for relative root url without the need to recompile 2020-02-04 11:20:34 +00:00
Cyril Rohr 66e7272173 Add proxy container back 2020-02-04 11:20:34 +00:00
Cyril Rohr 28771bdb25 Directly expose web container, add cron container 2020-02-04 11:20:34 +00:00
Cyril Rohr 1cc7fedac0 Provide docker-compose v3 with one process per container 2020-02-04 11:20:34 +00:00
Cyril Rohr 413de3080a Use database YAML file instead of env variable 2016-04-06 12:55:46 +00:00
Cyril Rohr c048c7b58d Alternate docker-compose reusing the official Dockerfile 2016-03-30 15:44:44 +00:00