@jsb188/app 1.1.10 → 1.1.12

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 (79) hide show
  1. package/package.json +57 -45
  2. package/src/constants/agent.ts +51 -41
  3. package/src/constants/app.ts +34 -13
  4. package/src/constants/emoji.ts +9144 -8936
  5. package/src/constants/other.ts +1 -5
  6. package/src/constants/user.ts +16 -25
  7. package/src/constants/wsActions.ts +27 -0
  8. package/src/i18n/account.ts +129 -107
  9. package/src/i18n/agent.ts +331 -73
  10. package/src/i18n/agentToolBusiness.ts +196 -0
  11. package/src/i18n/agentToolGrid.ts +137 -0
  12. package/src/i18n/agentToolWorkflow.ts +101 -0
  13. package/src/i18n/agent_note.ts +109 -0
  14. package/src/i18n/app.ts +107 -91
  15. package/src/i18n/auth.ts +117 -102
  16. package/src/i18n/billing.ts +5 -92
  17. package/src/i18n/c.ts +907 -0
  18. package/src/i18n/campaign.ts +919 -0
  19. package/src/i18n/country.ts +248 -248
  20. package/src/i18n/datetime.ts +32 -26
  21. package/src/i18n/editor.ts +58 -0
  22. package/src/i18n/error.ts +577 -192
  23. package/src/i18n/field_doc_editor.ts +21 -0
  24. package/src/i18n/field_doc_programs.ts +52 -0
  25. package/src/i18n/field_docs.ts +190 -0
  26. package/src/i18n/index.ts +42 -19
  27. package/src/i18n/log.ts +272 -238
  28. package/src/i18n/memory.ts +53 -0
  29. package/src/i18n/message.ts +3 -4
  30. package/src/i18n/note.ts +19 -0
  31. package/src/i18n/org.ts +164 -109
  32. package/src/i18n/schedule.ts +209 -0
  33. package/src/i18n/sheet.ts +333 -4
  34. package/src/i18n/sheet_formula.ts +165 -0
  35. package/src/i18n/workflow.ts +109 -23
  36. package/src/main.ts +68 -64
  37. package/src/platform.ts +90 -49
  38. package/src/types/ai.d.ts +52 -23
  39. package/src/types/app.d.ts +95 -44
  40. package/src/types/auth.d.ts +66 -40
  41. package/src/types/console.d.ts +3 -0
  42. package/src/types/other.d.ts +13 -6
  43. package/src/types.d.ts +12 -14
  44. package/src/utils/account.ts +64 -58
  45. package/src/utils/api.ts +326 -77
  46. package/src/utils/authSession.ts +24 -0
  47. package/src/utils/clientIP.ts +213 -0
  48. package/src/utils/color.ts +279 -0
  49. package/src/utils/cron.ts +49 -18
  50. package/src/utils/csv.ts +19 -0
  51. package/src/utils/datetime.ts +445 -117
  52. package/src/utils/deferredSave.ts +89 -0
  53. package/src/utils/email.ts +50 -0
  54. package/src/utils/emoji.ts +107 -84
  55. package/src/utils/expression.helpers.ts +470 -0
  56. package/src/utils/expression.test.ts +793 -0
  57. package/src/utils/expression.ts +2261 -0
  58. package/src/utils/interval.ts +80 -0
  59. package/src/utils/language.ts +9 -0
  60. package/src/utils/logic.ts +141 -121
  61. package/src/utils/managedSession.ts +34 -0
  62. package/src/utils/managedSessionBff.test.ts +60 -0
  63. package/src/utils/managedSessionBff.ts +117 -0
  64. package/src/utils/number.ts +85 -38
  65. package/src/utils/object.ts +227 -30
  66. package/src/utils/promise.ts +98 -0
  67. package/src/utils/queryReset.ts +266 -0
  68. package/src/utils/recurringTask.ts +60 -0
  69. package/src/utils/schema.ts +293 -0
  70. package/src/utils/string.test.ts +205 -208
  71. package/src/utils/string.ts +426 -463
  72. package/src/utils/timeZone.ts +309 -851
  73. package/src/utils/url_client.ts +145 -72
  74. package/tsconfig.json +10 -10
  75. package/src/constants/billing.ts +0 -146
  76. package/src/i18n/form.ts +0 -376
  77. package/src/i18n/product.ts +0 -76
  78. package/src/types/form.d.ts +0 -97
  79. package/src/utils/billing.ts +0 -134
