Skip to content

Commit c32b53e

Browse files
committed
feat: add config for summary and workqueues
1 parent 6bfc039 commit c32b53e

File tree

1 file changed

+107
-0
lines changed

1 file changed

+107
-0
lines changed

src/form/tennis-club-membership.ts

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,113 @@ export const tennisClubMembershipEvent = defineConfig({
1818
description: 'This is what this event is referred as in the system',
1919
id: 'event.tennis-club-membership.label'
2020
},
21+
summary: {
22+
title: {
23+
defaultMessage: '{applicant.firstname} {applicant.surname}',
24+
description: 'This is the title of the summary',
25+
id: 'event.tennis-club-membership.summary.title'
26+
},
27+
fields: [
28+
{
29+
id: 'applicant.firstname'
30+
},
31+
{
32+
id: 'applicant.surname'
33+
},
34+
{
35+
id: 'recommender.firstname'
36+
},
37+
{
38+
id: 'recommender.surname'
39+
},
40+
{
41+
id: 'recommender.id'
42+
}
43+
]
44+
},
45+
workqueues: [
46+
{
47+
id: 'in-progress',
48+
title: {
49+
defaultMessage: 'In progress',
50+
description: 'Label for in progress workqueue',
51+
id: 'event.tennis-club-membership.workqueue.in-progress.label'
52+
},
53+
fields: [
54+
{
55+
id: 'applicant.firstname'
56+
},
57+
{
58+
id: 'event.type'
59+
},
60+
{
61+
id: 'event.createdAt'
62+
},
63+
{
64+
id: 'event.modifiedAt'
65+
}
66+
],
67+
filters: [
68+
{
69+
status: ['CREATED']
70+
}
71+
]
72+
},
73+
{
74+
id: 'ready-for-review',
75+
title: {
76+
defaultMessage: 'Ready for review',
77+
description: 'Label for in review workqueue',
78+
id: 'event.tennis-club-membership.workqueue.in-review.label'
79+
},
80+
fields: [
81+
{
82+
id: 'applicant.firstname'
83+
},
84+
{
85+
id: 'event.type'
86+
},
87+
{
88+
id: 'event.createdAt'
89+
},
90+
{
91+
id: 'event.modifiedAt'
92+
}
93+
],
94+
filters: [
95+
{
96+
status: ['DECLARED']
97+
}
98+
]
99+
},
100+
{
101+
id: 'registered',
102+
title: {
103+
defaultMessage: 'Ready to print',
104+
description: 'Label for registered workqueue',
105+
id: 'event.tennis-club-membership.workqueue.registered.label'
106+
},
107+
fields: [
108+
{
109+
id: 'applicant.firstname'
110+
},
111+
{
112+
id: 'event.type'
113+
},
114+
{
115+
id: 'event.createdAt'
116+
},
117+
{
118+
id: 'event.modifiedAt'
119+
}
120+
],
121+
filters: [
122+
{
123+
status: ['REGISTERED']
124+
}
125+
]
126+
}
127+
],
21128
actions: [
22129
{
23130
type: 'DECLARE',

0 commit comments

Comments
 (0)