DecodeMarketing Claude Opus 4.8 (1M context) commited on
Commit
0daaeb6
·
1 Parent(s): 8284e34

Add editor attribution to date edits + refresh assignment baseline

Browse files

Edit Dates tab now requires a "Who are you?" selection; each changed
Jira issue gets a comment naming the real editor, e.g. "...saved by
Juliane Matussek on behalf of Yvonne Zieger via the Project Calendar
app." Jira's author field stays the token owner; the comment records
who actually made the edit.

- config.py: APP_TOKEN_OWNER constant
- jira_client.py: add_comment() posts an ADF comment to an issue
- app.py: editor picker (shared build_people_options helper), save
blocked until a name is chosen, per-issue update+comment, fmt_date

Also refresh the committed assignment JSON baseline from the live HF
Dataset (24 -> 52 entries) so the 404 fallback seed is no longer stale.
Merge is a strict superset: all live entries plus local-only non-empty
values preserved.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

app.py CHANGED
@@ -11,12 +11,12 @@ import re
11
  import streamlit as st
12
  import streamlit.components.v1 as components
13
  from datetime import datetime
14
- from jira_client import (load_all_data, update_issue_dates, JIRA_BASE,
15
  create_project, upload_project_avatar,
16
  get_all_issues_for_project_edit, build_issue_map, match_issue)
17
  from gantt_renderer import render_gantt_html
18
  from excel_export import generate_excel_bytes, generate_dates_excel
19
- from config import LEGEND_ORDER, ALL_ITEMS, CATEGORY_IDS, TEMPLATE_FILTERS
20
 
21
  st.set_page_config(page_title='Projektkalender', layout='wide')
22
 
@@ -49,41 +49,41 @@ COUNTRY_FILE = os.path.join(_APP_DIR, 'country_assignments.json')
49
 
50
  # HF Dataset repo used for persistent storage when running on HF Spaces.
51
  # Data lives here independently of Space deployments — never overwritten by code pushes.
52
- _HF_DATASET_REPO = 'DecodeMarketing/projektkalender-assignments'
53
- _HF_TOKEN = os.getenv('HF_TOKEN')
54
- _USE_HUB = bool(_HF_TOKEN)
55
- _RUNNING_ON_HF = bool(os.getenv('SPACE_ID') or os.getenv('SPACE_HOST'))
56
-
57
-
58
- def _read_local_json(local_path):
59
- if os.path.exists(local_path):
60
- with open(local_path, 'r', encoding='utf-8') as f:
61
- return json.load(f)
62
- return {}
63
-
64
-
65
- def _load_json(local_path, hub_filename):
66
- """Load JSON from HF Dataset (HF Spaces) or local file (local dev).
67
- On HF Spaces: fetches directly via HTTP — no local cache, always fresh.
68
- Returns (data_dict, error_message_or_None).
69
- """
70
  if _USE_HUB:
71
  try:
72
  import requests as _req
73
  url = (f'https://huggingface.co/datasets/{_HF_DATASET_REPO}'
74
  f'/resolve/main/{hub_filename}')
75
- r = _req.get(url, headers={'Authorization': f'Bearer {_HF_TOKEN}'}, timeout=10)
76
- if r.status_code == 200:
77
- return r.json(), None
78
- if r.status_code == 404:
79
- # Not in dataset yet — fall back to git-tracked local file as seed
80
- return _read_local_json(local_path), None
81
- local_data = _read_local_json(local_path)
82
- return local_data, f'Cloud load failed ({r.status_code}) for {hub_filename}; using local fallback.'
83
- except Exception as e:
84
- local_data = _read_local_json(local_path)
85
- return local_data, f'Cloud load error for {hub_filename}: {e}; using local fallback.'
86
- return _read_local_json(local_path), None
87
 
88
 
89
  def _save_json(local_path, hub_filename, data):
