Text this: Topological phase transition in chiral graphene nanoribbons: from edge bands to end states