@things-factory/announcement 0.0.0-stage → 10.1.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/announcement-watch.ts +109 -0
- package/client/bootstrap.ts +9 -0
- package/client/components/announcement-popup.ts +92 -0
- package/client/components/announcement-receipts.ts +196 -0
- package/client/components/announcement-sheet.ts +214 -0
- package/client/components/audience-picker.ts +221 -0
- package/client/index.ts +1 -0
- package/client/pages/announcement-editor.ts +505 -0
- package/client/pages/announcement-list.ts +200 -0
- package/client/pages/announcement-manage-list.ts +113 -0
- package/client/pages/announcement-view.ts +172 -0
- package/client/route.ts +17 -0
- package/client/tsconfig.json +13 -0
- package/client/utils/announcement-api.ts +142 -0
- package/client/utils/announcement-badge.ts +46 -0
- package/client/utils/announcement-words.ts +26 -0
- package/dist-client/announcement-watch.d.ts +6 -0
- package/dist-client/announcement-watch.js +105 -0
- package/dist-client/announcement-watch.js.map +1 -0
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +8 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/components/announcement-popup.d.ts +20 -0
- package/dist-client/components/announcement-popup.js +98 -0
- package/dist-client/components/announcement-popup.js.map +1 -0
- package/dist-client/components/announcement-receipts.d.ts +30 -0
- package/dist-client/components/announcement-receipts.js +220 -0
- package/dist-client/components/announcement-receipts.js.map +1 -0
- package/dist-client/components/announcement-sheet.d.ts +17 -0
- package/dist-client/components/announcement-sheet.js +224 -0
- package/dist-client/components/announcement-sheet.js.map +1 -0
- package/dist-client/components/audience-picker.d.ts +32 -0
- package/dist-client/components/audience-picker.js +223 -0
- package/dist-client/components/audience-picker.js.map +1 -0
- package/dist-client/index.d.ts +1 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/pages/announcement-editor.d.ts +59 -0
- package/dist-client/pages/announcement-editor.js +523 -0
- package/dist-client/pages/announcement-editor.js.map +1 -0
- package/dist-client/pages/announcement-list.d.ts +54 -0
- package/dist-client/pages/announcement-list.js +209 -0
- package/dist-client/pages/announcement-list.js.map +1 -0
- package/dist-client/pages/announcement-manage-list.d.ts +46 -0
- package/dist-client/pages/announcement-manage-list.js +115 -0
- package/dist-client/pages/announcement-manage-list.js.map +1 -0
- package/dist-client/pages/announcement-view.d.ts +30 -0
- package/dist-client/pages/announcement-view.js +182 -0
- package/dist-client/pages/announcement-view.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +18 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-client/utils/announcement-api.d.ts +149 -0
- package/dist-client/utils/announcement-api.js +52 -0
- package/dist-client/utils/announcement-api.js.map +1 -0
- package/dist-client/utils/announcement-badge.d.ts +4 -0
- package/dist-client/utils/announcement-badge.js +47 -0
- package/dist-client/utils/announcement-badge.js.map +1 -0
- package/dist-client/utils/announcement-words.d.ts +11 -0
- package/dist-client/utils/announcement-words.js +23 -0
- package/dist-client/utils/announcement-words.js.map +1 -0
- package/dist-server/announcement-read.d.ts +6 -0
- package/dist-server/announcement-read.js +45 -0
- package/dist-server/announcement-read.js.map +1 -0
- package/dist-server/attachment-reader.d.ts +1 -0
- package/dist-server/attachment-reader.js +13 -0
- package/dist-server/attachment-reader.js.map +1 -0
- package/dist-server/index.d.ts +2 -0
- package/dist-server/index.js +20 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/role-tasks.d.ts +2 -0
- package/dist-server/role-tasks.js +13 -0
- package/dist-server/role-tasks.js.map +1 -0
- package/dist-server/service/announcement/announcement-resolver.d.ts +38 -0
- package/dist-server/service/announcement/announcement-resolver.js +664 -0
- package/dist-server/service/announcement/announcement-resolver.js.map +1 -0
- package/dist-server/service/announcement/announcement-rules.d.ts +150 -0
- package/dist-server/service/announcement/announcement-rules.js +227 -0
- package/dist-server/service/announcement/announcement-rules.js.map +1 -0
- package/dist-server/service/announcement/announcement-service.d.ts +54 -0
- package/dist-server/service/announcement/announcement-service.js +248 -0
- package/dist-server/service/announcement/announcement-service.js.map +1 -0
- package/dist-server/service/announcement/announcement-types.d.ts +54 -0
- package/dist-server/service/announcement/announcement-types.js +203 -0
- package/dist-server/service/announcement/announcement-types.js.map +1 -0
- package/dist-server/service/announcement/announcement.d.ts +124 -0
- package/dist-server/service/announcement/announcement.js +462 -0
- package/dist-server/service/announcement/announcement.js.map +1 -0
- package/dist-server/service/announcement/index.d.ts +4 -0
- package/dist-server/service/announcement/index.js +8 -0
- package/dist-server/service/announcement/index.js.map +1 -0
- package/dist-server/service/index.d.ts +7 -0
- package/dist-server/service/index.js +23 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +51 -4
- package/server/announcement-read.ts +44 -0
- package/server/attachment-reader.ts +11 -0
- package/server/index.ts +16 -0
- package/server/role-tasks.ts +12 -0
- package/server/service/announcement/announcement-resolver.ts +506 -0
- package/server/service/announcement/announcement-rules.ts +239 -0
- package/server/service/announcement/announcement-service.ts +240 -0
- package/server/service/announcement/announcement-types.ts +138 -0
- package/server/service/announcement/announcement.ts +367 -0
- package/server/service/announcement/index.ts +5 -0
- package/server/service/index.ts +19 -0
- package/server/tsconfig.json +11 -0
- package/test/announcement-persistence.test.ts +271 -0
- package/test/announcement-read.test.ts +49 -0
- package/test/announcement-rules.test.ts +217 -0
- package/test/open-doors.test.ts +45 -0
- package/test/translations.test.ts +54 -0
- package/things-factory.config.js +13 -0
- package/translations/en.json +169 -0
- package/translations/es.json +169 -0
- package/translations/ja.json +169 -0
- package/translations/ko.json +169 -0
- package/translations/ms.json +169 -0
- package/translations/zh.json +169 -0
- package/README.md +0 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The assistant's read of announcements (ADR-0163 decision 8) is the readers' own list query - its selection must be a
|
|
3
|
+
* query the served schema answers, every column must come from it, and its status values are the reader's states.
|
|
4
|
+
*
|
|
5
|
+
* Reads the built server (`dist-server`) - type-graphql needs tsc's decorator metadata.
|
|
6
|
+
*/
|
|
7
|
+
import 'reflect-metadata'
|
|
8
|
+
|
|
9
|
+
const { existsSync } = require('fs')
|
|
10
|
+
const { join } = require('path')
|
|
11
|
+
const { buildSchema } = require('type-graphql')
|
|
12
|
+
const { parse, validate } = require('graphql')
|
|
13
|
+
|
|
14
|
+
function loadCompiled(modulePath: string): any {
|
|
15
|
+
const resolved = join(__dirname, '..', 'dist-server', `${modulePath}.js`)
|
|
16
|
+
if (!existsSync(resolved)) throw new Error(`announcement build output is missing: ${resolved}\nBuild it first: npm run build:server`)
|
|
17
|
+
return require(resolved)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const { ANNOUNCEMENT_LIST_READ, ANNOUNCEMENT_READ_TARGETS } = loadCompiled('announcement-read')
|
|
21
|
+
const { READER_STATES } = loadCompiled('service/announcement/announcement-rules')
|
|
22
|
+
const { schema: declared } = loadCompiled('service/index')
|
|
23
|
+
|
|
24
|
+
it('★ its selection is a query the announcements list answers', async () => {
|
|
25
|
+
const schema = await buildSchema({ resolvers: declared.resolverClasses, validate: false, pubSub: { publish() {}, subscribe() {} } as any })
|
|
26
|
+
const query = parse(`query { ${ANNOUNCEMENT_LIST_READ.listQuery} { items { ${ANNOUNCEMENT_LIST_READ.selection} } total } }`)
|
|
27
|
+
expect(validate(schema, query).map((error: any) => error.message)).toEqual([])
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
it('★ every column comes from the selection', () => {
|
|
31
|
+
const selected = ANNOUNCEMENT_LIST_READ.selection.replace(/\{[^}]*\}/g, ' ').split(/\s+/).filter(Boolean)
|
|
32
|
+
for (const column of ANNOUNCEMENT_LIST_READ.columns) expect(selected).toContain(String(column.path ?? column.name).split('.')[0])
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
it("★ it is the person's own, narrowed by their reading state, and named for the application's assistant mode", () => {
|
|
36
|
+
expect(ANNOUNCEMENT_LIST_READ.mine).toBe(true)
|
|
37
|
+
expect(ANNOUNCEMENT_LIST_READ.status).toEqual({ field: 'readerState', values: [...READER_STATES] })
|
|
38
|
+
expect(ANNOUNCEMENT_READ_TARGETS).toEqual(['announcement.list'])
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it('★ its coded columns name their words - people read 행사 and 안 읽음, never EVENT and unread', () => {
|
|
42
|
+
const words = Object.fromEntries(ANNOUNCEMENT_LIST_READ.columns.filter((one: any) => one.words).map((one: any) => [one.name, one.words]))
|
|
43
|
+
expect(words).toEqual({
|
|
44
|
+
category: 'announcement.category.',
|
|
45
|
+
importance: 'announcement.importance.',
|
|
46
|
+
readerState: 'announcement.reader-state.',
|
|
47
|
+
period: 'announcement.period.'
|
|
48
|
+
})
|
|
49
|
+
})
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The rules of an announcement (ADR-0163 decisions 3-5) - what may be written, where it stands, what a reader owes it,
|
|
3
|
+
* when it pops up and what its notice says.
|
|
4
|
+
*/
|
|
5
|
+
import {
|
|
6
|
+
broadcastOf,
|
|
7
|
+
inputRefusal,
|
|
8
|
+
isCurrent,
|
|
9
|
+
linkRefusal,
|
|
10
|
+
deliveryOf,
|
|
11
|
+
noticeWordsOf,
|
|
12
|
+
withDelivery,
|
|
13
|
+
owedReminder,
|
|
14
|
+
periodOf,
|
|
15
|
+
readerNarrowingOf,
|
|
16
|
+
plainSummary,
|
|
17
|
+
popupDue,
|
|
18
|
+
publishedStatusOf,
|
|
19
|
+
publishRefusal,
|
|
20
|
+
rankOf,
|
|
21
|
+
readerStateOf
|
|
22
|
+
} from '../server/service/announcement/announcement-rules'
|
|
23
|
+
|
|
24
|
+
const NOW = new Date('2026-10-26T09:00:00Z')
|
|
25
|
+
const hours = (n: number) => new Date(NOW.getTime() + n * 3600 * 1000)
|
|
26
|
+
|
|
27
|
+
describe('where an announcement stands', () => {
|
|
28
|
+
it('★ current while out and before its end; a past one, a draft or a withdrawn one is not', () => {
|
|
29
|
+
expect(isCurrent({ status: 'PUBLISHED' }, NOW)).toBe(true)
|
|
30
|
+
expect(isCurrent({ status: 'PUBLISHED', endsAt: hours(1) }, NOW)).toBe(true)
|
|
31
|
+
expect(isCurrent({ status: 'PUBLISHED', endsAt: hours(-1) }, NOW)).toBe(false)
|
|
32
|
+
expect(isCurrent({ status: 'PUBLISHED', endsAt: NOW }, NOW)).toBe(false)
|
|
33
|
+
expect(isCurrent({ status: 'DRAFT' }, NOW)).toBe(false)
|
|
34
|
+
expect(isCurrent({ status: 'SCHEDULED' }, NOW)).toBe(false)
|
|
35
|
+
expect(isCurrent({ status: 'WITHDRAWN' }, NOW)).toBe(false)
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
it('★ publishing waits for a start still to come, and goes out at once otherwise', () => {
|
|
39
|
+
expect(publishedStatusOf(hours(2), NOW)).toBe('SCHEDULED')
|
|
40
|
+
expect(publishedStatusOf(hours(-2), NOW)).toBe('PUBLISHED')
|
|
41
|
+
expect(publishedStatusOf(null, NOW)).toBe('PUBLISHED')
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
it('★ pinned first, then urgent, important, normal', () => {
|
|
45
|
+
const order = [
|
|
46
|
+
{ pinned: false, importance: 'NORMAL' },
|
|
47
|
+
{ pinned: true, importance: 'NORMAL' },
|
|
48
|
+
{ pinned: false, importance: 'URGENT' },
|
|
49
|
+
{ pinned: false, importance: 'IMPORTANT' },
|
|
50
|
+
{ pinned: true, importance: 'URGENT' }
|
|
51
|
+
]
|
|
52
|
+
.sort((a, b) => rankOf(a) - rankOf(b))
|
|
53
|
+
.map(one => `${one.pinned ? 'pin' : '-'}:${one.importance}`)
|
|
54
|
+
expect(order).toEqual(['pin:URGENT', 'pin:NORMAL', '-:URGENT', '-:IMPORTANT', '-:NORMAL'])
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
describe('the channel everyone reads', () => {
|
|
59
|
+
it('★ only an announcement addressed to the whole domain is said there', () => {
|
|
60
|
+
expect(broadcastOf([{ scope: 'DOMAIN', targetId: 'd1' }], 'd1')).toBe(true)
|
|
61
|
+
expect(broadcastOf([{ scope: 'DEPARTMENT', targetId: 'hr' }, { scope: 'DOMAIN', targetId: 'd1' }], 'd1')).toBe(true)
|
|
62
|
+
expect(broadcastOf([{ scope: 'DEPARTMENT', targetId: 'hr' }], 'd1')).toBe(false)
|
|
63
|
+
expect(broadcastOf([{ scope: 'ROLE', targetId: 'r' }, { scope: 'USER', targetId: 'u' }], 'd1')).toBe(false)
|
|
64
|
+
expect(broadcastOf([{ scope: 'DOMAIN', targetId: 'd2' }], 'd1')).toBe(false)
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
describe("the reader's own narrowing", () => {
|
|
69
|
+
it('★ current or past only for one that is out', () => {
|
|
70
|
+
expect(periodOf({ status: 'PUBLISHED' }, NOW)).toBe('current')
|
|
71
|
+
expect(periodOf({ status: 'PUBLISHED', endsAt: hours(-1) }, NOW)).toBe('past')
|
|
72
|
+
expect(periodOf({ status: 'DRAFT' }, NOW)).toBeUndefined()
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
it('★ period and readerState come out of the column filters; the rest stay', () => {
|
|
76
|
+
expect(
|
|
77
|
+
readerNarrowingOf([
|
|
78
|
+
{ name: 'period', operator: 'eq', value: 'past' },
|
|
79
|
+
{ name: 'readerState', operator: 'in', value: ['unread', 'to-acknowledge'] },
|
|
80
|
+
{ name: 'category', operator: 'eq', value: 'HR' }
|
|
81
|
+
])
|
|
82
|
+
).toEqual({ rest: [{ name: 'category', operator: 'eq', value: 'HR' }], period: 'past', states: ['unread', 'to-acknowledge'] })
|
|
83
|
+
expect(readerNarrowingOf([{ name: 'readerState', operator: 'eq', value: 'read' }]).states).toEqual(['read'])
|
|
84
|
+
expect(readerNarrowingOf(undefined)).toEqual({ rest: [], period: undefined, states: undefined })
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
it('★ an unknown period or state is refused, not ignored', () => {
|
|
88
|
+
expect(readerNarrowingOf([{ name: 'period', value: 'future' }]).refusal).toBe('unknown-period')
|
|
89
|
+
expect(readerNarrowingOf([{ name: 'readerState', value: ['unread', 'lost'] }]).refusal).toBe('unknown-reader-state')
|
|
90
|
+
expect(readerNarrowingOf([{ name: 'readerState', value: [] }]).refusal).toBe('unknown-reader-state')
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
describe('what a reader owes it', () => {
|
|
95
|
+
it('★ reading and acknowledging are apart', () => {
|
|
96
|
+
expect(readerStateOf({ status: 'PUBLISHED' }, undefined)).toBe('unread')
|
|
97
|
+
expect(readerStateOf({ status: 'PUBLISHED' }, { readAt: NOW })).toBe('read')
|
|
98
|
+
const asks = { status: 'PUBLISHED', requiresAcknowledgement: true }
|
|
99
|
+
expect(readerStateOf(asks, undefined)).toBe('unread')
|
|
100
|
+
expect(readerStateOf(asks, { readAt: NOW })).toBe('to-acknowledge')
|
|
101
|
+
expect(readerStateOf(asks, { readAt: NOW, acknowledgedAt: NOW })).toBe('acknowledged')
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
it('★ a reminder goes to those on the roster still owing it - not to one who came to it later', () => {
|
|
105
|
+
expect(owedReminder({}, { listed: true })).toBe(true)
|
|
106
|
+
expect(owedReminder({}, { listed: true, readAt: NOW })).toBe(false)
|
|
107
|
+
expect(owedReminder({ requiresAcknowledgement: true }, { listed: true, readAt: NOW })).toBe(true)
|
|
108
|
+
expect(owedReminder({ requiresAcknowledgement: true }, { listed: true, readAt: NOW, acknowledgedAt: NOW })).toBe(false)
|
|
109
|
+
expect(owedReminder({}, { listed: false })).toBe(false)
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
describe('the popup (the user, 2026-10-26: 「공지 사항이 있을 때 자동 팝업」)', () => {
|
|
114
|
+
const popup = { status: 'PUBLISHED', popup: true }
|
|
115
|
+
it('★ a popup announcement shows once - seeing it reads it', () => {
|
|
116
|
+
expect(popupDue(popup, undefined, NOW)).toBe(true)
|
|
117
|
+
expect(popupDue(popup, { readAt: NOW }, NOW)).toBe(false)
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
it('★ one that asks to be acknowledged shows until it is acknowledged', () => {
|
|
121
|
+
const asks = { ...popup, requiresAcknowledgement: true }
|
|
122
|
+
expect(popupDue(asks, { readAt: NOW }, NOW)).toBe(true)
|
|
123
|
+
expect(popupDue(asks, { readAt: NOW, acknowledgedAt: NOW }, NOW)).toBe(false)
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
it('★ never one that is not a popup, not out or past its end', () => {
|
|
127
|
+
expect(popupDue({ status: 'PUBLISHED', popup: false }, undefined, NOW)).toBe(false)
|
|
128
|
+
expect(popupDue({ ...popup, status: 'SCHEDULED' }, undefined, NOW)).toBe(false)
|
|
129
|
+
expect(popupDue({ ...popup, status: 'WITHDRAWN' }, undefined, NOW)).toBe(false)
|
|
130
|
+
expect(popupDue({ ...popup, endsAt: hours(-1) }, undefined, NOW)).toBe(false)
|
|
131
|
+
})
|
|
132
|
+
})
|
|
133
|
+
|
|
134
|
+
describe('what may be written', () => {
|
|
135
|
+
const ok = { title: '연말 휴무 안내' }
|
|
136
|
+
|
|
137
|
+
it('★ a title, a known kind and importance, an end after the start', () => {
|
|
138
|
+
expect(inputRefusal(ok)).toBeUndefined()
|
|
139
|
+
expect(inputRefusal({ title: ' ' })).toBe('no-title')
|
|
140
|
+
expect(inputRefusal({ title: 'x'.repeat(201) })).toBe('title-too-long')
|
|
141
|
+
expect(inputRefusal({ ...ok, category: 'GOSSIP' })).toBe('unknown-category')
|
|
142
|
+
expect(inputRefusal({ ...ok, category: 'HR' })).toBeUndefined()
|
|
143
|
+
expect(inputRefusal({ ...ok, importance: 'CRITICAL' })).toBe('unknown-importance')
|
|
144
|
+
expect(inputRefusal({ ...ok, startsAt: hours(2), endsAt: hours(1) })).toBe('ends-before-start')
|
|
145
|
+
expect(inputRefusal({ ...ok, startsAt: hours(1), endsAt: hours(1) })).toBe('ends-before-start')
|
|
146
|
+
})
|
|
147
|
+
|
|
148
|
+
it('★ an acknowledgement day only when it asks for one, and not before its start', () => {
|
|
149
|
+
expect(inputRefusal({ ...ok, acknowledgeBy: hours(24) })).toBe('acknowledge-by-without-ask')
|
|
150
|
+
expect(inputRefusal({ ...ok, requiresAcknowledgement: true, acknowledgeBy: hours(24) })).toBeUndefined()
|
|
151
|
+
expect(inputRefusal({ ...ok, requiresAcknowledgement: true, startsAt: hours(48), acknowledgeBy: hours(24) })).toBe('acknowledge-by-before-start')
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
it('★ a link is a screen of the application or an https page - nothing that runs or leaves by //', () => {
|
|
155
|
+
expect(linkRefusal({ label: '계약', url: 'contract-list?id=1' })).toBeUndefined()
|
|
156
|
+
expect(linkRefusal({ label: '안내', url: 'https://example.com/a' })).toBeUndefined()
|
|
157
|
+
expect(linkRefusal({ label: 'x', url: 'javascript:alert(1)' })).toBe('bad-link')
|
|
158
|
+
expect(linkRefusal({ label: 'x', url: 'http://example.com' })).toBe('bad-link')
|
|
159
|
+
expect(linkRefusal({ label: 'x', url: '//example.com' })).toBe('bad-link')
|
|
160
|
+
expect(linkRefusal({ label: 'x', url: '/etc/passwd' })).toBe('bad-link')
|
|
161
|
+
expect(linkRefusal({ label: 'x', url: 'a b' })).toBe('bad-link')
|
|
162
|
+
expect(linkRefusal({ label: '', url: 'contract-list' })).toBe('link-incomplete')
|
|
163
|
+
expect(linkRefusal({ label: 'x'.repeat(101), url: 'contract-list' })).toBe('link-label-too-long')
|
|
164
|
+
expect(inputRefusal({ ...ok, links: [{ label: 'x', url: 'data:text/html,1' }] })).toBe('bad-link')
|
|
165
|
+
expect(inputRefusal({ ...ok, links: Array.from({ length: 11 }, () => ({ label: 'x', url: 'a' })) })).toBe('too-many-links')
|
|
166
|
+
})
|
|
167
|
+
|
|
168
|
+
it('★ only a draft goes out, and only when it names someone', () => {
|
|
169
|
+
expect(publishRefusal('DRAFT', ok, 1)).toBeUndefined()
|
|
170
|
+
expect(publishRefusal('DRAFT', ok, 0)).toBe('no-audience')
|
|
171
|
+
expect(publishRefusal('PUBLISHED', ok, 1)).toBe('not-a-draft')
|
|
172
|
+
expect(publishRefusal('DRAFT', { title: '' }, 1)).toBe('no-title')
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
|
|
176
|
+
describe('the notice', () => {
|
|
177
|
+
/* The sentences as the server's translator gives them - here the English with its blanks filled. */
|
|
178
|
+
const say = (_key: string, english: string, params: Record<string, unknown> = {}) => english.replace(/\{(\w+)\}/g, (_, name) => String(params[name] ?? ''))
|
|
179
|
+
const one = { title: '휴무', body: '## 안내\n**12월 31일**은 [휴무](x)입니다.' }
|
|
180
|
+
|
|
181
|
+
it('★ its title, the start of its body as plain words for the inbox, and the whole body for the mail', () => {
|
|
182
|
+
expect(noticeWordsOf(one, 'published', say)).toEqual({
|
|
183
|
+
subject: '휴무',
|
|
184
|
+
summary: '안내 12월 31일은 휴무입니다.',
|
|
185
|
+
body: one.body,
|
|
186
|
+
action: 'Open the announcement',
|
|
187
|
+
note: 'Open Announcements in the application to read it.'
|
|
188
|
+
})
|
|
189
|
+
})
|
|
190
|
+
|
|
191
|
+
it('★ a change and a reminder say so in the subject', () => {
|
|
192
|
+
expect(noticeWordsOf(one, 'changed', say).subject).toBe('Changed: 휴무')
|
|
193
|
+
expect(noticeWordsOf(one, 'reminder', say).subject).toBe('Reminder: 휴무')
|
|
194
|
+
expect(noticeWordsOf({ title: 'x' }, 'published', say).body).toBe('')
|
|
195
|
+
})
|
|
196
|
+
|
|
197
|
+
it('★ each telling is kept - what went out, or that nothing could go', () => {
|
|
198
|
+
const at = new Date('2026-10-26T09:00:00Z')
|
|
199
|
+
const sent = { receivers: 3, email: { sent: 2, failed: 1 }, teams: { sent: 0, failed: 0 } }
|
|
200
|
+
expect(deliveryOf('published', sent, 3, at)).toEqual({ at: '2026-10-26T09:00:00.000Z', kind: 'published', ...sent })
|
|
201
|
+
expect(deliveryOf('reminder', undefined, 4, at)).toEqual({ at: '2026-10-26T09:00:00.000Z', kind: 'reminder', receivers: 4, email: { sent: 0, failed: 0 }, teams: { sent: 0, failed: 0 }, failed: true })
|
|
202
|
+
})
|
|
203
|
+
|
|
204
|
+
it('the record keeps the newest fifty', () => {
|
|
205
|
+
const many = Array.from({ length: 50 }, (_, i) => i)
|
|
206
|
+
expect(withDelivery(many, 50)).toEqual(Array.from({ length: 50 }, (_, i) => i + 1))
|
|
207
|
+
expect(withDelivery(null, 1)).toEqual([1])
|
|
208
|
+
})
|
|
209
|
+
|
|
210
|
+
it('★ only the marks that wrap words go - a lone ~, _ or | is part of the text', () => {
|
|
211
|
+
expect(plainSummary('**11월 2일(월) 22시~24시** 점검 · ~~취소~~ `a_b` *기울임* | 표')).toBe('11월 2일(월) 22시~24시 점검 · 취소 a_b 기울임 | 표')
|
|
212
|
+
})
|
|
213
|
+
|
|
214
|
+
it('a long body is cut for the inbox', () => {
|
|
215
|
+
expect(plainSummary('가'.repeat(200), 10)).toBe(`${'가'.repeat(9)}…`)
|
|
216
|
+
})
|
|
217
|
+
})
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Every door of announcement asks for `announcement:mutation` and admits the domain owner, except the reader's doors,
|
|
3
|
+
* which are open on purpose: an announcement is read by the people it names (ADR-0163 decision 2), and each of those
|
|
4
|
+
* doors asks the audience itself.
|
|
5
|
+
*/
|
|
6
|
+
import { gatesOf, openFields } from '../../../test/helpers/open-doors'
|
|
7
|
+
|
|
8
|
+
const AUDIENCE = 'read by the people it names - the door asks the audience, not a privilege (ADR-0163 decision 2)'
|
|
9
|
+
|
|
10
|
+
/** Open on purpose, each with its reason. */
|
|
11
|
+
const OPEN: Record<'Query' | 'Mutation', Record<string, string>> = {
|
|
12
|
+
Query: {
|
|
13
|
+
announcements: AUDIENCE,
|
|
14
|
+
announcement: AUDIENCE,
|
|
15
|
+
announcementSummary: AUDIENCE,
|
|
16
|
+
announcementPopups: AUDIENCE
|
|
17
|
+
},
|
|
18
|
+
Mutation: {
|
|
19
|
+
readAnnouncement: AUDIENCE,
|
|
20
|
+
acknowledgeAnnouncement: AUDIENCE
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
let gates: Awaited<ReturnType<typeof gatesOf>>
|
|
25
|
+
|
|
26
|
+
beforeAll(async () => {
|
|
27
|
+
gates = await gatesOf('announcement')
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
it.each(['Query', 'Mutation'] as const)('★ every open %s door has a written reason', root => {
|
|
31
|
+
expect(openFields(gates[root])).toEqual(Object.keys(OPEN[root]).sort())
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
it.each(['Query', 'Mutation'] as const)('★ every other %s door asks for announcement:mutation and admits the domain owner', root => {
|
|
35
|
+
for (const [field, gate] of Object.entries(gates[root])) {
|
|
36
|
+
if (field in OPEN[root]) continue
|
|
37
|
+
expect({ field, ...gate }).toEqual({ field, category: 'announcement', privilege: 'mutation', owner: true, super: false })
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it('the walk reaches every door', () => {
|
|
42
|
+
/* If the resolver list shrank, the checks above would pass by having nothing to look at. */
|
|
43
|
+
expect(Object.keys(gates.Query)).toHaveLength(10)
|
|
44
|
+
expect(Object.keys(gates.Mutation)).toHaveLength(8)
|
|
45
|
+
})
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Every word announcements say is in every language the module ships - the keys are strings, so neither tsc nor eslint
|
|
3
|
+
* sees one with no entry. Covers the screens' words, the codes drawn into words (kinds, importance, status, a reader's
|
|
4
|
+
* state, audience scopes), the refusals the server says (`announcement.refusal.<code>`) and the task's words.
|
|
5
|
+
*/
|
|
6
|
+
import { readFileSync, readdirSync } from 'fs'
|
|
7
|
+
import { join } from 'path'
|
|
8
|
+
|
|
9
|
+
const ROOT = join(__dirname, '..')
|
|
10
|
+
const LANGUAGES = ['ko', 'en', 'ja', 'zh', 'es', 'ms']
|
|
11
|
+
|
|
12
|
+
const sources = (dir: string): string[] =>
|
|
13
|
+
readdirSync(dir, { withFileTypes: true }).flatMap(entry => (entry.isDirectory() ? sources(join(dir, entry.name)) : /\.ts$/.test(entry.name) && !/\.test\.ts$/.test(entry.name) ? [join(dir, entry.name)] : []))
|
|
14
|
+
|
|
15
|
+
const text = [...sources(join(ROOT, 'client')), ...sources(join(ROOT, 'server'))].map(file => readFileSync(file, 'utf8')).join('\n')
|
|
16
|
+
const locale = (lang: string): Record<string, string> => JSON.parse(readFileSync(join(ROOT, 'translations', `${lang}.json`), 'utf8'))
|
|
17
|
+
const codes = (name: string) => [...new RegExp(`${name} = \\[([^\\]]*)\\]`).exec(text)![1].matchAll(/'([A-Z_]+)'/g)].map(match => match[1])
|
|
18
|
+
|
|
19
|
+
const used = new Set<string>([...text.matchAll(/'(announcement\.[a-z0-9.-]+[a-z0-9])'/g)].map(match => match[1])/* a task id and a read key are names, not words */
|
|
20
|
+
.filter(key => !['announcement.writing', 'announcement.list'].includes(key) && !key.startsWith('announcement.popups')))
|
|
21
|
+
for (const code of codes('ANNOUNCEMENT_CATEGORIES')) used.add(`announcement.category.${code}`)
|
|
22
|
+
for (const code of codes('IMPORTANCES')) used.add(`announcement.importance.${code}`)
|
|
23
|
+
for (const code of ['DRAFT', 'SCHEDULED', 'PUBLISHED', 'WITHDRAWN']) used.add(`announcement.status.${code}`)
|
|
24
|
+
for (const state of ['unread', 'read', 'to-acknowledge', 'acknowledged']) used.add(`announcement.reader-state.${state}`)
|
|
25
|
+
for (const scope of ['DOMAIN', 'DEPARTMENT', 'ROLE', 'USER']) used.add(`announcement.scope.${scope}`)
|
|
26
|
+
for (const key of ['all', 'unread', 'unacknowledged', 'later']) used.add(`announcement.receipts.${key}`)
|
|
27
|
+
for (const kind of ['published', 'changed', 'reminder']) used.add(`announcement.delivery.${kind}`)
|
|
28
|
+
for (const period of ['current', 'past']) used.add(`announcement.period.${period}`)
|
|
29
|
+
/* The refusals: those the doors name, those the rules return, and the audience's (organization audienceTargetRefusal). */
|
|
30
|
+
for (const [, code] of text.matchAll(/refuse\(context, '([a-z-]+)'/g)) used.add(`announcement.refusal.${code}`)
|
|
31
|
+
const refusals = text.slice(text.indexOf('export function linkRefusal'), text.indexOf('export function owedReminder'))
|
|
32
|
+
for (const [, code] of refusals.matchAll(/return '([a-z-]+)'/g)) used.add(`announcement.refusal.${code}`)
|
|
33
|
+
for (const code of ['unknown-scope', 'no-target', 'another-domain', 'unknown-department', 'unknown-role', 'unknown-person']) used.add(`announcement.refusal.audience-${code}`)
|
|
34
|
+
/* The reader's own narrowing a list refuses (readerNarrowingOf). */
|
|
35
|
+
for (const code of ['unknown-period', 'unknown-reader-state']) used.add(`announcement.refusal.${code}`)
|
|
36
|
+
used.add('task.announcement.writing.name')
|
|
37
|
+
used.add('task.announcement.writing.description')
|
|
38
|
+
|
|
39
|
+
test('the floor - the parser found the words', () => {
|
|
40
|
+
expect(used.size).toBeGreaterThan(120)
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
test.each(LANGUAGES)('★ every key announcements name is in %s', lang => {
|
|
44
|
+
const words = locale(lang)
|
|
45
|
+
expect([...used].filter(key => !(key in words))).toEqual([])
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
test.each(LANGUAGES)('a placeholder said in Korean is said in %s too, in the house braces', lang => {
|
|
49
|
+
const ko = locale('ko')
|
|
50
|
+
const words = locale(lang)
|
|
51
|
+
const holes = (said: string) => [...said.matchAll(/\{(\w+)\}/g)].map(match => match[1]).sort()
|
|
52
|
+
expect(Object.keys(ko).filter(key => key in words && holes(ko[key]).join() !== holes(words[key]).join())).toEqual([])
|
|
53
|
+
expect(Object.values(words).filter(said => said.includes('{{'))).toEqual([])
|
|
54
|
+
})
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import bootstrap from './dist-client/bootstrap.js'
|
|
2
|
+
import route from './dist-client/route.js'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
bootstrap,
|
|
6
|
+
route,
|
|
7
|
+
routes: [
|
|
8
|
+
{ tagname: 'announcement-list', page: 'announcement-list' },
|
|
9
|
+
{ tagname: 'announcement-view', page: 'announcement-view' },
|
|
10
|
+
{ tagname: 'announcement-manage-list', page: 'announcement-manage-list' },
|
|
11
|
+
{ tagname: 'announcement-editor', page: 'announcement-editor' }
|
|
12
|
+
]
|
|
13
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"announcement.title.list": "Announcements",
|
|
3
|
+
"announcement.title.manage": "Manage announcements",
|
|
4
|
+
"announcement.title.new": "New announcement",
|
|
5
|
+
"announcement.title.edit": "Edit announcement",
|
|
6
|
+
"announcement.title.view": "Announcement",
|
|
7
|
+
"announcement.title.popup": "Announcements",
|
|
8
|
+
"announcement.button.acknowledge": "Acknowledge",
|
|
9
|
+
"announcement.button.add-link": "Add link",
|
|
10
|
+
"announcement.button.cancel": "Cancel",
|
|
11
|
+
"announcement.button.close": "Close",
|
|
12
|
+
"announcement.button.copy": "Copy",
|
|
13
|
+
"announcement.button.delete": "Delete",
|
|
14
|
+
"announcement.button.edit": "Edit",
|
|
15
|
+
"announcement.button.new": "New announcement",
|
|
16
|
+
"announcement.button.next": "Next",
|
|
17
|
+
"announcement.button.open": "Open",
|
|
18
|
+
"announcement.button.previous": "Previous",
|
|
19
|
+
"announcement.button.publish": "Publish",
|
|
20
|
+
"announcement.button.receipts": "Readers",
|
|
21
|
+
"announcement.button.remind": "Remind",
|
|
22
|
+
"announcement.button.remind-count": "Remind {count}",
|
|
23
|
+
"announcement.button.remove": "Remove",
|
|
24
|
+
"announcement.button.save": "Save",
|
|
25
|
+
"announcement.button.save-draft": "Save draft",
|
|
26
|
+
"announcement.button.schedule": "Schedule",
|
|
27
|
+
"announcement.button.withdraw": "Withdraw",
|
|
28
|
+
"announcement.field.acknowledge-by": "Acknowledge by",
|
|
29
|
+
"announcement.field.acknowledged-count": "Acknowledged",
|
|
30
|
+
"announcement.field.attachments": "Attachments",
|
|
31
|
+
"announcement.field.audience": "Audience",
|
|
32
|
+
"announcement.field.audience-size": "Audience",
|
|
33
|
+
"announcement.field.category": "Category",
|
|
34
|
+
"announcement.field.ends-at": "Ends",
|
|
35
|
+
"announcement.field.importance": "Importance",
|
|
36
|
+
"announcement.field.links": "Related screens",
|
|
37
|
+
"announcement.field.pinned": "Pinned",
|
|
38
|
+
"announcement.field.published-at": "Published",
|
|
39
|
+
"announcement.field.publisher": "Publisher",
|
|
40
|
+
"announcement.field.read-count": "Read",
|
|
41
|
+
"announcement.field.reader-state": "State",
|
|
42
|
+
"announcement.field.starts-at": "Starts",
|
|
43
|
+
"announcement.field.status": "Status",
|
|
44
|
+
"announcement.field.title": "Title",
|
|
45
|
+
"announcement.field.updated-at": "Updated",
|
|
46
|
+
"announcement.category.GENERAL": "General",
|
|
47
|
+
"announcement.category.HR": "HR",
|
|
48
|
+
"announcement.category.WELFARE": "Benefits",
|
|
49
|
+
"announcement.category.EVENT": "Events",
|
|
50
|
+
"announcement.category.SYSTEM": "System",
|
|
51
|
+
"announcement.category.SECURITY": "Security",
|
|
52
|
+
"announcement.importance.NORMAL": "Normal",
|
|
53
|
+
"announcement.importance.IMPORTANT": "Important",
|
|
54
|
+
"announcement.importance.URGENT": "Urgent",
|
|
55
|
+
"announcement.status.DRAFT": "Draft",
|
|
56
|
+
"announcement.status.SCHEDULED": "Scheduled",
|
|
57
|
+
"announcement.status.PUBLISHED": "Published",
|
|
58
|
+
"announcement.status.WITHDRAWN": "Withdrawn",
|
|
59
|
+
"announcement.reader-state.unread": "Unread",
|
|
60
|
+
"announcement.reader-state.read": "Read",
|
|
61
|
+
"announcement.reader-state.to-acknowledge": "To acknowledge",
|
|
62
|
+
"announcement.reader-state.acknowledged": "Acknowledged",
|
|
63
|
+
"announcement.receipts.all": "All",
|
|
64
|
+
"announcement.receipts.unread": "Unread",
|
|
65
|
+
"announcement.receipts.unacknowledged": "Not acknowledged",
|
|
66
|
+
"announcement.receipts.later": "Added later",
|
|
67
|
+
"announcement.receipts.name": "Name",
|
|
68
|
+
"announcement.receipts.read-at": "Read at",
|
|
69
|
+
"announcement.receipts.acknowledged-at": "Acknowledged at",
|
|
70
|
+
"announcement.receipts.notified-at": "Notified at",
|
|
71
|
+
"announcement.scope.DOMAIN": "Domain",
|
|
72
|
+
"announcement.scope.DEPARTMENT": "Department",
|
|
73
|
+
"announcement.scope.ROLE": "Role",
|
|
74
|
+
"announcement.scope.USER": "Person",
|
|
75
|
+
"announcement.text.acknowledge-asked": "This announcement asks you to acknowledge it.",
|
|
76
|
+
"announcement.text.acknowledge-by": "by {when}",
|
|
77
|
+
"announcement.text.acknowledge-label": "Ask readers to acknowledge",
|
|
78
|
+
"announcement.text.acknowledged-at": "Acknowledged {when}.",
|
|
79
|
+
"announcement.text.add-department": "Add department",
|
|
80
|
+
"announcement.text.add-person": "Add a person by name or e-mail",
|
|
81
|
+
"announcement.text.add-role": "Add role",
|
|
82
|
+
"announcement.text.audience-size": "Goes to {count} people now.",
|
|
83
|
+
"announcement.text.body-placeholder": "Body",
|
|
84
|
+
"announcement.text.delete-confirm": "Deletes the draft \"{title}\".",
|
|
85
|
+
"announcement.text.deleted": "Deleted.",
|
|
86
|
+
"announcement.text.empty": "No announcements.",
|
|
87
|
+
"announcement.text.empty-description": "Past announcements are under the period filter.",
|
|
88
|
+
"announcement.text.ends-at-hint": "Empty keeps it up.",
|
|
89
|
+
"announcement.text.everyone": "Everyone",
|
|
90
|
+
"announcement.text.everyone-in": "Everyone in {name}",
|
|
91
|
+
"announcement.text.failed": "It could not be done.",
|
|
92
|
+
"announcement.text.link-hint": "A screen of the application (e.g. contract-list?id=…) or an https address",
|
|
93
|
+
"announcement.text.link-label": "Name",
|
|
94
|
+
"announcement.text.link-url": "Address",
|
|
95
|
+
"announcement.text.manage-empty": "No announcements.",
|
|
96
|
+
"announcement.text.manage-empty-description": "Write one with \"New announcement\".",
|
|
97
|
+
"announcement.text.markdown-hint": "Markdown: **bold**, - list, [link](address)",
|
|
98
|
+
"announcement.text.new-version": "Saving makes version {version}.",
|
|
99
|
+
"announcement.text.no-audience": "No audience yet.",
|
|
100
|
+
"announcement.text.notify-again": "Notify everyone again",
|
|
101
|
+
"announcement.text.period": "Period",
|
|
102
|
+
"announcement.text.period-current": "Current",
|
|
103
|
+
"announcement.text.period-past": "Past",
|
|
104
|
+
"announcement.text.pinned-label": "Pin to the top of the list while it is up",
|
|
105
|
+
"announcement.text.popup-label": "Show in a popup (at sign-in and the moment it is published)",
|
|
106
|
+
"announcement.text.preview": "Preview",
|
|
107
|
+
"announcement.text.published-done": "Published.",
|
|
108
|
+
"announcement.text.reach": "{read} of {size} read",
|
|
109
|
+
"announcement.text.reach-acknowledged": "· {acknowledged} acknowledged",
|
|
110
|
+
"announcement.text.reminded": "Reminded {count}.",
|
|
111
|
+
"announcement.text.saved": "Saved.",
|
|
112
|
+
"announcement.text.scheduled": "Goes out {when}.",
|
|
113
|
+
"announcement.text.scheduled-done": "Scheduled.",
|
|
114
|
+
"announcement.text.section-what": "Content",
|
|
115
|
+
"announcement.text.section-when": "Publishing",
|
|
116
|
+
"announcement.text.starts-at-hint": "Empty publishes it at once.",
|
|
117
|
+
"announcement.text.until": "until {when}",
|
|
118
|
+
"announcement.text.version": "version {version}",
|
|
119
|
+
"announcement.text.with-sub-departments": "with sub-departments",
|
|
120
|
+
"announcement.text.withdraw-lead": "Withdrawn, it leaves its readers' lists. Its reading record stays.",
|
|
121
|
+
"announcement.text.withdraw-reason": "Reason",
|
|
122
|
+
"announcement.text.withdrawn": "Withdrawn {when}. Reason: {reason}",
|
|
123
|
+
"announcement.text.withdrawn-done": "Withdrawn.",
|
|
124
|
+
"announcement.text.write": "Write",
|
|
125
|
+
"announcement.refusal.unknown-announcement": "There is no such announcement.",
|
|
126
|
+
"announcement.refusal.withdrawn": "A withdrawn announcement is not changed.",
|
|
127
|
+
"announcement.refusal.no-acknowledgement": "This announcement does not ask to be acknowledged.",
|
|
128
|
+
"announcement.refusal.no-audience": "Choose its audience.",
|
|
129
|
+
"announcement.refusal.no-reason": "Say why it is withdrawn.",
|
|
130
|
+
"announcement.refusal.not-a-draft": "It is not a draft. An announcement that went out is withdrawn.",
|
|
131
|
+
"announcement.refusal.not-current": "Only a current announcement is reminded.",
|
|
132
|
+
"announcement.refusal.not-out": "A draft is deleted, not withdrawn.",
|
|
133
|
+
"announcement.refusal.no-title": "Give it a title.",
|
|
134
|
+
"announcement.refusal.title-too-long": "The title is up to 200 characters.",
|
|
135
|
+
"announcement.refusal.unknown-category": "There is no such category.",
|
|
136
|
+
"announcement.refusal.unknown-importance": "There is no such importance.",
|
|
137
|
+
"announcement.refusal.ends-before-start": "It must end after it starts.",
|
|
138
|
+
"announcement.refusal.acknowledge-by-without-ask": "An acknowledgement day is set only when acknowledgement is asked.",
|
|
139
|
+
"announcement.refusal.acknowledge-by-before-start": "The acknowledgement day is after it starts.",
|
|
140
|
+
"announcement.refusal.too-many-links": "Up to 10 related screens.",
|
|
141
|
+
"announcement.refusal.link-incomplete": "Give each related screen a name and an address.",
|
|
142
|
+
"announcement.refusal.link-label-too-long": "A related screen's name is up to 100 characters.",
|
|
143
|
+
"announcement.refusal.bad-link": "A related screen is a screen of the application or an https address.",
|
|
144
|
+
"announcement.refusal.audience-unknown-scope": "Unknown kind of audience.",
|
|
145
|
+
"announcement.refusal.audience-no-target": "An audience target is empty.",
|
|
146
|
+
"announcement.refusal.audience-another-domain": "It cannot go to another domain.",
|
|
147
|
+
"announcement.refusal.audience-unknown-department": "That department is not in this domain.",
|
|
148
|
+
"announcement.refusal.audience-unknown-role": "That role is not in this domain.",
|
|
149
|
+
"announcement.refusal.audience-unknown-person": "That person is not in this domain.",
|
|
150
|
+
"task.announcement.writing.name": "Announcements - writing and managing",
|
|
151
|
+
"task.announcement.writing.description": "Writes, publishes, changes and withdraws announcements, and sees who read them.",
|
|
152
|
+
"announcement.text.email-label": "Send by mail too",
|
|
153
|
+
"announcement.text.email-hint": "Goes only where the domain has turned mail on (environment variable Notice::email). The mail carries the whole body; files are fetched after signing in.",
|
|
154
|
+
"announcement.delivery.published": "Published",
|
|
155
|
+
"announcement.delivery.changed": "Change",
|
|
156
|
+
"announcement.delivery.reminder": "Reminder",
|
|
157
|
+
"announcement.text.delivery-app": "{count} notified",
|
|
158
|
+
"announcement.text.delivery-not-sent": "could not be sent to {count}",
|
|
159
|
+
"announcement.text.delivery-email": "mail {sent}, failed {failed}",
|
|
160
|
+
"announcement.text.delivery-teams": "Teams {sent}, failed {failed}",
|
|
161
|
+
"announcement.notice.changed-subject": "Changed: {title}",
|
|
162
|
+
"announcement.notice.reminder-subject": "Reminder: {title}",
|
|
163
|
+
"announcement.notice.action": "Open the announcement",
|
|
164
|
+
"announcement.notice.note": "Sign in to Operato and open Announcements to read it.",
|
|
165
|
+
"announcement.refusal.unknown-period": "The period is current or past.",
|
|
166
|
+
"announcement.refusal.unknown-reader-state": "The reading state is one of unread, read, to-acknowledge, acknowledged.",
|
|
167
|
+
"announcement.period.current": "Current",
|
|
168
|
+
"announcement.period.past": "Past"
|
|
169
|
+
}
|