@@ -91,10 +91,10 @@ def _save_json(local_path, hub_filename, data):
91
  Returns an error message string if the hub upload failed, else None."""
92
  with open(local_path, 'w', encoding='utf-8') as f:
93
  json.dump(data, f, indent=2, ensure_ascii=False)
94
- if _USE_HUB:
95
- try:
96
- from huggingface_hub import HfApi
97
- HfApi().upload_file(
98
  path_or_fileobj=json.dumps(data, indent=2, ensure_ascii=False).encode('utf-8'),
99
  path_in_repo=hub_filename,
100
  repo_id=_HF_DATASET_REPO,
@@ -103,11 +103,11 @@ def _save_json(local_path, hub_filename, data):
103
  commit_message=f'Update {hub_filename}',
104
  )
105
  return None
106
- except Exception as e:
107
- return str(e)
108
- if _RUNNING_ON_HF:
109
- return 'HF_TOKEN is not configured in the Hugging Face Space runtime; assignments cannot persist across restarts.'
110
- return None
111
 
112
  KNOWN_COUNTRIES = [
113
  'AT', 'AU', 'BE', 'BR', 'CH', 'CZ', 'DE', 'DK', 'ES', 'FI', 'FR',
@@ -203,6 +203,33 @@ for p in all_projects:
203
  p['research_backup'] = research_backup_assignments.get(p['key'], '')
204
  p['country'] = country_assignments.get(p['key']) or guess_country(p['name'])
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  tab_gantt, tab_edit, tab_pending, tab_create = st.tabs(['Project Calendar', 'Edit Dates', 'Pending', 'Create Project'])
207
 
208
  # =============================================================================
@@ -216,176 +243,169 @@ with tab_gantt:
216
  if name
217
  ))
218
 
219
- sort_options = {
220
- 'Project': lambda p: p.get('name', ''),
221
- 'C': lambda p: p.get('country', ''),
222
- 'Research Lead': lambda p: p.get('lead', ''),
223
- 'Research Backup': lambda p: p.get('research_backup', ''),
224
- 'PM Lead': lambda p: p.get('pm', ''),
225
- 'PM Backup': lambda p: p.get('pm_backup', ''),
226
- }
227
-
228
- col_filter, col_sort, col_order, col_btn, col_dl = st.columns([3, 2, 1.2, 0.8, 1])
229
- with col_filter:
230
- sel_person = st.selectbox('Filter by person', ['All'] + all_people, key='filter_person')
231
- with col_sort:
232
- sort_by = st.selectbox('Sort by', list(sort_options.keys()), key='active_sort_by')
233
- with col_order:
234
- sort_order = st.selectbox('Order', ['Ascending', 'Descending'], index=1, key='active_sort_order')
235
- sort_desc = sort_order == 'Descending'
236
- with col_btn:
237
- st.markdown('<div style="height:28px"></div>', unsafe_allow_html=True)
238
- if st.button('Refresh', key='refresh_active'):
239
- refresh_data()
240
- st.rerun()
241
- with col_dl:
242
- st.markdown('<div style="height:28px"></div>', unsafe_allow_html=True)
243
- excel_bytes = generate_excel_bytes(active_projects, pending_projects, project_data)
244
- st.download_button(
245
- label='Download Excel',
246
- data=excel_bytes,
247
- file_name=f'Projektkalender_{datetime.now().strftime("%Y%m%d")}.xlsx',
248
- mime='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
249
- key='dl_active',
250
- )
251
-
252
- # --- Assignment editor (editable table) ---
253
- display_pm_assignments = dict(pm_assignments)
254
- display_pm_backup_assignments = dict(pm_backup_assignments)
255
- display_research_backup_assignments = dict(research_backup_assignments)
256
- display_country_assignments = dict(country_assignments)
257
-
258
- with st.expander('Edit Assignments'):
259
- # Build people options: Jira leads + all saved assignments + any extras added this session
260
- _known_people = set()
261
- for p in all_projects:
262
- if p.get('lead') and p['lead'] != 'N/A':
263
- _known_people.add(p['lead'])
264
- for _d in (pm_assignments, pm_backup_assignments, research_backup_assignments):
265
- for v in _d.values():
266
- if v:
267
- _known_people.add(v)
268
- if 'extra_people' not in st.session_state:
269
- st.session_state.extra_people = []
270
- _known_people.update(st.session_state.extra_people)
271
- people_options = [''] + sorted(_known_people)
272
- country_options = [''] + KNOWN_COUNTRIES
273
-
274
- if _RUNNING_ON_HF and not _USE_HUB:
275
- st.warning('HF_TOKEN is not configured. Assignments can be saved only temporarily and may disappear after restart or redeploy.')
276
- if st.session_state.get('assignment_save_error'):
277
- st.error(st.session_state.assignment_save_error)
278
- elif st.session_state.get('assignment_save_success'):
279
- st.success(st.session_state.assignment_save_success)
280
-
281
- # Add new person input
282
- _col_new, _col_add = st.columns([3, 1])
283
- with _col_new:
284
- new_person = st.text_input('Add new person to list', placeholder='Full name...', label_visibility='collapsed', key='new_person_input')
285
- with _col_add:
286
- if st.button('Add to list', key='add_person_btn'):
287
- name_stripped = (new_person or '').strip()
288
- if name_stripped and name_stripped not in _known_people:
289
- st.session_state.extra_people.append(name_stripped)
290
- st.rerun()
291
-
292
- assign_rows = [{
293
- '_key': p['key'],
294
- 'Project': p['name'],
295
- 'Research Lead': p['lead'],
296
- 'Research Backup': research_backup_assignments.get(p['key'], '') or '',
297
- 'PM Lead': pm_assignments.get(p['key'], '') or '',
298
- 'PM Backup': pm_backup_assignments.get(p['key'], '') or '',
299
- 'Country': country_assignments.get(p['key']) or guess_country(p['name']) or '',
300
- } for p in active_projects]
301
-
302
- edited_rows = st.data_editor(
303
- assign_rows,
304
- column_config={
305
- '_key': None,
306
- 'Project': st.column_config.TextColumn(disabled=True, width='large'),
307
- 'Research Lead': st.column_config.TextColumn(disabled=True),
308
- 'Research Backup': st.column_config.SelectboxColumn(options=people_options, width='medium'),
309
- 'PM Lead': st.column_config.SelectboxColumn(options=people_options, width='medium'),
310
- 'PM Backup': st.column_config.SelectboxColumn(options=people_options, width='medium'),
311
- 'Country': st.column_config.SelectboxColumn(options=country_options, width='small'),
312
- },
313
- hide_index=True,
314
- use_container_width=True,
315
- key='assignments_editor',
316
- )
317
-
318
- for row in edited_rows:
319
- k = row['_key']
320
- display_pm_assignments[k] = row['PM Lead'] or ''
321
- display_pm_backup_assignments[k] = row['PM Backup'] or ''
322
- display_research_backup_assignments[k] = row['Research Backup'] or ''
323
- display_country_assignments[k] = row['Country'] or ''
324
-
325
- has_unsaved_assignment_changes = any(
326
- (pm_assignments.get(row['_key'], '') or '') != (row['PM Lead'] or '') or
327
- (pm_backup_assignments.get(row['_key'], '') or '') != (row['PM Backup'] or '') or
328
- (research_backup_assignments.get(row['_key'], '') or '') != (row['Research Backup'] or '') or
329
- (country_assignments.get(row['_key'], '') or '') != (row['Country'] or '')
330
- for row in edited_rows
331
- )
332
- if has_unsaved_assignment_changes:
333
- st.warning('You have unsaved assignment changes. Click "Save Assignments" before refreshing or leaving the page.')
334
-
335
- if st.button('Save Assignments', type='primary', key='save_assignments'):
336
- for row in edited_rows:
337
- k = row['_key']
338
- pm_assignments[k] = row['PM Lead'] or ''
339
- pm_backup_assignments[k] = row['PM Backup'] or ''
340
- research_backup_assignments[k] = row['Research Backup'] or ''
341
- country_assignments[k] = row['Country'] or ''
342
- errors = [
343
- e for e in [
344
- save_pm_assignments(pm_assignments),
345
- save_pm_backup_assignments(pm_backup_assignments),
346
- save_research_backup_assignments(research_backup_assignments),
347
- save_country_assignments(country_assignments),
348
- ] if e
349
- ]
350
- st.session_state.pm_assignments = pm_assignments
351
- st.session_state.pm_backup_assignments = pm_backup_assignments
352
- st.session_state.research_backup_assignments = research_backup_assignments
353
- st.session_state.country_assignments = country_assignments
354
- if errors:
355
- st.session_state.assignment_save_error = (
356
- f'Saved locally but cloud sync failed — assignments may be lost on restart!\n{errors[0]}'
357
- )
358
- st.session_state.assignment_save_success = ''
359
- st.error(st.session_state.assignment_save_error)
360
- else:
361
- st.session_state.assignment_save_error = ''
362
- st.session_state.assignment_save_success = 'Assignments saved.'
363
- st.success(st.session_state.assignment_save_success)
364
-
365
- for p in active_projects:
366
- p['pm'] = display_pm_assignments.get(p['key'], '')
367
- p['pm_backup'] = display_pm_backup_assignments.get(p['key'], '')
368
- p['research_backup'] = display_research_backup_assignments.get(p['key'], '')
369
- p['country'] = display_country_assignments.get(p['key']) or guess_country(p['name'])
370
-
371
- # Apply filter — match any of the 4 columns
372
- filtered_active = active_projects
373
- if sel_person != 'All':
374
- filtered_active = [
375
- p for p in filtered_active
376
- if sel_person in (p['lead'], p.get('research_backup',''), p.get('pm',''), p.get('pm_backup',''))
377
- ]
378
- filtered_active = sorted(
379
- filtered_active,
380
- key=lambda p: (sort_options[sort_by](p) or '').casefold(),
381
- reverse=sort_desc,
382
- )
383
-
384
- filter_text = f' (filtered by {sel_person})' if sel_person != 'All' else ''
385
- st.caption(f'{len(filtered_active)} active projects{filter_text}')
386
-
387
- gantt_html, gantt_height = render_gantt_html(filtered_active, [], project_data)
388
- components.html(gantt_html, height=gantt_height, scrolling=True)
389
 
390
  # =============================================================================
391
  # TAB 2: Pending + On Hold Projects (list view)
@@ -458,6 +478,20 @@ with tab_pending:
458
  with tab_edit:
459
  st.subheader('Edit Project Dates')
460
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
461
  col_sel, col_dl = st.columns([3, 1])
462
  with col_sel:
463
  sorted_projects = sorted(active_projects, key=lambda p: p['name'], reverse=True)
@@ -556,55 +590,69 @@ with tab_edit:
556
  st.markdown('---')
557
 
558
  if st.button('Save to Jira', type='primary'):
559
- changes = []
560
- for item_name, edit in edits.items():
561
- im = imap.get(item_name, {})
562
- if not im:
563
- continue
564
-
565
- start_changed = edit['new_start'] != edit['old_start'] and edit['new_start'] is not None
566
- end_changed = edit['new_end'] != edit['old_end'] and edit['new_end'] is not None
567
-
568
- if not start_changed and not end_changed:
569
- continue
570
-
571
- # For new dates: use start_issue_key/end_issue_key if available,
572
- # otherwise fall back to issue_key (first issue for this phase)
573
- start_key = im.get('start_issue_key') or im.get('issue_key')
574
- end_key = im.get('end_issue_key') or im.get('issue_key')
575
-
576
- # If both dates go to the same issue, send them together
577
- if start_changed and end_changed and start_key == end_key and start_key:
578
- ok, msg = update_issue_dates(
579
- start_key,
580
- start_date=edit['new_start'].strftime('%Y-%m-%d'),
581
- end_date=edit['new_end'].strftime('%Y-%m-%d'),
582
- )
583
- changes.append((ok, msg))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
  else:
585
- if start_changed and start_key:
586
- ok, msg = update_issue_dates(
587
- start_key,
588
- start_date=edit['new_start'].strftime('%Y-%m-%d'),
589
- )
590
- changes.append((ok, msg))
591
 
592
- if end_changed and end_key:
593
- ok, msg = update_issue_dates(
594
- end_key,
595
- end_date=edit['new_end'].strftime('%Y-%m-%d'),
596
- )
597
  changes.append((ok, msg))
598
-
599
- if not changes:
600
- st.info('No changes detected.')
601
- else:
602
- for ok, msg in changes:
603
- if ok:
604
- st.success(msg)
605
- else:
606
- st.error(msg)
607
- refresh_data()
 
 
608
 
609
  # =============================================================================
610
  # TAB 4: Create Project
 
11
  import streamlit as st
12
  import streamlit.components.v1 as components
13
  from datetime import datetime
14
+ from jira_client import (load_all_data, update_issue_dates, add_comment, JIRA_BASE,
15
  create_project, upload_project_avatar,
16
  get_all_issues_for_project_edit, build_issue_map, match_issue)
17
  from gantt_renderer import render_gantt_html
18
  from excel_export import generate_excel_bytes, generate_dates_excel
19
+ from config import LEGEND_ORDER, ALL_ITEMS, CATEGORY_IDS, TEMPLATE_FILTERS, APP_TOKEN_OWNER
20
 
21
  st.set_page_config(page_title='Projektkalender', layout='wide')
22
 
 
49
 
50
  # HF Dataset repo used for persistent storage when running on HF Spaces.
51
  # Data lives here independently of Space deployments — never overwritten by code pushes.
52
+ _HF_DATASET_REPO = 'DecodeMarketing/projektkalender-assignments'
53
+ _HF_TOKEN = os.getenv('HF_TOKEN')
54
+ _USE_HUB = bool(_HF_TOKEN)
55
+ _RUNNING_ON_HF = bool(os.getenv('SPACE_ID') or os.getenv('SPACE_HOST'))
56
+
57
+
58
+ def _read_local_json(local_path):
59
+ if os.path.exists(local_path):
60
+ with open(local_path, 'r', encoding='utf-8') as f:
61
+ return json.load(f)
62
+ return {}
63
+
64
+
65
+ def _load_json(local_path, hub_filename):
66
+ """Load JSON from HF Dataset (HF Spaces) or local file (local dev).
67
+ On HF Spaces: fetches directly via HTTP — no local cache, always fresh.
68
+ Returns (data_dict, error_message_or_None).
69
+ """
70
  if _USE_HUB:
71
  try:
72
  import requests as _req
73
  url = (f'https://huggingface.co/datasets/{_HF_DATASET_REPO}'
74
  f'/resolve/main/{hub_filename}')
75
+ r = _req.get(url, headers={'Authorization': f'Bearer {_HF_TOKEN}'}, timeout=10)
76
+ if r.status_code == 200:
77
+ return r.json(), None
78
+ if r.status_code == 404:
79
+ # Not in dataset yet — fall back to git-tracked local file as seed
80
+ return _read_local_json(local_path), None
81
+ local_data = _read_local_json(local_path)
82
+ return local_data, f'Cloud load failed ({r.status_code}) for {hub_filename}; using local fallback.'
83
+ except Exception as e:
84
+ local_data = _read_local_json(local_path)
85
+ return local_data, f'Cloud load error for {hub_filename}: {e}; using local fallback.'
86
+ return _read_local_json(local_path), None
87
 
88
 
89
  def _save_json(local_path, hub_filename, data):
 
91
  Returns an error message string if the hub upload failed, else None."""
