67 Commits

Author SHA1 Message Date
Behrokh Satarnejad 701103240a [68323] Custom logo for mobile (#21059)
* add a migration to upload custom mobile logo

* add a new route for uploading nd removing mobile logo

* show custom logo in header

* Add a feature spec

* Update custom_style.rb

* Show mobile icon for desktop when there is no desktop logo

* show icon logo in waffle menu modal

* Show logo icon when a custom mobile logo exists or when no custom desktop logo is uploaded
2025-11-21 11:25:57 +01:00
as-op 0f17930070 adjust to the expected status code, add status code expectation to font file deletion 2025-10-23 16:32:30 +02:00
as-op b3f22be90a [#66964] Custom PDF fonts: Already uploaded font is checked again and reported as invalid
https://community.openproject.org/work_packages/66964
2025-08-27 16:52:48 +02:00
as-op 13a4527054 limit upload file size and check for valid .ttf font 2025-08-26 12:31:23 +02:00
as-op 2c08f870ac add with_ee to spec 2025-08-14 16:39:08 +02:00
as-op 3fe0d04c04 Merge branch 'dev' into feature/66384-custom-font-for-pdf-exports
# Conflicts:
#	app/controllers/custom_styles_controller.rb
#	app/helpers/custom_styles_helper.rb
#	app/models/custom_style.rb
#	config/locales/en.yml
#	config/routes.rb
2025-08-14 16:23:06 +02:00
as-op b8b3c86a7a add specs for font upload and deletion 2025-08-12 12:58:43 +02:00
as-op 109a886c35 [#66384] Custom font for PDF Exports
admin tab for uploading font cuts

https://community.openproject.org/work_packages/66384
2025-08-11 17:12:17 +02:00
as-op 12f70dd9d0 add specs for footer image upload 2025-08-06 16:03:47 +02:00
Oliver Günther d6b24d7e5d Remove common shared_upsell and enterprise upsell page examples
No longer in use except one-drive
2025-06-12 13:59:00 +02:00
Oliver Günther a9abaed22d Extend banner for team planners 2025-06-12 13:59:00 +02:00
Oliver Günther 5ad8a063ae Replace UpsellPageCompomponent with banners rendered as part of the normal flow 2025-06-12 13:38:55 +02:00
Oliver Günther 4dc60db27c [64157] Handle multiple tokens
https://community.openproject.org/wp/64157

Instead of having one single token, we can now have multiple tokens.
They can have different plans, different trial/non-trial status, and
different activation dates.

This allows:
- to have a paid token for a plan, and a trial token for two weeks to
  try out a higher plan.
- to have an existing token for a plan which will soon expire, and add
  the token for the next period or a higher plan in parallel.

All tokens are listed on the same page in the administration.
2025-06-11 15:05:07 +02:00
OpenProject Actions CI 6e4dc59212 Merge branch 'release/16.0' into dev 2025-05-13 03:46:17 +00:00
Markus Kahl a5a795d88c naming shares resell examples, comment spec for clarity 2025-05-12 12:04:06 +01:00
Markus Kahl 01c40b10dc fix upsell page 2025-05-12 10:59:19 +01:00
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
Oliver Günther e27ac494d3 Consistent naming of upsell, not upsale 2025-04-24 15:52:34 +02:00
Oliver Günther bf4233766d add a test for a tab param 2024-09-20 08:48:19 +02:00
Oliver Günther 83a1730712 Provide direction of redirect in spec 2024-09-20 08:38:14 +02:00
Behrokh Satarnejad 897e27e2d6 fix rubocup errors 2024-09-17 15:50:02 +02:00
Behrokh Satarnejad 74a56e1c9b test redirect to interface tab, when there is an ee token 2024-09-13 11:10:53 +02:00
Behrokh Satarnejad c7702d3a15 fix failing tests in custom styles controller spec 2024-09-09 06:52:34 +02:00
Oliver Günther 9586b06db3 Merge pull request #16331 from opf/chore/verify_partial_doubles
Set verify_partial_doubles=true
2024-08-06 10:54:18 +02:00
Oliver Günther 1df0c00c2a Adapt affected specs to opt-out of double verification 2024-08-05 19:31:30 +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
Henriette Darge c71b37e8aa Remove occurences of primary-color as it was discarded 2024-03-08 14:10:31 +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
as-op 5a50df61cf fix test 2023-09-27 15:55:39 +02:00
as-op c2d009fc80 [#50219] Custom export cover background overlay color won't return to the default one after deleting
https://community.openproject.org/work_packages/50219
2023-09-27 14:32:17 +02:00
as-op f09eaae356 [#49684] Text color for cover page overlay of pdf export
https://community.openproject.org/work_packages/49684
2023-09-13 11:12:29 +02:00
as-op 76e1c96461 [#49684] Upload custom picture for cover page of pdf export
https://community.openproject.org/work_packages/49684
2023-09-05 16:44:33 +02:00
ulferts 53d78f905e lint spec and remove unnecessary view rendering 2023-07-03 10:53:52 +02:00
as-op 02f74e6490 feat(custom_style): add export_logo for PDF export 2023-06-13 17:13:43 +02:00
Christophe Bliard 4c2a9d0aa8 Enable RSpec zero monkey patching mode
The plan for RSpec 4.0 is to disable monkey patching.

See https://github.com/rspec/rspec-core/blob/main/features/configuration/zero_monkey_patching_mode.feature for details.
2023-05-31 19:22:29 +02:00
Dombi Attila 5fa819a54b Remove enterprise_token_helper.rb and the with_enterprise_token method 2023-05-08 08:08:30 +02:00
Oliver Günther f94a3ce052 Merge remote-tracking branch 'origin/release/12.4' into dev 2023-02-14 13:03:52 +01:00
Oliver Günther 4b902510f0 Fix removal of custom_style
remove_(image)! doesn't work as expected
2023-02-13 14:35:21 +01:00
Christophe Bliard 85b3258a29 Autocorrect with some rubocop cops
RSpec/Rails/InferredSpecType and Style/RedundantConstantBase

rubocop --autocorrect-all --only RSpec/Rails/InferredSpecType,Style/RedundantConstantBase spec modules/*/spec
2023-01-13 14:28:59 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01: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 f08bea3467 Remove FactoryBot.* prefix where applicable 2022-01-25 08:19:06 +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
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 e398a275aa Add test case that no CustomStlye exists when trying to update 2020-02-20 13:07:49 +01:00