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 2024-08-01 #8558

Merged
merged 128 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
3bf320e
[TAN-2292] Basic POC
jinjagit Jul 15, 2024
7d25665
[TAN-2292] Fix tests: include map_config in expected page responses
jinjagit Jul 15, 2024
55d9bb4
[TAN-2292] Add test of setting page map_config with update_all
jinjagit Jul 15, 2024
f21f81c
[TAN-2292] Add test of update_all request with absent map_config_id
jinjagit Jul 15, 2024
8c1471f
Merge pull request #8424 from CitizenLabDotCo/TAN-2292-BE-add-map-con…
jinjagit Jul 15, 2024
dde5007
[TAN-2318] Add field to db table & migrate
jinjagit Jul 19, 2024
0737e7b
[TAN-2318] Update page custom_fields page_layouts on migrate
jinjagit Jul 19, 2024
63f6fdd
[TAN-2318] Permit attribute as para in IdeaCustomFieldsController.upd…
jinjagit Jul 19, 2024
bd4d1e8
[TAN-2318] Basic model validations
jinjagit Jul 19, 2024
106256f
Merge branch 'master' into TAN-2230-map-survey-page-layout-feature
jinjagit Jul 19, 2024
efd615a
[TAN-2318] Add basic model validation tests
jinjagit Jul 19, 2024
9a8c481
WIP survey map page back office and desktop front office
amanda-anderson Jul 19, 2024
44009be
Merge branch 'TAN-2230-map-survey-page-layout-feature' of github.com:…
amanda-anderson Jul 19, 2024
ce610f5
Translations updated by CI (extract-intl)
Jul 19, 2024
5992c19
[TAN-2318] Fix tests broken by changes
jinjagit Jul 19, 2024
4d19938
Merge branch 'TAN-2230-map-survey-page-layout-feature' into TAN-2318-…
jinjagit Jul 19, 2024
16fb6bd
[TAN-2230] Include map_config_id in page options in input_ui_schema
jinjagit Jul 19, 2024
1470129
[TAN-2230] Remove debug output
jinjagit Jul 19, 2024
4680a8c
[TAN-2230] Remove dev comments
jinjagit Jul 19, 2024
5b7c1ef
Merge branch 'TAN-2230-map-survey-page-layout-feature' into TAN-2318-…
jinjagit Jul 21, 2024
4a2d1d6
[TAN-2318] Fix unrelated tests that fail on Sundays
jinjagit Jul 21, 2024
a96be5b
[TAN-2318] Add page_layout to ui_schema for Page
jinjagit Jul 21, 2024
a72dc12
Merge pull request #8461 from CitizenLabDotCo/TAN-2318-add-page-layou…
jinjagit Jul 21, 2024
87c1645
[TAN-2230] Add page_layout to project copy & tenant templating
jinjagit Jul 21, 2024
8c5dd9f
[TAN-2230] Include page map_configs in survey copy/duplicate
jinjagit Jul 21, 2024
bf9d911
Load in correct map config and move anonymous posting warning into CL…
amanda-anderson Jul 22, 2024
86e1a09
Add draggable divider
amanda-anderson Jul 22, 2024
6814da5
Only show draggable divider on mobile
amanda-anderson Jul 22, 2024
665f736
Merge branch 'master' into TAN-2230-map-survey-page-layout-feature
jinjagit Jul 22, 2024
0ae2dce
Small tweaks
amanda-anderson Jul 22, 2024
de19bfe
Merge branch 'TAN-2230-map-survey-page-layout-feature' of github.com:…
amanda-anderson Jul 22, 2024
3fcc805
Rename variables
amanda-anderson Jul 23, 2024
8b94180
Codecleanup
amanda-anderson Jul 23, 2024
e39ae01
Fix issue with map pages without a custom map config
amanda-anderson Jul 23, 2024
8aa6315
Code cleanup
amanda-anderson Jul 23, 2024
4681c5e
Cleanup
amanda-anderson Jul 23, 2024
a9dc0e1
Merge branch 'master' into TAN-2230-map-survey-page-layout-feature
amanda-anderson Jul 24, 2024
61ea3d9
Fixes from code review
amanda-anderson Jul 24, 2024
692a7b7
Translations updated by CI (extract-intl)
Jul 24, 2024
cc1b952
Small tweaks
amanda-anderson Jul 25, 2024
c261e3d
Merge branch 'TAN-2230-map-survey-page-layout-feature' of github.com:…
amanda-anderson Jul 25, 2024
a0fa6d7
Update comment
amanda-anderson Jul 25, 2024
a20c3ac
Move the pagesRef up one level
amanda-anderson Jul 25, 2024
b8a9a29
Remove zoom buttons on mobile map
amanda-anderson Jul 25, 2024
230be76
use memo for initial map data
amanda-anderson Jul 25, 2024
068cbeb
Code cleanup
amanda-anderson Jul 25, 2024
1dcc542
Remove deadcode
amanda-anderson Jul 25, 2024
1faa953
Rerender map view on page change
amanda-anderson Jul 26, 2024
5c520f5
Merge branch 'master' into TAN-2230-map-survey-page-layout-feature
amanda-anderson Jul 30, 2024
8a83df3
[TAN-2230] Add BE for form_mapping feature flag
jinjagit Jul 31, 2024
9f7d10b
Merge branch 'master' into TAN-2230-map-survey-page-layout-feature
jinjagit Jul 31, 2024
4696323
Merge branch 'master' into TAN-2230-map-survey-page-layout-feature
amanda-anderson Jul 31, 2024
70cac8a
Merge branch 'TAN-2230-map-survey-page-layout-feature' of github.com:…
amanda-anderson Jul 31, 2024
3f44160
Move statuses to core
IvaKop Jul 31, 2024
ad3ced5
Merge branch 'TAN-2216-proposal-statuses' into TAN-2416/move-statuses…
IvaKop Jul 31, 2024
1a5e2d5
Fix build
IvaKop Jul 31, 2024
079ea40
Merge branch 'master' into TAN-2230-map-survey-page-layout-feature
jinjagit Jul 31, 2024
eacf9a9
Add in feature flag
amanda-anderson Jul 31, 2024
47dd780
Fix e2e tests
amanda-anderson Jul 31, 2024
325fd37
[TAN-2330] Reorder new migration
jinjagit Jul 31, 2024
4276268
[TAN-2330] Remove redundant test fixes
jinjagit Jul 31, 2024
cb95c9a
Bump @types/react-helmet from 6.1.6 to 6.1.11 in /front
dependabot[bot] Aug 1, 2024
fce30b8
[TAN-2285] Fix show page for custom email campaigns without an author
adessy Jul 31, 2024
fae828a
Merge pull request #8542 from CitizenLabDotCo/TAN-2285/front-end-cann…
adessy Aug 1, 2024
19e5e61
Merge pull request #8540 from CitizenLabDotCo/TAN-2416/move-statuses-…
IvaKop Aug 1, 2024
86d33bc
Merge pull request #8426 from CitizenLabDotCo/TAN-2230-map-survey-pag…
amanda-anderson Aug 1, 2024
454bd73
New translations en.yml (German)
cl-dev-bot Aug 1, 2024
effd945
New translations en.json (French)
cl-dev-bot Aug 1, 2024
24ab68a
New translations en.json (French)
cl-dev-bot Aug 1, 2024
d459050
New translations en.json (Spanish)
cl-dev-bot Aug 1, 2024
bce7d4d
New translations en.json (Spanish)
cl-dev-bot Aug 1, 2024
de68377
New translations en.json (Arabic)
cl-dev-bot Aug 1, 2024
43f1d36
New translations en.json (Arabic)
cl-dev-bot Aug 1, 2024
5cc7d3d
New translations en.json (Catalan)
cl-dev-bot Aug 1, 2024
057e63b
New translations en.json (Danish)
cl-dev-bot Aug 1, 2024
a869bce
New translations en.json (Danish)
cl-dev-bot Aug 1, 2024
11afd2a
New translations en.json (German)
cl-dev-bot Aug 1, 2024
4ee3657
New translations en.json (German)
cl-dev-bot Aug 1, 2024
5e10255
New translations en.json (Greek)
cl-dev-bot Aug 1, 2024
475463f
New translations en.json (Finnish)
cl-dev-bot Aug 1, 2024
bb86820
New translations en.json (Finnish)
cl-dev-bot Aug 1, 2024
4c22161
New translations en.json (Italian)
cl-dev-bot Aug 1, 2024
94dffcf
New translations en.json (Dutch)
cl-dev-bot Aug 1, 2024
1dab759
New translations en.json (Dutch)
cl-dev-bot Aug 1, 2024
f526460
New translations en.json (Norwegian)
cl-dev-bot Aug 1, 2024
cf86d64
New translations en.json (Norwegian)
cl-dev-bot Aug 1, 2024
64b945d
New translations en.json (Polish)
cl-dev-bot Aug 1, 2024
e6d5979
New translations en.json (Polish)
cl-dev-bot Aug 1, 2024
c764c69
New translations en.json (Serbian (Cyrillic))
cl-dev-bot Aug 1, 2024
1659f37
New translations en.json (Serbian (Cyrillic))
cl-dev-bot Aug 1, 2024
e919e96
New translations en.json (Swedish)
cl-dev-bot Aug 1, 2024
be978c1
New translations en.json (Swedish)
cl-dev-bot Aug 1, 2024
6ee99dc
New translations en.json (Turkish)
cl-dev-bot Aug 1, 2024
bcad592
New translations en.json (Turkish)
cl-dev-bot Aug 1, 2024
21dfd66
New translations en.json (Portuguese, Brazilian)
cl-dev-bot Aug 1, 2024
c3733ec
New translations en.json (Portuguese, Brazilian)
cl-dev-bot Aug 1, 2024
110bed1
New translations en.json (Spanish, Chile)
cl-dev-bot Aug 1, 2024
fe58fd6
New translations en.json (Spanish, Chile)
cl-dev-bot Aug 1, 2024
3713d5b
New translations en.json (Croatian)
cl-dev-bot Aug 1, 2024
6efef1b
New translations en.json (Croatian)
cl-dev-bot Aug 1, 2024
6a5ca22
New translations en.json (Latvian)
cl-dev-bot Aug 1, 2024
b058864
New translations en.json (Latvian)
cl-dev-bot Aug 1, 2024
8390a91
New translations en.yml (Welsh)
cl-dev-bot Aug 1, 2024
b956c78
New translations en.yml (Welsh)
cl-dev-bot Aug 1, 2024
81df16b
New translations en.yml (Welsh)
cl-dev-bot Aug 1, 2024
f289fb0
New translations en.json (English, Canada)
cl-dev-bot Aug 1, 2024
c51e2c5
New translations en.json (English, Canada)
cl-dev-bot Aug 1, 2024
841d965
New translations en.json (English, United Kingdom)
cl-dev-bot Aug 1, 2024
f2685b0
New translations en.json (English, United Kingdom)
cl-dev-bot Aug 1, 2024
8267e1d
New translations en.yml (Welsh)
cl-dev-bot Aug 1, 2024
b675cd7
New translations en.json (Welsh)
cl-dev-bot Aug 1, 2024
4286f39
New translations en.json (Welsh)
cl-dev-bot Aug 1, 2024
54c7aeb
New translations en.yml (Welsh)
cl-dev-bot Aug 1, 2024
70da8ae
New translations en.yml (Welsh)
cl-dev-bot Aug 1, 2024
82a2614
New translations en.json (Luxembourgish)
cl-dev-bot Aug 1, 2024
9b9ea2f
New translations en.json (Serbian (Latin))
cl-dev-bot Aug 1, 2024
82b0f2d
New translations en.json (Serbian (Latin))
cl-dev-bot Aug 1, 2024
5271997
New translations en.json (Dutch, Belgium)
cl-dev-bot Aug 1, 2024
0ea1370
New translations en.json (Dutch, Belgium)
cl-dev-bot Aug 1, 2024
5e298a5
New translations en.json (English, Ireland)
cl-dev-bot Aug 1, 2024
a4e5bd3
New translations en.json (English, Ireland)
cl-dev-bot Aug 1, 2024
513c09c
New translations en.json (French, Belgium)
cl-dev-bot Aug 1, 2024
95d4543
New translations en.json (French, Belgium)
cl-dev-bot Aug 1, 2024
bfeb1f3
New translations en.json (Moroccan Arabic)
cl-dev-bot Aug 1, 2024
a7b9bd5
New translations en.json (Acholi)
cl-dev-bot Aug 1, 2024
e001b49
New translations en.json (Acholi)
cl-dev-bot Aug 1, 2024
795e14f
Merge pull request #8556 from CitizenLabDotCo/l10n_master
amanda-anderson Aug 1, 2024
04e1c0d
Merge pull request #8548 from CitizenLabDotCo/dependabot/npm_and_yarn…
IvaKop Aug 1, 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
4 changes: 4 additions & 0 deletions back/app/models/custom_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# maximum_select_count :integer
# minimum_select_count :integer
# random_option_ordering :boolean default(FALSE), not null
# page_layout :string
#
# Indexes
#
Expand Down Expand Up @@ -59,6 +60,7 @@ class CustomField < ApplicationRecord
].freeze
VISIBLE_TO_PUBLIC = 'public'
VISIBLE_TO_ADMINS = 'admins'
PAGE_LAYOUTS = %w[default map].freeze