92
  with open(local_path, 'w', encoding='utf-8') as f:
93
  json.dump(data, f, indent=2, ensure_ascii=False)
94
+ if _USE_HUB:
95
+ try:
96
+ from huggingface_hub import HfApi
97
+ HfApi().upload_file(
98
  path_or_fileobj=json.dumps(data, indent=2, ensure_ascii=False).encode('utf-8'),
99
  path_in_repo=hub_filename,
100
  repo_id=_HF_DATASET_REPO,
 
103
  commit_message=f'Update {hub_filename}',
104
  )
105
  return None
106
+ except Exception as e:
107
+ return str(e)
108
+ if _RUNNING_ON_HF:
109
+ return 'HF_TOKEN is not configured in the Hugging Face Space runtime; assignments cannot persist across restarts.'
110
+ return None
111
 
112
  KNOWN_COUNTRIES = [
113
  'AT', 'AU', 'BE', 'BR', 'CH', 'CZ', 'DE', 'DK', 'ES', 'FI', 'FR',
 
203
  p['research_backup'] = research_backup_assignments.get(p['key'], '')
204
  p['country'] = country_assignments.get(p['key']) or guess_country(p['name'])
205
 
206
+
207
+ def build_people_options():
208
+ """People list shared by the assignment editor and the Edit Dates 'Who are you?'
209
+ picker: Jira leads + all saved assignment values + any names added this session."""
210
+ known = set()
211
+ for p in all_projects:
212
+ if p.get('lead') and p['lead'] != 'N/A':
213
+ known.add(p['lead'])
214
+ for _d in (pm_assignments, pm_backup_assignments, research_backup_assignments):
215
+ for v in _d.values():
216
+ if v:
217
+ known.add(v)
218
+ known.update(st.session_state.get('extra_people', []))
219
+ return sorted(known)
220
+
221
+
222
+ _MONTHS_EN = {1: 'Jan', 2: 'Feb', 3: 'Mar', 4: 'Apr', 5: 'May', 6: 'Jun',
223
+ 7: 'Jul', 8: 'Aug', 9: 'Sep', 10: 'Oct', 11: 'Nov', 12: 'Dec'}
224
+
225
+
226
+ def fmt_date(d):
227
+ """Format a date as '8 Jun 2026' for the attribution comment; '(none)' if empty."""
228
+ if not d:
229
+ return '(none)'
230
+ return f'{d.day} {_MONTHS_EN[d.month]} {d.year}'
231
+
232
+
233
  tab_gantt, tab_edit, tab_pending, tab_create = st.tabs(['Project Calendar', 'Edit Dates', 'Pending', 'Create Project'])
234
 
235
  # =============================================================================
 
243
  if name
244
  ))
