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

release/0.27 stable bcn #34

Draft
wants to merge 313 commits into
base: release/0.27-stable
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
313 commits
Select commit Hold shift + click to select a range
734cc71
Backport "Fix Devise flash messages translation" to v0.26 (#9043)
eliegaboriau Mar 21, 2022
590aa1a
Backport "Disable new conversation next button when no users selected…
Mar 21, 2022
c7e0ead
Backport "Fix initiatives signatures issues" to v0.26 (#8974)
andreslucena Mar 21, 2022
017c7b9
Backport "Fix for endorsed_by with other user group's member" to v0.2…
andreslucena Mar 22, 2022
d34b792
Backport "Fix footer actions caching on proposals' card" to v0.26 (#9…
andreslucena Mar 22, 2022
bde34b0
New Crowdin updates (#8898)
decidim-bot Mar 22, 2022
7725da4
Backport "Add missing 'Locale' string in i18n in selective newsletter…
andreslucena Mar 22, 2022
4d4c136
Backport "Fix social share button sharing" to v0.26 (#9065)
andreslucena Mar 22, 2022
f1a2033
Backport "Use published meetings scope on processes landing and propo…
andreslucena Mar 22, 2022
9a9c1e3
Backport "Require omniauth/rails_csrf_protection explicitly" to v0.26…
andreslucena Mar 22, 2022
234c0ee
Backport "Fix amendable events title" to v0.26 (#9079)
andreslucena Mar 23, 2022
43295a3
Backport "Create admin log records when proposals are imported from a…
Mar 23, 2022
d1a3860
Backport "Add noreferrer and ugc to links" to v0.26 (#9078)
andreslucena Mar 23, 2022
4aa04ab
Backport "Fix submit in meetings admin form" to v0.26 (#9076)
andreslucena Mar 23, 2022
cce6cac
Backport "Fix session cookie SameSite policy" to v0.26 (#9059)
ahukkanen Mar 24, 2022
2240f14
Backport "Fix cache URLs on cards" to v0.26 (#9074)
andreslucena Mar 24, 2022
450f8d8
Fix Twitter hashtag search when it starts with a number (#9039) (#9075)
andreslucena Mar 24, 2022
193fe63
Prepare v0.26.1 release (#9088)
andreslucena Mar 24, 2022
4e14426
Backport "Fix timeout in comment view and during meetings" to v0.26 (…
Mar 25, 2022
f920e99
Backport "Dont add external link container inside editor" to v0.26 (#…
Mar 29, 2022
de63857
focus mode integration
microstudi Apr 5, 2022
9fa85fe
Add base URI to meta image URLs (#9125) (#9153)
Apr 12, 2022
ed847db
Add timeline entry title in Accountability projects (#9127)
microstudi May 5, 2022
10680bf
fix rails 6.0 migrations
microstudi May 5, 2022
b3d6fa0
Remove 'edit link' in topbar for initiative's authors (#8997) (#9239)
andreslucena May 10, 2022
0ede247
Clarify message to user when checking census (#9112) (#9240)
andreslucena May 10, 2022
8777547
Fix processes count in processes group title cell (#9087) (#9242)
andreslucena May 10, 2022
d6152e9
Improve wording when casting your vote (#9098) (#9243)
andreslucena May 10, 2022
619a815
Add 'not answered' as a possible answer in proposals (#9021) (#9246)
andreslucena May 10, 2022
d2eceaa
Fix meetings minutes migration (#9148) (#9247)
andreslucena May 10, 2022
bdf06b5
Fix absolute urls on 'create assembly member' and proposals' 'collabo…
andreslucena May 10, 2022
8a67c0d
Fix components navbar in consultations mobile (#9155) (#9249)
andreslucena May 10, 2022
0ee3442
Move modal to body and fix condition (#9158) (#9250)
andreslucena May 10, 2022
56a89bc
Do not send upcoming meeting notification for hidden or withdrawn mee…
andreslucena May 10, 2022
112e10b
Show only current organization in verification conflicts with multite…
andreslucena May 10, 2022
0afc65b
Send email to newly added trustees (#9100) (#9253)
andreslucena May 10, 2022
cc87297
Fix registration type field highlighted in admin meeting creation for…
andreslucena May 10, 2022
8f9c7e2
Fix contradictory form errors on survey form (#9186) (#9257)
andreslucena May 10, 2022
eb2bf77
Add edit and delete actions in InitiativeType admin table (#9151) (#9…
andreslucena May 10, 2022
c3c8d53
Clarify unregistered answers on surveys behavior (#9205) (#9261)
andreslucena May 10, 2022
b8e5a91
Don't delegate preview methods to controller. (#9097) (#9262)
andreslucena May 10, 2022
8eec23d
Fix initiative print link, margin, and organization logo (#9162) (#9263)
andreslucena May 10, 2022
3dcf94c
Remove show more button on elections (#9103) (#9264)
andreslucena May 10, 2022
b7d97a1
Fix survey activity log entries (#9173) (#9265)
andreslucena May 10, 2022
0e70f28
Remove beforeunload confirmation panel (#9224) (#9266)
andreslucena May 10, 2022
d490c85
Fix newsletters and Decidim Votings (#9188) (#9258)
andreslucena May 10, 2022
4add6ca
Fix notifications where resources are missing (#9183) (#9256)
andreslucena May 10, 2022
d507169
Enforce password validation rules on 'Forgot your password?' form (#9…
andreslucena May 10, 2022
7583904
Fix displaying blocked users in account follow pages (#9164) (#9255)
andreslucena May 10, 2022
9b88136
Fix Leaflet trying to load "infinite amount of tiles" (#9233) (#9269)
andreslucena May 10, 2022
28cb6d8
Backport 'Fix generators specs target branch' to v0.26 (#9290)
ahukkanen May 11, 2022
8ad4ad8
Enforce password validation rules on system admins (#9207) (#9259)
andreslucena May 11, 2022
1c7e7ac
Merge remote-tracking branch 'upstream/release/0.26-stable' into cust…
microstudi May 12, 2022
6d6e8a5
Remove presenters in the meetings admin backoffice (#9052) (#9323)
andreslucena May 19, 2022
598e926
Correctly show trustees and votings menu (#9192) (#9324)
andreslucena May 19, 2022
3b7cab8
Fix hashtag parsing on URLs with fragments (#9221) (#9326)
andreslucena May 19, 2022
8bc82e9
Add missing events locales (#9199) (#9327)
andreslucena May 19, 2022
716e093
Make conference's partners logos always mandatory (#9214) (#9328)
andreslucena May 19, 2022
cc0f3bb
Fix margin around warning box (#9278) (#9329)
andreslucena May 19, 2022
23d1675
Hide more information link when there's no description on an election…
andreslucena May 19, 2022
4797136
Apply crowdin feedback (#9301) (#9333)
andreslucena May 19, 2022
a1dfc93
Backport 'Don't show deleted resources in last activities ' to v0.26 …
andreslucena May 24, 2022
630a928
Fix translations (#9102) (#9343)
andreslucena May 24, 2022
47f5586
Allow to renew expired verifications (if renewable) (#8192) (#9344)
andreslucena May 24, 2022
58f1cd5
Backport 'Add error message when adding question and election has sta…
ahukkanen Jun 9, 2022
dbc4c1f
Backport 'Fix user interests' to v0.26 (#9406)
ahukkanen Jun 9, 2022
63da9b6
Backport 'Fix regular expression on census check' to v0.26 (#9408)
ahukkanen Jun 9, 2022
bbcd5bb
Backport 'Enforce YYYYmmdd format in birthdate when uploading census'…
ahukkanen Jun 9, 2022
e620e9d
Backport 'Return 404 when there isn't a question' to v0.26 (#9414)
ahukkanen Jun 9, 2022
9eb0672
Backport 'Return 404 when there isn't a consultation' to v0.26 (#9413)
ahukkanen Jun 9, 2022
8bf5e02
Backport 'Return 404 when there isn't a voting in elections_log' to v…
ahukkanen Jun 9, 2022
31d3de7
Backport 'Fix proposals creation with Participatory Texts ' to v0.26 …
ahukkanen Jun 9, 2022
e3bc0c9
Backport 'Fix ActionLog when a ballot style is deleted' to v0.26 (#9411)
ahukkanen Jun 9, 2022
913a23f
Backport 'Only show that the code can be requested via SMS if its tru…
ahukkanen Jun 9, 2022
4d3f1ff
Backport 'Add missing translation keys proposals import and proposals…
ahukkanen Jun 9, 2022
b9783f9
Backport 'Fix HTML safe content in election voting' to v0.26 (#9405)
ahukkanen Jun 10, 2022
a6bddc3
Backport 'Fix for internal links not displaying on page title' to v0.…
ahukkanen Jun 10, 2022
807257d
Prepare v0.26.2 release (#9426)
ahukkanen Jun 13, 2022
36564c9
New Crowdin updates (#9069)
decidim-bot Jun 14, 2022
66ef2cf
New Crowdin updates (#9432)
decidim-bot Jun 14, 2022
8c4b546
Backport 'Fix invalid translation in spec' to v0.26 (#9435)
ahukkanen Jun 14, 2022
9e199c7
Merge branch 'upstream/release/0.26-stable' into custom/0.26
agustibr Jun 20, 2022
b2c058a
fix(initiatives): admin can manage components
agustibr Jun 22, 2022
4e1df15
fix(initiatives): participants can view components
agustibr Jun 22, 2022
83ac164
Expose map factory (#9425) (#9520)
andreslucena Jul 8, 2022
ac97a94
Capture unhandled errors from JS promises and inform the user (#9430)…
andreslucena Jul 8, 2022
65e824b
Backport 'Remove description from questions in elections' to v0.26 (#…
andreslucena Jul 8, 2022
2a241d9
Return 404 when there isn't an initiative (#9427) (#9523)
andreslucena Jul 8, 2022
3ecb7a3
Fix rollback questionnaire answer when file is invalid (#9361) (#9524)
andreslucena Jul 8, 2022
2104109
Make sure component is published when starting an election (#9358) (#…
andreslucena Jul 8, 2022
93f4b7d
Fix email subject when resource title has special characters (#9392) …
andreslucena Jul 8, 2022
e6b163e
prevent users to validate nicknames/emails taken by user groups (#945…
andreslucena Jul 8, 2022
e110d64
Fix hardcoded hour in election dashboard (#9465) (#9528)
andreslucena Jul 8, 2022
f283420
Fix long word breaking on comments and cards (#9472) (#9529)
andreslucena Jul 8, 2022
010f6a4
Backport 'Fix background-image URLs with weird characters' to v0.26 (…
andreslucena Jul 8, 2022
cef0eca
Fix cache hash on Hightlighted spaces (#9474) (#9536)
andreslucena Jul 8, 2022
6a5996d
Add short format to result date (#9479) (#9540)
andreslucena Jul 8, 2022
e5a91e2
Backport 'Advertise users if BB connection is lost in trustees/admin …
andreslucena Jul 8, 2022
34f61c3
Backport 'Remove the description field from the elections component s…
ahukkanen Jul 11, 2022
568da95
Fix API GraphiQL system spec for 0.26 with newer ChromeDriver (#9556)
ahukkanen Jul 11, 2022
5043f94
Fix email subject when participatory space title is present. (#9573)
andreslucena Jul 13, 2022
2b675ea
Merge branch 'release/0.26-stable' of github.com:decidim/decidim into…
verarojman Jul 14, 2022
677bd35
Fix rubocop offenses
verarojman Jul 14, 2022
581f74e
Fix rubocop offenses
verarojman Jul 14, 2022
62c8ba7
Fix error in date range cell
verarojman Jul 18, 2022
1fd6023
Remove unmatched end tag in .erb
verarojman Jul 19, 2022
0f8993b
Lint js
verarojman Jul 19, 2022
c894c54
Lint scss
verarojman Jul 19, 2022
a411dc2
Normalize locales
verarojman Jul 19, 2022
27d7a41
Fix tests
fblupi Aug 18, 2022
f6152a0
Merge branch 'custom/0.26' of github.com:AjuntamentdeBarcelona/decidi…
fblupi Sep 6, 2022
6a5914f
Backport 'Fix published conferences order' to v0.26 (#9688)
ahukkanen Sep 12, 2022
1e29f6e
Backport 'Fix creation notification when editing a comment ' to v0.26…
ahukkanen Sep 12, 2022
3f28775
Backport 'Remove margin-bottom on votings navigation' to v0.26 (#9692)
ahukkanen Sep 12, 2022
627d6cf
Backport 'Use public link on initiatives mailer' to v0.26 (#9694)
ahukkanen Sep 12, 2022
55020a2
Backport 'Disallow creating grandchildren results' to v0.26 (#9698)
ahukkanen Sep 12, 2022
6e6b645
Backport 'Prevent showing announcement on meetings registrations' to …
ahukkanen Sep 12, 2022
f8405a5
Backport 'Fix for initiative mailer when promoting committee is disab…
ahukkanen Sep 12, 2022
6d22302
Backport 'Improve steps election check page with census' to v0.26 (#9…
ahukkanen Sep 12, 2022
c09d9e8
Backport 'Fix translated attributes field type change' to v0.26 (#9704)
ahukkanen Sep 12, 2022
9240a20
Backport 'Prevent missing ActionLog entries to break the application'…
ahukkanen Sep 12, 2022
e069217
Backport 'Fix publish event on official proposals' to v0.26 (#9708)
ahukkanen Sep 12, 2022
42f923b
Backport 'Add help text for proposals' 'publish answers immediately' …
ahukkanen Sep 12, 2022
8ed1177
Backport 'Return 404 when there isn't a valid component in program' t…
ahukkanen Sep 12, 2022
15e6227
Backport 'Fix budgets seeds on non development apps' to v0.26 (#9719)
ahukkanen Sep 12, 2022
e9f5257
Backport 'Fix creating automatic nicknames when taken by user_groups'…
ahukkanen Sep 12, 2022
1c7d6e0
Backport 'Fix resource endorsed notification with Debates' to v0.26 (…
ahukkanen Sep 12, 2022
2d2bc4f
Backport 'Fix agenda_item association with agenda' to v0.26 (#9728)
ahukkanen Sep 12, 2022
2925151
Backport 'Fix absolute urls on 'managed user error' event' to v0.26 (…
ahukkanen Sep 12, 2022
3ccc162
Backport 'Fix mobile notifications switch component overlaps' to v0.2…
ahukkanen Sep 12, 2022
4dca298
Backport 'Fix blocked user nickname and avatar in user presenter' to …
ahukkanen Sep 12, 2022
085df25
Backport 'Fix form error overlap with character counter in the admin …
ahukkanen Sep 12, 2022
d1717df
Backport 'Fix the endorsement permissions' to v0.26 (#9734)
ahukkanen Sep 12, 2022
3095f97
Backport 'Fix order when filtering Meetings' to v0.26 (#9751)
ahukkanen Sep 12, 2022
68df9c9
Backport 'Fix redundant notification on comments with linked proposal…
ahukkanen Sep 12, 2022
8100f30
Backport 'Make the HERE Map display in the currently selected languag…
ahukkanen Sep 12, 2022
4be25ca
Backport 'Fix admin language selector with more than 4 locales' to v0…
ahukkanen Sep 12, 2022
3630fb9
Backport 'Fix doorkeeper initialization after 5.6.0 release' to v0.26…
ahukkanen Sep 12, 2022
1d94a9c
Backport 'Ignore participatory spaces without models in meetings visi…
microstudi Sep 13, 2022
191d683
Backport 'Fix leaking emails on admin user search controller' to 0.26…
microstudi Sep 13, 2022
16dab73
Backport 'Fix import of images on spaces' to v0.26 (#9803)
ahukkanen Sep 15, 2022
01c6527
Backport 'Update `rokroskar/workflow-run-cleanup-action` GitHub actio…
ahukkanen Sep 15, 2022
fe44de9
Backport 'Split parallel test coverage reports into their own folders…
ahukkanen Sep 15, 2022
44414c4
Backport 'Fix hashtags not recognized at the beginning of the string'…
ahukkanen Sep 15, 2022
1dbb04c
Backport 'Fix version pages showing a HTTP 500 error when the version…
ahukkanen Sep 15, 2022
b32d1dd
Backport 'Fix hidden error messages on the registration form' to v0.2…
ahukkanen Sep 15, 2022
c309668
Backport 'Fix multitenant organizations stats cache' to v0.26 (#9807)
ahukkanen Sep 15, 2022
48a5110
Backport 'Fix initiatives components' to v0.26 (#9825)
ahukkanen Sep 15, 2022
02b096a
New Crowdin updates (#9443)
decidim-bot Sep 16, 2022
e85c208
New Crowdin updates (#9834)
decidim-bot Sep 19, 2022
715fc31
Merge pull request #24 from AjuntamentdeBarcelona/chore/update-custom…
fblupi Sep 19, 2022
da45a25
Fix doorkeeper initialization after 5.6.0 release (#9785)
ahukkanen Sep 12, 2022
59d8cda
Backport 'Improve release process' to v0.26 (#9864)
ahukkanen Sep 28, 2022
41c9804
New Crowdin updates (#9841)
decidim-bot Sep 29, 2022
461d8fc
Prepare 0.26.3 release
ahukkanen Sep 29, 2022
0796c12
Merge branch 'release/0.26-stable' of github.com:decidim/decidim into…
ahukkanen Sep 29, 2022
9de919d
Show user profile on iniciative
fblupi Oct 4, 2022
be68cef
Remove unused language key
fblupi Oct 4, 2022
5e6112a
Add unit test
fblupi Oct 5, 2022
43c6b7c
Merge pull request #25 from AjuntamentdeBarcelona/feat/show-user-prof…
verarojman Oct 5, 2022
1f4a870
Fix initiative authors style
fblupi Oct 5, 2022
2e904af
Merge pull request #26 from AjuntamentdeBarcelona/fix/fix-initiative-…
verarojman Oct 5, 2022
540e5d8
Bump version for Antora (#9919)
andreslucena Oct 25, 2022
c3385d5
Prevent the account edit route through Devise (#9932)
andreslucena Nov 1, 2022
3c9c033
Backport 'Fix unpublished processes shown in the group process count'…
andreslucena Nov 1, 2022
feaf21a
Fix global moderation types not translated (#9937)
andreslucena Nov 1, 2022
e5c1bb7
Fix updating organization settings in case there were errors (#9938)
andreslucena Nov 1, 2022
b228cc7
Backport 'Do not import resources multiple times' to v0.26 (#9942)
andreslucena Nov 1, 2022
5b5423f
Backport 'Fix form answer attachments breaking the answer view' to v0…
andreslucena Nov 1, 2022
a018439
Fix "disappearing" underscores with comments (#9654) (#9949)
andreslucena Nov 1, 2022
b7d9116
Fix editor content saving when the content has only one video (#9951)
andreslucena Nov 1, 2022
d7cdbec
Fix collaborative drafts page when there are errors on the form (#9955)
andreslucena Nov 1, 2022
0ee0f0e
Fix the finite value on the debate form when editing an existing deba…
andreslucena Nov 1, 2022
5f040f4
Backport 'Fix exporting and importing a page component' to v0.26 (#9959)
andreslucena Nov 1, 2022
abe2936
Backport 'Fix importing participatory process from legacy format' to …
andreslucena Nov 1, 2022
eb1c996
Fix duplicate stats on home page and participatory space main page (#…
andreslucena Nov 1, 2022
86d3dd7
Backport 'Address Crowdin feedback' to v0.26 (#9970)
andreslucena Nov 1, 2022
2a9eb03
Backport 'Limit invitation redirects only to paths within the applica…
andreslucena Nov 1, 2022
0ca7e61
Fix initiative sign if the authorization metadata is set to (#9981)
andreslucena Nov 1, 2022
dee96ef
Add missing i18n key in Initiatives (#9983)
andreslucena Nov 1, 2022
b394f9e
Backport 'Fix correct resource linking for amendments' to v0.26 (#9988)
andreslucena Nov 1, 2022
8c97dc6
Fix user sign up with invalid name (#9991)
andreslucena Nov 1, 2022
f5513f6
Make initiatives order translatable (#9995)
andreslucena Nov 1, 2022
b235f93
Make ToS agreement translatable (#9997)
andreslucena Nov 1, 2022
3b3a376
Make Scopes field in debates translatable (#9999)
andreslucena Nov 1, 2022
ee0d9c7
Remove invitations badge (#10001)
andreslucena Nov 1, 2022
50e61df
Backport 'Fix conference invitations' to v0.26 (#10004)
andreslucena Nov 1, 2022
bccf9ba
Fix preserving bold text in the rich text editor when pasting content…
andreslucena Nov 2, 2022
242e79a
Backport 'Add missing active actions on admin navigation menu' to v0.…
andreslucena Nov 2, 2022
d6b9cd1
Fix disappearing sub-lists in rich text editors (#9968)
andreslucena Nov 3, 2022
7ac30fb
Backport 'Define the component import routes, permissions and control…
andreslucena Nov 3, 2022
13fbf28
Backport 'Fix proposal etiquette and length validator with base64 ima…
andreslucena Nov 3, 2022
85204b4
Backport 'Fix importing a page component without a body' to v0.26 (#1…
ahukkanen Nov 4, 2022
a6cac81
Backport 'Refactor cell titles' to v0.26 (#10041)
andreslucena Nov 8, 2022
d852e36
Backport 'Fix moderations for comments that are mapped to deleted res…
andreslucena Nov 8, 2022
d45af01
Backport 'Fix user related absolute URLs' to v0.26 (#9947)
andreslucena Nov 9, 2022
5964b22
Backport 'Fix duplicate user activity records when public spaces have…
andreslucena Nov 9, 2022
0dc107e
Refactor the meeting list item title display (#10047)
andreslucena Nov 9, 2022
d56c33e
Reformat CSV help for import files on Accountability and Proposals (#…
andreslucena Nov 9, 2022
039bbde
Backport 'Fix organization SMTP password not saved (became blank) in …
andreslucena Nov 9, 2022
36cdafd
Backport 'Fix usages of `reorder` and `paginate`' to v0.26 (#10051)
andreslucena Nov 9, 2022
2e28d70
Backport 'Show only ToS acceptance when admin hasn't accepted it' to …
andreslucena Nov 9, 2022
8c613ef
Backport 'Refactor admin listing titles' to v0.26 (#10049)
andreslucena Nov 10, 2022
4bcea0d
Backport 'Fix date/time formats at component forms' to v0.26 (#9953)
andreslucena Nov 10, 2022
cfd24a6
Prepare 0.26.4 release
ahukkanen Nov 14, 2022
49d3660
New Crowdin updates (#9872)
decidim-bot Nov 14, 2022
04ec89f
New Crowdin updates (#10068)
decidim-bot Nov 14, 2022
7ae038a
Fix resource_icon with component or manifest nil
fblupi Nov 15, 2022
eb79021
Add paper_trail to initiatives_votes
fblupi Nov 15, 2022
e226c25
New Crowdin updates (#10070)
decidim-bot Nov 15, 2022
4d3d9c0
Add safe navigator to icon_helper to avoid undefined method error
fblupi Nov 16, 2022
cd6b318
Fix with respond_to? and present?
fblupi Nov 16, 2022
f4cf37e
Merge pull request #28 from AjuntamentdeBarcelona/fix/resource-icon-w…
fblupi Nov 16, 2022
4a3fb9e
Merge pull request #29 from AjuntamentdeBarcelona/feat/add-paper-trai…
fblupi Nov 16, 2022
0bae263
Backport 'Fix: The i18n locales selector is showing a dropdown with 3…
ahukkanen Nov 18, 2022
cf6741f
Merge branch 'release/0.26-stable-bcn' of github.com:AjuntamentdeBarc…
fblupi Nov 24, 2022
b96e90d
Show initiative coauthorships
fblupi Dec 13, 2022
bbcc41b
Fix style
fblupi Dec 14, 2022
b5b4a4e
Fix test
fblupi Dec 19, 2022
64face6
Merge pull request #33 from AjuntamentdeBarcelona/fix/initiative-coau…
rafaelpoza Dec 22, 2022
530a590
Merge branch 'release/0.26-stable-bcn' of github.com:AjuntamentdeBarc…
fblupi Dec 22, 2022
073a850
Remove extra_small class from coauthorships cell
fblupi Dec 22, 2022
e58655f
Merge branch 'release/0.26-stable-bcn' of github.com:AjuntamentdeBarc…
fblupi Dec 22, 2022
1ce9d02
Revent Docker actions to Ubuntu 20.04 due to OpenSSL issues (#10226)
ahukkanen Jan 18, 2023
5884ea4
Merge branch 'release/0.26-stable' of github.com:AjuntamentdeBarcelon…
fblupi Jan 19, 2023
d8d945f
Merge pull request #32 from AjuntamentdeBarcelona/chore/update-custom…
fblupi Feb 7, 2023
1e5757c
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Feb 13, 2023
907e910
Lint
fblupi Feb 14, 2023
3618a20
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Jul 13, 2023
6939e7a
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Jul 26, 2023
d9e42c7
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Jul 26, 2023
e201f49
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Jul 27, 2023
d15f586
Allow iframes on meeting minutes
fblupi Sep 12, 2023
bd158f9
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Sep 20, 2023
1e6d569
Merge branch 'release/0.27-stable-bcn' of github.com:AjuntamentdeBarc…
fblupi Sep 20, 2023
3ac5766
Merge pull request #35 from AjuntamentdeBarcelona/fix/allow-iframes-o…
fblupi Sep 20, 2023
480b479
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Sep 21, 2023
4315d47
Merge branch 'release/0.27-stable-bcn' of github.com:AjuntamentdeBarc…
fblupi Sep 21, 2023
66ec5e3
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Oct 25, 2023
dd0d1ca
Include locales for X
fblupi Oct 25, 2023
fb0ba39
Revert "Allow assembly admins administer children assemblies (#8773)"
fblupi Nov 7, 2023
959bacc
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Nov 15, 2023
9e41746
Revert "Revert "Allow assembly admins administer children assemblies …
fblupi Nov 21, 2023
47cbd67
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Nov 21, 2023
077351f
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Jan 22, 2024
8c79162
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Feb 23, 2024
5d7a06b
Add create authorization to initiative types (#9309)
eliegaboriau Jul 8, 2022
3b077db
Refactor intiative wizard (#10727)
alecslupu May 31, 2023
4bab38e
Add translations for initiative not authorized modal
fblupi Feb 27, 2024
0b7362a
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
fblupi Jun 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/i18n-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ ignore_unused:
- decidim.assemblies.admin.assembly_members.form.explanation
- decidim.assemblies.admin.assembly_members.form.image_guide
- decidim.assemblies.admin.assembly_members.form.non_user_avatar_help
- decidim.initiatives.create_initiative.select_initiative_type.*
- decidim.blogs.admin_log.*
- decidim.templates.admin_log.*
- decidim.forms.upload_help.explanation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ def permissions_context
end

def layout
current_participatory_space_manifest.context(current_participatory_space_context).layout
space_manifest = if current_participatory_space_manifest.is_a? Decidim::ResourceManifest
Decidim.participatory_space_manifests.find { |manifest| manifest.model_class_name == current_participatory_space.class.name }
else
current_participatory_space_manifest
end
space_manifest.context(current_participatory_space_context).layout
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class BudgetInformationModalCell < BaseCell
alias budget model

def more_information
translated_attribute(current_settings.more_information_modal).presence || translated_attribute(settings.more_information_modal)
translated_attribute(current_settings.more_information_modal).presence || translated_attribute(settings.more_information_modal).presence
end

def component_name
Expand Down
1 change: 0 additions & 1 deletion decidim-budgets/app/cells/decidim/budgets/budget_m_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module Budgets
# This cell renders the Medium (:m) budget card
# for an given instance of a Decidim::Budgets::Budget
class BudgetMCell < Decidim::CardMCell
include ActiveSupport::NumberHelper
include Decidim::Budgets::ProjectsHelper

def statuses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class BudgetsHeaderCell < BaseCell
def landing_page_content
translated_attribute(current_settings.landing_page_content).presence || translated_attribute(settings.landing_page_content)
end

def landing_page_instructions
translated_attribute(current_settings.landing_page_instructions).presence || translated_attribute(settings.landing_page_instructions)
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<%= cell "decidim/budgets/project_tags", model, context: { extra_classes: ["tags--project"] } %>
</div>

<% unless voting_finished? %>
<div class="hide-for-medium">
<%= budget_to_currency(model.budget_amount) %>
</div>
<% end %>

<div class="budget-list__data__number budget-list__number hide-for-medium">
<%= cell("decidim/budgets/project_votes_count",
model,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module Budgets
# This cell renders a horizontal project card
# for an given instance of a Project in a budget list
class ProjectListItemCell < Decidim::ViewModel
include ActiveSupport::NumberHelper
include Decidim::LayoutHelper
include Decidim::ActionAuthorizationHelper
include Decidim::Budgets::ProjectsHelper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module Budgets
# This cell renders the Medium (:m) project card
# for an given instance of a Project
class ProjectMCell < Decidim::CardMCell
include ActiveSupport::NumberHelper
include Decidim::Budgets::ProjectsHelper

private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
disable: true,
budget: model.budget_amount,
allocation: resource_allocation,
"redirect-url": resource_path
"redirect-url": budget_projects_path(model.budget)
},
disabled: vote_button_disabled?,
title: vote_button_label do %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module Budgets
# Note that it inherits from `Decidim::Components::BaseController`, which
# override its layout and provide all kinds of useful methods.
class ApplicationController < Decidim::Components::BaseController
helper Decidim::FocusModeHelper
helper_method :current_workflow, :voting_finished?, :voting_open?

def current_workflow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Decidim
module Budgets
# A helper to render order and budgets actions
module ProjectsHelper
include ActiveSupport::NumberHelper
include Decidim::ApplicationHelper
include Decidim::MapHelper

Expand All @@ -16,7 +17,7 @@ def budget_to_currency(budget)

# Return a percentage of the current order budget from the total budget
def current_order_budget_percent
current_order&.budget_percent.to_f.floor
current_order&.budget_percent.to_f.floor.clamp(0, 100)
end

# Return the minimum percentage of the current order budget from the total budget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ $(() => {

let progressPosition = progressRef.getBoundingClientRect().bottom;
if (progressPosition > 0) {
progressFix.classList.remove(progressVisibleClass);
progressFix?.classList?.remove(progressVisibleClass);
} else {
progressFix.classList.add(progressVisibleClass);
progressFix?.classList?.add(progressVisibleClass);
}
}

Expand Down
42 changes: 42 additions & 0 deletions decidim-budgets/app/packs/src/decidim/budgets/projects.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require("src/decidim/focus_mode.js");

$(() => {
const $projects = $("#projects, #project");
const $budgetSummaryTotal = $(".budget-summary__total");
Expand All @@ -12,6 +14,16 @@ $(() => {
event.preventDefault();
};

const allowExitFrom = ($el) => {
if ($el.parents("#loginModal").length > 0) {
return true;
} else if ($el.parents("#authorizationModal").length > 0) {
return true;
}

return false;
}

$voteButton.on("click", "span", () => {
$(".budget-list__action").click();
});
Expand All @@ -32,4 +44,34 @@ $(() => {
cancelEvent(event);
}
});

if ($("#order-progress [data-toggle=budget-confirm]").length > 0) {
const safeUrl = $(".budget-summary").attr("data-safe-url").split("?")[0];
$(document).on("click", "a", (event) => {
if (allowExitFrom($(event.currentTarget))) {
window.exitUrl = null;
} else {
window.exitUrl = event.currentTarget.href;
}
});
$(document).on("submit", "form", (event) => {
if (allowExitFrom($(event.currentTarget))) {
window.exitUrl = null;
} else {
window.exitUrl = event.currentTarget.action;
}
});

window.addEventListener("beforeunload", (event) => {
const currentAllocation = parseInt($budgetSummary.attr("data-current-allocation"), 10);
const exitUrl = window.exitUrl;
window.exitUrl = null;

if (currentAllocation === 0 || (exitUrl && exitUrl.startsWith(safeUrl))) {
return;
}

event.returnValue = true;
});
}
});
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
.budget-summary__total{
margin-bottom: .5rem;

.mini-title{
display: block;

&__strong{
line-height: 1rem;
}
}

@include breakpoint(medium){
align-content: center;
display: flex;

.mini-title:nth-of-type(2){
margin-left: auto;
}
}
}

.budget-summary__progressbox{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
position: relative;
}

.budget-progress .progress-meter{
&:not(&--minimum){
background-color: tint($success, 80%);
}

.progress-meter-text{
color: $body-font-color;
font-size: 1rem;
}
}

.progress-meter--minimum{
background: repeating-linear-gradient(-55deg, rgba(white, .2), rgba(white, .2) 8px, rgba(black, .03) 8px, rgba(black, .03) 16px);
position: absolute;
Expand All @@ -16,4 +27,22 @@
text-align: right;
padding-left: 1rem;
padding-right: .5rem;

@include breakpoint(smallmedium down){
text-align: center;
padding: 0;
left: 0;
}
}

.progress-text-wrapper{
height: 100%;
width: 100%;
display: flex;
align-items: center;
padding: 1em;
}

.progress-text{
font-size: 1em;
}
33 changes: 31 additions & 2 deletions decidim-budgets/app/views/decidim/budgets/budgets/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
<%= render partial: "decidim/shared/component_announcement" %>
<% start_date, end_date = %w(start_date end_date).map { |attribute| current_component.participatory_space.try(:active_step)&.try(attribute) || current_component.participatory_space.try(attribute) } %>
<% instructions = translated_attribute(current_component.current_settings.landing_page_instructions).presence || translated_attribute(current_component.settings.landing_page_instructions) %>

<%= cell("decidim/budgets/budgets_header", current_workflow) %>
<div class="row">
<div class="columns medium-7 mediumlarge-8">
<%= cell("decidim/budgets/budgets_header", current_workflow) %>
<%= cell("decidim/budgets/budgets_list", current_workflow) %>
</div>

<%= cell("decidim/budgets/budgets_list", current_workflow) %>
<% if start_date.present? || instructions.present? %>
<div class="columns section view-side medium-4">
<% if start_date %>
<div class="card extra">
<div class="card__content">
<h3><%= t(".date") %></h3>
<%= cell("decidim/date_range", { start: start_date, end: end_date, extra_classes: "extra__date-container--horizontal" }) %>
</div>
</div>
<% end %>

<% if instructions.present? %>
<div class="card extra">
<div class="card__content">
<h3><%= t(".instructions") %></h3>
<div class="text-left">
<%== instructions %>
</div>
</div>
</div>
<% end %>
</div>
<% end %>
</div>
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
var $orderTotalBudget = $('#order-total-budget');
var $orderRemainingBudget = $('#order-remaining-budget');
var $orderSelectedProjects = $('#order-selected-projects');
var $orderProgress = $('#order-progress');
var $projectItem = $('#project-<%= project.id %>-item');
var $projectBudgetButton = $('#project-<%= project.id %>-budget-button');
var $budgetConfirm = $('#budget-confirm');

morphdom($orderTotalBudget[0], '<%= j(render partial: "decidim/budgets/projects/order_total_budget").strip.html_safe %>');
morphdom($orderRemainingBudget[0], '<%= j(render partial: "decidim/budgets/projects/order_remaining_budget").strip.html_safe %>');
morphdom($orderSelectedProjects[0], '<%= j(render partial: "decidim/budgets/projects/order_selected_projects").strip.html_safe %>');
morphdom($orderProgress[0], '<%= j(render partial: "decidim/budgets/projects/order_progress").strip.html_safe %>');
morphdom($budgetConfirm[0], '<%= j(render partial: "decidim/budgets/projects/budget_confirm").strip.html_safe %>')
Expand All @@ -20,5 +22,3 @@ if ($projectItem.length > 0) {
if ($projectBudgetButton.length > 0) {
morphdom($projectBudgetButton[0], '<%= j(render partial: "decidim/budgets/projects/project_budget_button", locals: { project: project }).strip.html_safe %>');
}

window.DecidimBudgets.checkProgressPosition();
Loading
Loading