refactor(view): efficient direction detection w/ string comparison