245
 
246
+ sort_options = {
247
+ 'Project': lambda p: p.get('name', ''),
248
+ 'C': lambda p: p.get('country', ''),
249
+ 'Research Lead': lambda p: p.get('lead', ''),
250
+ 'Research Backup': lambda p: p.get('research_backup', ''),
251
+ 'PM Lead': lambda p: p.get('pm', ''),
252
+ 'PM Backup': lambda p: p.get('pm_backup', ''),
253
+ }
254
+
255
+ col_filter, col_sort, col_order, col_btn, col_dl = st.columns([3, 2, 1.2, 0.8, 1])
256
+ with col_filter:
257
+ sel_person = st.selectbox('Filter by person', ['All'] + all_people, key='filter_person')
258
+ with col_sort:
259
+ sort_by = st.selectbox('Sort by', list(sort_options.keys()), key='active_sort_by')
260
+ with col_order:
261
+ sort_order = st.selectbox('Order', ['Ascending', 'Descending'], index=1, key='active_sort_order')
262
+ sort_desc = sort_order == 'Descending'
263
+ with col_btn:
264
+ st.markdown('<div style="height:28px"></div>', unsafe_allow_html=True)
265
+ if st.button('Refresh', key='refresh_active'):
266
+ refresh_data()
267
+ st.rerun()
268
+ with col_dl:
269
+ st.markdown('<div style="height:28px"></div>', unsafe_allow_html=True)
270
+ excel_bytes = generate_excel_bytes(active_projects, pending_projects, project_data)
271
+ st.download_button(
272
+ label='Download Excel',
273
+ data=excel_bytes,
274
+ file_name=f'Projektkalender_{datetime.now().strftime("%Y%m%d")}.xlsx',
275
+ mime='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
276
+ key='dl_active',
277
+ )
278
+
279
+ # --- Assignment editor (editable table) ---
280
+ display_pm_assignments = dict(pm_assignments)
281
+ display_pm_backup_assignments = dict(pm_backup_assignments)
282
+ display_research_backup_assignments = dict(research_backup_assignments)
283
+ display_country_assignments = dict(country_assignments)
284
+
285
+ with st.expander('Edit Assignments'):
286
+ # Build people options: Jira leads + all saved assignments + any extras added this session
287
+ if 'extra_people' not in st.session_state:
288
+ st.session_state.extra_people = []
289
+ _people = build_people_options()
290
+ _known_people = set(_people)
291
+ people_options = [''] + _people
292
+ country_options = [''] + KNOWN_COUNTRIES
293
+
294
+ if _RUNNING_ON_HF and not _USE_HUB:
295
+ st.warning('HF_TOKEN is not configured. Assignments can be saved only temporarily and may disappear after restart or redeploy.')
296
+ if st.session_state.get('assignment_save_error'):
297
+ st.error(st.session_state.assignment_save_error)
298
+ elif st.session_state.get('assignment_save_success'):
299
+ st.success(st.session_state.assignment_save_success)
300
+
301
+ # Add new person input
302
+ _col_new, _col_add = st.columns([3, 1])
303
+ with _col_new:
304
+ new_person = st.text_input('Add new person to list', placeholder='Full name...', label_visibility='collapsed', key='new_person_input')
305
+ with _col_add:
306
+ if st.button('Add to list', key='add_person_btn'):
307
+ name_stripped = (new_person or '').strip()
308
+ if name_stripped and name_stripped not in _known_people:
309
+ st.session_state.extra_people.append(name_stripped)
310
+ st.rerun()
311
+
312
+ assign_rows = [{
313
+ '_key': p['key'],
314
+ 'Project': p['name'],
315
+ 'Research Lead': p['lead'],
316
+ 'Research Backup': research_backup_assignments.get(p['key'], '') or '',
317
+ 'PM Lead': pm_assignments.get(p['key'], '') or '',
318
+ 'PM Backup': pm_backup_assignments.get(p['key'], '') or '',
319
+ 'Country': country_assignments.get(p['key']) or guess_country(p['name']) or '',
320
+ } for p in active_projects]
321
+
322
+ edited_rows = st.data_editor(
323
+ assign_rows,
324
+ column_config={
325
+ '_key': None,
326
+ 'Project': st.column_config.TextColumn(disabled=True, width='large'),
327
+ 'Research Lead': st.column_config.TextColumn(disabled=True),
328
+ 'Research Backup': st.column_config.SelectboxColumn(options=people_options, width='medium'),
329
+ 'PM Lead': st.column_config.SelectboxColumn(options=people_options, width='medium'),
330
+ 'PM Backup': st.column_config.SelectboxColumn(options=people_options, width='medium'),
331
+ 'Country': st.column_config.SelectboxColumn(options=country_options, width='small'),
332
+ },
333
+ hide_index=True,
334
+ use_container_width=True,
335
+ key='assignments_editor',
336
+ )
337
+
338
+ for row in edited_rows:
339
+ k = row['_key']
340
+ display_pm_assignments[k] = row['PM Lead'] or ''
341
+ display_pm_backup_assignments[k] = row['PM Backup'] or ''
342
+ display_research_backup_assignments[k] = row['Research Backup'] or ''
343
+ display_country_assignments[k] = row['Country'] or ''
344
+
345
+ has_unsaved_assignment_changes = any(
346
+ (pm_assignments.get(row['_key'], '') or '') != (row['PM Lead'] or '') or
347
+ (pm_backup_assignments.get(row['_key'], '') or '') != (row['PM Backup'] or '') or
348
+ (research_backup_assignments.get(row['_key'], '') or '') != (row['Research Backup'] or '') or
349
+ (country_assignments.get(row['_key'], '') or '') != (row['Country'] or '')
350
+ for row in edited_rows
351
+ )
352
+ if has_unsaved_assignment_changes:
353
+ st.warning('You have unsaved assignment changes. Click "Save Assignments" before refreshing or leaving the page.')
354
+
355
+ if st.button('Save Assignments', type='primary', key='save_assignments'):
356
+ for row in edited_rows:
357
+ k = row['_key']
358
+ pm_assignments[k] = row['PM Lead'] or ''
359
+ pm_backup_assignments[k] = row['PM Backup'] or ''
360
+ research_backup_assignments[k] = row['Research Backup'] or ''
361
+ country_assignments[k] = row['Country'] or ''
362
+ errors = [
363
+ e for e in [
364
+ save_pm_assignments(pm_assignments),
365
+ save_pm_backup_assignments(pm_backup_assignments),
366
+ save_research_backup_assignments(research_backup_assignments),
367
+ save_country_assignments(country_assignments),
368
+ ] if e
369
+ ]
370
+ st.session_state.pm_assignments = pm_assignments
371
+ st.session_state.pm_backup_assignments = pm_backup_assignments
372
+ st.session_state.research_backup_assignments = research_backup_assignments
373
+ st.session_state.country_assignments = country_assignments
374
+ if errors:
375
+ st.session_state.assignment_save_error = (
376
+ f'Saved locally but cloud sync failed — assignments may be lost on restart!\n{errors[0]}'
377
+ )
378
+ st.session_state.assignment_save_success = ''
379
+ st.error(st.session_state.assignment_save_error)
380
+ else:
381
+ st.session_state.assignment_save_error = ''
382
+ st.session_state.assignment_save_success = 'Assignments saved.'
383
+ st.success(st.session_state.assignment_save_success)
384
+
385
+ for p in active_projects:
386
+ p['pm'] = display_pm_assignments.get(p['key'], '')
387
+ p['pm_backup'] = display_pm_backup_assignments.get(p['key'], '')
388
+ p['research_backup'] = display_research_backup_assignments.get(p['key'], '')
389
+ p['country'] = display_country_assignments.get(p['key']) or guess_country(p['name'])
390
+
391
+ # Apply filter — match any of the 4 columns
392
+ filtered_active = active_projects
393
+ if sel_person != 'All':
394
+ filtered_active = [
395
+ p for p in filtered_active
396
+ if sel_person in (p['lead'], p.get('research_backup',''), p.get('pm',''), p.get('pm_backup',''))
397
+ ]
398
+ filtered_active = sorted(
399
+ filtered_active,
400
+ key=lambda p: (sort_options[sort_by](p) or '').casefold(),
401
+ reverse=sort_desc,
402
+ )
403
+
404
+ filter_text = f' (filtered by {sel_person})' if sel_person != 'All' else ''
405
+ st.caption(f'{len(filtered_active)} active projects{filter_text}')
406
+
407
+ gantt_html, gantt_height = render_gantt_html(filtered_active, [], project_data)
408
+ components.html(gantt_html, height=gantt_height, scrolling=True)
 
 
 
 
 
 
 
