Commit Graph

105 Commits

Author SHA1 Message Date
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Oliver Günther b82ddbc583 Remove storybook from actively building, keep last build 2023-11-08 14:05:33 +01:00
Christophe Bliard 6ccc9f8941 Remove log files generated by tests (#13426) 2023-08-10 08:55:35 +02:00
Oliver Günther bf6e9e037e Bump i18n-js to v4 2023-07-19 10:11:45 +02:00
Christophe Bliard b7d0b9ff81 Add possibility to override rubocop config locally 2023-07-04 09:23:11 +02:00
Aaron Contreras 42172a15df Replace foreman with overmind
Updates bin/dev and documentation to incentivize the use of
overmind over foreman.
2023-05-25 07:29:31 +02:00
Christophe Bliard 9113c46f92 Send crowdin source file for seeders translations
https://community.openproject.org/wp/48016
2023-05-10 09:35:09 +02:00
Benjamin Bädorf f1ed8642e9 Fix gitignore 2023-02-01 12:10:32 +01:00
Benjamin Bädorf 025911c2c4 Remove and gitignore local development files 2023-02-01 12:09:53 +01:00
Parimal Satyal 4258f118a6 Merge pull request #11577 from opf/additional-docs-for-storybook
Adding docs for more components and patterns on Storybook
2022-11-29 18:31:36 +01:00
Christophe Bliard 0600cf8c6f Remove file added by accident 2022-11-15 16:40:10 +01:00
Parimal Satyal 6bab602c35 Added docs for text field 2022-11-08 10:36:16 +01:00
Christophe Bliard 26c5ba1072 Ignore .env.*.local files
[skip ci]
2022-09-28 11:10:52 +02:00
Benjamin Bädorf a9e29279ea Feature/storybook (#10797)
Squash commit of storybook addition to aid design system documentation efforts.

The older commit titles were:

* Initial storybook commit

* Fix documentation.json links

* Don't track documentation.json in git

* Enable sass in storybook

* Initial version of a story that uses angular components

* Remove example stories, clean up button story

* More example stories

* Fix sb build

* Always use dev

* Try without auth header

* Update workflow name

* More logs

* Check if token set

* Use release/storybook branch for testing

* Send ref input to workflow

* Escape input to curl call

* Adding logging

* Different type of escaping

* Fix JOSN

* Use dev branch for opf/design-system storybook publishing

* Add plugin to message path to parent window

* Remove extraneous story

* Add a ton of docs

* Update stories

* Fix syntax error caused by multiple newlines inside of a JSX component

* Add text-field story

* Add basic html stories that don't work yet

* Try to get plain HTML examples working

* HTML Examples work, but slowly revert to components anyway

* Fix HTML examples

* Remove extraneous files

* Put storybook eslint rules back in

* Improve docs

* Show docs tab by default

* Add pullpreview for storybook

* Use the same pullpreview tag for both storybook and normal deployments

* Change name of second pullpreview workflow

* Pin node version to 16.17.0

* Initial update to docs

Added/updated:

Foundation pages:

- Colours (major update)
- Shadows (minor)
- Typography (new)

Blocks

- Checkbox (minor)
- Action bar (major)
- Buttons (new)
- Link (major)
- Modal Dialogue (new)
- Selector Field (new)

* Make sure all code is available during storybook pp build

* Change storybook pullpreview file name

* Add production target to docker-compose sb pp

* Fix acme check for sb pp

* Only run cd-storybook on dev branch

* Run without https on 8080

* Added intro and new page

- Introduction renamed to "Design System", page rewritten completely
- Added page "Devices and Accessibility"

* Remove domain from caddy

* Add port to listen command

* Remove double pullpreview workflows

* Added Divider component

* Change sorting of stories

* Update section titles and order for styles and blocks

* add extra action bar story

* Updated organising + new page

- Updated organisation into Styles, Components and Patterns.
- Added page "Using Storybook" (mostly a skeleton for now)

* Added note about colours not being implemented yet

* Minor

Co-authored-by: Parimal Satyal <88370597+psatyal@users.noreply.github.com>
2022-09-19 14:39:15 +00:00
Benjamin Bädorf ed9b667f54 Fix/40286 fixes 1 (#10872)
* Reduce spacing per level in op-project-autocompleter

This used to be 20px per level, but is now reduced to 16px, or 1rem, to
align with `spot-list`

* Fix op-project-autocompleter appendTo and disabled reason

The disabled reason text was shown even if the item was not disabled.
This is fixed here. Also, the op-project-autocompleter appended the
results modal to `body` by default, but that screws up scrolling
oftentimes, so here it is changed back to open in-context by default.

* Disable parent projects of search results

In project-include, parent projects of search results were still
clickable. This behaviour was not to spec, so we now disable projects
that were not directly search results.

* Disable projects that are not search results

In the global project select drop-modal,
all projects were clickable before this.
However, when a project was shown only because
child projects matched the search criteria, it
should be disabled. This commit fixes that.

* Always open project select on top in notification settings

* Fix styling issues in op-project-autocompleter

* Fix text color for list items in project drop modals

* Auto-open project dropdown in work package table

* Fix tooltip being cut off by overflow: auto in project list

* Fix failing spec

* Fix failing spec

* Fix linting errors

* Fix onchange for empty project select on work package move page

* Fix linting errors

* Fix the way focus works in inline create

* Adapt spec to match disabled item

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2022-07-05 21:42:28 +02:00
Eric Schubert 81d526c2c5 [#41945] fixed rubocop issues 2022-04-22 11:16:59 +02:00
Oliver Günther d44acf5fad Merge remote-tracking branch 'origin/release/12.0' into dev 2022-03-17 10:16:22 +01:00
Andrej Sandorf bfb64572b0 ignore .icloud files for docs editors with macos (#10306) 2022-03-15 11:51:15 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Christophe Bliard 5951cf3e5f Add lefhook git hooks manager to run rubocop on precommit
Install lefthook with `bundle install`
Install git hooks with `lefthook install`
See https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md for details
2022-02-08 15:54:06 +01:00
Benjamin Bädorf 815b58faf1 Add correct timezone for team planner 2021-11-30 10:54:53 +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
Benjamin Bädorf 8ccbc46277 Add basic nix development shell (#9162)
* Add basic nix development shell

* Use google-chrome instead of chromium

* Move nix stuff to subdirectory

* Update gemset, improve readme, fix shell

* Update nix README, remove .envrc
2021-05-10 10:44:08 +00:00
Benjamin Bädorf beb4e6ba50 Refactor/user avatar to principal (#9069)
* 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

* Update user-avatar usages to principal

* Fix some op-principal usages

* Fix principal typing

* Remove ls of non-existent directory

* Rename more user-avatar instances

* Avatars now render correctly

* Fix an op-principal instance, default to avatar class for avatars

* Always add principal id to default principal tag

* Small fixes to op-principal

* Fix multiline user display

* Dirty fix for capybara click events

* Update avatar sizing

* Fixed some specs

* Fix unit specs

* Added op-link styles

* Fix add placeholder image link

* Remove byebug debugger statements

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-03-16 21:53:47 +01:00
Benjamin Bädorf bb0cd1b068 Add ctags file to gitignore 2021-03-09 11:29:28 +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
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
Benjamin Bädorf 0ed99d2b5f Add .env.example (#8845)
This was previously gitignored
2020-11-13 14:52:50 +01: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
Benjamin Bädorf a8dfb55345 Updated local development docker setup
There are now separate containers for testing purposes, and the frontend container is a node-only image. Containers run
with a user that has the current user id and gid, making sure that any files that are installed by bundler or npm are
user-owned.

Selenium tests can be ran, but not all of them work yet.
2020-10-05 15:04:33 +02:00
Cyril Rohr 4ee2537ee6 Update .gitignore 2020-09-18 13:42:50 +00:00
Oliver Günther 10e21154f7 Move asset pipeline javascripts to frontend (#8482)
* ove reporting and reporting_engine js to frontend page

* Replace webhook assets javascript

* Add path augment service to dynamically load scripts

* Remove JS-Files that are not used/not needed any more

* Include AugmentingModule correctly

* Remove special handling for checkbox selection which is outdated and two jquery libs that are not used any more

* Load scripts dynamically that are not needed globally

* Move plugin JS to frontend

* Move toggable fieldsets to global listeners

* Move top-menu to global listeners and convert to TS

* Move action_menu to frontend and port to TS

* Move settings listener to frontend

* Remove global js assets that were not used anyway

* Move date range to timelog dynamic script where it's still used until removed

* Move colors to global-listeners and port to TS

* Replace tooltip with simple form instructions on the one place used

Tooltips were only used at the one place in our application, when changing a users password.
We can simply remove it there and use a modern solution the next time we need a tooltip

* Move danger zone validation to frontend and port to TS

* Move colorcontrast to backlogs vendor where it's used now

* Remove contents of application.js.erb

* Move project and user scripts to dynamically loaded

* Move onboarding tour to dynamically loaded

* Use correct syntax for jQuery so that $ is  known keyword within this function

* Fix onboarding tour

* Fix onboarding tour for scrum tour

* Fix specs after moving JS

* Remove application.js.erb

* Move locales and ckeditor to the frontend to dynamically load

* Remove bundles caches

These are no longer being used since angular cli

* Ensure locales are exported before angular

Co-authored-by: Henriette Darge <h.darge@openproject.com>
2020-07-09 11:02:43 +02:00
Ben Villiere 8993250ded Let git ignore .DS_Store files 2020-04-14 12:20:34 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Felix Höffken 9eed759cd0 [29029] DELETE option for TimeEntries 2018-11-20 11:40:28 +01:00
Oliver Günther 2a924dcc74 Add more useful setup_dev script
[ci skip]
2018-06-27 09:14:26 +02:00
Oliver Günther 7e1e20f041 Output correct links in non-dev mode 2018-06-01 11:53:50 +02:00
Oliver Günther 0839823af8 Merge remote-tracking branch 'origin/dev' into feature/commonmark-and-ckeditor 2018-02-21 09:21:03 +01:00
Wieland Lindenthal 90ba46d406 Gem name changed from ‚text_extractor‘ to ‚plaintext‘ 2018-02-15 17:15:00 +01:00
Wieland Lindenthal 3042486111 ignore structure.sql in version control 2018-02-12 16:22:01 +01:00
Wieland Lindenthal 0a21541dd7 Allow filter WPs based on the content or file name of their attachments 2018-02-12 16:20:51 +01:00
Oliver Günther 88a5e787ce CKEditor5 config and bundle for OP 2018-02-12 15:38:10 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther f0426133a4 Force bundler to be installed before npm
We actually required this a while ago since webpack uses
information from the Gemfile. I wonder why that worked at all.
2017-03-08 10:56:15 +01:00
Oliver Günther f65e05f1ea Add DLL vendor file 2017-03-08 10:56:15 +01:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Markus Kahl d9679d22e8 rider 2016-11-21 13:57:30 +00:00
Oliver Günther 0553efa76d Generate one file per locale key and require that explicitly 2016-07-13 08:47:38 +02:00
Roman Roelofsen 4fbf2ea520 Update .gitignore (#4618)
Added frontend/.idea to .gitignore
2016-07-05 14:43:09 +02:00
Oliver Günther f432671376 Merge branch 'release/5.0' into dev 2016-05-18 15:53:53 +02:00