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-10-21-2 #9177

Merged
merged 58 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
7e56850
Change about box to only show CTAs and participation avatars
EdwinKato Oct 15, 2024
6001cde
Translations updated by CI (extract-intl)
Oct 15, 2024
015651e
Remove dead code
EdwinKato Oct 15, 2024
e1ba296
Remove unused strings
EdwinKato Oct 15, 2024
aa78def
Change to hide participation avatars
EdwinKato Oct 15, 2024
f00a4b9
Change id
EdwinKato Oct 15, 2024
46651de
Translations updated by CI (extract-intl)
Oct 15, 2024
6dac261
Remove corresponding e2e references in tests
EdwinKato Oct 15, 2024
3deec81
Update structure file
EdwinKato Oct 15, 2024
b123175
Fix failing tests
EdwinKato Oct 15, 2024
2e9d266
Change getPeriodRemainingUntil to consider the tenant timezone
EdwinKato Oct 17, 2024
bd9f717
Pass tenant timezone in AdminInitiativeContent
EdwinKato Oct 17, 2024
2d76ce0
Pass tenant timezone in PhaseTimeLeft
EdwinKato Oct 17, 2024
0fc5310
Pass tenantTimezone when getting time left in Proposed
EdwinKato Oct 17, 2024
b8861bf
Merge branch 'master' into TAN-2698-fix-difference-on-dates-because-o…
EdwinKato Oct 17, 2024
0078fea
Merge branch 'master' into TAN-2804-about-box-improvements
EdwinKato Oct 17, 2024
e8e19cf
Merge branch 'master' into TAN-2804-about-box-improvements
EdwinKato Oct 17, 2024
e67d83c
Merge branch 'master' into TAN-2804-about-box-improvements
EdwinKato Oct 21, 2024
13f3a32
Translations updated by CI (extract-intl)
Oct 21, 2024
b41e169
Use better variables
EdwinKato Oct 21, 2024
5ddc8b4
[TAN-2851] Fixed master template generation
jamesspeake Oct 21, 2024
3f096e5
Merge pull request #9173 from CitizenLabDotCo/TAN-2851-master-templat…
jamesspeake Oct 21, 2024
e393c02
Merge branch 'master' into TAN-2698-fix-difference-on-dates-because-o…
EdwinKato Oct 21, 2024
9e76edc
Merge branch 'master' into TAN-2804-about-box-improvements
EdwinKato Oct 21, 2024
9efb879
Switch CTAs such that primary is alwasy on top
EdwinKato Oct 21, 2024
c7a85b2
Translations updated by CI (extract-intl)
Oct 21, 2024
5bda0d5
Merge pull request #9136 from CitizenLabDotCo/TAN-2698-fix-difference…
EdwinKato Oct 21, 2024
5ba5032
Fix hiding particpation avatars
EdwinKato Oct 21, 2024
e78d703
[TAN-2853] Added additional English profanity terms
jamesspeake Oct 21, 2024
7cc9e63
Merge pull request #9112 from CitizenLabDotCo/TAN-2804-about-box-impr…
EdwinKato Oct 21, 2024
1402e09
Merge pull request #9176 from CitizenLabDotCo/TAN-2853-update-profani…
jamesspeake Oct 21, 2024
60f07f1
New translations en.json (French)
cl-dev-bot Oct 21, 2024
8d16e6e
New translations en.json (Spanish)
cl-dev-bot Oct 21, 2024
5efbc89
New translations en.json (Arabic)
cl-dev-bot Oct 21, 2024
a489695
New translations en.json (Danish)
cl-dev-bot Oct 21, 2024
def2e2f
New translations en.json (German)
cl-dev-bot Oct 21, 2024
509fa38
New translations en.yml (Dutch)
cl-dev-bot Oct 21, 2024
14aab8d
New translations en.json (Dutch)
cl-dev-bot Oct 21, 2024
57035cb
New translations en.json (Punjabi)
cl-dev-bot Oct 21, 2024
4eb6eaa
New translations en.json (Polish)
cl-dev-bot Oct 21, 2024
4775ee8
New translations en.json (Serbian (Cyrillic))
cl-dev-bot Oct 21, 2024
52a246d
New translations en.json (Swedish)
cl-dev-bot Oct 21, 2024
009b0f2
New translations en.json (Turkish)
cl-dev-bot Oct 21, 2024
53bbb5e
New translations en.json (Urdu (Pakistan))
cl-dev-bot Oct 21, 2024
3345396
New translations en.json (Portuguese, Brazilian)
cl-dev-bot Oct 21, 2024
1502550
New translations en.json (Spanish, Chile)
cl-dev-bot Oct 21, 2024
f2128fe
New translations en.json (Latvian)
cl-dev-bot Oct 21, 2024
6c67c5e
New translations en.json (English, Canada)
cl-dev-bot Oct 21, 2024
e58ca10
New translations en.json (English, United Kingdom)
cl-dev-bot Oct 21, 2024
d1bb1e3
New translations en.json (Serbian (Latin))
cl-dev-bot Oct 21, 2024
4bc097e
New translations en.yml (Dutch, Belgium)
cl-dev-bot Oct 21, 2024
06a0640
New translations en.json (Dutch, Belgium)
cl-dev-bot Oct 21, 2024
467c864
New translations en.json (English, Ireland)
cl-dev-bot Oct 21, 2024
c55862e
New translations en.json (French, Belgium)
cl-dev-bot Oct 21, 2024
72de5e7
New translations en.json (Acholi)
cl-dev-bot Oct 21, 2024
3518f6b
New translations en.json (Acholi)
cl-dev-bot Oct 21, 2024
85af90d
New translations en.json (Norwegian Bokmal)
cl-dev-bot Oct 21, 2024
2da4a9b
Merge pull request #9178 from CitizenLabDotCo/l10n_master
EdwinKato Oct 21, 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
16 changes: 15 additions & 1 deletion back/config/blocked_words/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ cyberfucked
cyberfucker
cyberfuckers
cyberfucking
darkie
darky
d1ck
dick
dickhead
Expand Down Expand Up @@ -154,6 +156,8 @@ muther
mutherfucker
n1gga
n1gger
n1ggers
n1gger5
nigg3r
nigg4h
nigga
Expand All @@ -162,8 +166,16 @@ niggas
niggaz
nigger
niggers
nigger5
numbnuts
nutsack
paki
pak1
pakis
paki5
pak15
pakki
pakkis
p0rn
penisfucker
phonesex
Expand Down Expand Up @@ -239,4 +251,6 @@ w00se
wank
wanker
wanky
whore
whore
yid
yids
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def self.format_for_deserializer!(template)
def serialize_models
email_campaigns = EmailCampaigns::Campaign.manual
groups = Group.where(membership_type: 'manual')
ideas = Idea.published
ideas = Idea.submitted_or_published
initiatives = Initiative.published
users = User.where('invite_status IS NULL OR invite_status != ?', 'pending')