409
 
410
  # =============================================================================
411
  # TAB 2: Pending + On Hold Projects (list view)
 
478
  with tab_edit:
479
  st.subheader('Edit Project Dates')
480
 
481
+ # "Who are you?" — recorded as a comment on each edited Jira issue so the real
482
+ # editor is attributed, even though Jira stamps the token owner as the author.
483
+ editor_options = [''] + build_people_options()
484
+ col_editor, _col_editor_pad = st.columns([3, 1])
485
+ with col_editor:
486
+ editor_name = st.selectbox(
487
+ 'Who are you?',
488
+ options=editor_options,
489
+ index=0,
490
+ key='editor_name',
491
+ help='Your name is added as a comment on each changed Jira issue, so everyone '
492
+ 'can see who actually made the edit. Required before saving.',
493
+ )
494
+
495
  col_sel, col_dl = st.columns([3, 1])
496
  with col_sel:
497
  sorted_projects = sorted(active_projects, key=lambda p: p['name'], reverse=True)
 
590
  st.markdown('---')
591
 
592
  if st.button('Save to Jira', type='primary'):
593
+ if not editor_name:
594
+ st.warning('Please select your name under "Who are you?" above before saving.')
595
+ else:
596
+ # Aggregate changes per Jira issue: one date update + one attribution
597
+ # comment per issue (even when start and end land on the same issue).
598
+ # issue_updates[key] = {'start': 'YYYY-MM-DD'|None, 'end': ...|None, 'lines': [...]}
599
+ issue_updates = {}
600
+ for item_name, edit in edits.items():
601
+ im = imap.get(item_name, {})
602
+ if not im:
603
+ continue
604
+
605
+ start_changed = edit['new_start'] != edit['old_start'] and edit['new_start'] is not None
606
+ end_changed = edit['new_end'] != edit['old_end'] and edit['new_end'] is not None
607
+ if not start_changed and not end_changed:
608
+ continue
609
+
610
+ label = ALL_ITEMS[item_name]['label']
611
+ # For new dates: use start/end_issue_key if available, else fall back
612
+ # to issue_key (first issue for this phase).
613
+ if start_changed:
614
+ k = im.get('start_issue_key') or im.get('issue_key')
615
+ if k:
616
+ u = issue_updates.setdefault(k, {'start': None, 'end': None, 'lines': []})
617
+ u['start'] = edit['new_start'].strftime('%Y-%m-%d')
618
+ u['lines'].append(
619
+ f"{label} start date changed from {fmt_date(edit['old_start'])} "
620
+ f"to {fmt_date(edit['new_start'])}")
621
+ if end_changed:
622
+ k = im.get('end_issue_key') or im.get('issue_key')
623
+ if k:
624
+ u = issue_updates.setdefault(k, {'start': None, 'end': None, 'lines': []})
625
+ u['end'] = edit['new_end'].strftime('%Y-%m-%d')
626
+ u['lines'].append(
627
+ f"{label} end date changed from {fmt_date(edit['old_end'])} "
628
+ f"to {fmt_date(edit['new_end'])}")
629
+
630
+ if not issue_updates:
631
+ st.info('No changes detected.')
632
  else:
