Congratulations, you now have a personal experience that is required to increase your future effectiveness. It will continue to inform you on a visceral level when you are heading down a meaningless road.
It sounds like you spent your time and attention on an aspect that is not of value to the customer (user) that is paying the salaries of yourself and your managers.
There are various reasons for this, but keep in mind that you only have control over your own familiarity with the customer's needs and what you then prioritize. If you rely on the guidance and understanding of your manager and boss, you will only get resentful whenever they make a mistake and treat you unfairly.
It sounds like you spent your time and attention on an aspect that is not of value to the customer (user) that is paying the salaries of yourself and your managers.
There are various reasons for this, but keep in mind that you only have control over your own familiarity with the customer's needs and what you then prioritize. If you rely on the guidance and understanding of your manager and boss, you will only get resentful whenever they make a mistake and treat you unfairly.