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 #210

Merged
merged 195 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
aed51f9
[#40437] Easy emoji reactions, e.g "thumbs up" on activity entries
jjabari-op Jun 24, 2024
53aa61c
introduce simple emoji reactions
jjabari-op Jul 1, 2024
2b27488
Merge branch 'feature/54733-primerise-the-activity-panel' into epic/4…
jjabari-op Jul 2, 2024
9e73506
implemented feedback provided by @psatyal and sorting fix
jjabari-op Jul 2, 2024
7da1bf5
avoid n+1 queries
jjabari-op Jul 2, 2024
3c9da77
fixing focus loss on mobile
jjabari-op Jul 3, 2024
dbae3ac
Merge branch 'feature/54733-primerise-the-activity-panel' into featur…
jjabari-op Jul 10, 2024
81d62c3
merged and fixed base branch
jjabari-op Jul 10, 2024
ee29224
Merge branch 'feature/54733-primerise-the-activity-panel' into featur…
jjabari-op Jul 10, 2024
19f3669
Merge branch 'feature/54733-primerise-the-activity-panel' into featur…
jjabari-op Sep 17, 2024
71966de
fixed comment rendering
jjabari-op Sep 17, 2024
6f0dc4a
Merge branch 'feature/54733-primerise-the-activity-panel' into featur…
jjabari-op Sep 26, 2024
560d7f9
Merge branch 'feature/54733-primerise-the-activity-panel' into featur…
jjabari-op Oct 1, 2024
e86f322
Merge branch 'feature/54733-primerise-the-activity-panel' into featur…
jjabari-op Oct 7, 2024
86d5656
Merge branch 'feature/54733-primerise-the-activity-panel' into featur…
jjabari-op Oct 8, 2024
338174f
rubocop auto-amendments
akabiru Oct 7, 2024
0f17cee
applied invisible style to reactions where the current user itself ha…
jjabari-op Oct 8, 2024
acc920a
Merge branch 'feature/54733-primerise-the-activity-panel' into featur…
jjabari-op Oct 8, 2024
14108bb
fixed merge
jjabari-op Oct 8, 2024
6ef94ef
tests[Op#40437]: begin emoji reactions feature tests 👍🏾
akabiru Oct 8, 2024
a3d0747
feat[Op#40437]: Introduce view only reactions covered by feature specs
akabiru Oct 10, 2024
31e75b3
chore[Op#40437]: set view only reactions as invisible
akabiru Oct 11, 2024
9751869
chore[Op#40437]: correct test example
akabiru Oct 14, 2024
6094509
tests[Op#40437]: add emoji reaction contract specs
akabiru Oct 14, 2024
7392afa
tests[Op#40437]: add service specs
akabiru Oct 14, 2024
f777c52
tests[Op#40437]: add model specs
akabiru Oct 14, 2024
c09cffc
fix[Op#58142]: render error flash in error case
akabiru Oct 14, 2024
81d4842
[#57550] Custom field with format version are ordered as strings
toy Sep 20, 2024
dbb4d28
change expectations of Version.order_by_semver_name
toy Sep 23, 2024
7f87985
correct order of versions in version custom field ordering
toy Sep 23, 2024
6edcfea
migration to add numeric collation for column name of versions table
toy Sep 23, 2024
48d7877
simplify Version.order_by_semver_name
toy Sep 23, 2024
d6d133e
fix and simplify sortable of version property of work package
toy Sep 23, 2024
4ddc1e6
fix sort criteria spec
toy Sep 23, 2024
8f23e53
improve a bit results version integration spec
toy Sep 23, 2024
371f2f3
Merge branch 'dev' into feature/40437-emoji-reactions-to-work-package…
akabiru Oct 17, 2024
c7b5e9e
Merge branch 'dev' into feature/40437-emoji-reactions-to-work-package…
akabiru Oct 18, 2024
a889df6
update locales from crowdin [ci skip]
openprojectci Oct 20, 2024
a67c458
update locales from crowdin [ci skip]
openprojectci Oct 20, 2024
a78cb2d
update locales from crowdin [ci skip]
openprojectci Oct 21, 2024
c1bf734
@primer/css after https://github.com/primer/css/pull/2724 need @prime…
Eric-Guo Oct 21, 2024
7be43c9
Bump lefthook from 1.7.21 to 1.7.22
dependabot[bot] Oct 21, 2024
7f89e8f
Bump @ngx-formly/core from 6.3.9 to 6.3.10 in /frontend
dependabot[bot] Oct 21, 2024
b949d18
Bump @types/lodash from 4.17.10 to 4.17.12 in /frontend
dependabot[bot] Oct 21, 2024
8bf994b
Bump ruby-prof from 1.7.0 to 1.7.1
dependabot[bot] Oct 21, 2024
bb3cceb
Bump aws-sdk-s3 from 1.168.0 to 1.169.0
dependabot[bot] Oct 21, 2024
5f6bf84
Merge remote-tracking branch 'origin/release/14.6' into dev
ulferts Oct 21, 2024
be3cf3a
Merge pull request #16996 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 21, 2024
846b5b0
Merge pull request #16995 from opf/dependabot/bundler/dev/lefthook-1.…
ulferts Oct 21, 2024
ec2b460
Merge pull request #16776 from opf/bug/57550-custom-field-with-format…
ulferts Oct 21, 2024
994be68
chore[Op#40437]: store emoji in uncode format backed by string enum
akabiru Oct 21, 2024
922545d
adjust label "Enabled in projects"
brunopagno Oct 21, 2024
a70a3ae
Check for fieldValue to be existent before relying on it
HDinger Oct 21, 2024
ebecad5
Ensure init nulldb with utf8
oliverguenther Oct 21, 2024
e0c5dd3
Update OIDC configuration UI.
ba1ash Oct 11, 2024
2e22ab2
Remove has_actions
oliverguenther Oct 14, 2024
db82830
Extend form validation
oliverguenther Oct 14, 2024
ef21f6e
Extract metadata_url getter
oliverguenther Oct 14, 2024
e857bcd
Add mapping
oliverguenther Oct 14, 2024
19eab3b
Same button layout as saml
oliverguenther Oct 14, 2024
77b8da4
Don't walk through sections without edit_mode
oliverguenther Oct 14, 2024
a1dd527
Hash builder with mapping
oliverguenther Oct 14, 2024
4e897fb
Allow custom icon
oliverguenther Oct 14, 2024
980dd1c
Move migration to engine
oliverguenther Oct 14, 2024
3b4ccfd
Format migration text
oliverguenther Oct 14, 2024
533312b
Configuration mapper
oliverguenther Oct 14, 2024
30fae2b
Rename seeder
oliverguenther Oct 14, 2024
7247a23
Remove form_post security impact option
oliverguenther Oct 14, 2024
a72c0cb
Allow seeding with path config as shown in docs
oliverguenther Oct 15, 2024
15490f2
Reintroduce sections, add one for mapping
oliverguenther Oct 15, 2024
7ecd5df
Fix inflection
oliverguenther Oct 15, 2024
7c873eb
Extend spec to use absolute URL
oliverguenther Oct 15, 2024
6fe5456
Feature spec
oliverguenther Oct 15, 2024
7b8bbee
Contract specs
oliverguenther Oct 15, 2024
fc4908c
Config mapper spec
oliverguenther Oct 15, 2024
2f3e7da
Service specs
oliverguenther Oct 15, 2024
524a459
Add claims
oliverguenther Oct 16, 2024
dcc293c
Remove metadata_url from discoverable attribute check
oliverguenther Oct 16, 2024
3312cc9
Allow path based attributes after all
oliverguenther Oct 16, 2024
718d934
Fix generation of provider classes from new config
oliverguenther Oct 16, 2024
d0390a2
Skip metadata check for built-in
oliverguenther Oct 16, 2024
46eb11a
Remove unused providers helper
oliverguenther Oct 16, 2024
d5987fa
Remove state lambda
oliverguenther Oct 16, 2024
0959dca
Set default issuer
oliverguenther Oct 16, 2024
15dcc76
Allow setting omniauth direct login provider to the new auth providers
oliverguenther Oct 16, 2024
7989cdb
Show delete warning for deleting SSO providers (#16981)
oliverguenther Oct 17, 2024
5bb581a
Parse tenant from previous config
oliverguenther Oct 17, 2024
343063a
Parse limit_self_registration
oliverguenther Oct 17, 2024
e9ef120
Also map host
oliverguenther Oct 17, 2024
32d4da1
Fix and add test for self-registration
oliverguenther Oct 18, 2024
65fb080
Re-enable custom attribute mapping spec
oliverguenther Oct 18, 2024
0d15a67
Add post_logout_redirect_uri
oliverguenther Oct 21, 2024
32afae1
Allow admin mapping
oliverguenther Oct 21, 2024
98e9d57
Add migration spec
oliverguenther Oct 21, 2024
6ac6af4
Better option mapping
oliverguenther Oct 21, 2024
1d5a34a
Reveal sidemenu structure in the breadcrumb of the notification center
HDinger Oct 21, 2024
79cd151
adjust label "Enabled in projects"
brunopagno Oct 21, 2024
9c60ef7
Merge pull request #17002 from opf/bug/58429-invite-user-modal-doesnt…
ulferts Oct 21, 2024
7fb084c
[#53767] fix: focus input field after selecting a filter
EinLama Oct 21, 2024
9bca254
[#53767] ensure focus for autocompleter and multi select
EinLama Oct 21, 2024
311e0d7
sent notifications to users mentioning themselves again
ulferts Oct 21, 2024
c6aa3ae
Merge pull request #16991 from Eric-Guo/dev
HDinger Oct 21, 2024
ddb9bd5
Merge pull request #17004 from opf/bug/58420-notification-screen-does…
mrmir Oct 21, 2024
de39d25
Update tests and treat corner cases on rendering storage health status
mereghost Oct 21, 2024
47ed900
Merge pull request #16999 from opf/bug/53767-user-is-not-taken-to-the…
oliverguenther Oct 21, 2024
ac2f26d
update locales from crowdin [ci skip]
openprojectci Oct 22, 2024
d85bef1
update locales from crowdin [ci skip]
openprojectci Oct 22, 2024
c1e2497
Merge branch 'release/14.6' into dev
openprojectci Oct 22, 2024
7201152
Bump view_component from 3.17.0 to 3.18.0
dependabot[bot] Oct 22, 2024
3fc469d
Bump brakeman from 6.2.1 to 6.2.2
dependabot[bot] Oct 22, 2024
c48e1ee
Bump browserslist from 4.24.0 to 4.24.2 in /frontend
dependabot[bot] Oct 22, 2024
c28de19
Bump eslint-plugin-jsx-a11y from 6.10.0 to 6.10.1 in /frontend
dependabot[bot] Oct 22, 2024
3521a7b
Bump aws-sdk-core from 3.210.0 to 3.211.0
dependabot[bot] Oct 22, 2024
32fe64e
Use background variable
HDinger Oct 22, 2024
10e648d
Merge pull request #17013 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 22, 2024
7939c57
Merge pull request #17012 from opf/dependabot/bundler/dev/brakeman-6.2.2
ulferts Oct 22, 2024
8603562
Merge pull request #17006 from opf/bug/58151-self-notification-doesnt…
ulferts Oct 22, 2024
3382bd6
Merge pull request #17011 from opf/dependabot/bundler/dev/view_compon…
ulferts Oct 22, 2024
61f255c
Merge pull request #17014 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 22, 2024
c1cae85
Merge pull request #17015 from opf/dependabot/bundler/dev/aws-sdk-cor…
ulferts Oct 22, 2024
f4eaa80
Merge pull request #17000 from opf/bug/58479-rename-label-in-edit-pro…
brunopagno Oct 22, 2024
6afa6b9
Merge pull request #17010 from opf/fix/storages-capitalization-again
mereghost Oct 22, 2024
a02a54f
Add release-notes file
oliverguenther Oct 22, 2024
654c2e3
Bumped version to 14.6.3
oliverguenther Oct 22, 2024
b29c277
feat[Op#58250]: Store reactions as indexed enums later mapped to unicode
akabiru Oct 22, 2024
8bb6775
Merge pull request #16935 from opf/feature/57677-oidc-ui
oliverguenther Oct 22, 2024
4977a0d
remove bata from dark mode option in mode selection dropdown
bsatarnejad Oct 22, 2024
eb359e4
fix url for notification center in case of a show all
ulferts Oct 22, 2024
8937def
avoid naming conflicts on concurrency key
ulferts Oct 22, 2024
5f57d6f
fix[Op#40437]: Update reactions text
akabiru Oct 22, 2024
7b632c3
chore[Op#40437]: remove unused constant, touch up formatting
akabiru Oct 22, 2024
327b5d2
update locales from crowdin [ci skip]
openprojectci Oct 23, 2024
686cfea
map ck label background color to a primer css variable
bsatarnejad Oct 21, 2024
12807d1
fix background of disabled input in ck editor
bsatarnejad Oct 23, 2024
2c23355
Bump lefthook from 1.7.22 to 1.8.0
dependabot[bot] Oct 23, 2024
8f499f2
Bump view_component from 3.18.0 to 3.19.0
dependabot[bot] Oct 23, 2024
f5e85b2
Merge pull request #17020 from opf/58508-remove-beta-label-from-dark-…
HDinger Oct 23, 2024
afe9e83
Bump eslint-plugin-react from 7.37.1 to 7.37.2 in /frontend
dependabot[bot] Oct 23, 2024
f4f9191
Bump @types/jquery from 3.5.31 to 3.5.32 in /frontend
dependabot[bot] Oct 23, 2024
a167025
Merge pull request #17026 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 23, 2024
c4e65b8
Merge pull request #17025 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 23, 2024
a8ab15f
Merge pull request #17024 from opf/dependabot/bundler/dev/view_compon…
ulferts Oct 23, 2024
e22330e
Merge pull request #17023 from opf/dependabot/bundler/dev/lefthook-1.8.0
ulferts Oct 23, 2024
6e9801f
Merge remote-tracking branch 'origin/release/14.6' into dev
ulferts Oct 23, 2024
5109cf5
Merge pull request #17021 from opf/bug/58555-reminder-mmail-not-sent-…
machisuji Oct 23, 2024
cb3a629
Add a test about env var precedence
cbliard Oct 23, 2024
bd073a1
fix missing semi colon
bsatarnejad Oct 23, 2024
9f08b83
feat[Op#40437]: Introduce single emoji reactions aggregation query to…
akabiru Oct 23, 2024
25ceada
update locales from crowdin [ci skip]
openprojectci Oct 24, 2024
bdf30c9
Merge branch 'release/14.6' into dev
openprojectci Oct 24, 2024
51f9045
Bump the angular group in /frontend with 2 updates
dependabot[bot] Oct 24, 2024
3f767e7
Bump lefthook from 1.8.0 to 1.8.1
dependabot[bot] Oct 24, 2024
f661329
Bump lookbook
Eric-Guo Oct 24, 2024
bb3e4bd
New design for WorkPackage HoverCard
HDinger Oct 22, 2024
403fd0c
Merge pull request #17028 from opf/dependabot/npm_and_yarn/frontend/d…
ulferts Oct 24, 2024
fc36fa1
Merge pull request #17032 from Eric-Guo/bump_lookbook
ulferts Oct 24, 2024
0f5114c
[58467] Changed add hierarchical item behavior
apfohl Oct 23, 2024
ac01c6d
Merge pull request #17019 from opf/feature/58512-primerised-version-o…
HDinger Oct 24, 2024
df25bcf
fix removing consecutive custom field filters in baseline
ulferts Oct 24, 2024
d9aa14e
Merge pull request #17031 from opf/dependabot/bundler/dev/lefthook-1.8.1
ulferts Oct 24, 2024
29f0155
feat[Op#40437]: define emoji reactions aggregation in index component
akabiru Oct 24, 2024
0f48bb8
Merge pull request #17027 from opf/bug/58467-item-add-form-disappears…
apfohl Oct 24, 2024
3856149
fix[Op#40437]: Update streams to use grouped emoji reactions query
akabiru Oct 24, 2024
c7f235a
Merge pull request #17033 from opf/bug/58600-custom-field-filters-rem…
oliverguenther Oct 24, 2024
65c2aa2
chore[Op#40437]: add timestamp spec
akabiru Oct 24, 2024
50f612e
memoize cfs activated in project to avoid n+1
ulferts Oct 24, 2024
2a0b25f
fix[Op#40437]: Safely parse last updated at timestamp
akabiru Oct 24, 2024
340895a
feat[Op#40437]: update tab controller to pick out emoji reactions
akabiru Oct 24, 2024
b08ed5b
fix[Op#40437]: set emoji reactions correctly
akabiru Oct 24, 2024
f0e37c5
update locales from crowdin [ci skip]
openprojectci Oct 25, 2024
17ebabd
Merge branch 'release/14.6' into dev
openprojectci Oct 25, 2024
045d69c
Bump pg from 1.5.8 to 1.5.9
dependabot[bot] Oct 25, 2024
d1fc6f4
Merge pull request #17008 from opf/58108-dark-mode-custom-text-widget…
HDinger Oct 25, 2024
503b2b1
[58414] When you click on the "To the Notification Center" button, an…
bsatarnejad Oct 25, 2024
30b831f
chore[Op#40437]: ensure emoji reactions returns empty hash when no re…
akabiru Oct 25, 2024
e6aed59
fix[Op#40437]: ensure emojis and user reactions are ordered in asc order
akabiru Oct 25, 2024
fb419dd
chore[Op#40437]: remove redundant reactions single update, rely on fu…
akabiru Oct 25, 2024
a8a6d11
[#58426] add feature spec for custom fields of type hierarchy
Kharonus Oct 18, 2024
232df80
fix[Op#40437]: remove support for emoji reactions timeslicing
akabiru Oct 25, 2024
e22d22d
Merge branch 'dev' into feature/40437-emoji-reactions-to-work-package…
akabiru Oct 25, 2024
1657091
Merge pull request #17038 from opf/dependabot/bundler/dev/pg-1.5.9
ulferts Oct 25, 2024
485ea7f
[#58426] add more structure to feature spec
Kharonus Oct 25, 2024
a302f3f
fix[Op#40437]: Reinstate emoji reactions streams
akabiru Oct 25, 2024
80cea6e
chore[Op#40437]: improve var naming; make less generic
akabiru Oct 25, 2024
a618078
Merge pull request #16988 from opf/implementation/58426-add-feature-s…
Kharonus Oct 25, 2024
d57d69f
fix[Op#40437]: ensure all wp journals are updated including removals
akabiru Oct 25, 2024
2a22e8b
chore[Op#40437]: use meaningful var names
akabiru Oct 25, 2024
e58b9bd
chore[Op#40437]: favor contract validations as opposed to AR validations
akabiru Oct 25, 2024
54c0ff6
chore[Op#40437]: remap model validations names to be more suitable
akabiru Oct 25, 2024
2627f2c
fix[Op#40437]: switch to i18n pluralization
akabiru Oct 25, 2024
88047f1
chore[Op#40437]: humanize reaction instead
akabiru Oct 25, 2024
a6427d3
fix[Op#40437]: Use fully qualified ❤️
akabiru Oct 25, 2024
840deff
chore[Op#40437]: extend wait time for journal change
akabiru Oct 25, 2024
87a8334
Merge pull request #16020 from opf/feature/40437-emoji-reactions-to-w…
akabiru Oct 25, 2024
8145d53
update locales from crowdin [ci skip]
openprojectci Oct 26, 2024
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ RSpec/DescribeMethod:
# to match the exact file name
RSpec/SpecFilePathFormat:
CustomTransform:
OpenIDConnect: openid_connect
OAuthClients: oauth_clients
IgnoreMethods: true

Expand Down
8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ gem "appsignal", "~> 3.10.0", require: false

gem "view_component"
# Lookbook
gem "lookbook", "~> 2.3.0"
gem "lookbook", "~> 2.3.3"

# Require factory_bot for usage with openproject plugins testing
gem "factory_bot", "~> 6.5.0", require: false
Expand Down Expand Up @@ -397,6 +397,6 @@ gemfiles.each do |file|
send(:eval_gemfile, file) if File.readable?(file)
end

gem "openproject-octicons", "~>19.18.0"
gem "openproject-octicons_helper", "~>19.18.0"
gem "openproject-primer_view_components", "~>0.48.0"
gem "openproject-octicons", "~>19.19.0"
gem "openproject-octicons_helper", "~>19.19.0"
gem "openproject-primer_view_components", "~>0.48.1"
46 changes: 23 additions & 23 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -342,23 +342,23 @@ GEM
activerecord (>= 4.0.0, < 8.0)
awrence (1.2.1)
aws-eventstream (1.3.0)
aws-partitions (1.991.0)
aws-sdk-core (3.209.1)
aws-partitions (1.992.0)
aws-sdk-core (3.211.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.94.0)
aws-sdk-core (~> 3, >= 3.207.0)
aws-sdk-kms (1.95.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.168.0)
aws-sdk-core (~> 3, >= 3.207.0)
aws-sdk-s3 (1.169.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
aws-sdk-sns (1.88.0)
aws-sdk-core (~> 3, >= 3.207.0)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.10.0)
aws-sigv4 (1.10.1)
aws-eventstream (~> 1, >= 1.0.2)
axe-core-api (4.10.1)
dumb_delegator
Expand Down Expand Up @@ -386,7 +386,7 @@ GEM
bindata (2.5.0)
bootsnap (1.18.4)
msgpack (~> 1.2)
brakeman (6.2.1)
brakeman (6.2.2)
racc
browser (6.0.0)
builder (3.3.0)
Expand Down Expand Up @@ -703,7 +703,7 @@ GEM
launchy (3.0.1)
addressable (~> 2.8)
childprocess (~> 5.0)
lefthook (1.7.21)
lefthook (1.8.1)
letter_opener (1.10.0)
launchy (>= 2.2, < 4)
letter_opener_web (3.0.0)
Expand All @@ -727,7 +727,7 @@ GEM
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
lookbook (2.3.2)
lookbook (2.3.3)
activemodel
css_parser
htmlbeautifier (~> 1.3)
Expand Down Expand Up @@ -803,12 +803,12 @@ GEM
validate_email
validate_url
webfinger (~> 2.0)
openproject-octicons (19.18.0)
openproject-octicons_helper (19.18.0)
openproject-octicons (19.19.0)
openproject-octicons_helper (19.19.0)
actionview
openproject-octicons (= 19.18.0)
openproject-octicons (= 19.19.0)
railties
openproject-primer_view_components (0.48.0)
openproject-primer_view_components (0.48.1)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
openproject-octicons (>= 19.17.0)
Expand Down Expand Up @@ -840,7 +840,7 @@ GEM
hashery (~> 2.0)
ruby-rc4
ttfunk
pg (1.5.8)
pg (1.5.9)
plaintext (0.3.4)
activesupport (> 2.2.1)
nokogiri (~> 1.10, >= 1.10.4)
Expand Down Expand Up @@ -1044,7 +1044,7 @@ GEM
i18n
iso8601
ruby-ole (1.2.13.1)
ruby-prof (1.7.0)
ruby-prof (1.7.1)
ruby-progressbar (1.13.0)
ruby-rc4 (0.1.5)
ruby-saml (1.17.0)
Expand Down Expand Up @@ -1147,8 +1147,8 @@ GEM
public_suffix
vcr (6.3.1)
base64
view_component (3.17.0)
activesupport (>= 5.2.0, < 8.0)
view_component (3.19.0)
activesupport (>= 5.2.0, < 8.1)
concurrent-ruby (~> 1.0)
method_source (~> 1.0)
virtus (2.0.0)
Expand Down Expand Up @@ -1272,7 +1272,7 @@ DEPENDENCIES
letter_opener_web
listen (~> 3.9.0)
lograge (~> 0.14.0)
lookbook (~> 2.3.0)
lookbook (~> 2.3.3)
mail (= 2.8.1)
markly (~> 0.10)
matrix (~> 0.4.2)
Expand Down Expand Up @@ -1304,10 +1304,10 @@ DEPENDENCIES
openproject-job_status!
openproject-ldap_groups!
openproject-meeting!
openproject-octicons (~> 19.18.0)
openproject-octicons_helper (~> 19.18.0)
openproject-octicons (~> 19.19.0)
openproject-octicons_helper (~> 19.19.0)
openproject-openid_connect!
openproject-primer_view_components (~> 0.48.0)
openproject-primer_view_components (~> 0.48.1)
openproject-recaptcha!
openproject-reporting!
openproject-storages!
Expand Down
1 change: 1 addition & 0 deletions app/components/_index.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@import "work_packages/activities_tab/journals/index_component"
@import "work_packages/activities_tab/journals/item_component"
@import "work_packages/activities_tab/journals/item_component/details"
@import "work_packages/activities_tab/journals/item_component/reactions"
@import "shares/modal_body_component"
@import "shares/invite_user_form_component"
@import "work_packages/details/tab_component"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ See COPYRIGHT and LICENSE files for more details.
++#%>

<%=
render(Primer::Alpha::Dialog.new(id: DIALOG_ID, title: "Delete item")) do |dialog|
render(Primer::Alpha::Dialog.new(id: DIALOG_ID,
title: "Delete item",
data: { test_selector: TEST_SELECTOR })) do |dialog|
dialog.with_header(variant: :large)
dialog.with_body do
"Are you sure you want to delete this item from the current hierarchy level?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class DeleteItemDialogComponent < ApplicationComponent
include OpTurbo::Streamable

DIALOG_ID = "op-hierarchy-item--deletion-confirmation"
TEST_SELECTOR = "op-custom-fields--delete-item-dialog"

def initialize(custom_field:, hierarchy_item:)
super
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>

<%=
component_wrapper do
component_wrapper(data: { test_selector: "op-custom-fields--hierarchy-item" }) do
flex_layout(align_items: :center, justify_content: :space_between) do |item_container|
item_container.with_column(flex_layout: true) do |item_information|
item_information.with_column(mr: 2) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ See COPYRIGHT and LICENSE files for more details.
flex_layout do |container|
if items.empty? && !show_new_item_form?
container.with_row(mb: 3) do
render Primer::Beta::Blankslate.new(border: true) do |component|
render Primer::Beta::Blankslate.new(
border: true,
test_selector: "op-custom-fields--hierarchy-items-blankslate"
) do |component|
component.with_visual_icon(icon: "list-ordered")
component.with_heading(tag: :h3).with_content(I18n.t("custom_fields.admin.items.blankslate.title"))
component.with_description { I18n.t("custom_fields.admin.items.blankslate.description") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
primer_form_with(
url: custom_field_items_path(@custom_field),
method: :post,
data: { test_selector: "op-custom-fields--new-item-form" }
) do |f|
render(CustomFields::Hierarchy::NewItemForm.new(f, custom_field: @custom_field, label: @label, short: @short))
end
Expand Down
11 changes: 8 additions & 3 deletions app/components/custom_fields/details_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<%=
component_wrapper do
flex_layout do |content|
content.with_row(mb: 3) do
render Primer::Alpha::Banner.new(scheme: :default, icon: :info, dismiss_scheme: :hide) do
I18n.t("custom_fields.admin.notice.remember_items_and_projects")
if has_no_items_or_projects?
content.with_row(mb: 3) do
render Primer::Alpha::Banner.new(scheme: :default,
icon: :info,
dismiss_scheme: :hide,
test_selector: "op-custom-fields--new-hierarchy-banner") do
I18n.t("custom_fields.admin.notice.remember_items_and_projects")
end
end
end

Expand Down
8 changes: 8 additions & 0 deletions app/components/custom_fields/details_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,13 @@ module CustomFields
class DetailsComponent < ApplicationComponent
include OpPrimer::ComponentHelpers
include OpTurbo::Streamable

alias_method :custom_field, :model

def has_no_items_or_projects?
custom_field.field_format_hierarchy? &&
custom_field.hierarchy_root.children.empty? &&
custom_field.projects.empty?
end
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= render(Primer::OpenProject::PageHeader.new) do |header|
header.with_title { page_title }
header.with_breadcrumbs(breadcrumb_items)
header.with_breadcrumbs(breadcrumb_items, selected_item_font_weight: current_breadcrumb_element == page_title ? :bold : :normal)

header.with_action_button(tag: :a,
mobile_icon: :gear,
Expand Down
35 changes: 30 additions & 5 deletions app/components/notifications/index_page_header_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,41 @@ def initialize(project: nil)
end

def page_title
I18n.t("js.notifications.title")
if current_item.present?
current_item.title
else
I18n.t("notifications.menu.inbox")
end
end

def breadcrumb_items
[parent_element,
page_title]
[{ href: home_path, text: helpers.organization_name },
{ href: notifications_path, text: I18n.t("js.notifications.title") },
current_breadcrumb_element]
end

def parent_element
{ href: home_path, text: helpers.organization_name }
def current_breadcrumb_element
if current_section && current_section.header.present?
I18n.t("menus.breadcrumb.nested_element", section_header: current_section.header, title: page_title).html_safe
else
page_title
end
end

def current_section
return @current_section if defined?(@current_section)

@current_section = Notifications::Menu
.new(params:, current_user: User.current)
.selected_menu_group
end

def current_item
return @current_item if defined?(@current_item)

@current_item = Notifications::Menu
.new(params:, current_user: User.current)
.selected_menu_item
end
end
end
10 changes: 5 additions & 5 deletions app/components/op_primer/border_box_table_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ See COPYRIGHT and LICENSE files for more details.

if rows.empty?
component.with_row(scheme: :default) { render_blank_slate }
end

rows.each do |row|
component.with_row(scheme: :default) do
render(row_class.new(row:, table: self))
else
rows.each do |row|
component.with_row(scheme: :default) do
render(row_class.new(row:, table: self))
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
<%=
component_wrapper(class: "work-packages-activities-tab-journals-index-component") do
flex_layout do |journals_index_wrapper_container|
journals_index_wrapper_container.with_row(classes: "work-packages-activities-tab-journals-index-component--journals-inner-container", mb: inner_container_margin_bottom) do
flex_layout(id: insert_target_modifier_id, data: { "test_selector": "op-wp-journals-container" }) do |journals_index_container|
journals_index_wrapper_container.with_row(
classes: "work-packages-activities-tab-journals-index-component--journals-inner-container",
mb: inner_container_margin_bottom
) do
flex_layout(id: insert_target_modifier_id,
data: { test_selector: "op-wp-journals-container" }) do |journals_index_container|
if empty_state?
journals_index_container.with_row(mt: 2, mb: 3) do
render(
WorkPackages::ActivitiesTab::Journals::EmptyComponent.new()
WorkPackages::ActivitiesTab::Journals::EmptyComponent.new
)
end
end

journals.each do |journal|
journals_index_container.with_row do
render(
WorkPackages::ActivitiesTab::Journals::ItemComponent.new(journal:, filter:)
)
render(WorkPackages::ActivitiesTab::Journals::ItemComponent.new(
journal:, filter:,
grouped_emoji_reactions: wp_journals_grouped_emoji_reactions[journal.id]
))
end
end
end
end
journals_index_wrapper_container.with_row(classes: "work-packages-activities-tab-journals-index-component--stem-connection") unless empty_state? || journal_sorting == "desc"

unless empty_state? || journal_sorting_desc?
journals_index_wrapper_container
.with_row(classes: "work-packages-activities-tab-journals-index-component--stem-connection")
end
end
end
%>
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def journal_sorting
User.current.preference&.comments_sorting || "desc"
end

def journal_sorting_desc?
journal_sorting == "desc"
end

def journals
work_package.journals.includes(:user, :notifications).reorder(version: journal_sorting)
end
Expand All @@ -67,12 +71,16 @@ def journal_with_notes
journals.where.not(notes: "")
end

def wp_journals_grouped_emoji_reactions
@wp_journals_grouped_emoji_reactions ||= Journal.grouped_work_package_journals_emoji_reactions(work_package)
end

def empty_state?
filter == :only_comments && journal_with_notes.empty?
end

def inner_container_margin_bottom
if journal_sorting == "desc"
if journal_sorting_desc?
3
else
0
Expand Down
Loading
Loading