633
+ # "by <owner>" if the editor is the token owner, else "on behalf of".
634
+ if editor_name == APP_TOKEN_OWNER:
635
+ attribution = f'by {APP_TOKEN_OWNER} via the Project Calendar app.'
636
+ else:
637
+ attribution = (f'by {APP_TOKEN_OWNER} on behalf of {editor_name} '
638
+ f'via the Project Calendar app.')
639
 
640
+ changes = []
641
+ for k, u in issue_updates.items():
642
+ ok, msg = update_issue_dates(k, start_date=u['start'], end_date=u['end'])
 
 
643
  changes.append((ok, msg))
644
+ if ok:
645
+ comment_text = '; '.join(u['lines']) + f' — saved {attribution}'
646
+ c_ok, c_msg = add_comment(k, comment_text)
647
+ if not c_ok:
648
+ changes.append((False, f'{k}: date saved but attribution comment failed: {c_msg}'))
649
+
650
+ for ok, msg in changes:
651
+ if ok:
652
+ st.success(msg)
653
+ else:
654
+ st.error(msg)
655
+ refresh_data()
656
 
657
  # =============================================================================
658
  # TAB 4: Create Project
config.py CHANGED
@@ -90,6 +90,12 @@ TEMPLATE_FILTERS = {
90
  # Custom field for issue ordering within templates
91
  FIELD_SORT_ORDER = 'cf[10053]'
92
 
 
 
 
 
 
 
93
 
94
  def compute_date_range(project_data):
95
  """Extract min/max dates from project_data for Gantt rendering.
 
90
  # Custom field for issue ordering within templates
91
  FIELD_SORT_ORDER = 'cf[10053]'
92
 
93
+ # Display name of the Jira account whose API token the app uses for all writes.
94
+ # Jira always stamps THIS name as the author of every edit (the token is locked to
95
+ # this account). The "Who are you?" picker + attribution comment record who really
96
+ # made the edit; this constant lets the comment read "by <owner> on behalf of <editor>".
97
+ APP_TOKEN_OWNER = 'Juliane Matussek'
98
+
99
 
100
  def compute_date_range(project_data):
101
  """Extract min/max dates from project_data for Gantt rendering.
country_assignments.json CHANGED
@@ -3,23 +3,57 @@
3
  "DTAG1001": "AT",
4
  "WB114002": "DE",
5
  "DTAG999": "HU",
 
 
6
  "MOB11": "",
7
  "MOBILE8": "",
 
 
 
 
 
 
8
  "WL148SAT1": "",
9
  "WL148": "",
10
- "HENKEL498B": "DE",
11
- "HENKEL498A": "PL",
12
- "HENKEL516": "",
13
- "HENKEL517": "",
14
  "TDGTRACK": "DE",
15
  "MUTABOR4": "DE",
16
- "PERRIGO5": "",
17
  "REWETRA25": "DE",
18
  "PENNYEM": "DE",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  "BETCLIC9": "FR",
20
  "ICATJB01": "US",
21
- "PERRIGO4": "",
22
- "HENKEL508": "",
23
  "HASPA126": "DE",
24
  "PERRIGOUS2": "US"
25
  }
 
3
  "DTAG1001": "AT",
4
  "WB114002": "DE",
5
  "DTAG999": "HU",
6
+ "COMBE1B": "US",
7
+ "COMBE1": "",
8
  "MOB11": "",
9
  "MOBILE8": "",
10
+ "PG410": "MX",
11
+ "PG415DE": "DE",
12
+ "PG415FR": "FR",
13
+ "PG415PL": "PL",
14
+ "PG415UK": "UK",
15
+ "PERRIGO7": "UK",
16
  "WL148SAT1": "",
17
  "WL148": "",
18
+ "HENK516DE": "DE",
19
+ "HENK516DZ": "",
20
+ "HENK516TR": "TR",
 
21
  "TDGTRACK": "DE",
22
  "MUTABOR4": "DE",
 
23
  "REWETRA25": "DE",
24
  "PENNYEM": "DE",
