Don't try try to play "guess the bad part" on front brakes.
It really is simplest to buy a new one piece brake line and do a full overhaul. There are great how to's on the whole process in tech thanks to recycle bill.
Often no parts needed for the MC, caliper piston will always have "some rust pitting". caliper rubber condition depends on how bad the fork oil leaks were. Fork oil destroys brake rubber parts making them fat, soft and gooey.
I'll toss this in here;
I just replaced the upper hose on madness, a late model dual caliper conversion. The "braided steel" hose was too long after chooper handlebars were tossed. I emptied the reservoir and drained some fluid from one caliper bleeder then changed to a shorter hose.
Here's the "experiment"; Bike on lift doing rewiring, so I wasn't in a hurry.
I did NOT bleed the brakes! I merely arranged all parts to assure a completely uphill path from caliper to MC reservoir.
On the side stand, bars turned full left, will often get this, on specials with the angled MC you might have to rotate the handlebars in the clamps.
Fill the reservoir after the set up, so fluid doesn't run out a corner (the reservoir will be slightly tilted). Slowly pump the lever, off and on over a couple days. Put the cap in place between pump sessions so the fluid doesn't absorb moisture. At each lever release an air bubble escapes the bleed port. You cannot rush this, as the air takes some time to migrate via gravity from the lines up to the MC bore. Probably a 100 squeezes in all over three or four days, and it's 100% bled, hard lever. Not sure if it was more laziness or to prove a point, but it worked! Even if you bleed there are always a few small air bubbles "hanging around" this can be done cover on, occasionally after any brake work to achieve and maintain a hard brake lever.