Text this: Analysis and optimal control of phase-field transition system