#!/bin/bash

cmn_echo_important() {
  local yellow=$(tput setaf 3)
  local reset=$(tput sgr0)
  echo -e "${yellow}$@${reset}"
}

if [ "$XIVO_VERSION_INSTALLED" \< "2024.05.02" ]; then
    cmn_echo_important "Maia features an important display update for the UC applications."
    cmn_echo_important "The Display filter has been updated to provide a better rendering and to clarify where each data is used."
    cmn_echo_important "The definitions, where you match your sources (xivodir/internal) have received new variables to match the Display upgrade accordingly."
    cmn_echo_important "This shouldn't impact you unless you customized your definitions/display filter, in which case you have to recreate adequate customization again."
    cmn_echo_important "Please check out the documentation for further informations on the topic."
fi