25
+ "REWE29ICAT": "DE",
26
+ "JVM04": "DE",
27
+ "PG405ETBAU": "",
28
+ "PG405FEPH": "",
29
+ "PG405FETH": "",
30
+ "PG405FEMIN": "",
31
+ "PG405HDWPH": "",
32
+ "PG405COIN": "",
33
+ "PG405LDPH": "",
34
+ "PG405SHMAU": "",
35
+ "PG405SHMID": "",
36
+ "PG411": "",
37
+ "PG412": "",
38
+ "PG413": "",
39
+ "PG414": "",
40
+ "PG416": "",
41
+ "PG417": "",
42
+ "PG418": "",
43
+ "HENKEL508": "",
44
+ "HENKEL523": "",
45
+ "PERRIGO4": "",
46
+ "PG419": "US",
47
+ "CONG13": "DE",
48
+ "WLR2148": "DE",
49
+ "EP1": "",
50
+ "PGFEM423": "US",
51
+ "DOVEICAT": "",
52
+ "PG424": "",
53
+ "HENKEL498B": "DE",
54
+ "HENKEL498A": "PL",
55
  "BETCLIC9": "FR",
56
  "ICATJB01": "US",
 
 
57
  "HASPA126": "DE",
58
  "PERRIGOUS2": "US"
59
  }
jira_client.py CHANGED
@@ -261,6 +261,31 @@ def update_issue_dates(issue_key, start_date=None, end_date=None):
261
  return False, f'Error updating {issue_key}: {str(e)}'
262
 
263
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  def get_dateless_issues_for_projects(project_keys):
265
  """Get Projectphase/Task issues that have NO dates set."""
266
  all_issues = []
 
261
  return False, f'Error updating {issue_key}: {str(e)}'
262
 
263
 
264
+ def add_comment(issue_key, text):
265
+ """Post a plain-text comment on a Jira issue (ADF body).
266
+ Used to record who really made a date edit, since Jira's author field is
267
+ locked to the token owner's account and can't be overridden via the API.
268
+ Returns (success: bool, message: str).
269
+ """
270
+ body = {
271
+ 'body': {
272
+ 'type': 'doc',
273
+ 'version': 1,
274
+ 'content': [
275
+ {'type': 'paragraph',
276
+ 'content': [{'type': 'text', 'text': text}]},
277
+ ],
278
+ }
279
+ }
280
+ try:
281
+ jira_post(f'/rest/api/3/issue/{issue_key}/comment', body)
282
+ return True, f'Commented on {issue_key}.'
283
+ except requests.HTTPError as e:
284
+ return False, f'Failed to comment on {issue_key}: {e.response.status_code} {e.response.text}'
285
+ except Exception as e:
286
+ return False, f'Error commenting on {issue_key}: {str(e)}'
287
+
288
+
289
  def get_dateless_issues_for_projects(project_keys):
290
  """Get Projectphase/Task issues that have NO dates set."""
291
  all_issues = []
pm_assignments.json CHANGED
@@ -1,26 +1,54 @@
1
  {
2
  "COMBE2": "Yvonne Zieger",
3
- "TDGTRACK": "Evi Grässler",
4
- "DTAG1000": "Evi Grässler",
5
- "DTAG1001": "Evi Grässler",
6
- "WB114002": "Evi Grässler",
7
- "DTAG999": "Evi Grässler",
8
- "MOB11": "",
9
- "MOBILE8": "",
10
- "WL148SAT1": "",
11
- "WL148": "",
12
- "HENKEL498B": "",
13
- "HENKEL498A": "",
14
- "HENKEL516": "",
15
- "HENKEL517": "",
 
 
 
 
 
 
 
16
  "MUTABOR4": "",
17
- "PERRIGO5": "",
18
  "REWETRA25": "",
19
  "PENNYEM": "",
20
- "BETCLIC9": "",
21
- "ICATJB01": "",
22
- "PERRIGO4": "",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  "HENKEL508": "",
24
- "HASPA126": "",
25
- "PERRIGOUS2": ""
 
 
 
 
 
 
 
26
  }
 
1
  {
2
  "COMBE2": "Yvonne Zieger",
3
+ "TDGTRACK": "Evi Gräßler",
4
+ "DTAG1000": "Evi Gräßler",
5
+ "DTAG1001": "Evi Gräßler",
6
+ "WB114002": "Evi Gräßler",
7
+ "DTAG999": "Evi Gräßler",
8
+ "COMBE1B": "Yvonne Zieger",
9
+ "COMBE1": "Yvonne Zieger",
10
+ "MOB11": "Yvonne Zieger",
11
+ "MOBILE8": "Yvonne Zieger",
12
+ "PG410": "Alicia Möller",
13
+ "PG415DE": "Nicklas Nagel",
14
+ "PG415FR": "Nicklas Nagel",
15
+ "PG415PL": "Nicklas Nagel",
16
+ "PG415UK": "Nicklas Nagel",
17
+ "PERRIGO7": "Greetje Baden",
18
+ "WL148SAT1": "Alicia Möller",
19
+ "WL148": "Alicia Möller",
20
+ "HENK516DE": "Nicklas Nagel",
21
+ "HENK516DZ": "Yvonne Zieger",
22
+ "HENK516TR": "Yvonne Zieger",
23
  "MUTABOR4": "",
 
24
  "REWETRA25": "",
25
  "PENNYEM": "",
26
+ "REWE29ICAT": "",
27
+ "JVM04": "Nicklas Nagel",
28
+ "PG405ETBAU": "Nicklas Nagel",
29
+ "PG405FEPH": "Nicklas Nagel",
30
+ "PG405FETH": "Nicklas Nagel",
31
+ "PG405FEMIN": "Nicklas Nagel",
32
+ "PG405HDWPH": "Nicklas Nagel",
33
+ "PG405COIN": "Nicklas Nagel",
34
+ "PG405LDPH": "Nicklas Nagel",
35
+ "PG405SHMAU": "Nicklas Nagel",
36
+ "PG405SHMID": "Nicklas Nagel",
37
+ "PG411": "Nicklas Nagel",
38
+ "PG412": "Nicklas Nagel",
39
+ "PG413": "Alicia Möller",
40
+ "PG414": "Yvonne Zieger",
41
+ "PG416": "Yvonne Zieger",
42
+ "PG417": "Yvonne Zieger",
43
+ "PG418": "Yvonne Zieger",
44
  "HENKEL508": "",
45
+ "HENKEL523": "",
46
+ "PERRIGO4": "Nicklas Nagel",
47
+ "PG419": "",
48
+ "CONG13": "",
49
+ "WLR2148": "",
50
+ "EP1": "",
51
+ "PGFEM423": "",
52
+ "DOVEICAT": "",
53
+ "PG424": ""
54
  }
