Ticket #158 (closed enhancement: done)

Opened 7 years ago

Last modified 6 years ago

Replace hard-coded color assignments for incidents

Reported by: jdalbey Owned by: jdalbey
Priority: Low Milestone: Sep 2019 Training
Component: Electronic Instructor Notebook Version:
Severity: Minor Keywords:
Cc:

Description

Currently the colors used for background in EI Notebook are hard coded to a specific incident.  The drawback is that if a script contains an incident number not present in the hardcoded list then it isn't assigned a color. 

A better strategy would be to create a list or palette of colors and assign them to incidents dynamically as they are created. I.E., first incident gets first color in list, second incident gets second color in list, etc.

Change History

comment:1 Changed 7 years ago by jdalbey

  • Component changed from CPTMS to Electronic Instructor Notebook

comment:2 Changed 7 years ago by jdalbey

John did some explorations towards a solution and knows which modules need updating. Talk to him for details.

comment:3 Changed 7 years ago by jdalbey

The modules that probably need to be updated are: Event.js, Incident.js, Incidents.js, and LoadEvents.js.

comment:4 Changed 7 years ago by jdalbey

  • Owner changed from jdalbey to tanmay
  • Status changed from new to assigned

comment:5 Changed 7 years ago by jdalbey

  • Owner changed from tanmay to jdalbey

Tanmay completed the implementation. Reassigned to jdalbey to integrate.

comment:6 Changed 6 years ago by jdalbey

  • Status changed from assigned to closed
  • Resolution set to done

Integrated in r515.

Note: See TracTickets for help on using tickets.