Skip to content

Add log-points for NCA user input changes (Settings, Parameter Selection, Slope Selector, Exclusions) #1219

@Gero1999

Description

@Gero1999

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions