51 Commits

Author SHA1 Message Date
as-op 9e72155b66 fix markdown quirks; harmonize; lint fixes 2024-04-29 13:52:04 +02:00
Behrokh Satarnejad c051eb5174 [44955] Re-think and harmonize Enterprise Edition vs Enterprise edition (#11694)
* change Edition to edition in strings

* use add-on instead of feature

* replace premium with enterprise

* Change Edition to edition in readme files

* change feature to add-on
2022-11-24 11:36:08 +01:00
luz paz 1830420679 Fix various typos
Found via `codespell -q 3 -S ./config/locales,./modules/xls_export/config/locales,./modules/job_status/config/locales,./modules/two_factor_authentication/config/locales,./modules/backlogs/config/locales/crowdin -L ba,nd,parms,sur,varius`
2022-02-16 20:10:49 +01:00
Oliver Günther ab940052b7 Rename shrinkwrap to package-lock and fix version (#9471) 2021-07-19 08:29:44 +02:00
Oliver Günther e363d2f2fd Remove accessible-by-keyboard a11y component (#9331)
* Replace accessible-by-keyboard

* Replace messed up inplace styles with work-package-comment bem block

The styles are not used anymore except for work package comments anyway

* Replace split view icons with buttons

* Make back-button its own bem block

* Replace button in hide-section component

* Replace activity buttons

* Replace notification icon

* Replace collapsible-section

* Replace config-menu

* Make attribute help text trigger a button

* Ensure all buttons are role=button

* Replace inplace save controls

* Replace relations buttons

* Replace relation toggle button

* Replace relation row buttons

* Replace breadcrumb parent

* Replace activities toggler

* Remove accessible-by-keyboard component

* Fix button role to button type

* Fix indent

* Bemmify media query

* Fix specs
2021-05-31 14:18:14 +00:00
Philipp Tessenow a46de71009 [#36204] Add new GitHub plugin tab enabling users to copy git actions (#9027)
* Let GitHub integration show changes in a separate tab

* added new github integration icons to icon font
* add tab content:  working tab-header and copy-menu

* modernise github_integrations ruby code

* refactored some code to be more modern ruby (if wrote most of it 7
  years ago and couldn't look at some parts without squinting too much)
* make some intended-to-be-private module methods actually private
* fixed all rubocop errors in the /modules/github_integration
* re-organized tests a little
* gave our rubocop.yml some RSpec-related defaults -- happy to discuss
  these, but I think we can live with these as a good starting point

👆 all without actually (intentionally) changing the behaviour

* removed dead angular template code

* codeclimate found more things than rubocop :)

* removed create-pr-button since we decided against implementing that feature

* added missing translations

* properly cache the github related part of the wp api

* lower case pull requests in translations

* fix specs
2021-04-07 09:34:56 +02:00
Oliver Günther d57ad09474 Fix singleton services being initialized per module
The `APP_INITIALIZER` only runs for global services on startup, but some
modules are now loaded dynamically.

This will result in services that are not `providedIn: 'root'` being
injected for each lazy loaded module that requires them.
2020-03-05 13:01:42 +01:00
Henriette Dinger f47a75d153 [31023] Preparation for project edit fields: Generalize edit and display fields currently work package specific (#7726)
* Check edit fields for Work package dependencies

* Make EditForm, NotificationService, EditContext indepenedent of Work Packages

* Make EventsService independent of WorkPackages

* Start renaming WpNotificationService (WiP)

* Fix more references

* Fix typescript errors

* Add basic halEditingService

* Rename to global halResourceEditingService (WiP)

* Move typing from class to methods (WiP)

* Fix typescript errors

* Remove space in type

* Add test project widget && generalize the editFieldGroup

* Rename editing portal service

[ci skip]

* Rename WpEditFieldComponent

* Rename WpDisplayFields

* Rename display-XX-field to XX-display-field

[ci skip]

* Add WP specific ID field to distinguish between resources

* Re-add state in work package resource

* Generalize display field renderer

* Rename spent-time to wp-spent-time and fix highlight specifics

[ci skip]

* Actually load the project schema and make field editable

* Make edit-field-group.component an edit-form.component and subclass EditForm

* Remove edit context in favor of specialized EditForm

* Add special cases for work package editing

* Fix edit actions bar

* Fix codeclimate issues

* Use WorkPackageNotificationService if necessary

* Override NotificationService for WPs to allow WP specififc notifications (WiP)

* Correctly provide wpNotification service

Because the ui-router doesn't seem to correctly use the parent element's
injector, we need to provide the wpNotification service not in the
wp-base, but rather the wp-list component as well as in the isolated
query space.

* Allow to filter halEvents for specific resourceTypes (e.g. WorkPackage)

* Remove superfluous cell class constant

* Start renaming selectors for wp-edit-field into generics

* Remove wp-table--cell-span in favor of display field selector

* Consolidate other display and edit field styles

* Provide specialized service for transitions in active edit forms

* Remove superfluous overflowSelector

* Accept that date field contains some work package specifics

* Ignore unreadable files

* Provide the changeset for work packages as a hook

Since hal resource editing service is provided per query space, we
cannot register them once (would only work globally)

* Fix dangerfile

* Remove another todo in halResourceNotification service

* Fix npm TestBed for changed dependencies

* Show inplace edit field in project details widget

* Fix highlighting in single view

* Provide HalResourceEditingService outside of project context

* Used typedState for single-view

* Also provide wpNotification service in split view

* Correct check for resource type in eventsService

* Fix getSchemaName in display field renderer

* Fix passing ids into `halEditing.stopEditing`

* Do not globally inject the halResourceEditingService

There's a bug(?) in ui-router that gives you the global service before
the parent injected service for a ui-view

* Fix wpCreate service on copying and parallel creation

* Remove test project widget

* Revert changes for project details widget
2019-10-01 16:21:17 +02:00
Oliver Günther 8e32895ce3 Remove legacy frontend 2019-07-01 20:08:06 +02:00
Oliver Günther 5167f4fca8 Replace costs-subforms with augment service 2019-07-01 13:29:27 +02:00
Oliver Günther 4bb14e2a62 Upgrade to Rails 5.2 2018-12-03 10:29:18 +01:00
Oliver Günther 5a8b786f0f Fix outdated documentation in the frontend 2018-06-22 09:59:29 +02:00
Oliver Günther 4c0f54443c Remove usages of global angular.* 2018-06-05 12:08:41 +02:00
Oliver Günther 92e387db3d Remove many more angularjs stuff 2018-06-05 12:08:40 +02:00
ulferts 8d5ec238e3 Feature/cleanup testing (#6264)
* remove geckodriver installation from travis setup

* update test documentation to reflect shift to Chrome

* remove duplicate test documentation


[ci skip]
2018-04-16 08:18:56 +02:00
Oliver Günther 06472450c6 Implement CSP with secure_headers gem 2018-02-24 21:28:23 +01:00
Roman Roelofsen 4eea96fa9e Angular 4 support and upgraded timeline header directive (#5984)
* Added Angular4 dependency and initial setup

* Angular 4 transition: timeline header directive

* removed superfluous require declaration

* moved Angular4 dependencies to vendor.js

* Angular4: upgraded timeline relations directive

* Fixes karma tests. However, logging seems to be broken now.

* Angular4: upgraded directive wpTimelineStaticElements

* dev rebase

* WIP Angular 4+ transition

* converted WorkPackageTableTimelineGrid to Angular4+

* start migrating WorkPackageTimelineTableController to Angular4+

* completed migration of component tree WorkPackageTimelineTableController

* Fix Pagination directive

* set any to scope for TS warnings

* Convert wp-table-pagination

* merged changes from Oliver

* begin migrating WorkPackagesTableController

* begin migrating WorkPackagesTableController

* Apply karma fix to PR

* Fix pagination options

* WIP Angular migration wp-table.directive

* Angular4 migration - table sums

* Angular4 migration: fixed error message when no sums are displayed

* Angular4 migration: removed superfluous Angular1 registration

* WIP Angular4 migration

* WIP Angular4 migration
- removed unused directives
- start migartion sortHeader directive

* WIP Angular4 migration - sortHeader directive

* WIP Angular4 migration: sort header

* Angular4 migration: implemented dropDown directive for Angular4

* merged origin/dev

* updated package-lock.json

* use shrinkwrap instead of package-lock

* Angular4 migration: fixed accessible_by_keyboard directive

* WIP #26714

* reformat code

* fixes #26714
pass projectIdentifier to wpTable

* cleanup

* fixes #26716

* WIP Angular4 migration: added support for test execution

* wpTablePagination: convertered reasonable tests to Angular4

* merged dev branch, updated dependencies

* fixed #26727

* Replace openproject initialization in head

* fixed #26728

* Replace time entries and messages ng1 controllers

* Remove unused timeline reference

* Fix OP Helpers for member page

* Fix initial cached paged options

* Fixed broken inlineCreate

* Only nil-check for table, projectIdentifier CAN be null
2018-01-18 17:08:53 +01:00
Oliver Günther 177f4e8963 Remove APIV2 and project associations / reportings
[ci skip]
2018-01-17 17:23:56 +01:00
Oliver Günther a0150fffa0 Remove timelines 2018-01-17 17:23:56 +01:00
Oliver Günther a9b1689e9b Add forked type checking and happypack 2017-09-12 08:08:09 +02:00
Jens Ulferts 6d43f1718e remove experimental api 2017-04-03 16:17:35 +02:00
Oliver Günther 8558cac677 Remove clean-shrinkwrap
No longer requrired with npm 3+
2016-10-26 10:26:56 +02:00
Oliver Günther cd20eb05f9 Remove HALAPIResource 2016-07-06 15:43:00 +02:00
Oliver Günther 911ec386a7 Start removing prototype implementations 2016-06-30 15:29:02 +02:00
Oliver Günther e25d9764a1 Add redirect for /styleguide
Adds a development-only route for `/styleguide` as an alias to
`/assets/styleguide.html`.
2016-04-26 07:56:36 +02:00
Oliver Günther e49c163d00 Remove gulp with simpler npm tasks
This removes `gulp` and provides a simpler `karma` and `webpack`,
`webpack-watch` npm scripts.

For actual development, users will need the Rails stack anyway, so it
won't make sense to keep a separate set of dependencies up to date.

* Instead of `gulp webpack`, use `npm run webpack`.
* Instead of `gulp watch`, use `npm run webpack-watch`, which is *drastically* faster than gulp watch-polling.
* Instead of `gulp tests:karma` use `npm run karma`, or just `npm test`.

This also removes all traces of express and restores the Rails
styleguide. It is not whitelisted for precompilation and is only
available in the context of the development mode.

To access the styleguide, use `/assets/styleguide.html`.
2016-04-26 07:56:31 +02:00
Oliver Günther d9be51c30f Remove protractor E2E tests (#4346)
In agreement with @furinvader, we have decided to remove protractor
testing from OpenProject.

Frontend tests are implemented in karma and test single units of work as
before.
Since the freshness of APIv3 JSON mocks are getting ouf hand and we have
covered almost all E2E protractor tests with Rails, we're going to
resort to Rails to write concise *actual* integration test with correct data.
2016-04-22 08:23:00 +02:00
Alex Dik 1d941aa090 Revert "Add angular-hypermedia module"
This reverts commit d4444d71f7.
2016-02-17 06:54:30 +01:00
Alex Dik d4444d71f7 Add angular-hypermedia module 2016-02-01 13:04:24 +01:00
Florian Kraft b971264a03 remove a sentence implying no ticket endpoint
This was false information, as the ticket endpoint has been added a while ago.
2015-08-14 13:44:18 +02:00
Florian Kraft d47591675f typo hunting an phrasing
[ci skip]

Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-14 13:14:21 +02:00
Florian Kraft 44d09c5cc4 add some notes on the legacy frontend
[ci skip]

Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-14 11:33:37 +02:00
Florian Kraft dd8ea223a4 add additional hints about working with the legacy code base
[ci skip]

Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-14 11:33:37 +02:00
Florian Kraft 8f02cb87eb typo 2015-08-13 18:57:52 +02:00
Florian Kraft 27c4e14cfd add hints for template handling
[ci skip]

Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-12 13:45:35 +02:00
Florian Kraft a655b4e7bd add notes on coverage and dummy services in testing
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-12 13:25:42 +02:00
Florian Kraft d34c88dd90 add examples for using index.js
[ci skip]

Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-11 17:13:24 +02:00
Florian Kraft 6162f85d3e add notes on how to use partials in the styleguide
[ci skip]

Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-11 16:21:59 +02:00
Florian Kraft b3acd3014d add notes on the styling of OP
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-11 16:08:10 +02:00
Florian Kraft 6389320e31 add a note on duplication involving the hal-api-resource
[ci skip]

Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-11 14:42:13 +02:00
Florian Kraft f31391ca19 describe the plugins and their tests and include notes on commands
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-11 14:29:49 +02:00
Florian Kraft 5acccc0ee0 add a note on mocking stuff
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-11 13:37:51 +02:00
Florian Kraft d42610ec60 add API topics
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-11 11:54:08 +02:00
Florian Kraft a1a894c481 make a proper list
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-10 17:43:05 +02:00
Florian Kraft b2617ec688 initial version for testing
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-10 17:41:23 +02:00
Florian Kraft 285f5e8b08 add a document with details on the build process
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-10 16:54:06 +02:00
Florian Kraft 6d36b4f98a minor overview of the folder structure for frontend 2015-08-10 15:56:43 +02:00
Florian Kraft 8b860a43a3 split up the individual parts of the documentation for the frontend
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-08-10 11:10:44 +02:00
Alex Coles 6c97c227af Update shrinkwrap workflow in DEVELOP
[ci skip]

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-04-02 15:02:43 +02:00
Alex Coles 3b4135a2f0 Mention gulp dev task in DEVELOP
[ci skip]

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-03-13 17:08:25 -03:00