Skip to content

Hackathon submission state buttons are visually confusing #402

@garyhtou

Description

@garyhtou

The admin hackathon show page contains buttons to transition the state of a hackathon submission (Approve, Reject, and Hold for Review). It's a bit confusing because all the buttons appear at once (similar to #401)

image

We should hide certain buttons depending on the current state. For example, approve -> approve should not be a valid state transition; thus, we should hide the approve button if the current state is approved.

---
title: Hackathon Submission State Diagram
---
stateDiagram-v2
    [*] --> Pending
    Pending --> Approved
    Pending --> Rejected
    Approved --> Pending: Hold for Review
    Rejected --> Pending: Hold for Review
Loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions