#pragma once

#include "esp_err.h"

typedef enum {
    STATUS_PENDING,
    STATUS_OK,
    STATUS_FAILED,
} status_state_t;

/**
 * Renders a two-row connection checklist onto the e-ink panel: a WiFi row
 * (SSID + a checkmark once connected) and a server row (toolsserver
 * address + a checkmark once reachable), each showing a checkmark on
 * STATUS_OK, "FAILED" on STATUS_FAILED, or "..." while STATUS_PENDING.
 * Call once per stage as connection progress is confirmed, so the panel
 * visibly updates as each step completes.
 */
esp_err_t status_screen_show(const char *wifi_ssid, status_state_t wifi_state, const char *server_addr,
                              status_state_t server_state);