Expand Down
2 changes: 1 addition & 1 deletion back/engines/free/email_campaigns/config/locales/nl-BE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ nl-BE:
main_header: '%{firstName} noemde je in een interne reactie.'
preheader: '%{authorNameFull} noemde je in een interne reactie.'
moderator_digest:
subject: 'Je weekoverzicht als projectbeheerder van %{time}'
subject: 'Je weekoverzicht als projectbeheerder van "%{project_title}"'
preheader: 'Het weekoverzicht voor projectbeheerders van %{organizationName}'
title_your_weekly_report: '%{firstName}, je wekelijkse overzicht'
text_introduction: 'Ontdek rond welke ideeën er het meest werd gediscussieerd de afgelopen week. Hieronder kom je te weten wat er gebeurt met je project!'
Expand Down
2 changes: 1 addition & 1 deletion back/engines/free/email_campaigns/config/locales/nl-NL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ nl:
main_header: '%{firstName} noemde je in een interne reactie.'
preheader: '%{authorNameFull} noemde je in een interne reactie.'
moderator_digest:
subject: 'Je weekoverzicht als projectbeheerder van %{time}'
subject: 'Je weekoverzicht als projectbeheerder van "%{project_title}"'
preheader: 'Het weekoverzicht voor projectbeheerders van %{organizationName}'
title_your_weekly_report: '%{firstName}, je wekelijks overzicht'
text_introduction: 'Ontdek rond welke bijdrages er het meest werd gediscussieerd de afgelopen week. Hieronder kom je te weten wat er leeft in je project!'
Expand Down
20 changes: 18 additions & 2 deletions front/app/components/PhaseTimeLeft/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';

