@open-mercato/core 0.6.6-develop.6256.1.9fc16aedc4 → 0.6.6-develop.6257.1.6d0af84d26

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.
Files changed (30) hide show
  1. package/dist/modules/messages/api/[id]/conversation/archive/route.js +25 -7
  2. package/dist/modules/messages/api/[id]/conversation/archive/route.js.map +2 -2
  3. package/dist/modules/messages/api/[id]/conversation/read/route.js +24 -6
  4. package/dist/modules/messages/api/[id]/conversation/read/route.js.map +2 -2
  5. package/dist/modules/messages/api/[id]/route.js +13 -1
  6. package/dist/modules/messages/api/[id]/route.js.map +2 -2
  7. package/dist/modules/messages/api/openapi.js +3 -1
  8. package/dist/modules/messages/api/openapi.js.map +2 -2
  9. package/dist/modules/messages/commands/conversation.js +77 -0
  10. package/dist/modules/messages/commands/conversation.js.map +2 -2
  11. package/dist/modules/messages/components/MessageDetailPageClient.js +16 -4
  12. package/dist/modules/messages/components/MessageDetailPageClient.js.map +2 -2
  13. package/dist/modules/messages/components/message-detail/hooks/useMessageDetailsActions.js +18 -0
  14. package/dist/modules/messages/components/message-detail/hooks/useMessageDetailsActions.js.map +2 -2
  15. package/dist/modules/messages/components/message-detail/panels/MainMessageHeader.js +13 -11
  16. package/dist/modules/messages/components/message-detail/panels/MainMessageHeader.js.map +2 -2
  17. package/package.json +7 -7
  18. package/src/modules/messages/api/[id]/conversation/archive/route.ts +29 -6
  19. package/src/modules/messages/api/[id]/conversation/read/route.ts +29 -6
  20. package/src/modules/messages/api/[id]/route.ts +15 -0
  21. package/src/modules/messages/api/openapi.ts +2 -0
  22. package/src/modules/messages/commands/conversation.ts +87 -0
  23. package/src/modules/messages/components/MessageDetailPageClient.tsx +16 -4
  24. package/src/modules/messages/components/message-detail/hooks/useMessageDetailsActions.ts +26 -1
  25. package/src/modules/messages/components/message-detail/panels/MainMessageHeader.tsx +29 -14
  26. package/src/modules/messages/components/message-detail/types.ts +2 -0
  27. package/src/modules/messages/i18n/de.json +4 -0
  28. package/src/modules/messages/i18n/en.json +4 -0
  29. package/src/modules/messages/i18n/es.json +4 -0
  30. package/src/modules/messages/i18n/pl.json +4 -0
@@ -9,10 +9,15 @@ import {
9
9
  } from '../../../openapi'
10
10
 
11
11
  export const metadata = {
12
+ PUT: { requireAuth: true, requireFeatures: ['messages.view'] },
12
13
  DELETE: { requireAuth: true, requireFeatures: ['messages.view'] },
13
14
  }
14
15
 
