I'm of the opinion that manufacturers should be required to prominently list the "expected total monthly price" on their packaging, calculated as product_price / months_of_warranty. This basically assumes that the product may break immediately after the warranty expires.
Such a price would incentivize manufacturers to make warranties last as long as possible. This encourages repairability where it's economically and physically viable, without the tradeoffs necessary if repairability is mandated by law.