This directory contains the popup UI logic. popup.html loads these scripts in order (no build step).
- Render the Live IA summary by calling the background (
get_ia_summary) - Export raw logs (
DivLoggerDB.logs) - Export IA + HTML (asks the content script to compute IA/HTML, then enriches acceptance via background summary)
- Provide settings UI and trigger extension + tab reloads
- Support “Detach” (open popup as a separate window)
Note: if you configure a Remote URL, you must also add the remote host to manifest.json → host_permissions.
00_namespace.js: shared namespace (globalThis.__POSEYEDOM.popup)05_settings.js: settings load/save/reset; triggers reload of extension + github.dev tabs10_db.js: IndexedDB reads of raw logs (fetchLogs())20_download.js: download helpers (downloadText,downloadJSON,exportLogs)30_tabs.js: locate agithub.devtab and “reattach” tracking40_export_ia_html.js: IA/HTML export pipeline:- reads raw logs
- sends
compute_ia_html_from_logsto the content script - if needed, reinjects the content bundle and retries
- enriches
html_{participant}.jsonwith acceptance info usingget_ia_summary
50_ia_summary.js: groups records by root label and renders the expandable table + preview60_status.js: polls backgroundget_statusto update DB/Tracking dots99_entry.js: wires DOM event handlers, starts periodic refresh timers
- Popup reads raw logs from IndexedDB.
- Popup asks the content script to compute IA + HTML via
compute_ia_html_from_logs. - Popup downloads
output_{participant}.ias. - Popup fetches
get_ia_summaryfrom the background to learn which suggestion roots were accepted. - Popup downloads
html_{participant}.jsonwith{ rootLabel: { content, accepted } }.