This feature adds the new Create Match screen to the application.
Upon clicking the "Create Match" button, a Supabase edge function is called that creates a new match with a randomly generated, unique room code. It also adds the User who created the match as the Host and as one of the Players.
There is an issue in Supabase where you can not have two properties in a single select() statement where you are joining to another table. For this reason, we have to make a double network call, first for the Match and then for the Host (user who created the match).
This feature adds the new Create Match screen to the application.
Upon clicking the "Create Match" button, a Supabase edge function is called that creates a new match with a randomly generated, unique room code. It also adds the User who created the match as the Host and as one of the Players.
There is an issue in Supabase where you can not have two properties in a single
select()
statement where you are joining to another table. For this reason, we have to make a double network call, first for the Match and then for the Host (user who created the match).Screenshot or it didn't happen:
I'm excited for the design pass