Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] dev from opf:dev #58

Merged
merged 221 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
29a86aa
[#50143] Improve Troubleshooting section for admins of the Nextcloud …
wielinde Sep 21, 2023
2788bb2
Add network troubleshooting docs for project folders
wielinde Sep 21, 2023
e5ed12a
Wording changes
MayaBerd Sep 22, 2023
947b724
make 2022 migration work independently of changes in the future
machisuji Sep 27, 2023
9d621aa
initial implementation of add_work_package_attachments permission
virgo47 Sep 28, 2023
7831fed
make image run unprivileged
machisuji Sep 29, 2023
cfe1f8f
Merge branch 'opf:dev' into feature/add_work_package_attachments
virgo47 Oct 2, 2023
06623a2
remove legacy option removed in rails 7.1
ulferts Sep 20, 2023
7faae88
reset frozen variable
ulferts Sep 20, 2023
c22fe5b
Merge branch 'opf:dev' into feature/add_work_package_attachments
virgo47 Oct 3, 2023
c0a7f77
Fix bootstrap on top of custom element
oliverguenther Oct 2, 2023
06c01d9
Ignore trailing slashes from folder paths
wielinde Oct 3, 2023
0429ed1
remove entity members from global roles query
ulferts Oct 4, 2023
1a2c46d
Make files_info_query append / to a folder path.
ba1ash Oct 4, 2023
5d42362
Add a comment to drop the fix after /filesinfo update.
ba1ash Oct 5, 2023
c6bcd4e
Merge branch 'opf:dev' into feature/add_work_package_attachments
virgo47 Oct 5, 2023
b19b6fa
Initial mess
mereghost Oct 4, 2023
79fdf7f
Still broken uploads, and maybe a lot more! fun times!
mereghost Oct 5, 2023
48f2c8f
Check locations in files_info_query_spec.rb.
ba1ash Oct 5, 2023
9d635b1
Fix: `@component_wrapper_used` should be set on component and not target
aaron-contreras Oct 4, 2023
9bbfbe0
Rename and expose instance variable via method
aaron-contreras Oct 5, 2023
e6b1d7d
Explain `#wrapped?` check on `component` instead of `self`
aaron-contreras Oct 5, 2023
2fc035e
Specify type of error on every raise in `OpTurbo::Streamable`
aaron-contreras Oct 5, 2023
2aceaae
update locales from crowdin [ci skip]
openprojectci Oct 6, 2023
9c8963b
Bump aws-sdk-core from 3.185.0 to 3.185.1
dependabot[bot] Oct 6, 2023
eaf7f10
Bump erblint-github from 0.4.1 to 0.5.0
dependabot[bot] Oct 6, 2023
d3da174
wp/attachment_upload_spec: added add_work_package_attachments tests
virgo47 Oct 5, 2023
eeced58
Merge branch 'opf:dev' into feature/add_work_package_attachments
virgo47 Oct 6, 2023
508f711
Merge pull request #13837 from opf/bug/50295-copying-projects-with-ne…
ba1ash Oct 6, 2023
8022ac7
[chore] added one drive upload strategy for frontend
Kharonus Oct 6, 2023
cfeb7b9
[chore] fixed one drive response object
Kharonus Oct 6, 2023
09c1ec9
Calendar FAQs and Univention docs update
MayaBerd Oct 6, 2023
880cb24
Merge pull request #13867 from opf/docs-changes
MayaBerd Oct 6, 2023
0dd0380
acts_as_attachable#attachments_addable? now supports permission arrays
virgo47 Oct 6, 2023
d99ae45
update locales from crowdin [ci skip]
openprojectci Oct 8, 2023
bcf3e0f
Update wait_for_db.rb
oliverguenther Oct 9, 2023
5472f4a
Merge pull request #13826 from opf/maintenance/13.0-helm-charts
oliverguenther Oct 9, 2023
cba4f24
Use Primer's value for bold text (600). Unfortunately we cannot direc…
HDinger Oct 6, 2023
c53ada6
Update the primer_view_components repo and make small adjustements to…
HDinger Oct 6, 2023
d0b5d56
Bump sass from 1.67.0 to 1.69.0 in /frontend
dependabot[bot] Oct 6, 2023
49aeafd
Bump core-js from 3.32.2 to 3.33.0 in /frontend
dependabot[bot] Oct 6, 2023
f689ad3
Add fullcalendar to dependabot
oliverguenther Oct 9, 2023
68ff6cf
Bump parallel_tests from 4.2.2 to 4.3.0
dependabot[bot] Oct 9, 2023
326e68f
Bump @fullcalendar/resource from 6.1.8 to 6.1.9 in /frontend
dependabot[bot] Oct 9, 2023
d4296ce
Bump @types/mousetrap from 1.6.11 to 1.6.12 in /frontend
dependabot[bot] Oct 9, 2023
c1821fe
Bump @types/jquery from 3.5.20 to 3.5.22 in /frontend
dependabot[bot] Oct 9, 2023
4e1baa7
Merge pull request #13868 from opf/dependabot/bundler/dev/parallel_te…
ulferts Oct 9, 2023
99bce33
Merge pull request #13856 from opf/dependabot/bundler/dev/aws-sdk-cor…
ulferts Oct 9, 2023
cdc6d88
Merge pull request #13869 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 9, 2023
23f0eed
Merge remote-tracking branch 'origin/release/13.0' into dev
ulferts Oct 9, 2023
bea5ac5
Add description to selectable permissions in the share WP modal
HDinger Oct 9, 2023
3f2c823
Merge pull request #13871 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 9, 2023
a30eb27
Merge pull request #13870 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 9, 2023
86e3f5d
Add an allowed_to scope to WorkPackage and build helpers to access pe…
Sep 27, 2023
c5b4ef6
Fix code after pulling PR apart
Sep 28, 2023
528aa00
Add type condition as well to the join
Oct 9, 2023
bd9f79a
Remove unneeded join for non member setup on Work Packages
Oct 9, 2023
1ea4c5f
QoL improvements for old UserAllowedService
Sep 27, 2023
19172c5
Create a new UserPermissibleService that will replace old UserAllowed…
Sep 27, 2023
3aab4ea
Cleanup specs for UserAllowedService
Sep 27, 2023
d528841
Extract all permission related methods into User::PermissionChecks co…
Sep 27, 2023
6c73edf
Reset user permissible service when user is reloaded
Sep 28, 2023
2c7f021
Remove unneeded user name reset here as well
Oct 9, 2023
81a7d7c
Remove duplicated reset of permissible service
Oct 9, 2023
109cc84
Better handling of the uri memoization
mereghost Oct 9, 2023
fcab5e2
Fix typos and add a lot more tests
Oct 9, 2023
583c5ca
Fix another little typo
Oct 9, 2023
713a9c9
Also check that the project is not archived
Oct 9, 2023
c0df2b1
Merge pull request #13857 from opf/dependabot/bundler/dev/erblint-git…
ulferts Oct 9, 2023
70a47c6
bump airbrake-ruby & net-imap
ulferts Oct 9, 2023
e13c06d
bump aws-sdk-kms
ulferts Oct 9, 2023
18903ac
bump erblint-github & mime-types-data
ulferts Oct 9, 2023
3546623
bump google-apis-gmail_v1
ulferts Oct 9, 2023
5455f78
bump lefthook
ulferts Oct 9, 2023
4a0f88f
bump parser
ulferts Oct 9, 2023
2d4b7aa
bump reline
ulferts Oct 9, 2023
55925e4
bump awesome_nested_set
ulferts Oct 9, 2023
b979331
bump aws-sdk-sns
ulferts Oct 9, 2023
05f3241
bump meta-tags
ulferts Oct 9, 2023
9bebeac
Tiny improvements
wielinde Oct 9, 2023
4f54d4f
Remove "nextcloud" subpath from guide as that is a special case
wielinde Oct 9, 2023
770bd4e
Merge pull request #13873 from opf/fix/bump_gems
ulferts Oct 9, 2023
07a4591
Merge pull request #13748 from opf/documentation/50143-improve-troubl…
wielinde Oct 9, 2023
5c8669d
Merge pull request #13865 from opf/impl/add-one-drive-upload-service
Kharonus Oct 9, 2023
acbc421
Set statement_timeout to 0 when running migrations (#13818)
oliverguenther Oct 9, 2023
30dba1b
Merge pull request #13854 from opf/impl/glueing-onedrive-to-file-picker
mereghost Oct 9, 2023
2b2abf8
introduce ProjectRole model
ulferts Oct 5, 2023
a5f20ed
limit some administration to ProjectRole
ulferts Oct 9, 2023
816f997
Merge pull request #13843 from opf/fix/incorrect-component-wrapper-ch…
ulferts Oct 9, 2023
5f70474
fix Members::SetAttributesService role setting specs
ulferts Oct 9, 2023
e7605aa
Remove cron jobs from db with old handler names.
ba1ash Oct 9, 2023
e1c2c3b
Style: Use `#none?` instead of `#empty?`
aaron-contreras Sep 28, 2023
2c1e9a3
Extract `WorkPackages::Share::ShareRowComponent`
aaron-contreras Sep 28, 2023
fc56dcd
Extract `WorkPackages::Share::ShareCounterComponent`
aaron-contreras Sep 29, 2023
8280552
Allow injecting `shared_users` into ModalBodyComponent
aaron-contreras Sep 29, 2023
847fa17
Update `destroy` action to granularly send turbo stream responses
aaron-contreras Sep 29, 2023
78b4ba6
Perform no DOM manipulation on successful updates via inline row form
aaron-contreras Oct 2, 2023
399e671
Prepend newest created row to the top of shares list
aaron-contreras Oct 4, 2023
7afed61
Allow custom-rendered `component_wrapper`
aaron-contreras Oct 4, 2023
2caf3d8
Alphabetize order of shares in modal
aaron-contreras Oct 4, 2023
7e3767f
Add specs to cover granular update sorting behavior
aaron-contreras Oct 4, 2023
139d2f7
Clarify reason for setting custom id on BorderBox target
aaron-contreras Oct 9, 2023
5b94091
Merge pull request #13875 from opf/chore/remove-renamed-cronjobs
wielinde Oct 9, 2023
717f30a
Memoize current member count on shares controller
aaron-contreras Oct 9, 2023
db6250c
Remove unneccessary duplicate instance variable assignment
aaron-contreras Oct 9, 2023
8e3e04e
Avoid having to constantize the data_type
oliverguenther Oct 9, 2023
dcb9d27
[chore] added vcr data to one drive files query spec
Kharonus Oct 9, 2023
9304254
Merge pull request #13802 from opf/fix/50218-fix-fix-invalid-journals…
ulferts Oct 9, 2023
deb888b
update locales from crowdin [ci skip]
openprojectci Oct 10, 2023
2dec31d
update locales from crowdin [ci skip]
openprojectci Oct 10, 2023
91f812e
Bump sass from 1.69.0 to 1.69.1 in /frontend
dependabot[bot] Oct 10, 2023
94aff28
Bump @fullcalendar/list from 6.1.8 to 6.1.9 in /frontend
dependabot[bot] Oct 10, 2023
06b49d7
Bump eslint-plugin-storybook from 0.6.13 to 0.6.15 in /frontend
dependabot[bot] Oct 10, 2023
bde3bd9
Merge pull request #13879 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 10, 2023
767cd83
Merge pull request #13878 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 10, 2023
348dfe9
extract allowed scope into concern
ulferts Oct 9, 2023
b044791
Merge pull request #13880 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 10, 2023
a06bbf9
Merge pull request #13872 from opf/implementation/50258-add-role-desc…
ulferts Oct 10, 2023
77fee90
end align permissions dropdown
ulferts Oct 10, 2023
c9226ce
Merge pull request #13807 from opf/allowed-to-scope-for-work-packages
ulferts Oct 10, 2023
1799658
Merge remote-tracking branch 'origin/release/13.0' into dev
ulferts Oct 10, 2023
381d239
Fix project autocompleter not setting value using writeValue
oliverguenther Oct 4, 2023
b508904
Add release-notes file
oliverguenther Oct 10, 2023
becd3b4
Bumped version to 13.0.6
oliverguenther Oct 10, 2023
2b50c52
[#50234] Add storage filter to project and project storage collection
Kharonus Oct 4, 2023
65cc9f8
[#50234] added GET /api/v3/storages collection endpoint
Kharonus Oct 5, 2023
d38bbf6
[#50234] added api specification for storage collection
Kharonus Oct 5, 2023
8c4f2ec
Rewrite test with shared_let to save some time.
ba1ash Oct 9, 2023
4ee72da
[#50234] added permission check to storage filter
Kharonus Oct 10, 2023
75e420b
[#50278] Journalize the MeetingAgendaItem class
dombesz Oct 3, 2023
f12384c
Try out "IS DISTINCT FROM" condition
dombesz Oct 9, 2023
35b0cf3
Merge pull request #13852 from opf/feature/50234-api-add-storage-filt…
Kharonus Oct 10, 2023
63715ae
Merge pull request #13877 from opf/chore/added-vcr-data-to-one-drive-…
Kharonus Oct 10, 2023
aa9dbc0
Replace author reference of MeetingAgendaItem
oliverguenther Oct 10, 2023
25cd710
Replace `InviteUserFormComponent` on creation/update via form
aaron-contreras Oct 10, 2023
1c1abf9
Merge pull request #13881 from opf/impl/50475/replace-author-reference
aaron-contreras Oct 10, 2023
f0567da
update locales from crowdin [ci skip]
openprojectci Oct 11, 2023
6f7d42e
Bump eslint from 8.49.0 to 8.51.0 in /frontend
dependabot[bot] Oct 11, 2023
0a98aac
Bump @types/pako from 1.0.4 to 1.0.5 in /frontend
dependabot[bot] Oct 11, 2023
f2c1fdf
Bump @ngx-formly/core from 6.1.8 to 6.2.1 in /frontend
dependabot[bot] Oct 11, 2023
9ece0cf
Bump appsignal from 3.4.12 to 3.4.13
dependabot[bot] Oct 11, 2023
948e02f
Correct I18n key
HDinger Oct 11, 2023
f473368
[49853] Primer Action Menu overlay positioning issue (#13817)
bsatarnejad Oct 11, 2023
eb1729b
Use correct permission check as `edit_enabled?` is not implemented fo…
HDinger Oct 11, 2023
cb1f0a4
Merge pull request #13888 from opf/bug/50474-missing-translation-when…
HDinger Oct 11, 2023
c9ab02d
Don't raise ArgumentError when providing empty date
oliverguenther Oct 11, 2023
c05d392
Merge pull request #13884 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 11, 2023
e1d5c9e
Merge pull request #13885 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 11, 2023
ade996a
Merge pull request #13886 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 11, 2023
99c50fa
Merge pull request #13887 from opf/dependabot/bundler/dev/appsignal-3…
ulferts Oct 11, 2023
0b21caf
Merge branch 'dev' into feature/add_work_package_attachments
virgo47 Oct 11, 2023
affb466
Merge pull request #13890 from opf/fix/50456/empty-meeting-date
HDinger Oct 11, 2023
19e5d98
review fixes and test enhancements for PR #13861
virgo47 Oct 11, 2023
e316253
Merge pull request #13889 from opf/bug/50473-error-500-on-edit-meetin…
HDinger Oct 11, 2023
e913534
Add close button to the shareWP modal
HDinger Oct 11, 2023
bbde58e
further prevent loading of the dashbords module in production
ulferts Oct 11, 2023
534633f
Merge pull request #13831 from opf/fix/50281/op-project-autocompleter
HDinger Oct 11, 2023
137907d
Merge pull request #13861 from virgo47/feature/add_work_package_attac…
cbliard Oct 11, 2023
bda4547
Fix unit test which was passing by coincidence
cbliard Oct 11, 2023
db7a623
Test that :add_work_package_attachments permission allows to prepare …
cbliard Oct 11, 2023
f7548f7
avoid raising error on disabled permissions
ulferts Oct 11, 2023
ae598a0
avoid variable assignment
ulferts Oct 11, 2023
20b1ff5
disable dashboards in line with other module disabling
ulferts Oct 11, 2023
d9be9cd
Merge pull request #13894 from opf/fix/fix-attachments-unit-test
ulferts Oct 11, 2023
c70164f
Add module for the common after_perform hook
dombesz Oct 11, 2023
4a62ab9
Merge remote-tracking branch 'origin/dev' into implementation/50193-f…
ulferts Oct 11, 2023
fa01eb0
comment on surprising error duplication
ulferts Oct 11, 2023
79a6cfc
remove unnecessary tap s
ulferts Oct 11, 2023
aee95c8
increase specificity of spec
ulferts Oct 11, 2023
f256973
Merge pull request #13891 from opf/close-button-share-modal
ulferts Oct 11, 2023
da1050e
Merge pull request #13892 from opf/bug/50455-overview-page-is-blank-o…
oliverguenther Oct 11, 2023
e347808
rename factory calls in specs
ulferts Oct 11, 2023
6491d6e
Merge pull request #13845 from opf/implementation/50235-granular-upda…
ulferts Oct 11, 2023
5e823c9
fix spec description
ulferts Oct 11, 2023
d97e8d6
Merge pull request #13838 from opf/implementation/50278-journalize-th…
ulferts Oct 11, 2023
373e4c2
Merge pull request #13853 from opf/implementation/50193-fix-role-clas…
ulferts Oct 11, 2023
18382e7
Add db:seed:only task to run a single seeder
cbliard Oct 11, 2023
36a3038
Merge pull request #13844 from opf/bug/50287-authorizationuserglobalr…
aaron-contreras Oct 11, 2023
47b32dd
Move use_graph_api and self_registration OIDC options into configuration
oliverguenther Oct 9, 2023
425b078
Provider placeholder for tenant
oliverguenther Oct 9, 2023
7bdfbc5
Add test for added error when omniauth provided user is being limited
oliverguenther Oct 9, 2023
aaeee67
Extract view logic into separate files
HDinger Oct 11, 2023
6554430
Extract FormComponent into erb view and grid layout
oliverguenther Oct 11, 2023
59fae20
Extract ListComponent view into erb
oliverguenther Oct 11, 2023
1eae660
Extract NewButtonComponent view into erb
oliverguenther Oct 11, 2023
5c671c9
Extract NewComponent view into erb
oliverguenther Oct 11, 2023
e9c6cd8
Fix number of "ends"
HDinger Oct 11, 2023
e8383de
Extract view logic into separate file (async_dialog)
HDinger Oct 11, 2023
674dc3a
Add section on virus and malware protection
oliverguenther Oct 11, 2023
4abd7b2
Add section on patch and change management to application architecture
oliverguenther Oct 11, 2023
bc9bc97
update locales from crowdin [ci skip]
openprojectci Oct 12, 2023
7c3059f
Convert meeting tab views to erb
oliverguenther Oct 11, 2023
664ee8e
Improve performance on `work_packages/update_ancestors_service_spec` …
aaron-contreras Oct 12, 2023
2769e32
Bump rubocop from 1.56.4 to 1.57.0
dependabot[bot] Oct 12, 2023
6d43e09
Bump turbo-rails from 1.4.0 to 1.5.0
dependabot[bot] Oct 12, 2023
5dec175
Bump responders from 3.1.0 to 3.1.1
dependabot[bot] Oct 12, 2023
ebfa9c4
Bump the angular group in /frontend with 13 updates
dependabot[bot] Oct 12, 2023
c9a6b67
Bump sass from 1.69.1 to 1.69.3 in /frontend
dependabot[bot] Oct 12, 2023
7987a78
Merge pull request #13905 from opf/chore/extract-views-into-files
oliverguenther Oct 12, 2023
eed5dc2
Merge pull request #13900 from opf/dependabot/bundler/dev/responders-…
ba1ash Oct 12, 2023
3723080
Merge pull request #13898 from opf/dependabot/bundler/dev/rubocop-1.57.0
ba1ash Oct 12, 2023
eaaa5f9
Merge pull request #13902 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 12, 2023
0d1e19d
Merge pull request #13901 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 12, 2023
6ef9090
Merge pull request #13899 from opf/dependabot/bundler/dev/turbo-rails…
ulferts Oct 12, 2023
1258bfc
Bump @babel/core from 7.23.0 to 7.23.2 in /frontend
dependabot[bot] Oct 12, 2023
b378ec9
Merge pull request #13730 from opf/chore/prepare_for_rails_7_1
ulferts Oct 12, 2023
49f0e03
reuse Authorization.roles scopes for fetching roles in contexts
ulferts Oct 12, 2023
d654563
Update README.md
oliverguenther Oct 12, 2023
9bdba65
Merge remote-tracking branch 'origin/dev' into new-user-permissible-s…
ulferts Oct 12, 2023
978b33f
Merge pull request #13903 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 12, 2023
763f960
Merge pull request #13809 from opf/new-user-permissible-service
ulferts Oct 12, 2023
ebf476b
Make 20% faster work_packages/update_ancestors_service_spec
cbliard Oct 12, 2023
569e759
Add test for correctly setting limit_self_registration
oliverguenther Oct 9, 2023
099f628
Merge pull request #13876 from opf/fix/boolearized-flags
machisuji Oct 12, 2023
1e019e5
Show only visible meetings
oliverguenther Oct 11, 2023
451dcf7
Merge pull request #13910 from opf/fix/visible-meetings
aaron-contreras Oct 12, 2023
7a3d221
Merge pull request #13909 from opf/performance/improve-performance-on…
aaron-contreras Oct 12, 2023
2afa3d2
Remove the indent rule due to constantly breaking in longer chains
oliverguenther Oct 12, 2023
075fdc5
Merge remote-tracking branch 'origin/release/13.0' into dev
ulferts Oct 12, 2023
65f57e0
remove tile view component from source code
bsatarnejad Oct 12, 2023
0e1296c
update locales from crowdin [ci skip]
openprojectci Oct 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ updates:
angular:
patterns:
- '@angular*'
fullcalendar:
patterns:
- '@fullcalendar*'
- package-ecosystem: "bundler"
directory: "/"
schedule:
Expand Down
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ AllCops:
Exclude:
- '**/node_modules/**/*'

FactoryBot/ConsistentParenthesesStyle:
Enabled: false

FactoryBot/SyntaxMethods:
Enabled: true

Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ gem 'friendly_id', '~> 5.5.0'

gem 'acts_as_list', '~> 1.1.0'
gem 'acts_as_tree', '~> 2.9.0'
gem 'awesome_nested_set', '~> 3.5.0'
gem 'awesome_nested_set', '~> 3.6.0'
gem 'closure_tree', '~> 7.4.0'
gem 'rubytree', '~> 2.0.0'
# Only used in down migrations now.
Expand Down Expand Up @@ -157,7 +157,7 @@ gem 'md_to_pdf', git: 'https://github.com/opf/md-to-pdf', ref: 'cc286655dfa2ea2b
# prawn implicitly depends on matrix gem no longer in ruby core with 3.1
gem 'matrix', '~> 0.4.2'

gem 'meta-tags', '~> 2.18.0'
gem 'meta-tags', '~> 2.19.0'

gem "paper_trail", "~> 12.3"

Expand Down Expand Up @@ -364,6 +364,6 @@ gemfiles.each do |file|
send(:eval_gemfile, file) if File.readable?(file)
end

gem "openproject-primer_view_components", '~>0.11.0'
gem "openproject-primer_view_components", '~>0.12.1'
gem "openproject-octicons", '~>19.7.0'
gem "openproject-octicons_helper", '~>19.7.0'
62 changes: 31 additions & 31 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ PATH
remote: modules/two_factor_authentication
specs:
openproject-two_factor_authentication (1.0.0)
aws-sdk-sns (~> 1.66.0)
aws-sdk-sns (~> 1.67.0)
messagebird-rest (~> 1.4.2)
rotp (~> 6.1)

Expand Down Expand Up @@ -299,32 +299,32 @@ GEM
afm (0.2.2)
airbrake (13.0.3)
airbrake-ruby (~> 6.0)
airbrake-ruby (6.2.1)
airbrake-ruby (6.2.2)
rbtree3 (~> 0.6)
appsignal (3.4.12)
appsignal (3.4.13)
rack
ast (2.4.2)
attr_required (1.0.1)
auto_strip_attributes (2.6.0)
activerecord (>= 4.0)
awesome_nested_set (3.5.0)
activerecord (>= 4.0.0, < 7.1)
awesome_nested_set (3.6.0)
activerecord (>= 4.0.0, < 7.2)
aws-eventstream (1.2.0)
aws-partitions (1.831.0)
aws-sdk-core (3.185.0)
aws-partitions (1.834.0)
aws-sdk-core (3.185.1)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.71.0)
aws-sdk-core (~> 3, >= 3.177.0)
aws-sdk-kms (1.72.0)
aws-sdk-core (~> 3, >= 3.184.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.136.0)
aws-sdk-core (~> 3, >= 3.181.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.6)
aws-sdk-sns (1.66.0)
aws-sdk-core (~> 3, >= 3.177.0)
aws-sdk-sns (1.67.0)
aws-sdk-core (~> 3, >= 3.184.0)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.6.0)
aws-eventstream (~> 1, >= 1.0.2)
Expand Down Expand Up @@ -450,7 +450,7 @@ GEM
rainbow
rubocop
smart_properties
erblint-github (0.4.1)
erblint-github (0.5.0)
erubi (1.12.0)
escape_utils (1.3.0)
et-orbi (1.2.7)
Expand Down Expand Up @@ -520,7 +520,7 @@ GEM
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-gmail_v1 (0.33.0)
google-apis-gmail_v1 (0.34.0)
google-apis-core (>= 0.11.0, < 2.a)
googleauth (1.8.1)
faraday (>= 0.17.3, < 3.a)
Expand Down Expand Up @@ -588,7 +588,7 @@ GEM
language_server-protocol (3.17.0.3)
launchy (2.5.2)
addressable (~> 2.8)
lefthook (1.5.0)
lefthook (1.5.2)
letter_opener (1.8.1)
launchy (>= 2.2, < 3)
listen (3.8.0)
Expand All @@ -603,7 +603,7 @@ GEM
activesupport (>= 4)
railties (>= 4)
request_store (~> 1.0)
loofah (2.21.3)
loofah (2.21.4)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
lookbook (2.1.1)
Expand All @@ -626,12 +626,12 @@ GEM
marcel (1.0.2)
matrix (0.4.2)
messagebird-rest (1.4.2)
meta-tags (2.18.0)
actionpack (>= 3.2.0, < 7.1)
meta-tags (2.19.0)
actionpack (>= 3.2.0, < 7.2)
method_source (1.0.0)
mime-types (3.5.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2023.0808)
mime-types-data (3.2023.1003)
mini_magick (4.12.0)
mini_mime (1.1.5)
mini_portile2 (2.8.4)
Expand All @@ -642,7 +642,7 @@ GEM
ruby2_keywords (~> 0.0.1)
mustermann-grape (1.0.2)
mustermann (>= 1.0.0)
net-imap (0.3.7)
net-imap (0.4.0)
date
net-protocol
net-ldap (0.18.0)
Expand Down Expand Up @@ -680,7 +680,7 @@ GEM
actionview
openproject-octicons (= 19.7.0)
railties
openproject-primer_view_components (0.11.0)
openproject-primer_view_components (0.12.1)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
openproject-octicons (>= 19.7.0)
Expand All @@ -693,9 +693,9 @@ GEM
activerecord (>= 5.2)
request_store (~> 1.1)
parallel (1.23.0)
parallel_tests (4.2.2)
parallel_tests (4.3.0)
parallel
parser (3.2.2.3)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
pdf-core (0.9.0)
Expand Down Expand Up @@ -814,16 +814,16 @@ GEM
psych (>= 4.0.0)
recaptcha (5.15.0)
redcarpet (3.6.0)
regexp_parser (2.8.1)
reline (0.3.8)
regexp_parser (2.8.2)
reline (0.3.9)
io-console (~> 0.5)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
request_store (1.5.1)
rack (>= 1.4)
responders (3.1.0)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
retriable (3.1.2)
Expand Down Expand Up @@ -856,12 +856,12 @@ GEM
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.12.1)
rubocop (1.56.4)
rubocop (1.57.0)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.3)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
Expand Down Expand Up @@ -961,7 +961,7 @@ GEM
timeout (0.4.0)
trailblazer-option (0.1.2)
ttfunk (1.7.0)
turbo-rails (1.4.0)
turbo-rails (1.5.0)
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
Expand Down Expand Up @@ -1027,7 +1027,7 @@ DEPENDENCIES
airbrake (~> 13.0.0)
appsignal (~> 3.0)
auto_strip_attributes (~> 2.5)
awesome_nested_set (~> 3.5.0)
awesome_nested_set (~> 3.6.0)
aws-sdk-core (~> 3.107)
aws-sdk-s3 (~> 1.91)
bcrypt (~> 3.1.6)
Expand Down Expand Up @@ -1091,7 +1091,7 @@ DEPENDENCIES
mail (= 2.8.1)
matrix (~> 0.4.2)
md_to_pdf!
meta-tags (~> 2.18.0)
meta-tags (~> 2.19.0)
mini_magick (~> 4.12.0)
multi_json (~> 1.15.0)
my_page!
Expand All @@ -1118,7 +1118,7 @@ DEPENDENCIES
openproject-octicons (~> 19.7.0)
openproject-octicons_helper (~> 19.7.0)
openproject-openid_connect!
openproject-primer_view_components (~> 0.11.0)
openproject-primer_view_components (~> 0.12.1)
openproject-recaptcha!
openproject-reporting!
openproject-storages!
Expand Down
37 changes: 27 additions & 10 deletions app/components/concerns/op_turbo/streamable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

module OpTurbo
module Streamable
# rubocop:disable OpenProject/AddPreviewForViewComponent
class MissingComponentWrapper < StandardError; end
# rubocop:enable OpenProject/AddPreviewForViewComponent

extend ActiveSupport::Concern

class_methods do
Expand All @@ -49,11 +53,12 @@ def render_as_turbo_stream(view_context:, action: :update)
render_in(view_context)
template = nil
else
raise "Unsupported action #{action}"
raise ArgumentError, "Unsupported action #{action}"
end

unless @component_wrapper_used
raise "You need to wrap your component in a `component_wrapper` block in order to use the turbo-stream methods"
unless wrapped?
raise MissingComponentWrapper,
"Wrap your component in a `component_wrapper` block in order to use turbo-stream methods"
end

OpTurbo::StreamWrapperComponent.new(
Expand All @@ -66,8 +71,12 @@ def render_as_turbo_stream(view_context:, action: :update)
def insert_as_turbo_stream(component:, view_context:, action: :append)
template = component.render_in(view_context)

unless @component_wrapper_used
raise "You need to wrap your component in a `component_wrapper` block in order to use the turbo-stream methods"
# The component being inserted into the target component
# needs wrapping, not the target since it isn't the one
# that needs to be rendered to perform this turbo stream action.
unless component.wrapped?
raise MissingComponentWrapper,
"Wrap your component in a `component_wrapper` block in order to use turbo-stream methods"
end

OpTurbo::StreamWrapperComponent.new(
Expand All @@ -77,17 +86,24 @@ def insert_as_turbo_stream(component:, view_context:, action: :append)
).render_in(view_context)
end

def component_wrapper(tag: "div", class: nil, data: nil, style: nil, &block)
@component_wrapper_used = true
def component_wrapper(method = nil, tag: "div", class: nil, data: nil, style: nil, &block)
@wrapped = true

wrapper_arguments = { id: wrapper_key, class:, data:, style: }

if inner_html_only?
capture(&block)
elsif wrapper_only?
content_tag(tag, id: wrapper_key, class:, data:, style:)
method ? send(method, wrapper_arguments) : content_tag(tag, wrapper_arguments)
else
content_tag(tag, id: wrapper_key, class:, data:, style:, &block)
method ? send(method, wrapper_arguments, &block) : content_tag(tag, wrapper_arguments, &block)
end
end

def wrapped?
!!@wrapped
end

def inner_html_only?
!!@inner_html_only
end
Expand Down Expand Up @@ -117,7 +133,8 @@ def insert_target_modified?

def insert_target_container(tag: "div", class: nil, data: nil, style: nil, &block)
unless insert_target_modified?
raise "`insert_target_modified?` needs to be implemented and return true if `insert_target_container` is " \
raise NotImplementedError,
"#insert_target_modified? needs to be implemented and return true if #insert_target_container is " \
"used in this component"
end

Expand Down
4 changes: 2 additions & 2 deletions app/components/op_primer/component_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
module OpPrimer
module ComponentHelpers
def flex_layout(**, &)
render(OpPrimer::FlexLayoutComponent.new(**), &)
render(Primer::OpenProject::FlexLayout.new(**), &)
end

def grid_layout(css_class, **, &)
render(OpPrimer::GridLayoutComponent.new(css_class, **), &)
render(Primer::OpenProject::GridLayout.new(css_class:, **), &)
end

def box_collection(**, &)
Expand Down
52 changes: 0 additions & 52 deletions app/components/op_primer/flex_layout_component.html.erb

This file was deleted.

Loading
Loading