Enhancement
The session log currently captures high-level operations (startup, data upload, NCA calculation start/end) but does not track user input changes within the NCA setup modules. This makes it difficult to reconstruct what configuration a user had when reviewing exported logs.
Motivation
When reviewing a session_log.txt from a ZIP export, analysts and developers should be able to see what NCA configuration choices the user made — not just that a calculation happened, but with what inputs.
Scope
Add log_info / log_debug calls to track user input changes in:
- Settings (
tab_nca/setup/settings.R) — calculation method, dosing type, study type changes
- Parameter Selection (
tab_nca/setup/parameter_selection.R) — parameters added/removed, selection changes
- Slope Selector (
tab_nca/setup/slope_selector.R) — slope rule changes, subject/analyte selection
- General Exclusions — exclusion rule additions/removals/changes
Guidelines
- Use
log_info for user-facing configuration changes (e.g. "Study type changed to 'SD'")
- Use
log_debug for detailed data dumps (e.g. full parameter list)
- Keep messages concise and useful for post-hoc review
- Avoid logging on every reactive invalidation — only log on meaningful user actions
Depends on
Enhancement
The session log currently captures high-level operations (startup, data upload, NCA calculation start/end) but does not track user input changes within the NCA setup modules. This makes it difficult to reconstruct what configuration a user had when reviewing exported logs.
Motivation
When reviewing a
session_log.txtfrom a ZIP export, analysts and developers should be able to see what NCA configuration choices the user made — not just that a calculation happened, but with what inputs.Scope
Add
log_info/log_debugcalls to track user input changes in:tab_nca/setup/settings.R) — calculation method, dosing type, study type changestab_nca/setup/parameter_selection.R) — parameters added/removed, selection changestab_nca/setup/slope_selector.R) — slope rule changes, subject/analyte selectionGuidelines
log_infofor user-facing configuration changes (e.g. "Study type changed to 'SD'")log_debugfor detailed data dumps (e.g. full parameter list)Depends on