Star Trek isn't real life, when human labor stops being valuable the humans who's labor was previously vital will be at best left to rot in squalor.
The Expanse would be an apt sci-fi example where almost no labor is needed and everyone survives on a bare minimum UBI unless they want to risk it all and go into space.
Couldn't have said it better myself. The only reason we are worth keeping around is because what we do is necessary to keep the machine running. The idea that the AI singularity would lead to infinite free stuff for everyone is ridiculous.
For some reason programmers start thinking that we'll transition away from a whole world of societies built around the concept of individual ownership, i.e. your landlord charging you rent, company owners owning the company and the resulting product and paying you what they deem the work you own is worth, and move towards something like communism, all because people working in IT or marketing departments are having a hard time.
I'm sorry but us programmers didn't invent capitalism, and it wasn't our consent under the condition of having a good run under it what kept it in place.
A generation of people left behind. The birthrates will continue falling.