pm_backup_assignments.json CHANGED
@@ -3,23 +3,51 @@
3
  "DTAG1001": "",
4
  "WB114002": "",
5
  "DTAG999": "",
6
- "MOB11": "",
7
- "MOBILE8": "",
8
- "WL148SAT1": "",
9
- "WL148": "",
10
- "HENKEL498B": "",
11
- "HENKEL498A": "",
12
- "HENKEL516": "",
13
- "HENKEL517": "",
 
 
 
 
 
 
 
14
  "TDGTRACK": "",
15
  "MUTABOR4": "",
16
- "PERRIGO5": "",
17
  "REWETRA25": "",
18
  "PENNYEM": "",
19
- "BETCLIC9": "",
20
- "ICATJB01": "",
21
- "PERRIGO4": "",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  "HENKEL508": "",
23
- "HASPA126": "",
24
- "PERRIGOUS2": ""
 
 
 
 
 
 
 
25
  }
 
3
  "DTAG1001": "",
4
  "WB114002": "",
5
  "DTAG999": "",
6
+ "COMBE1B": "",
7
+ "COMBE1": "",
8
+ "MOB11": "Nicklas Nagel",
9
+ "MOBILE8": "Nicklas Nagel",
10
+ "PG410": "",
11
+ "PG415DE": "",
12
+ "PG415FR": "",
13
+ "PG415PL": "",
14
+ "PG415UK": "",
15
+ "PERRIGO7": "Dominic Söder",
16
+ "WL148SAT1": "Nicklas Nagel",
17
+ "WL148": "Nicklas Nagel",
18
+ "HENK516DE": "",
19
+ "HENK516DZ": "",
20
+ "HENK516TR": "",
21
  "TDGTRACK": "",
22
  "MUTABOR4": "",
 
23
  "REWETRA25": "",
24
  "PENNYEM": "",
25
+ "REWE29ICAT": "",
26
+ "JVM04": "Yvonne Zieger",
27
+ "PG405ETBAU": "",
28
+ "PG405FEPH": "",
29
+ "PG405FETH": "",
30
+ "PG405FEMIN": "",
31
+ "PG405HDWPH": "",
32
+ "PG405COIN": "",
33
+ "PG405LDPH": "",
34
+ "PG405SHMAU": "",
35
+ "PG405SHMID": "",
36
+ "PG411": "",
37
+ "PG412": "",
38
+ "PG413": "",
39
+ "PG414": "",
40
+ "PG416": "",
41
+ "PG417": "",
42
+ "PG418": "",
43
  "HENKEL508": "",
44
+ "HENKEL523": "",
45
+ "PERRIGO4": "Yvonne Zieger",
46
+ "PG419": "",
47
+ "CONG13": "",
48
+ "WLR2148": "",
49
+ "EP1": "",
50
+ "PGFEM423": "",
51
+ "DOVEICAT": "",
52
+ "PG424": ""
53
  }
research_backup_assignments.json CHANGED
@@ -3,23 +3,53 @@
3
  "DTAG1001": "",
4
  "WB114002": "",
5
  "DTAG999": "",
 
 
6
  "MOB11": "",
7
  "MOBILE8": "",
 
 
 
 
 
 
8
  "WL148SAT1": "",
9
  "WL148": "",
10
- "HENKEL498B": "",
11
- "HENKEL498A": "",
12
- "HENKEL516": "",
13
- "HENKEL517": "",
14
  "TDGTRACK": "",
15
- "MUTABOR4": "",
16
- "PERRIGO5": "",
17
- "REWETRA25": "",
18
- "PENNYEM": "",
19
- "BETCLIC9": "",
20
- "ICATJB01": "Xiaowen Zeng",
21
- "PERRIGO4": "Julia Richter",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  "HENKEL508": "",
23
- "HASPA126": "Julia Richter",
24
- "PERRIGOUS2": ""
 
 
 
 
 
 
 
 
 
25
  }
 
3
  "DTAG1001": "",
4
  "WB114002": "",
5
  "DTAG999": "",
6
+ "COMBE1B": "Emily Panek",
7
+ "COMBE1": "Emily Panek",
8
  "MOB11": "",
9
  "MOBILE8": "",
10
+ "PG410": "",
11
+ "PG415DE": "Joana Hawelka",
12
+ "PG415FR": "Joana Hawelka",
13
+ "PG415PL": "Joana Hawelka",
14
+ "PG415UK": "Joana Hawelka",
15
+ "PERRIGO7": "Emily Panek",
16
  "WL148SAT1": "",
17
  "WL148": "",
18
+ "HENK516DE": "Joana Hawelka",
19
+ "HENK516DZ": "Joana Hawelka",
20
+ "HENK516TR": "Joana Hawelka",
 
21
  "TDGTRACK": "",
22
+ "MUTABOR4": "Joana Hawelka",
23
+ "REWETRA25": "Joana Hawelka",
24
+ "PENNYEM": "Joana Hawelka",
25
+ "REWE29ICAT": "",
26
+ "JVM04": "",
27
+ "PG405ETBAU": "",
28
+ "PG405FEPH": "",
29
+ "PG405FETH": "",
30
+ "PG405FEMIN": "",
31
+ "PG405HDWPH": "",
32
+ "PG405COIN": "",
33
+ "PG405LDPH": "",
34
+ "PG405SHMAU": "",
35
+ "PG405SHMID": "",
36
+ "PG411": "Xiaowen Zeng",
37
+ "PG412": "Xiaowen Zeng",
38
+ "PG413": "Xiaowen Zeng",
39
+ "PG414": "Xiaowen Zeng",
40
+ "PG416": "Xiaowen Zeng",
41
+ "PG417": "Xiaowen Zeng",
42
+ "PG418": "Xiaowen Zeng",
43
  "HENKEL508": "",
44
+ "HENKEL523": "",
45
+ "PERRIGO4": "",
46
+ "PG419": "",
47
+ "CONG13": "Joana Hawelka",
48
+ "WLR2148": "",
49
+ "EP1": "",
50
+ "PGFEM423": "",
51
+ "DOVEICAT": "",
52
+ "PG424": "Xiaowen Zeng",
53
+ "ICATJB01": "Xiaowen Zeng",
54
+ "HASPA126": "Julia Richter"
55
  }