15
- export async function DELETE(req: Request, { params }: { params: { id: string } }) {
16
+ async function runConversationReadMutation(
17
+ req: Request,
18
+ id: string,
19
+ commandId: 'messages.conversation.mark_read_for_actor' | 'messages.conversation.mark_unread_for_actor',
20
+ ) {
16
21
  const { ctx, scope } = await resolveMessageContext(req)
17
22
  const commandBus = ctx.container.resolve('commandBus') as CommandBus
18
23
 
@@ -23,7 +28,7 @@ export async function DELETE(req: Request, { params }: { params: { id: string }
23
28
  organizationId: scope.organizationId,
24
29
  userId: scope.userId,
25
30
  resourceKind: 'messages.conversation',
26
- resourceId: params.id,
31
+ resourceId: id,
27
32
  operation: 'update',
28
33
  requestMethod: req.method,
29
34
  requestHeaders: req.headers,
@@ -39,9 +44,9 @@ export async function DELETE(req: Request, { params }: { params: { id: string }
39
44
  }
40
45
 
41
46
  try {
42
- const { result, logEntry } = await commandBus.execute('messages.conversation.mark_unread_for_actor', {
47
+ const { result, logEntry } = await commandBus.execute(commandId, {
43
48
  input: {
44
- anchorMessageId: params.id,
49
+ anchorMessageId: id,
45
50
  tenantId: scope.tenantId,
46
51
  organizationId: scope.organizationId,
47
52
  userId: scope.userId,
@@ -59,14 +64,14 @@ export async function DELETE(req: Request, { params }: { params: { id: string }
59
64
  const response = Response.json(result)
60
65
  attachOperationMetadataHeader(response, logEntry, {
61
66
  resourceKind: 'messages.conversation',
62
- resourceId: params.id,
67
+ resourceId: id,
63
68
  })
64
69
  await runMessageMutationGuardAfterSuccess(guardResult.afterSuccessCallbacks, {
65
70
  tenantId: scope.tenantId,
66
71
  organizationId: scope.organizationId,
67
72
  userId: scope.userId,
68
73
  resourceKind: 'messages.conversation',
69
- resourceId: params.id,
74
+ resourceId: id,
70
75
  operation: 'update',
71
76
  requestMethod: req.method,
72
77
  requestHeaders: req.headers,
@@ -85,9 +90,27 @@ export async function DELETE(req: Request, { params }: { params: { id: string }
85
90
  }
86
91
  }
87
92
 
93
+ export async function PUT(req: Request, { params }: { params: { id: string } }) {
94
+ return runConversationReadMutation(req, params.id, 'messages.conversation.mark_read_for_actor')
95
+ }
96
+
97
+ export async function DELETE(req: Request, { params }: { params: { id: string } }) {
98
+ return runConversationReadMutation(req, params.id, 'messages.conversation.mark_unread_for_actor')
99
+ }
100
+
88
101
  export const openApi: OpenApiRouteDoc = {
89
102
  tag: 'Messages',
90
103
  methods: {
104
+ PUT: {
105
+ summary: 'Mark entire conversation as read for current actor',
106
+ responses: [
107
+ { status: 200, description: 'Conversation marked read', schema: conversationMutationResponseSchema },
108
+ ],
109
+ errors: [
110
+ { status: 403, description: 'Access denied', schema: errorResponseSchema },
111
+ { status: 404, description: 'Message not found', schema: errorResponseSchema },
112
+ ],
113
+ },
91
114
  DELETE: {
92
115
  summary: 'Mark entire conversation as unread for current actor',
93
116
  responses: [
@@ -122,6 +122,19 @@ export async function GET(req: Request, { params }: { params: { id: string } })
122
122
  threadMessage.senderUserId === scope.userId || visibleRecipientMessageIds.has(threadMessage.id)
123
123
  ))
124
124
 
125
+ const actorRecipientStatusByMessageId = new Map<string, string>()
126
+ for (const row of visibleRecipientRows) {
127
+ actorRecipientStatusByMessageId.set(row.messageId, row.status)
128
+ }
129
+ if (recipient) {
130
+ actorRecipientStatusByMessageId.set(params.id, autoMarkRead ? 'read' : recipient.status)
131
+ }
132
+ const actorRecipientStatuses = Array.from(actorRecipientStatusByMessageId.values())
133
+ const conversationArchived = actorRecipientStatuses.length > 0
134
+ && actorRecipientStatuses.every((status) => status === 'archived')
135
+ const conversationAllUnread = actorRecipientStatuses.length > 0
136
+ && actorRecipientStatuses.every((status) => status === 'unread')
137
+
125
138
  const threadSenderIds = actorVisibleThreadMessages
126
139
  .map((threadMessage) => threadMessage.senderUserId)
127
140
  .filter((value): value is string => typeof value === 'string' && value.length > 0)
@@ -244,6 +257,8 @@ export async function GET(req: Request, { params }: { params: { id: string } })
244
257
  }
245
258
  }),
246
259
  isRead: recipient ? (autoMarkRead || recipient.status !== 'unread') : true,
260
+ conversationArchived,
261
+ conversationAllUnread,
247
262
  })
248
263
  }
249
264
 
@@ -121,6 +121,8 @@ export const messageDetailResponseSchema = z.object({
121
121
  })),
122
122
  thread: z.array(messageThreadItemSchema),
123
123
  isRead: z.boolean(),
124
+ conversationArchived: z.boolean(),
125
+ conversationAllUnread: z.boolean(),
124
126
  })
125
127
 
126
128
  export const messageTokenDetailResponseSchema = z.object({
@@ -228,6 +228,91 @@ const markConversationUnreadForActorCommand: CommandHandler<unknown, { ok: true;
228
228
  },
229
229
  }
230
230
 
231
+ const unarchiveConversationForActorCommand: CommandHandler<unknown, { ok: true; affectedCount: number }> = {
232
+ id: 'messages.conversation.unarchive_for_actor',
233
+ async execute(rawInput, ctx) {
234
+ const input = conversationCommandSchema.parse(rawInput)
235
+ const em = (ctx.container.resolve('em') as EntityManager).fork()
236
+ const scope = await resolveConversationScope(em, input)
237
+ const messageIdsToUnarchive = scope.messageIds.filter((messageId) => scope.recipientMessageIds.has(messageId))
238
+
239
+ if (messageIdsToUnarchive.length === 0) {
240
+ return { ok: true, affectedCount: 0 }
241
+ }
242
+
243
+ const unarchivedIds: string[] = []
244
+ await em.transactional(async (trx) => {
245
+ const recipients = await trx.find(MessageRecipient, {
246
+ messageId: { $in: messageIdsToUnarchive },
247
+ recipientUserId: input.userId,
248
+ deletedAt: null,
249
+ })
250
+ for (const recipient of recipients) {
251
+ if (recipient.status === 'archived' || recipient.archivedAt !== null) {
252
+ recipient.archivedAt = null
253
+ recipient.status = recipient.readAt ? 'read' : 'unread'
254
+ unarchivedIds.push(recipient.messageId)
255
+ }
256
+ }
257
+ })
258
+
259
+ for (const messageId of unarchivedIds) {
260
+ await emitMessagesEvent('messages.message.unarchived', {
261
+ messageId,
262
+ recipientUserId: input.userId,
263
+ userId: input.userId,
264
+ tenantId: input.tenantId,
265
+ organizationId: input.organizationId,
266
+ }, { persistent: true })
267
+ }
268
+
269
+ return { ok: true, affectedCount: unarchivedIds.length }
270
+ },
271
+ }
272
+
273
+ const markConversationReadForActorCommand: CommandHandler<unknown, { ok: true; affectedCount: number }> = {
274
+ id: 'messages.conversation.mark_read_for_actor',
275
+ async execute(rawInput, ctx) {
276
+ const input = conversationCommandSchema.parse(rawInput)
277
+ const em = (ctx.container.resolve('em') as EntityManager).fork()
278
+ const scope = await resolveConversationScope(em, input)
279
+ const messageIdsToMarkRead = scope.messageIds.filter((messageId) => scope.recipientMessageIds.has(messageId))
280
+
281
+ if (messageIdsToMarkRead.length === 0) {
282
+ return { ok: true, affectedCount: 0 }
283
+ }
284
+
285
+ const readAt = new Date()
286
+ const markedIds: string[] = []
287
+ await em.transactional(async (trx) => {
288
+ const recipients = await trx.find(MessageRecipient, {
289
+ messageId: { $in: messageIdsToMarkRead },
290
+ recipientUserId: input.userId,
291
+ deletedAt: null,
292
+ })
293
+ for (const recipient of recipients) {
294
+ if (recipient.status === 'unread') {
295
+ recipient.status = 'read'
296
+ recipient.readAt = readAt
297
+ markedIds.push(recipient.messageId)
298
+ }
299
+ }
300
+ })
301
+
302
+ for (const messageId of markedIds) {
303
+ await emitMessagesEvent('messages.message.read', {
304
+ messageId,
305
+ recipientUserId: input.userId,
306
+ userId: input.userId,
307
+ tenantId: input.tenantId,
308
+ organizationId: input.organizationId,
309
+ }, { persistent: true })
310
+ }
311
+
312
+ return { ok: true, affectedCount: markedIds.length }
313
+ },
314
+ }
315
+
231
316
  type DeletedTarget = { messageId: string; target: 'sender' | 'recipient' }
232
317
 
233
318
  const deleteConversationForActorCommand: CommandHandler<unknown, { ok: true; affectedCount: number }> = {
@@ -289,5 +374,7 @@ const deleteConversationForActorCommand: CommandHandler<unknown, { ok: true; aff
289
374
  }
290
375
 
291
376
  registerCommand(archiveConversationForActorCommand)
377
+ registerCommand(unarchiveConversationForActorCommand)
292
378
  registerCommand(markConversationUnreadForActorCommand)
379
+ registerCommand(markConversationReadForActorCommand)
293
380
  registerCommand(deleteConversationForActorCommand)
@@ -220,6 +220,8 @@ export function MessageDetailPageClient({ id }: { id: string }) {
220
220
  const firstConversationMessageId = state.conversationItems[0]?.id ?? null
221
221
  const latestConversationMessageId = state.conversationItems[state.conversationItems.length - 1]?.id ?? null
222
222
  const canRunConversationActions = Boolean(firstConversationMessageId)
223
+ const conversationArchived = Boolean(detail.conversationArchived)
224
+ const conversationAllUnread = Boolean(detail.conversationAllUnread)
223
225
 
224
226
  return (
225
227
  <div className="space-y-3">
@@ -228,6 +230,8 @@ export function MessageDetailPageClient({ id }: { id: string }) {
228
230
  priority={(detail.priority as 'low' | 'normal' | 'high' | 'urgent') ?? 'normal'}
229
231
  canReply={!detail.isDraft && detail.typeDefinition.allowReply && Boolean(firstConversationMessageId)}
230
232
  canForwardAll={!detail.isDraft && detail.typeDefinition.allowForward && Boolean(latestConversationMessageId)}
233
+ conversationArchived={conversationArchived}
234
+ conversationAllUnread={conversationAllUnread}
231
235
  actionsDisabled={Boolean(state.activeConversationAction)}
232
236
  activeActionId={state.activeConversationAction}
233
237
  onReply={() => {
@@ -244,13 +248,21 @@ export function MessageDetailPageClient({ id }: { id: string }) {
244
248
  messageId: latestConversationMessageId,
245
249
  })
246
250
  }}
247
- onArchiveConversation={() => {
251
+ onToggleArchiveConversation={() => {
248
252
  if (!canRunConversationActions) return
249
- void state.archiveConversation(firstConversationMessageId ?? undefined)
253
+ if (conversationArchived) {
254
+ void state.unarchiveConversation(firstConversationMessageId ?? undefined)
255
+ } else {
256
+ void state.archiveConversation(firstConversationMessageId ?? undefined)
257
+ }
250
258
  }}
251
- onMarkAllUnread={() => {
259
+ onToggleReadConversation={() => {
252
260
  if (!canRunConversationActions) return
253
- void state.markConversationUnread(firstConversationMessageId ?? undefined)
261
+ if (conversationAllUnread) {
262
+ void state.markConversationRead(firstConversationMessageId ?? undefined)
263
+ } else {
264
+ void state.markConversationUnread(firstConversationMessageId ?? undefined)
265
+ }
254
266
  }}
255
267
  onDeleteConversation={() => {
256
268
  if (!canRunConversationActions || state.activeConversationAction) return
@@ -20,7 +20,12 @@ type RequestAndRefreshOptions = {
20
20
  skipDetailAutoMarkRead?: boolean
21
21
  }
22
22
 
23
- type ConversationActionKind = 'archiveConversation' | 'deleteConversation' | 'markAllUnread'
23
+ type ConversationActionKind =
24
+ | 'archiveConversation'
25
+ | 'unarchiveConversation'
26
+ | 'deleteConversation'
27
+ | 'markAllUnread'
28
+ | 'markAllRead'
24
29
 
25
30
  type MessageDetailMutationContext = {
26
31
  resourceKind: 'message' | 'conversation'
@@ -188,6 +193,15 @@ export function useMessageDetailsActions({
188
193
  })
189
194
  }, [id, runConversationAction, t])
190
195
 
196
+ const unarchiveConversation = React.useCallback(async (messageId?: string) => {
197
+ const targetMessageId = messageId ?? id
198
+ await runConversationAction('unarchiveConversation', {
199
+ url: `/api/messages/${encodeURIComponent(targetMessageId)}/conversation/archive`,
200
+ method: 'DELETE',
201
+ successMessage: t('messages.flash.conversationUnarchived', 'Conversation restored from archive.'),
202
+ })
203
+ }, [id, runConversationAction, t])
204
+
191
205
  const markConversationUnread = React.useCallback(async (messageId?: string) => {
192
206
  const targetMessageId = messageId ?? id
193
207
  await runConversationAction('markAllUnread', {
@@ -198,6 +212,15 @@ export function useMessageDetailsActions({
198
212
  })
199
213
  }, [id, runConversationAction, t])
200
214
 
215
+ const markConversationRead = React.useCallback(async (messageId?: string) => {
216
+ const targetMessageId = messageId ?? id
217
+ await runConversationAction('markAllRead', {
218
+ url: `/api/messages/${encodeURIComponent(targetMessageId)}/conversation/read`,
219
+ method: 'PUT',
220
+ successMessage: t('messages.flash.conversationMarkedRead', 'Conversation marked read.'),
221
+ })
222
+ }, [id, runConversationAction, t])
223
+
201
224
  const deleteConversation = React.useCallback(async (messageId?: string) => {
202
225
  const targetMessageId = messageId ?? id
203
226
  await runConversationAction('deleteConversation', {
@@ -393,8 +416,10 @@ export function useMessageDetailsActions({
393
416
  toggleRead,
394
417
  toggleArchive,
395
418
  archiveConversation,
419
+ unarchiveConversation,
396
420
  deleteConversation,
397
421
  markConversationUnread,
422
+ markConversationRead,
398
423
  requestAndRefresh,
399
424
  handleDelete,
400
425
  handleDeleteDialogKeyDown,
@@ -4,7 +4,7 @@ import * as React from 'react'
4
4
  import { useT } from '@open-mercato/shared/lib/i18n/context'
5
5
  import { FormHeader, type ActionItem } from '@open-mercato/ui/backend/forms'
6
6
  import { IconButton } from '@open-mercato/ui/primitives/icon-button'
7
- import { Archive, Forward, MailMinus, Reply, Trash2 } from 'lucide-react'
7
+ import { Archive, ArchiveRestore, Forward, MailMinus, MailOpen, Reply, Trash2 } from 'lucide-react'
8
8
  import { PriorityBadge } from '../../utils/PriorityBadge'
9
9
 
10
10
  type MainMessageHeaderProps = {
@@ -12,12 +12,21 @@ type MainMessageHeaderProps = {
12
12
  priority: 'low' | 'normal' | 'high' | 'urgent'
13
13
  canReply: boolean
14
14
  canForwardAll: boolean
15
+ conversationArchived: boolean
16
+ conversationAllUnread: boolean
15
17
  actionsDisabled?: boolean
16
- activeActionId?: 'forwardAll' | 'archiveConversation' | 'markAllUnread' | 'deleteConversation' | null
18
+ activeActionId?:
19
+ | 'forwardAll'
20
+ | 'archiveConversation'
21
+ | 'unarchiveConversation'
22
+ | 'markAllUnread'
23
+ | 'markAllRead'
24
+ | 'deleteConversation'
25
+ | null
17
26
  onReply: () => void
18
27
  onForwardAll: () => void
19
- onArchiveConversation: () => void
20
- onMarkAllUnread: () => void
28
+ onToggleArchiveConversation: () => void
29
+ onToggleReadConversation: () => void
21
30
  onDeleteConversation: () => void
22
31
  }
23
32
 
@@ -42,19 +51,23 @@ export function MainMessageHeader(props: MainMessageHeaderProps) {
42
51
  },
43
52
  {
44
53
  id: 'archive-conversation',
45
- label: t('messages.actions.archiveConversation', 'Archive conversation'),
46
- icon: Archive,
47
- onSelect: props.onArchiveConversation,
54
+ label: props.conversationArchived
55
+ ? t('messages.actions.unarchiveConversation', 'Unarchive conversation')
56
+ : t('messages.actions.archiveConversation', 'Archive conversation'),
57
+ icon: props.conversationArchived ? ArchiveRestore : Archive,
58
+ onSelect: props.onToggleArchiveConversation,
48
59
  disabled: props.actionsDisabled,
49
- loading: props.activeActionId === 'archiveConversation',
60
+ loading: props.activeActionId === 'archiveConversation' || props.activeActionId === 'unarchiveConversation',
50
61
  },
51
62
  {
52
63
  id: 'mark-all-unread',
53
- label: t('messages.actions.markAllUnread', 'Mark all unread'),
54
- icon: MailMinus,
55
- onSelect: props.onMarkAllUnread,
64
+ label: props.conversationAllUnread
65
+ ? t('messages.actions.markAllRead', 'Mark all read')
66
+ : t('messages.actions.markAllUnread', 'Mark all unread'),
67
+ icon: props.conversationAllUnread ? MailOpen : MailMinus,
68
+ onSelect: props.onToggleReadConversation,
56
69
  disabled: props.actionsDisabled,
57
- loading: props.activeActionId === 'markAllUnread',
70
+ loading: props.activeActionId === 'markAllUnread' || props.activeActionId === 'markAllRead',
58
71
  },
59
72
  {
60
73
  id: 'delete-conversation',
@@ -68,10 +81,12 @@ export function MainMessageHeader(props: MainMessageHeaderProps) {
68
81
  props.actionsDisabled,
69
82
  props.canForwardAll,
70
83
  props.canReply,
71
- props.onArchiveConversation,
84
+ props.conversationArchived,
85
+ props.conversationAllUnread,
86
+ props.onToggleArchiveConversation,
72
87
  props.onDeleteConversation,
73
88
  props.onForwardAll,
74
- props.onMarkAllUnread,
89
+ props.onToggleReadConversation,
75
90
  props.onReply,
76
91
  props.activeActionId,
77
92
  t,
@@ -97,6 +97,8 @@ export type MessageDetail = {
97
97
  objects?: MessageDetailObject[]
98
98
  }>
99
99
  isRead: boolean
100
+ conversationArchived?: boolean
101
+ conversationAllUnread?: boolean
100
102
  }
101
103
 
102
104
  export type ActionResult = {
@@ -9,6 +9,7 @@
9
9
  "messages.actions.edit": "Bearbeiten",
10
10
  "messages.actions.executing": "Wird ausgeführt...",
11
11
  "messages.actions.forwardAll": "Alle weiterleiten",
12
+ "messages.actions.markAllRead": "Alle als gelesen markieren",
12
13
  "messages.actions.markAllUnread": "Alle als ungelesen markieren",
13
14
  "messages.actions.markRead": "Als gelesen markieren",
14
15
  "messages.actions.markUnread": "Als ungelesen markieren",
@@ -16,6 +17,7 @@
16
17
  "messages.actions.taken": "Aktion ausgeführt",
17
18
  "messages.actions.title": "Aktionen",
18
19
  "messages.actions.unarchive": "Wiederherstellen",
20
+ "messages.actions.unarchiveConversation": "Konversation wiederherstellen",
19
21
  "messages.attachFiles": "Dateien anhängen",
20
22
  "messages.attachObject": "Objekt anhängen",
21
23
  "messages.attachedFiles": "Anhänge",
@@ -146,7 +148,9 @@
146
148
  "messages.flash.actionSuccess": "Aktion abgeschlossen.",
147
149
  "messages.flash.conversationArchived": "Konversation archiviert.",
148
150
  "messages.flash.conversationDeleted": "Konversation gelöscht.",
151
+ "messages.flash.conversationMarkedRead": "Konversation als gelesen markiert.",
149
152
  "messages.flash.conversationMarkedUnread": "Konversation als ungelesen markiert.",
153
+ "messages.flash.conversationUnarchived": "Konversation wiederhergestellt.",
150
154
  "messages.flash.deleted": "Nachricht gelöscht.",
151
155
  "messages.flash.draftSaved": "Entwurf gespeichert.",
152
156
  "messages.flash.forwardSuccess": "Nachricht weitergeleitet.",
@@ -9,6 +9,7 @@
9
9
  "messages.actions.edit": "Edit",
10
10
  "messages.actions.executing": "Executing...",
11
11
  "messages.actions.forwardAll": "Forward all",
12
+ "messages.actions.markAllRead": "Mark all read",
12
13
  "messages.actions.markAllUnread": "Mark all unread",
13
14
  "messages.actions.markRead": "Mark read",
14
15
  "messages.actions.markUnread": "Mark unread",
@@ -16,6 +17,7 @@
16
17
  "messages.actions.taken": "Action taken",
17
18
  "messages.actions.title": "Actions",
18
19
  "messages.actions.unarchive": "Unarchive",
20
+ "messages.actions.unarchiveConversation": "Unarchive conversation",
19
21
  "messages.attachFiles": "Attach files",
20
22
  "messages.attachObject": "Attach object",
21
23
  "messages.attachedFiles": "Attachments",
@@ -146,7 +148,9 @@
146
148
  "messages.flash.actionSuccess": "Action completed.",
147
149
  "messages.flash.conversationArchived": "Conversation archived.",
148
150
  "messages.flash.conversationDeleted": "Conversation deleted.",
151
+ "messages.flash.conversationMarkedRead": "Conversation marked read.",
149
152
  "messages.flash.conversationMarkedUnread": "Conversation marked unread.",
153
+ "messages.flash.conversationUnarchived": "Conversation restored from archive.",
150
154
  "messages.flash.deleted": "Message deleted.",
151
155
  "messages.flash.draftSaved": "Draft saved.",
152
156
  "messages.flash.forwardSuccess": "Message forwarded.",
@@ -9,6 +9,7 @@
9
9
  "messages.actions.edit": "Editar",
10
10
  "messages.actions.executing": "Ejecutando...",
11
11
  "messages.actions.forwardAll": "Reenviar todo",
12
+ "messages.actions.markAllRead": "Marcar todo como leído",
12
13
  "messages.actions.markAllUnread": "Marcar todo como no leído",
13
14
  "messages.actions.markRead": "Marcar como leído",
14
15
  "messages.actions.markUnread": "Marcar como no leído",
@@ -16,6 +17,7 @@
16
17
  "messages.actions.taken": "Acción realizada",
17
18
  "messages.actions.title": "Acciones",
18
19
  "messages.actions.unarchive": "Desarchivar",
20
+ "messages.actions.unarchiveConversation": "Desarchivar conversación",
19
21
  "messages.attachFiles": "Adjuntar archivos",
20
22
  "messages.attachObject": "Adjuntar objeto",
21
23
  "messages.attachedFiles": "Adjuntos",
@@ -146,7 +148,9 @@
146
148
  "messages.flash.actionSuccess": "Acción completada.",
147
149
  "messages.flash.conversationArchived": "Conversación archivada.",
148
150
  "messages.flash.conversationDeleted": "Conversación eliminada.",
151
+ "messages.flash.conversationMarkedRead": "Conversación marcada como leída.",
149
152
  "messages.flash.conversationMarkedUnread": "Conversación marcada como no leída.",
153
+ "messages.flash.conversationUnarchived": "Conversación desarchivada.",
150
154
  "messages.flash.deleted": "Mensaje eliminado.",
151
155
  "messages.flash.draftSaved": "Borrador guardado.",
152
156
  "messages.flash.forwardSuccess": "Mensaje reenviado.",
@@ -9,6 +9,7 @@
9
9
  "messages.actions.edit": "Edytuj",
10
10
  "messages.actions.executing": "Wykonywanie...",
11
11
  "messages.actions.forwardAll": "Przekaż cały wątek",
12
+ "messages.actions.markAllRead": "Oznacz wszystko jako przeczytane",
12
13
  "messages.actions.markAllUnread": "Oznacz wszystko jako nieprzeczytane",
13
14
  "messages.actions.markRead": "Oznacz jako przeczytane",
14
15
  "messages.actions.markUnread": "Oznacz jako nieprzeczytane",
@@ -16,6 +17,7 @@
16
17
  "messages.actions.taken": "Wykonana akcja",
17
18
  "messages.actions.title": "Akcje",
18
19
  "messages.actions.unarchive": "Przywróć z archiwum",
20
+ "messages.actions.unarchiveConversation": "Przywróć konwersację z archiwum",
19
21
  "messages.attachFiles": "Dołącz pliki",
20
22
  "messages.attachObject": "Dołącz obiekt",
21
23
  "messages.attachedFiles": "Załączniki",
@@ -146,7 +148,9 @@
146
148
  "messages.flash.actionSuccess": "Akcja wykonana.",
147
149
  "messages.flash.conversationArchived": "Konwersacja zarchiwizowana.",
148
150
  "messages.flash.conversationDeleted": "Konwersacja usunięta.",
151
+ "messages.flash.conversationMarkedRead": "Konwersacja oznaczona jako przeczytana.",
149
152
  "messages.flash.conversationMarkedUnread": "Konwersacja oznaczona jako nieprzeczytana.",
153
+ "messages.flash.conversationUnarchived": "Konwersacja przywrócona z archiwum.",
150
154
  "messages.flash.deleted": "Wiadomość usunięta.",
151
155
  "messages.flash.draftSaved": "Szkic zapisany.",
152
156
  "messages.flash.forwardSuccess": "Wiadomość przekazana.",