% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_reports.R
\name{mod_reports_server}
\alias{mod_reports_server}
\title{Reports Module — Server}
\usage{
mod_reports_server(id, upload_out)
}
\arguments{
\item{id}{Module namespace id.}

\item{upload_out}{Reactive list returned by \code{\link[=mod_upload_server]{mod_upload_server()}}, containing
\code{raw} (data frame), \code{cols} (column mapping), and \code{config} (survey configuration).}
}
\value{
A list with reactive elements:
\itemize{
\item \code{report_path}: Path to generated Word document
\item \code{output_dir}: Directory containing all outputs
\item \code{generation_status}: Current status string
}
}
\description{
Reports Module — Server
}
\details{
The full pipeline is executed internally:
\enumerate{
\item Cleans data using \code{\link[=clean_steps_data]{clean_steps_data()}}
\item Sets up survey design with \code{\link[=setup_survey_design]{setup_survey_design()}}
\item Computes all indicators with \code{\link[=compute_all_indicators]{compute_all_indicators()}}
\item Builds tables with \code{\link[=build_steps_tables]{build_steps_tables()}}
\item Builds plots with \code{\link[=build_steps_plots]{build_steps_plots()}}
\item Saves all outputs to temp directory
\item Renders report using \code{\link[=render_country_report]{render_country_report()}}
}

Progress is shown via status text and progress bar during generation.
Errors are caught and displayed to the user via notifications.
}
\keyword{internal}
