Seol mar théacs é seo: Analysis and optimal control of phase-field transition system