Triggers and signatures of shear banding in steady and time-dependent flows