validates :resource_type, presence: true, inclusion: { in: FIELDABLE_TYPES }
validates(
Expand All @@ -78,6 +80,8 @@ class CustomField < ApplicationRecord
validates :answer_visible_to, presence: true, inclusion: { in: [VISIBLE_TO_PUBLIC, VISIBLE_TO_ADMINS] }
validates :maximum_select_count, comparison: { greater_than_or_equal_to: 0 }, if: :multiselect?, allow_nil: true
validates :minimum_select_count, comparison: { greater_than_or_equal_to: 0 }, if: :multiselect?, allow_nil: true
validates :page_layout, presence: true, inclusion: { in: PAGE_LAYOUTS }, if: :page?
validates :page_layout, absence: true, unless: :page?

before_validation :set_default_enabled
before_validation :set_default_answer_visible_to
Expand Down
4 changes: 4 additions & 0 deletions back/app/serializers/web_api/v1/custom_field_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class WebApi::V1::CustomFieldSerializer < WebApi::V1::BaseSerializer
object.resource_type == 'User'
}

attribute :page_layout, if: proc { |object, _params|
object.input_type == 'page'
}

attribute :constraints do |object, params|
if params[:constraints]
params[:constraints][object.code&.to_sym] || {}
Expand Down
4 changes: 2 additions & 2 deletions back/app/services/custom_field_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def fields_to_json_schema(fields, locale = 'en')
elsif field.input_type && respond_to?(override_method_type, true)
send(override_method_type, field, locale)
else
send("#{field.input_type}_to_json_schema_field", field, locale)
send(:"#{field.input_type}_to_json_schema_field", field, locale)
end
end
}.tap do |output|
Expand Down Expand Up @@ -68,7 +68,7 @@ def fields_to_ui_schema(fields, locale = 'en')
if field.code && respond_to?(override_method, true)
send(override_method, field, locale)
else
send("#{field.input_type}_to_ui_schema_field", field, locale)
send(:"#{field.input_type}_to_ui_schema_field", field, locale)
end
end.tap do |output|
output['ui:order'] = fields.sort_by { |f| f.ordering || Float::INFINITY }.map(&:key)
Expand Down
4 changes: 2 additions & 2 deletions back/app/services/idea_custom_fields_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def duplicate_all_fields
end
copied_field.options = copied_options

