The nest thing I did is I routed the Magura MT5t brake hose through the left side of the swingarm.
Attached the brake lever to the handlebar so the hose goes up
Clipped the brake hose off at the brake lever
Plugged the hose with the plug supplied with the Magura brake kit
Clipped off the plug head so it will not interfere with the mall channel in the swingarm
Attached the cable frame grommet supplied with the frame to the hose
Routed the brake hose through the left side of the swingarm
Routed the Kindernay and the brake hoses through the brame and hanged the brake hose at the high point so it will not leak with oil
Clipped the hose grommet to the place
Attached the swingarm back
Attached the rear brake caliper
Then I cut about 200mm of flexible plastic tube (4mm inside diameter, 6mm outside diameter) and cut at along the length
And attached it to the brake hose where it goes between the swingarm and the frame to protect it from rubbing on the frame
Secured it with electrical tape
Attached the magnet sensor supplied with the Innotrace X1 motor
Routed it into the frame
Secured it with zipties
Installed the magnet sensor rubber cover supplied with the frame
Detached the rear brake from the handlebar keeping the tube faced up and placed the frame on side to proceed with cables routing
Attached the brake hose open end to the highest point so it will not leak
Routed the dropper post cable housing supplied with the dropper post PNW PUGET MTB LEVER Puget 2x Lever
Attached the bushing to the cable
Attached the cable housing cap to the cable housing on the dropper post end
Routed the cable though the housing
Routed the motor harness
Attached the fork and handlebar
Put the frame in upright position, attached the brake lever to the handlebar and marked the rear brake cable cut place making sure the brake cable has enough slack inside the frame to make turn in the frame steering head and around the battery upper mount
Removed the brake hose shroud from the brake lever and attached it on the hose
Detached the nut from the brake and attached it on the hose
Attached the olive supplied with the brake kit to the hose
Trimmed the hose
Attached the hose insert supplied with the brake
Detached the original hose end from the brake lever and discarded it
Attached the trimmed hose to the brake lever