Skip to content

Instantly share code, notes, and snippets.

@dustinrjo
Last active December 1, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinrjo/537505ba20cacfb4b242 to your computer and use it in GitHub Desktop.
Save dustinrjo/537505ba20cacfb4b242 to your computer and use it in GitHub Desktop.
event status proposal

All "stop" and "segment" cards must have a status object. All "stop" views must have the "status" object in the stage block next to the other metadata.

The status object would look like the following:

{
  "status": {
    "code": "post",
    "label": "REPLAY",
    "color": "#969696",
    "message": "The event has ended.  Replay will be available shortly.",
    "start_time": "2015-10-13T17:00:05.138Z",
    "end_time": "2015-10-13T17:50:05.138Z"
  }
}

There will be a fixed array of possible "code" strings and we need to mock examples of each state TBD.

"label": could be a free form string but will likely be a fixed array of labels. "color": will be a hex color or empty string indicating to the UI how to render the label. "message": will be free form string with some tbd character limit. "start_time" and "end_time" are date times that will be used for countdown if the code is "pre" within 48hrs or will be used to display a date range if "pre" and greater than 48 hrs out. Also used to display past date in the "post" phase.

@ismasan
Copy link

ismasan commented Oct 21, 2015

For reference:

Event
   |
   |-- Year
          |
          |-- Stop [status] ---> Stop
                                   |
                                   |-- Stage [status]
                                   |
                                   |-- Schedule
                                            |
                                            |-- Segment [status]
                                            |
                                            |-- Segment [status]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment