///|
/// The identifier of the desktop app for an instance. The system opens one app for each
/// identifier, and keeps the data of its window under it.
pub fn app_identifier(instance : @app.InstanceName) -> String {
  "dev.moonrockz.mission-control.\{instance.to_string()}"
}

///|
/// The title of the window. It is the title that the server gives to the page.
pub fn window_title(instance : @app.InstanceName) -> String {
  if instance == @app.InstanceName::of_channel(Stable) {
    "Mission Control"
  } else {
    "Mission Control (\{instance.to_string()})"
  }
}