def category_name(value):
    """Maps category value to names"""
    return {
        0: "idle",
        1: "unassigned",
        2: "work",
        3: "private",
        4: "break",
        }.get(value, "?")