# Duplicate and persist map config if it is a point field
if copied_field.input_type == 'point' && field.map_config
# Duplicate and persist map config for custom_fields that can have an associated map_config
if CustomField::MAP_CONFIG_INPUT_TYPES.include?(copied_field.input_type) && field.map_config
original_map_config = CustomMaps::MapConfig.find(field.map_config.id)
new_map_config = original_map_config.dup
new_map_config.mappable = nil
Expand Down
4 changes: 3 additions & 1 deletion back/app/services/input_ui_schema_generator_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def visit_page(field)
input_type: field.input_type,
id: field.id,
title: multiloc_service.t(field.title_multiloc),
description: description_option(field)
description: description_option(field),
page_layout: field.page_layout,
map_config_id: field&.map_config&.id
},
elements: [
# No elements yet. They will be added after invoking this method.
Expand Down
1 change: 1 addition & 0 deletions back/app/services/project_copy_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def yml_custom_fields(shift_timestamps: 0)
'maximum_select_count' => field.maximum_select_count,
'minimum_select_count' => field.minimum_select_count,
'random_option_ordering' => field.random_option_ordering,
'page_layout' => field.page_layout,
'text_images_attributes' => field.text_images.map do |text_image|
{
'imageable_field' => text_image.imageable_field,
Expand Down
330 changes: 330 additions & 0 deletions back/config/locales/cy-GB.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions back/config/locales/de-DE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ de:
description: "Antworten übermitteln, indem Sie unten auf \"Einreichen\" klicken."
pdf_export:
personal_data: 'Persönliche Daten'
personal_data_explanation_public: "Wir werden Ihren Beitrag an die Online-Beteiligungsplattform von %{organizationName} weiterleiten. Wenn Sie möchten, dass Ihr Name als Autor*in dieses Beitrags angezeigt wird und Sie Aktualisierungen zu Ihrem Beitrag per E-Mail erhalten, füllen Sie bitte die folgenden Felder auf dieser Seite aus und wir erstellen ein Konto für Sie. Ihre E-Mail ist nicht öffentlich und wird nur von %{organizationName} verwendet. Wenn Sie anonym bleiben möchten oder nicht damit einverstanden sind, dass wir Ihre persönlichen Daten auf diese Weise verwenden, können Sie die Felder leer lassen."
personal_data_explanation_private: "Wir werden Ihren Beitrag an die Online-Beteiligungsplattform von %{organizationName}weiterleiten. Wenn Sie Aktualisierungen, die für Ihren Beitrag relevant sind, per E-Mail erhalten möchten, füllen Sie bitte die folgenden Felder auf dieser Seite aus und wir werden ein Konto für Sie anlegen. Ihre Daten sind nicht öffentlich und werden nur von %{organizationName}verwendet. Wenn Sie nicht damit einverstanden sind, dass wir Ihre persönlichen Daten auf diese Weise verwenden, können Sie die Felder leer lassen."
personal_data_explanation_public: "Wir werden Ihren Beitrag auf der Online-Beteiligungsplattform von %{organizationName} veröffentlichen. Wenn Sie möchten, dass Ihr Name als Autor*in dieses Beitrags angezeigt wird und Sie Aktualisierungen zu Ihrem Beitrag per E-Mail erhalten, füllen Sie bitte die folgenden Felder auf dieser Seite aus und wir erstellen ein Konto für Sie. Ihre E-Mail ist nicht öffentlich und wird nur von %{organizationName} verwendet. Wenn Sie anonym bleiben möchten oder nicht damit einverstanden sind, dass wir Ihre persönlichen Daten auf diese Weise verwenden, können Sie die Felder leer lassen."
personal_data_explanation_private: "Wir werden Ihren Beitrag auf der Online-Beteiligungsplattform von %{organizationName} veröffentlichen. Wenn Sie Aktualisierungen, die für Ihren Beitrag relevant sind, per E-Mail erhalten möchten, füllen Sie bitte die folgenden Felder auf dieser Seite aus und wir werden ein Konto für Sie anlegen. Ihre Daten sind nicht öffentlich und werden nur von %{organizationName} verwendet. Wenn Sie nicht damit einverstanden sind, dass wir Ihre persönlichen Daten auf diese Weise verwenden, können Sie die Felder leer lassen."
first_name: 'Vorname'
last_name: 'Nachname'
email_address: 'E-Mail-Adresse'
Expand Down
22 changes: 22 additions & 0 deletions back/db/migrate/20240731181623_add_page_layout_to_custom_fields.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class AddPageLayoutToCustomFields < ActiveRecord::Migration[7.0]
# rubocop:disable Rails/ApplicationRecord
class StubCustomField < ActiveRecord::Base
self.table_name = 'custom_fields'
end
# rubocop:enable Rails/ApplicationRecord

def change
add_column :custom_fields, :page_layout, :string

reversible do |dir|
dir.up do
page_fields = StubCustomField.where(input_type: 'page')
page_fields.update_all(page_layout: 'default')
end

dir.down do
StubCustomField.update_all(page_layout: nil)
end
end
end
end
6 changes: 4 additions & 2 deletions back/db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,8 @@ CREATE TABLE public.custom_fields (
select_count_enabled boolean DEFAULT false NOT NULL,
maximum_select_count integer,
minimum_select_count integer,
random_option_ordering boolean DEFAULT false NOT NULL
random_option_ordering boolean DEFAULT false NOT NULL,
page_layout character varying
);


Expand Down Expand Up @@ -7514,6 +7515,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20240612134240'),
('202407081751'),
('20240722090955'),
('20240729141927');
('20240729141927'),
('20240731181623');


3 changes: 3 additions & 0 deletions back/engines/commercial/analysis/config/locales/cy-GB.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cy:
analysis:
example_tag_n: Tag enghreifftiol %{n}
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
create(:custom_field_option, custom_field: select_field, key: 'yes', title_multiloc: { 'en' => 'Yes' })
create(:custom_field_option, custom_field: select_field, key: 'no', title_multiloc: { 'en' => 'No' })

create(:custom_field, resource: custom_form, key: 'page', input_type: 'page', enabled: true)
create(:custom_field_page, resource: custom_form, key: 'page', enabled: true)

multiselect_field = create(:custom_field, resource: custom_form, key: 'multiselect_field', title_multiloc: { 'en' => 'Multi select field' }, input_type: 'multiselect', enabled: true)
create(:custom_field_option, custom_field: multiselect_field, key: 'this', title_multiloc: { 'en' => 'This' })
create(:custom_field_option, custom_field: multiselect_field, key: 'that', title_multiloc: { 'en' => 'That' })

create(:custom_field, resource: custom_form, key: 'page', input_type: 'page', enabled: true)
create(:custom_field_page, resource: custom_form, key: 'page', enabled: true)

another_select_field = create(:custom_field, resource: custom_form, key: 'another_select_field', title_multiloc: { 'en' => 'Another select field' }, input_type: 'select', enabled: true)
create(:custom_field_option, custom_field: another_select_field, key: 'yes', title_multiloc: { 'en' => 'Yes' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ def self.included(base)
base.has_one :map_config, class_name: 'CustomMaps::MapConfig', as: :mappable, dependent: :destroy
end

MAP_CONFIG_INPUT_TYPES = %w[point page].freeze

def supports_map_config?
input_type == 'point'
MAP_CONFIG_INPUT_TYPES.include? input_type
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.included(base)
base.class_eval do
has_one :map_config, class_name: 'CustomMaps::MapConfig', as: :mappable,
serializer: ::CustomMaps::WebApi::V1::MapConfigSerializer,
if: proc { |object| object.input_type == 'point' }
if: proc { |object| CustomField::MAP_CONFIG_INPUT_TYPES.include? object.input_type }
end
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cy:
email_campaigns:
campaign_type_description:
"inappropriate_content_flagged": Amlygwyd cynnwys amhriodol
admin_campaign_type_description:
"inappropriate_content_flagged": Amlygwyd cynnwys amhriodol - gweinyddwyr
inappropriate_content_flagged:
subject: 'Mae postiad ar eich platfform wedi''i fflagio i''w adolygu'
header_title: 'Mae postiad ar eich platfform wedi''i fflagio i''w adolygu'
comment_author: '%{authorName} sylw:'
idea_author: '%{authorName} cyflwyno post:'
initiative_author: '%{authorName} cyflwynodd gynnig:'
automatically_flagged: >
Canfuwyd yn awtomatig bod y postiad hwn yn cynnwys cynnwys amhriodol. Rydym yn anfon yr hysbysiad hwn atoch fel y gallwch adolygu'r post yn unol â'ch canllawiau safoni eich hun.
how_to_review: >
Os nad yw'r post yn cynnwys cynnwys amhriodol, gallwch gael gwared ar y rhybudd trwy'ch platfform yn y tab Gweithgaredd yn y panel gweinyddol.
cta_review_post: 'Post adolygu'
13 changes: 13 additions & 0 deletions back/engines/commercial/idea_assignment/config/locales/cy-GB.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cy:
email_campaigns:
campaign_type_description:
"idea_assigned_to_you": Neilltuo syniad i mi
admin_campaign_type_description:
"idea_assigned_to_you": Neilltuo syniad - gweinyddwyr a rheolwyr prosiect
idea_assigned_to_you:
by_author: 'gan %{authorName}'
cta_reply_to: 'Rhowch adborth i %{authorName}'
event_description_idea: 'Mae syniad wedi''i neilltuo i chi. Rhowch adborth trwy ysgrifennu diweddariad swyddogol neu trwy newid ei statws.'
main_header: '%{firstName}, mae gennych aseiniad newydd'
subject: 'Mae gennych aseiniad ar y platfform o %{organizationName}'
preheader_idea: 'Mae''r syniad o %{authorName} wedi''i neilltuo i chi'
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def update_all_params
:maximum_select_count,
:minimum_select_count,
:random_option_ordering,
:page_layout,
:map_config_id,
{ title_multiloc: CL2_SUPPORTED_LOCALES,
description_multiloc: CL2_SUPPORTED_LOCALES,
Expand Down
Loading
Loading