This is already in place in gnome software, if you have the beta repo installed How to use flathub-beta