Skip to content

Commit 166bb01

Browse files
authored
Merge pull request #77 from City-of-Helsinki/release/1.1.0
Release/1.1.0
2 parents f6738b7 + b1c1678 commit 166bb01

16 files changed

Lines changed: 88 additions & 35 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Change Log
2+
3+
# 1.1.0
4+
5+
- Hide export buttons
6+
- Prevent published occurrence editing
7+
- Enable event participants CHILD_AND_1_OR_2_GUARDIANS choice
8+
- Make text fields render line breaks
9+
10+
# 1.0.1 - 1.0.3
11+
12+
Configuration changes to enable authentication for production environment.
13+
14+
# 1.0.0
15+
16+
First public release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kukkuu-admin",
3-
"version": "1.0.3",
3+
"version": "1.1.0",
44
"private": true,
55
"dependencies": {
66
"@sentry/browser": "^5.20.0",

src/api/generatedTypes/globalTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//==============================================================
99

1010
export enum EventParticipantsPerInvite {
11+
CHILD_AND_1_OR_2_GUARDIANS = "CHILD_AND_1_OR_2_GUARDIANS",
1112
CHILD_AND_GUARDIAN = "CHILD_AND_GUARDIAN",
1213
FAMILY = "FAMILY",
1314
}

src/common/components/dateTimeTextField/DateTimeTextField.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const BoundedTextField = (props: Props & TextFieldProps) => {
1818
const translate = useTranslate();
1919
const classes = useStyles();
2020

21-
const { label, variant, defaultValue } = props;
21+
const { label, variant, defaultValue, disabled } = props;
2222
const {
2323
input: { name, onChange },
2424
meta: { touched, error },
@@ -37,6 +37,7 @@ const BoundedTextField = (props: Props & TextFieldProps) => {
3737
helperText={touched && translate(error)}
3838
required={isRequired}
3939
defaultValue={defaultValue}
40+
disabled={disabled}
4041
/>
4142
);
4243
};
@@ -83,6 +84,7 @@ const DateTimeTextInput = (props: any) => {
8384
defaultValue={defaultDate}
8485
required={props.required}
8586
variant={props.variant}
87+
disabled={props.disabled}
8688
/>
8789
</Grid>
8890
<Grid item md={6}>
@@ -93,6 +95,7 @@ const DateTimeTextInput = (props: any) => {
9395
defaultValue={defaultTime}
9496
required={props.required}
9597
variant={props.variant}
98+
disabled={props.disabled}
9699
/>
97100
</Grid>
98101
</Grid>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import { TextField } from 'react-admin';
3+
import { makeStyles } from '@material-ui/core/styles';
4+
5+
const useStyles = makeStyles({
6+
longTextField: { whiteSpace: 'pre-wrap' },
7+
});
8+
9+
const LongTextField = (props: any) => {
10+
const classes = useStyles();
11+
return <TextField className={classes.longTextField} {...props} />;
12+
};
13+
14+
export default LongTextField;

src/common/translation/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@
105105
"participantsPerInvite": {
106106
"choices": {
107107
"CHILD_AND_GUARDIAN": {
108-
"label": "Child and guardian"
108+
"label": "1 child + 1 adult"
109+
},
110+
"CHILD_AND_1_OR_2_GUARDIANS": {
111+
"label": "1 child + 1–2 adults"
109112
},
110113
"FAMILY": {
111114
"label": "Family"

src/common/translation/fi.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
},
6666
"fields": {
6767
"capacityPerOccurrence": {
68-
"helperText": "Montako ilmoittautumista tapahtumaesiintymään vastaanotetaan. Huomioithan että todellinen osallistujamäärä on kapasiteetti kerrottuna sillä montako henkilöä kutsua kohti tapahtumana voi osallistua.",
68+
"helperText": "Montako ilmoittautumista tapahtumaesiintymään vastaanotetaan. Huomioithan että todellinen osallistujamäärä on kapasiteetti kerrottuna sillä montako henkilöä kutsua kohti tapahtumaan voi osallistua.",
6969
"label": "Esiintymän kapasiteetti"
7070
},
7171
"description": {
@@ -105,7 +105,10 @@
105105
"participantsPerInvite": {
106106
"choices": {
107107
"CHILD_AND_GUARDIAN": {
108-
"label": "Lapsi ja huoltaja"
108+
"label": "1 lapsi + 1 aikuinen"
109+
},
110+
"CHILD_AND_1_OR_2_GUARDIANS": {
111+
"label": "1 lapsi + 1–2 aikuista"
109112
},
110113
"FAMILY": {
111114
"label": "Perhe"

src/domain/authentication/CHANGELOG.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/domain/children/ChildList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const ChildList = (props: any) => {
2525
<CardHeader title={translate('children.list.title')} />
2626
<KukkuuList
2727
bulkActionButtons={false}
28+
exporter={false}
2829
{...props}
2930
pagination={<Pagination rowsPerPageOptions={[20, 100]} />}
3031
perPage={20}

src/domain/events/choices.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ export const participantsPerInviteChoices = [
44
name:
55
'events.fields.participantsPerInvite.choices.CHILD_AND_GUARDIAN.label',
66
},
7+
{
8+
id: 'CHILD_AND_1_OR_2_GUARDIANS',
9+
name:
10+
'events.fields.participantsPerInvite.choices.CHILD_AND_1_OR_2_GUARDIANS.label',
11+
},
712
{
813
id: 'FAMILY',
914
name: 'events.fields.participantsPerInvite.choices.FAMILY.label',

0 commit comments

Comments
 (0)