#pragma once

#include <cstdint>
#include <string>

namespace hwdisplay::ui {

enum class FlowScene : uint8_t {
    Idle, Detecting, Known, Guest, Multi, Prepare, Guide,
    Paused, Finish, Done, Interrupted, Fault
};

enum class HandFeedback : uint8_t {
    Observing, Matched, Other, Missing, Unclear, Offline
};

struct FlowModel {
    FlowScene scene = FlowScene::Idle;
    uint8_t step = 0;  // 0..6
    std::string nickname = "乐乐";  // Only a trusted identity result may set this on a device.
    bool known = false;
    bool hands_visible = false;
    HandFeedback hand_feedback = HandFeedback::Observing;
    uint8_t recognized_step = 0;  // 0..6; only meaningful for Matched or Other.
};

}  // namespace hwdisplay::ui
