I'm about to make a similar transition to one you made recently. Even similar specs! I'm on a 16" M1 Pro 16GB and expect to go to a 14" M4 Pro 48GB before the end of the year. Battery life is really important to me. After 3 years on an average day, I'm still getting 6-8 hours on battery on my M1 Pro doing general computing, light photo editing, running dev tools most of the day, and having 1-2 small local development app servers running in the background.
Are you seeing anything that would suggest that I shouldn't expect to get similar battery life moving up to an M4 Pro?
Well, I've got mostly the same stuff I had installed on the M1 Pro by the time I migrated off it. Battery life seems basically the same (if not better) going from M1 Pro to m4 max both in 14". Under "normal" working conditions. i.e., no background renders, just mail, a few terminal apps, web pages, etc.
I'm a network admin, being a web developer I suspect a lot of what you do is similar laptop workload to me - a bunch of browsers, terminal sessions, Remote Desktop sessions, YouTube/video playback, emails, background file transfers, etc.
I think if you're going pro to pro you'll be impressed with the battery life
gain if anything. I went pro to max and am happy. I don't run heavy workloads on battery though, anything I do that's "heavy" is when I'm at a desk (gaming, playing with blender, virtual machines, etc.).
Obviously, running the machine flat out the m4 series can burn through more power, but most people simply aren't doing that.