package/src/i18n/log.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export default {
2
2
  en: {
3
+ created_by_ai: 'Created by AI',
3
4
  // General
4
5
  log: 'Log',
5
6
  logs: 'Logs',
6
- all_logs: 'All logs',
7
7
  related_logs: 'Related logs',
8
8
  nothing_found: 'No logs found.',
9
9
  log_missing: 'Log missing',
@@ -13,26 +13,16 @@ export default {
13
13
  unit_arable_ph: 'lbs',
14
14
  location_arable_ph: 'Field A, Row 4, etc.',
15
15
  location_water_ph: 'Water source A, etc.',
16
- location_livestock: 'Location',
17
- location_livestock_ph: 'Pasture A, Barn B, etc.',
18
- fieldLocation: 'Field',
19
- livestockGroup: 'Group',
16
+ fieldLocation: 'Field',
20
17
  crop_ph: 'Tomato, broccoli, etc.',
21
- livestock: 'Livestock',
22
- livestockIdentifier: 'Livestock ID',
23
- livestockIdentifiers: 'Livestock IDs',
24
- livestock_ph: 'Cattle, goat, chicken, etc.',
25
18
  purchases: 'Purchases',
26
19
  supply_purchases: 'Supply purchases',
27
20
  note_from_ai: 'Note from AI',
28
- id_tags: 'ID tag(s)',
29
- id_tags_ph: '121, 212, 444, etc',
30
- group: 'Livestock group',
31
- group_ph: 'Herd A, Pasture B Group, etc',
32
- logType: 'Log type',
21
+ logType: 'Log type',
33
22
  receipt_for: 'Receipt for',
34
- otherParty: 'For',
35
- childOrgName: 'For',
23
+ otherParty: 'For',
24
+ childOrgName: 'For',
25
+ projectName: 'Project name',
36
26
  market: 'Market',
37
27
  marketCredits: 'Market credits',
38
28
  marketCredits_ph: '$25 MC, $5 EBT, etc.',
@@ -40,6 +30,8 @@ export default {
40
30
  seeding: 'Seeding',
41
31
  transplanting: 'Transplanting',
42
32
  field_work: 'Field work',
33
+ temperature: 'Cooking & Cooling',
34
+ inspections: 'Inspections',
43
35
  harvest: 'Harvest',
44
36
  harvested: 'Harvested',
45
37
  post_harvest: 'Post-harvest',
@@ -47,7 +39,6 @@ export default {
47
39
  hygiene: 'Hygiene',
48
40
  sanitation: 'Sanitation',
49
41
  materials: 'Materials',
50
- biosecurity: 'Biosecurity',
51
42
  employees: 'Employees',
52
43
  name_of_credit: 'Name of credit',
53
44
  water_testing: 'Chlorine levels',
@@ -62,16 +53,100 @@ export default {
62
53
  receipt_is_not_void: 'Receipt is not void',
63
54
  no_permissions_to_edit: 'You do not have edit permissions.',
64
55
  note_ph: 'Write additional notes about this log.',
65
- note_ph_voided: 'Voided logs cannot be edited.',
56
+ note_ph_voided: 'Voided logs cannot be edited.',
66
57
  unknown_crop: 'Unknown crop',
67
- delete_confirm_msg: 'Are you sure you want to delete this %{content}? This action cannot be undone.',
68
58
  yes_delete_log: 'Yes, delete this %{content}',
69
- loaded_more_than_: 'You loaded more than %{limit} logs. Please refine your search to see more logs.',
59
+ loaded_more_than_: 'You loaded more than %{limit} records. Refine your search to see more.',
70
60
  change_sorting_option_for_more_data: 'Change the sorting option for more data.',
71
- end_of_list_: (
61
+ end_of_list_:
72
62
  'You reached the end of this list with %{smart_count} record.||||' +
73
- 'You reached the end of this list with %{smart_count} records.'
74
- ),
63
+ 'You reached the end of this list with %{smart_count} records.',
64
+ logs_end: 'There is %{smart_count} log for this organization.||||' + 'There are %{smart_count} logs for this organization.',
65
+ logs_empty: "There aren't any logs for this organization.",
66
+ receipts_end:
67
+ 'There is %{smart_count} receipt for this organization.||||' + 'There are %{smart_count} receipts for this organization.',
68
+ receipts_empty: "There aren't any receipts for this organization.",
69
+ sales_orders_end:
70
+ 'There is %{smart_count} sales order for this organization.||||' +
71
+ 'There are %{smart_count} sales orders for this organization.',
72
+ sales_orders_empty: "There aren't any sales orders for this organization.",
73
+ purchases_end:
74
+ 'There is %{smart_count} purchase for this organization.||||' + 'There are %{smart_count} purchases for this organization.',
75
+ purchases_empty: "There aren't any purchases for this organization.",
76
+ seeding_logs_end:
77
+ 'There is %{smart_count} seeding log for this organization.||||' +
78
+ 'There are %{smart_count} seeding logs for this organization.',
79
+ seeding_logs_empty: "There aren't any seeding logs for this organization.",
80
+ greenhouse_seeding_logs_end:
81
+ 'There is %{smart_count} greenhouse seeding log for this organization.||||' +
82
+ 'There are %{smart_count} greenhouse seeding logs for this organization.',
83
+ greenhouse_seeding_logs_empty: "There aren't any greenhouse seeding logs for this organization.",
84
+ transplanting_logs_end:
85
+ 'There is %{smart_count} transplanting log for this organization.||||' +
86
+ 'There are %{smart_count} transplanting logs for this organization.',
87
+ transplanting_logs_empty: "There aren't any transplanting logs for this organization.",
88
+ harvest_logs_end:
89
+ 'There is %{smart_count} harvest log for this organization.||||' +
90
+ 'There are %{smart_count} harvest logs for this organization.',
91
+ harvest_logs_empty: "There aren't any harvest logs for this organization.",
92
+ post_harvest_logs_end:
93
+ 'There is %{smart_count} post-harvest log for this organization.||||' +
94
+ 'There are %{smart_count} post-harvest logs for this organization.',
95
+ post_harvest_logs_empty: "There aren't any post-harvest logs for this organization.",
96
+ field_work_logs_end:
97
+ 'There is %{smart_count} field work log for this organization.||||' +
98
+ 'There are %{smart_count} field work logs for this organization.',
99
+ field_work_logs_empty: "There aren't any field work logs for this organization.",
100
+ temperature_logs_end:
101
+ 'There is %{smart_count} temperature log for this organization.||||' +
102
+ 'There are %{smart_count} temperature logs for this organization.',
103
+ temperature_logs_empty: "There aren't any temperature logs for this organization.",
104
+ inspections_logs_end:
105
+ 'There is %{smart_count} inspection log for this organization.||||' +
106
+ 'There are %{smart_count} inspection logs for this organization.',
107
+ inspections_logs_empty: "There aren't any inspection logs for this organization.",
108
+ revision_history: 'History',
109
+ revision_history_empty: 'No revision history has been recorded yet.',
110
+ revision_history_failed: 'Revision history could not be loaded.',
111
+ revision_history_load_older: 'Load older revisions',
112
+ revision_history_more_failed: 'Older revisions could not be loaded.',
113
+ revision_title: 'Revision %{number} · %{action}',
114
+ revision_actor_at: '%{actor} · %{timestamp}',
115
+ revision_actor_with_id: '%{kind} %{id}',
116
+ revision_full_snapshot: 'A complete snapshot was recorded for this revision.',
117
+ revision_value_missing: '(not present)',
118
+ revision_download_proof: 'Download proof',
119
+ revision_proof_download_failed: 'The archived proof could not be downloaded.',
120
+
121
+ revision_action: {
122
+ BASELINE: 'Baseline',
123
+ CREATE: 'Created',
124
+ UPDATE: 'Updated',
125
+ DELETE: 'Deleted',
126
+ ATTACHMENT_LINK: 'Attachment linked',
127
+ ATTACHMENT_UNLINK: 'Attachment unlinked',
128
+ },
129
+
130
+ revision_actor: {
131
+ ACCOUNT: 'Account',
132
+ AGENT: 'Agent',
133
+ IMPORT: 'Import',
134
+ SYSTEM: 'System',
135
+ },
136
+
137
+ revision_change: {
138
+ ADD: 'Added %{path}: %{after}',
139
+ UPDATE: 'Changed %{path} from %{before} to %{after}',
140
+ REMOVE: 'Removed %{path}: %{before}',
141
+ },
142
+
143
+ revision_proof_status: {
144
+ NOT_REQUIRED: 'Proof not required',
145
+ PENDING: 'Proof pending',
146
+ VERIFIED: 'Proof verified',
147
+ FAILED: 'Proof failed',
148
+ UNANCHORED: 'Unanchored',
149
+ },
75
150
 
76
151
  log_type_is_created_updated: 'When %{type} logs are created/updated.',
77
152
  risk_flags: 'Potential risks',
@@ -92,6 +167,7 @@ export default {
92
167
  edit_log: 'Edit log',
93
168
  edit_invoice: 'Edit invoice',
94
169
  edit_receipt: 'Edit receipt',
170
+ view_log: 'View log',
95
171
 
96
172
  view_edit_log: 'View or edit log',
97
173
  view_edit_invoice: 'View or edit invoice',
@@ -101,94 +177,113 @@ export default {
101
177
  delete_invoice: 'Delete invoice',
102
178
  delete_receipt: 'Delete receipt',
103
179
 
104
- // Source of log entry save
180
+ // Source of log entry save
105
181
 
106
- source: {
182
+ source: {
107
183
  EMAIL: 'email',
108
184
  SMS: 'SMS',
109
185
  WEB: 'web',
110
186
  WORKFLOW: 'workflow',
111
187
  },
112
188
 
113
- // Unit by log graphql type
114
- unit: {
115
- LogArable: 'Pack Size',
116
- },
189
+ rack_position: { top: 'Top', middle: 'Middle', bottom: 'Bottom' },
190
+ rack_temperature: { top: 'Top temperature', middle: 'Middle temperature', bottom: 'Bottom temperature' },
117
191
 
118
192
  // Types
193
+ market_operations: 'Market operations',
119
194
  type: {
195
+ APP_INTERACTIONS: 'Interactions',
196
+ FOOD_PRODUCTION: 'Production',
197
+ FOOD_WAREHOUSING: 'Warehousing',
198
+ FULFILLMENT: 'Fulfillment',
199
+ FOOD_TEMPERATURE: 'Food temperatures',
200
+ FOOD_INSPECTION: 'Inspections',
201
+ SANITATION: 'Sanitation',
202
+ SHIPPING_HANDLING: 'Shipping and handling',
203
+ EMS_INCIDENT: 'EMS incidents',
120
204
  // #### ARABLE
121
- SEED: 'Seed purchase',
205
+ SEED: 'Seed purchases',
122
206
  PLANTING: 'Seeding & transplanting',
123
- FIELD: 'Field',
207
+ FIELD: 'Field work',
124
208
  HARVEST: 'Harvest',
125
209
  POST_HARVEST: 'Post-harvest',
126
- SALES: 'Sales order',
210
+ SALES: 'Sales orders',
127
211
  WATER: 'Water testing',
128
-
129
- // #### ARABLE - FOOD SAFETY
130
- HYGIENE: 'Hygiene procedures',
131
- SANITATION: 'Sanitation infrastructure',
132
- EQUIPMENT: 'Equipment & materials',
133
- BIOSECURITY: 'Environment & biosecurity',
134
- EMPLOYEE: 'Employees & operation',
212
+ CLEANING_AND_SANITATION: 'Cleaning and sanitation',
135
213
 
136
214
  // #### FARMERS_MARKET
137
- MARKET_RECEIPT: 'Receipt',
138
- MARKET_OPERATION: 'Operation',
139
- VOID_MARKET_RECEIPT: 'Void receipt',
215
+ MARKET_RECEIPT: 'Receipts',
216
+ MARKET_OPERATION: 'Market operations',
217
+ VOID_MARKET_RECEIPT: 'Voided receipts',
140
218
 
141
219
  // #### GROWER_NETWORK
142
220
  WORKER_PRACTICE: 'Personnel practices',
221
+ EQUIPMENT: 'Equipment & materials',
143
222
  PRODUCTION_INPUT: 'Production inputs',
144
223
  OPERATION: 'Operations',
145
224
 
146
- // #### LIVESTOCK
147
- SUPPLY_PURCHASE: 'Supply purchase',
148
- LIVESTOCK_LIFE_CYCLE: 'Livestock life cycle',
149
- LIVESTOCK_TRACKING: 'Livestock tracking',
150
- PASTURE_LAND_MANAGEMENT: 'Pasture management',
151
- LIVESTOCK_HEALTHCARE: 'Livestock healthcare',
152
- LIVESTOCK_SALE: 'Livestock sale',
225
+ // #### CONSTRUCTION_INSPECTION_AGENCY (OPERATION is shared above)
226
+ SITE_INSPECTION: 'Inspections',
227
+ PROJECT: 'Projects',
153
228
  },
154
229
  type_short: {
230
+ APP_INTERACTIONS: 'Interactions',
231
+ FOOD_PRODUCTION: 'Production',
232
+ FOOD_WAREHOUSING: 'Warehousing',
233
+ FULFILLMENT: 'Fulfillment',
234
+ FOOD_TEMPERATURE: 'Food temperatures',
235
+ FOOD_INSPECTION: 'Inspections',
236
+ SANITATION: 'Sanitation',
237
+ SHIPPING_HANDLING: 'Shipping and handling',
238
+ EMS_INCIDENT: 'EMS incidents',
155
239
  // #### ARABLE
156
- SEED: 'Seed purchase',
240
+ SEED: 'Seed purchases',
157
241
  PLANTING: 'Planting',
158
- FIELD: 'Field',
242
+ FIELD: 'Field work',
159
243
  HARVEST: 'Harvest',
160
244
  POST_HARVEST: 'Post-harvest',
161
- SALES: 'Sale',
245
+ SALES: 'Sales',
162
246
  WATER: 'Water testing',
163
-
164
- // #### ARABLE - FOOD SAFETY
165
- HYGIENE: 'Hygiene',
166
- SANITATION: 'Sanitation',
167
- EQUIPMENT: 'Equipment',
168
- BIOSECURITY: 'Biosecurity',
169
- EMPLOYEE: 'Employee',
247
+ CLEANING_AND_SANITATION: 'Cleaning',
170
248
 
171
249
  // #### FARMERS_MARKET
172
- MARKET_RECEIPT: 'Receipt',
173
- MARKET_OPERATION: 'Operation',
174
- VOID_MARKET_RECEIPT: 'Void receipt',
250
+ MARKET_RECEIPT: 'Receipts',
251
+ MARKET_OPERATION: 'Operations',
252
+ VOID_MARKET_RECEIPT: 'Voided receipts',
175
253
 
176
254
  // #### GROWER_NETWORK
177
255
  WORKER_PRACTICE: 'Personnel',
256
+ EQUIPMENT: 'Equipment',
178
257
  PRODUCTION_INPUT: 'Inputs',
179
258
  OPERATION: 'Operations',
180
259
 
181
- // #### LIVESTOCK
182
- SUPPLY_PURCHASE: 'Supply purchase',
183
- LIVESTOCK_LIFE_CYCLE: 'Life cycle',
184
- LIVESTOCK_TRACKING: 'Tracking',
185
- PASTURE_LAND_MANAGEMENT: 'Pasture',
186
- LIVESTOCK_HEALTHCARE: 'Healthcare',
187
- LIVESTOCK_SALE: 'Sale',
260
+ // #### CONSTRUCTION_INSPECTION_AGENCY (OPERATION is shared above)
261
+ SITE_INSPECTION: 'Inspections',
262
+ PROJECT: 'Projects',
188
263
  },
189
264
 
190
265
  // Activities
191
266
  activity: {
267
+ CAMPAIGN_FORM_SUBMISSION: 'Form submission',
268
+ OTHER_PRODUCT_PROCESSING_ACTIVITY: 'Other product processing',
269
+ PRODUCT_TRANSFER: 'Product transfer',
270
+ OTHER_PRODUCT_STORAGE_HANDLING_ACTIVITY: 'Other storage & handling',
271
+ OTHER_PACKAGING_SHIPPING_ACTIVITY: 'Other packaging & shipping',
272
+ COOKING_TEMPERATURE: 'Cooking temperature',
273
+ COOLING_TEMPERATURE: 'Cooling temperature',
274
+ THERMOMETER_CALIBRATION: 'Thermometer calibration',
275
+ OTHER_FOOD_TEMPERATURE_ACTIVITY: 'Other food temperature',
276
+ FOOD_INGREDIENT: 'Ingredient inspection',
277
+ METAL_DETECTOR_X_RAY: 'Metal detector / X-ray check',
278
+ ALLERGEN: 'Allergen control',
279
+ OTHER_FOOD_SAFETY_ACTIVITY: 'Other food safety activity',
280
+ OTHER_HYGIENE_SANITATION_ACTIVITY: 'Other hygiene & sanitation',
281
+ PRE_SHIPMENT: 'Pre-shipment review',
282
+ PACKAGING_AND_LABEL: 'Packaging and label check',
283
+ OTHER_SHIPPING_HANDLING_ACTIVITY: 'Other shipping & handling',
284
+ EMS_INCIDENT_CHART: 'Patient care report',
285
+ EMS_CALL_OR_COMPUTER_AIDED_DISPATCH: 'CAD call sheet',
286
+ OTHER_EMS_INCIDENT_ACTIVITY: 'Other EMS incident activity',
192
287
  // #### ARABLE
193
288
 
194
289
  // # Seed activities
@@ -198,73 +293,46 @@ export default {
198
293
  // # Transplanting activities
199
294
  SEEDING: 'Seeding',
200
295
  DIRECT_SEEDING: 'Direct seeding',
201
- GREENHOUSE_SEEDING: 'Greenhouse seeding',
296
+ GREENHOUSE_SEEDING: 'Greenhouse seeding',
202
297
  TRANSPLANTING: 'Transplanting',
203
298
  SEED_COMPLIANCE_NOTE: 'Seeding compliance',
204
- OTHER_TRANSPLANT_ACTIVITY: 'Other seeding/transplanting activities',
299
+ OTHER_TRANSPLANT_ACTIVITY: 'Other seeding/transplanting',
205
300
 
206
301
  // # Field activities
207
302
  PREPARE_SOIL: 'Soil/bed preparation',
208
303
  IRRIGATION: 'Irrigation, water management',
209
304
  FERTILIZATION_COMPOST: 'Fertilization, compost',
210
- PROTECT_CROP: 'Crop protection (weeds, pests, diseases)',
305
+ PROTECT_CROP: 'Crop protection',
211
306
  MONITOR_CROP: 'Crop monitoring',
212
307
  PRUNING: 'Pruning',
213
- STRUCTURE_MAINTENANCE: 'Trellising/structure maintenance',
308
+ STRUCTURE_MAINTENANCE: 'Trellis/structure maintenance',
214
309
  PREPARE_HARVEST: 'Preparing crops for harvest',
215
- OTHER_FIELD_ACTIVITY: 'General field notes',
310
+ OTHER_FIELD_ACTIVITY: 'General field note',
216
311
 
217
312
  // # Harvest activities
218
313
  HARVEST_CROP: 'Harvested crops',
219
314
  HARVEST_COUNT: 'Counting/weighing crops',
220
315
  SORT_GRADE: 'Sorting/grading crops',
221
316
  YIELD_LOSS_ESTIMATE: 'Estimating yield or loss',
222
- OTHER_HARVEST_ACTIVITY: 'Other harvest activities',
317
+ OTHER_HARVEST_ACTIVITY: 'Other harvest',
223
318
 
224
319
  // # Post-harvest activities
225
320
  POST_HARVEST_HANDLING: 'Handling/grading produce',
226
321
  POST_HARVEST_PACKAGING: 'Packaging/moving to storage',
227
322
  COLD_STORAGE_TEMPERATURE: 'Cold storage temperature',
228
- OTHER_POST_HARVEST_ACTIVITY: 'Other post-harvest activities',
323
+ OTHER_POST_HARVEST_ACTIVITY: 'Other post-harvest',
229
324
 
230
325
  // # Sales activities
231
- SALE_PRODUCE_ORDER: 'sales order (produce)',
232
- OTHER_SALE_ORDER: 'sales order (other)',
326
+ SALE_PRODUCE_ORDER: 'Sales order (produce)',
327
+ OTHER_SALE_ORDER: 'Sales order (other)',
233
328
 
234
329
  // # Water testing activities
235
- WATER_TESTING: 'Water testing (chlorine levels)',
236
- OTHER_WATER_TESTING_ACTIVITY: 'Other water testing activities',
237
-
238
- // #### ARRABLE - FOOD SAFETY
239
-
240
- // # Hygiene procedures
241
- HYGIENE_PROCEDURE: 'Hygiene procedures',
242
- CONTAMINANT_RISK: 'Contaminants (physical, chemical, microbial)',
243
- BODILY_FLUID_CONTAMINATION: 'Bodily fluid decontamination',
244
- SMOKING_EATING_DRINKING_CONTROL: 'Smoking/eating/drinking controls',
245
- PPE_USAGE: 'Personal protective equipment (PPE)',
246
-
247
- // # Sanitation infrastructure
248
- SANITATION_RISK: 'Sanitation risk',
249
- SANITATION_CONSTRUCTION_MAINTENANCE: 'Sanitation facilities construction/maintenance',
250
- SANITATION_CLEANING: 'Sanitation facilities cleaning',
251
- SANITATION_PEST_CONTROL: 'Sanitation facilities pest control',
252
-
253
- // # Materials & equipments
254
- EQUIPMENTS_MATERIALS_RISK: 'Materials food safety risk',
255
- EQUIPMENTS_MATERIALS_CLEANING: 'Materials/food equipments cleaning',
256
-
257
- // # Environment & biosecurity
258
- ENVIRONMENT_RISK: 'Environmental food safety risk',
259
-
260
- // # Employee incidents & training
261
- EMPLOYEE_ORIENTATION: 'Employee orientation',
262
- EMPLOYEE_TRAINING: 'Employee training',
263
- SICK_EMPLOYEE: 'Sick employee',
264
- EMPLOYEE_INJURED: 'Injured employee',
265
- EMPLOYEE_NOTES: 'Notes on employees', // "S" is deprecated, but need database migration
266
- OPERATION_NOTES: 'General operation notes', // "S" is deprecated, but need database migration
267
- OPERATION_NOTE: 'General operation notes',
330
+ WATER_TESTING: 'Water testing (chlorine)',
331
+ OTHER_WATER_TESTING_ACTIVITY: 'Other water testing',
332
+
333
+ // # Food safety and operation notes
334
+ EMPLOYEE_NOTE: 'Employee note',
335
+ OPERATION_NOTE: 'General operation note',
268
336
 
269
337
  // #### FARMERS MARKET
270
338
 
@@ -278,8 +346,9 @@ export default {
278
346
  // #### GROWER NETWORK
279
347
 
280
348
  // # Grower network activities
349
+ HYGIENE_PROCEDURE: 'Hygiene procedure',
281
350
  SANITATION_PRACTICE: 'Sanitation',
282
- PERSONNEL_PRACTICE: 'Personnel practices',
351
+ PERSONNEL_PRACTICE: 'Personnel practice',
283
352
  EQUIPMENT_MATERIAL: 'Equipment & materials',
284
353
  PACKAGING_STORAGE: 'Packaging & storage',
285
354
  ENVIRONMENT: 'Environment',
@@ -291,47 +360,49 @@ export default {
291
360
  RECORDKEEPING: 'Recordkeeping',
292
361
  FACILITIES: 'Infrastructure (physical)',
293
362
 
294
- // #### LIVESTOCK
295
-
296
- // # Feed & Supply purchases activities
297
- FEED_PURCHASE: 'Feed purchase',
298
- // OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Other supply purchase', // This is double'd in Arable
299
-
300
- // # Livestock life cycle activities
301
- LIVESTOCK_PURCHASE: 'Livestock purchase',
302
- LIVESTOCK_BIRTH: 'Livestock birth',
303
- LIVESTOCK_REPRODUCTION: 'Livestock reproduction',
304
- LIVESTOCK_DEATH: 'Livestock death',
305
- OTHER_LIVESTOCK_LIFE_CYCLE_ACTIVITY: 'Other life cycle activities',
306
-
307
- // # Livestock tracking activities
308
- LIVESTOCK_GROUP_TRACKING: 'Group tracking',
309
- LIVESTOCK_PASTURE_TRACKING: 'Pasture tracking',
310
- LIVESTOCK_ROTATIONAL_GRAZING: 'Rotational grazing',
311
- OTHER_LIVESTOCK_TRACKING_ACTIVITY: 'Other tracking activities',
312
-
313
- // # Pasture land management activities
314
- PASTURE_SEEDING: 'Pasture seeding',
315
- FENCE_MAINTENANCE: 'Fence maintenance',
316
- WATER_SOURCE_MAINTENANCE: 'Water source maintenance',
317
- OTHER_PASTURE_LAND_MANAGEMENT_ACTIVITY: 'General ranching operation notes',
318
-
319
- // # Livestock healthcare activities
320
- LIVESTOCK_VACCINATION: 'Livestock vaccination',
321
- LIVESTOCK_SICK: 'Sick livestock',
322
- LIVESTOCK_INJURY: 'Injured livestock',
323
- LIVESTOCK_CULL: 'Livestock culling',
324
- LIVESTOCK_TREATMENT: 'Livestock treatment',
325
- OTHER_LIVESTOCK_HEALTHCARE_ACTIVITY: 'Other healthcare activities',
326
-
327
- // # Livestock sale activities
328
- LIVESTOCK_SALE: 'Livestock sale',
329
- OTHER_LIVESTOCK_SALE_ACTIVITY: 'Other sales activities',
363
+ // #### CONSTRUCTION INSPECTION AGENCY
364
+
365
+ // # Site inspection activities
366
+ MATERIAL: 'Construction materials',
367
+ MATERIAL_TESTING: 'Material testing',
368
+ BEHAVIOR_ISSUE: 'Worker conduct or safety',
369
+ OTHER_INSPECTION_ACTIVITY: 'Other inspection',
370
+
371
+ // # Project activities
372
+ PROJECT_SCHEDULING: 'Project scheduling',
373
+ PROJECT_SCOPE: 'Project scope or changes',
374
+ PROJECT_PROGRESS: 'Project progress',
375
+ PROJECT_BID_PROPOSAL: 'Bid or proposal',
376
+ PROJECT_BILLING_INVOICE: 'Billing or invoice',
377
+ OTHER_PROJECT_ACTIVITY: 'Other project activity',
378
+
379
+ // # Operation activities (RECORDKEEPING and OPERATION_NOTE are shared above)
380
+ OFFICE_NOTE: 'Office note',
330
381
  },
331
382
 
332
383
  // Short versions will override longer version for UI purposes
333
384
 
334
385
  activity_short: {
386
+ CAMPAIGN_FORM_SUBMISSION: 'Form',
387
+ OTHER_PRODUCT_PROCESSING_ACTIVITY: 'Other processing',
388
+ PRODUCT_TRANSFER: 'Product transfer',
389
+ OTHER_PRODUCT_STORAGE_HANDLING_ACTIVITY: 'Other storage/handling',
390
+ OTHER_PACKAGING_SHIPPING_ACTIVITY: 'Other packaging/shipping',
391
+ COOKING_TEMPERATURE: 'Cooking temperature',
392
+ COOLING_TEMPERATURE: 'Cooling temperature',
393
+ THERMOMETER_CALIBRATION: 'Thermometer calibration',
394
+ OTHER_FOOD_TEMPERATURE_ACTIVITY: 'Other food temperature',
395
+ FOOD_INGREDIENT: 'Ingredient inspection',
396
+ METAL_DETECTOR_X_RAY: 'Metal detector / X-ray check',
397
+ ALLERGEN: 'Allergen control',
398
+ OTHER_FOOD_SAFETY_ACTIVITY: 'Other food safety activity',
399
+ OTHER_HYGIENE_SANITATION_ACTIVITY: 'Other hygiene/sanitation',
400
+ PRE_SHIPMENT: 'Pre-shipment review',
401
+ PACKAGING_AND_LABEL: 'Packaging and label check',
402
+ OTHER_SHIPPING_HANDLING_ACTIVITY: 'Other shipping/handling',
403
+ EMS_INCIDENT_CHART: 'Patient care report',
404
+ EMS_CALL_OR_COMPUTER_AIDED_DISPATCH: 'CAD call sheet',
405
+ OTHER_EMS_INCIDENT_ACTIVITY: 'Other EMS incident activity',
335
406
  // # Seed activities
336
407
  SEED_PURCHASE_INFO: 'Seed purchase',
337
408
  OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Supply purchase',
@@ -339,21 +410,21 @@ export default {
339
410
  // # Transplanting activities
340
411
  SEEDING: 'Seeding',
341
412
  DIRECT_SEEDING: 'Direct seeding',
342
- GREENHOUSE_SEEDING: 'Greenhouse seeding',
413
+ GREENHOUSE_SEEDING: 'Greenhouse seeding',
343
414
  TRANSPLANTING: 'Transplanting',
344
- SEED_COMPLIANCE_NOTE: 'Notes',
415
+ SEED_COMPLIANCE_NOTE: 'Note',
345
416
  OTHER_TRANSPLANT_ACTIVITY: 'Other',
346
417
 
347
418
  // # Field activities
348
419
  PREPARE_SOIL: 'Soil prep',
349
420
  IRRIGATION: 'Irrigation',
350
421
  FERTILIZATION_COMPOST: 'Fertilization',
351
- PROTECT_CROP: 'Protection',
422
+ PROTECT_CROP: 'Crop protection',
352
423
  MONITOR_CROP: 'Monitoring',
353
424
  PRUNING: 'Pruning',
354
- STRUCTURE_MAINTENANCE: 'Structure',
425
+ STRUCTURE_MAINTENANCE: 'Structure maintenance',
355
426
  PREPARE_HARVEST: 'Harvest prep',
356
- OTHER_FIELD_ACTIVITY: 'Notes',
427
+ OTHER_FIELD_ACTIVITY: 'Note',
357
428
 
358
429
  // # Harvest activities
359
430
  HARVEST_CROP: 'Harvested',
@@ -369,42 +440,16 @@ export default {
369
440
  OTHER_POST_HARVEST_ACTIVITY: 'Post-harvest',
370
441
 
371
442
  // # Sales activities
372
- SALE_PRODUCE_ORDER: 'Purchase',
373
- OTHER_SALE_ORDER: 'Purchase (other)',
443
+ SALE_PRODUCE_ORDER: 'Sale',
444
+ OTHER_SALE_ORDER: 'Sale (other)',
374
445
 
375
446
  // # Water testing activities
376
447
  WATER_TESTING: 'Water testing',
377
448
  OTHER_WATER_TESTING_ACTIVITY: 'Water testing',
378
449
 
379
- // #### ARRABLE - FOOD SAFETY
380
-
381
- // # Hygiene procedures
382
- HYGIENE_PROCEDURE: 'Hygiene',
383
- CONTAMINANT_RISK: 'Contaminants',
384
- BODILY_FLUID_CONTAMINATION: 'Excretion',
385
- SMOKING_EATING_DRINKING_CONTROL: 'Substance',
386
- PPE_USAGE: 'PPE',
387
-
388
- // # Sanitation infrastructure
389
- SANITATION_RISK: 'Sanitation',
390
- SANITATION_CONSTRUCTION_MAINTENANCE: 'Maintenance',
391
- SANITATION_CLEANING: 'Cleaning',
392
- SANITATION_PEST_CONTROL: 'Pest control',
393
-
394
- // # Materials & equipments
395
- EQUIPMENTS_MATERIALS_RISK: 'Materials',
396
- EQUIPMENTS_MATERIALS_CLEANING: 'Cleaning',
397
-
398
- // # Environment & biosecurity
399
- ENVIRONMENT_RISK: 'Environmental',
400
-
401
- // # Employee incidents & training
402
- EMPLOYEE_ORIENTATION: 'Orientation',
403
- EMPLOYEE_TRAINING: 'Training',
404
- SICK_EMPLOYEE: 'Sick',
405
- EMPLOYEE_INJURED: 'Injured',
406
- EMPLOYEE_NOTES: 'Notes',
407
- OPERATION_NOTES: 'Operation',
450
+ // # Food safety and operation notes
451
+ EMPLOYEE_NOTE: 'Employee',
452
+ OPERATION_NOTE: 'Operation',
408
453
 
409
454
  // #### FARMERS MARKET
410
455
 
@@ -412,12 +457,12 @@ export default {
412
457
  MARKET_CREDIT_RECEIPT: 'Credit receipt',
413
458
 
414
459
  // # Market operation activities
415
- MARKET_ATTENDANCE: 'Attendance',
416
460
  MARKET_LOAD_LIST: 'Load list',
417
461
 
418
462
  // #### GROWER NETWORK
419
463
 
420
464
  // # Grower network activities
465
+ HYGIENE_PROCEDURE: 'Hygiene',
421
466
  SANITATION_PRACTICE: 'Sanitation',
422
467
  PERSONNEL_PRACTICE: 'Personnel',
423
468
  EQUIPMENT_MATERIAL: 'Equipment',
@@ -431,69 +476,58 @@ export default {
431
476
  RECORDKEEPING: 'Records',
432
477
  FACILITIES: 'Infrastructure',
433
478
 
434
- // #### LIVESTOCK
435
-
436
- // # Feed & Supply purchases activities
437
- FEED_PURCHASE: 'Feed purchase',
438
- // OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Other supply purchase', // This is double'd in Arable
439
-
440
- // # Livestock life cycle activities
441
- LIVESTOCK_PURCHASE: 'Purchase',
442
- LIVESTOCK_BIRTH: 'Birth',
443
- LIVESTOCK_REPRODUCTION: 'Reproduction',
444
- LIVESTOCK_DEATH: 'Death',
445
- OTHER_LIVESTOCK_LIFE_CYCLE_ACTIVITY: 'Life cycle',
446
-
447
- // # Livestock tracking activities
448
- LIVESTOCK_GROUP_TRACKING: 'Group tracking',
449
- LIVESTOCK_PASTURE_TRACKING: 'Pasture tracking',
450
- LIVESTOCK_ROTATIONAL_GRAZING: 'Rotational grazing',
451
- OTHER_LIVESTOCK_TRACKING_ACTIVITY: 'Other tracking',
452
-
453
- // # Pasture land management activities
454
- PASTURE_SEEDING: 'Pasture seeding',
455
- FENCE_MAINTENANCE: 'Fence maintenance',
456
- WATER_SOURCE_MAINTENANCE: 'Water source',
457
- OTHER_PASTURE_LAND_MANAGEMENT_ACTIVITY: 'Operation notes',
458
-
459
- // # Livestock healthcare activities
460
- LIVESTOCK_VACCINATION: 'Vaccination',
461
- LIVESTOCK_SICK: 'Sick notes',
462
- LIVESTOCK_INJURY: 'Injury',
463
- LIVESTOCK_CULL: 'Culling',
464
- LIVESTOCK_TREATMENT: 'Treatment',
465
- OTHER_LIVESTOCK_HEALTHCARE_ACTIVITY: 'Healthcare related',
466
-
467
- // # Livestock sale activities
468
- LIVESTOCK_SALE: 'Sale',
469
- OTHER_LIVESTOCK_SALE_ACTIVITY: 'Other sales',
470
- },
479
+ // #### CONSTRUCTION INSPECTION AGENCY
471
480
 
472
- // Search sort
481
+ // # Site inspection activities
482
+ MATERIAL: 'Materials',
483
+ MATERIAL_TESTING: 'Testing',
484
+ BEHAVIOR_ISSUE: 'Conduct',
485
+ OTHER_INSPECTION_ACTIVITY: 'Inspection',
473
486
 
474
- sort: {
475
- GROUP_BY_VENDORS: 'Sort by vendors',
476
- DATE_AND_VENDOR_DESC: 'Sort by date, vendors',
477
- DATE_DESC: 'Sort by date',
478
- null: 'Disable sorting',
479
- },
487
+ // # Project activities
488
+ PROJECT_SCHEDULING: 'Schedule',
489
+ PROJECT_SCOPE: 'Scope',
490
+ PROJECT_PROGRESS: 'Progress',
491
+ PROJECT_BID_PROPOSAL: 'Bid/proposal',
492
+ PROJECT_BILLING_INVOICE: 'Billing',
493
+ OTHER_PROJECT_ACTIVITY: 'Project',
494
+
495
+ // # Operation activities (RECORDKEEPING and OPERATION_NOTE are shared above)
496
+ OFFICE_NOTE: 'Office',
497
+ },
480
498
 
481
- sort_short: {
482
- GROUP_BY_VENDORS: 'Sort by vendors',
483
- DATE_AND_VENDOR_DESC: 'Sort by date, vendors',
484
- DATE_DESC: 'Sort by date',
485
- null: 'Disable sorting',
486
- },
499
+ // Search sort
500
+
501
+ sort: {
502
+ GROUP_BY_VENDORS: 'Sort by vendors',
503
+ DATE_AND_VENDOR_DESC: 'Sort by date, vendors',
504
+ DATE_DESC: 'Sort by date',
505
+ // Workflow list sorts (the sort toolbar reads from the log namespace)
506
+ CREATED_DESC: 'Sort by newest',
507
+ LAST_RUN_DESC: 'Sort by last executed',
508
+ TITLE_ASC: 'Sort by title',
509
+ null: 'Disable sorting',
510
+ },
511
+
512
+ sort_short: {
513
+ GROUP_BY_VENDORS: 'Sort by vendors',
514
+ DATE_AND_VENDOR_DESC: 'Sort by date, vendors',
515
+ DATE_DESC: 'Sort by date',
516
+ CREATED_DESC: 'Sort by newest',
517
+ LAST_RUN_DESC: 'Sort by last executed',
518
+ TITLE_ASC: 'Sort by title',
519
+ null: 'Disable sorting',
520
+ },
487
521
 
488
522
  // Search filters
489
523
  filter: {
490
524
  logType: 'Activities',
491
- logType_all: 'Activities',
525
+ logType_all: 'Activities',
492
526
  logType_ct: 'Activities (%{count})',
493
527
  dateRange: 'Date range',
494
528
  WEEKS_5: '5 weeks',
495
529
  search: 'Search',
496
- sort_options: 'Sort by',
530
+ sort_options: 'Sort by',
497
531
  },
498
532
 
499
533
  // Search filter popover options
@@ -501,7 +535,7 @@ export default {
501
535
  preset: 'Filter by preset',
502
536
  activity: 'Filter by activity',
503
537
  date_range: 'Filter by date range',
504
- site_location: 'Filter by location',
538
+ site_location: 'Filter by location',
505
539
  WEEKS_5: '5 weeks',
506
540
  search: 'Search for keywords',
507
541
  },