Filter the jquery-migrate banner through Vitest `onConsoleLog` in a new
`vitest-base.config.ts` wired in via the builder `runnerConfig`, instead
of reassigning the global `console.log`. Console warnings and errors
that a spec asserts on are scoped per spec with `vi.spyOn`.
Drop the redundant manual `ngAfterViewInit` calls and select items
programmatically in the autocompleter spec, and wait on activation with
`vi.waitFor` in the edit-form spec instead of fixed microtask ticks.
Drop unused jquery.caret and jQuery mark.js imports and remove the
vendored jQuery UI JavaScript and stylesheet assets. The remaining
compatibility path only keeps globals for legacy plugins still loaded
at runtime.
Remove jQuery from global window scope in main application to enable
incremental migration away from jQuery.
- Removed global jQuery init from `init-vendors.ts`
- Created local init-jquery modules for reporting that still require
jQuery globals for legacy plugins
- Updated TypeScript shims to declare `window.jQuery` as optional
https://community.openproject.org/wp/69633
Adds `@testing-library/jest-dom/vitest` import to make semantic matchers
available globally in all specs. Creates `test-browser-polyfills.ts` to
shim `process.env` for Playwright browser runners where `picocolors` (a
jest-dom transitive dependency) reads it at import time. Registers both
files in `angular.json` setupFiles and `tsconfig.spec.json`.
https://community.openproject.org/work_packages/75300
Removes the dedicated `backlogs.scss` entrypoint, its `angular.json`
bundle entry, and the import in `global_styles/openproject`. Moves
the remaining page-level rules to live beside the other module
style sheets at `global_styles/content/modules/_backlogs.sass`.
With card styles now colocated alongside their components, no
Backlogs-specific CSS is left to warrant a separate bundle.
https://community.openproject.org/work_packages/73890
* Bump ng2-charts to ^8.0.0
* Bump chart.js to 4.5.0
* Update imports, providers using default config
* Remove chart.js dependencies from CJS allowlist
These dependencies are now provided as ESM.
* Revert A11y-related Chart colour changes
These improvements were intended to improve the contrast (and thus
accessibility) of bar charts rendered by the Work Packages Overview
widget. However, the solution as implemented, when combined with the
upgrade to ng-charts2 8.0.0, breaks styling of non-bar charts rendered
by the Work Packages Graph widget.
This partially reverts commit 89135ae36c.
Force updates Angular dependencies:
ng update @angular/core@20 @angular/cli@20 --force
And performs automated upgrade:
- Moves imports of `DOCUMENT` from `@angular/common` to `@angular/core`.
- Replaces usages of the deprecated InjectFlags enum.
* Update angular to v15
Also bumps fullcalendar to v6-beta to be compatible
Bump fullcalendar to v6 final
* Fix accessing readOnly property that no longer exists
* Replace content projection
* Fix confusing duplicate variables scss, sass file
One can be imported by helpers, the other not
* Upgrade angular to 12.0
* Fix TS errors after upgrade
* Upgrade pako and fix usage of deflate
Pako 2 no longer outputs binary encoded strings, so we need to use a separate helper lib
* Better spec error reporting and fix beforeunload spec
* Bump node compiler size
* 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
* [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
* Restrict top_menu sass
* Remove unused imports
* Reduce required permissions to show quick add
* Spec review feedback
* Rename project fieldset ID
* tslint to eslint migration
* Autofix issues
* Fix codeclimate path to eslintrc
* Extend linter config for use with ng lint
* Change prefix to op in angular lints