H1b approval notice has a validation date, it is only valid on or after that
date, so before that date, your opt should still be valid, same for you F1
status. On the validation date, UCSIS should automatically send an email to
your current school to inform your change of status and your SEVIS record
should also be automatically closed.
Don't take my words as granted but they should be right.