@@ -38,6 +38,9 @@ export function UpdatesSettings() {
3838 message : "Checking for updates..." ,
3939 type : "info" ,
4040 } ) ;
41+ } else if ( result . errorCode === "already_checking" ) {
42+ // A check is already in progress (e.g. boot check) — show spinner and wait
43+ setUpdateStatus ( { message : "Checking for updates..." , type : "info" } ) ;
4144 } else {
4245 if ( result . errorCode === "disabled" ) {
4346 setUpdatesDisabled ( true ) ;
@@ -68,12 +71,22 @@ export function UpdatesSettings() {
6871 useSubscription (
6972 trpcReact . updates . onStatus . subscriptionOptions ( undefined , {
7073 onData : ( status ) => {
71- if ( status . checking === false && status . upToDate ) {
74+ if ( status . checking && status . downloading ) {
75+ setUpdateStatus ( { message : "Downloading update..." , type : "info" } ) ;
76+ } else if ( status . checking === false && status . upToDate ) {
7277 setUpdateStatus ( {
7378 message : "You're on the latest version" ,
7479 type : "success" ,
7580 } ) ;
7681 setCheckingForUpdates ( false ) ;
82+ } else if ( status . checking === false && status . updateReady ) {
83+ setUpdateStatus ( {
84+ message : status . version
85+ ? `Update ${ status . version } ready to install`
86+ : "Update ready to install" ,
87+ type : "success" ,
88+ } ) ;
89+ setCheckingForUpdates ( false ) ;
7790 } else if ( status . checking === false ) {
7891 setCheckingForUpdates ( false ) ;
7992 }
0 commit comments