The M4 15-inch Air has distinct USB-C, MagSafe and battery guides; damaged ports need not mean replacing the whole computer.
What to check before buying
Charging
A USB-C connector and the MagSafe socket are separate repair jobs. The iFixit guides distinguish a loose USB-C connection from a MagSafe connection that charges only at an angle.
Battery and display
Battery, screen and trackpad procedures are also listed for the 2025 15-inch chassis. Earlier 15-inch Air guides may look similar but are not proof of part compatibility.