import useAppConfiguration from 'api/app_configuration/useAppConfiguration';

import { useIntl } from 'utils/cl-intl';
import { getPeriodRemainingUntil } from 'utils/dateUtils';

Expand All @@ -10,14 +12,28 @@ interface Props {
}

const PhaseTimeLeft = ({ currentPhaseEndsAt }: Props) => {
const { data: appConfiguration } = useAppConfiguration();
const tenantTimezone =
appConfiguration?.data.attributes.settings?.core.timezone;
const { formatMessage } = useIntl();
let timeLeft = getPeriodRemainingUntil(currentPhaseEndsAt, 'weeks');

if (!tenantTimezone) return null;

let timeLeft = getPeriodRemainingUntil(
currentPhaseEndsAt,
tenantTimezone,
'weeks'
);
let timeLeftMessage = messages.xWeeksLeft;

// If less than 2 weeks left
if (timeLeft < 2) {
// Get timeLeft in days
timeLeft = getPeriodRemainingUntil(currentPhaseEndsAt, 'days');
timeLeft = getPeriodRemainingUntil(
currentPhaseEndsAt,
tenantTimezone,
'days'
);
timeLeftMessage = messages.xDayLeft;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import useCraftComponentDefaultPadding from '../../useCraftComponentDefaultPaddi
import messages from './messages';

type AboutBoxProps = {
hideParticipationNumbers?: boolean;
hideParticipationAvatars?: boolean;
};

const AboutBox = ({ hideParticipationNumbers }: AboutBoxProps) => {
const AboutBox = ({ hideParticipationAvatars }: AboutBoxProps) => {
const { projectId, slug } = useParams() as {
projectId: string;
slug: string;
Expand All @@ -36,7 +36,7 @@ const AboutBox = ({ hideParticipationNumbers }: AboutBoxProps) => {
{projectID && (
<ProjectInfoSideBar
projectId={projectID}
hideParticipationNumbers={hideParticipationNumbers}
hideParticipationAvatars={hideParticipationAvatars}
/>
)}
</Box>
Expand All @@ -47,23 +47,23 @@ const AboutBoxSettings = () => {
const { formatMessage } = useIntl();
const {
actions: { setProp },
hideParticipationNumbers,
hideParticipationAvatars,
} = useNode((node) => ({
hideParticipationNumbers: node.data.props.hideParticipationNumbers,
hideParticipationAvatars: node.data.props.hideParticipationAvatars,
id: node.id,
}));

return (
<Box background={colors.white} my="32px">
<Toggle
checked={hideParticipationNumbers}
checked={hideParticipationAvatars}
onChange={() => {
setProp(
(props: AboutBoxProps) =>
(props.hideParticipationNumbers = !hideParticipationNumbers)
(props.hideParticipationAvatars = !hideParticipationAvatars)
);
}}
label={formatMessage(messages.hideParticipationNumbersText)}
label={formatMessage(messages.hideParticipationAvatarsText)}
/>
</Box>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default defineMessages({
id: 'app.containers.admin.ContentBuilder.participationBox',
defaultMessage: 'Participation Box',
},
hideParticipationNumbersText: {
id: 'app.containers.admin.ContentBuilder.hideParticipationNumbersText',
defaultMessage: 'Hide participation numbers',
hideParticipationAvatarsText: {
id: 'app.containers.admin.ContentBuilder.hideParticipationAvatarsText',
defaultMessage: 'Hide participation avatars',
},
});
Loading