@@ -47,6 +47,49 @@ class CAStatusBarProvider implements Disposable {
4747 this . statusBarItem . tooltip = PromptText . LSP_FAILURE_TEXT ;
4848 }
4949
50+ /**
51+ * Shows authentication required status in the status bar.
52+ */
53+ public showAuthRequired ( ) : void {
54+ this . statusBarItem . text = `$(shield) RHDA: Sign In Required` ;
55+ this . statusBarItem . command = {
56+ title : 'Authenticate with RHDA' ,
57+ command : 'rhda.authenticate' ,
58+ } ;
59+ this . statusBarItem . tooltip = 'RHDA features are disabled. Click to authenticate and enable dependency analysis.' ;
60+ this . statusBarItem . show ( ) ;
61+ }
62+
63+ /**
64+ * Shows authenticated status in the status bar.
65+ */
66+ public showAuthenticated ( ) : void {
67+ this . statusBarItem . text = `$(verified) RHDA: Authenticated` ;
68+ this . statusBarItem . command = undefined ; // No command needed when authenticated
69+ this . statusBarItem . tooltip = 'RHDA is authenticated and ready for dependency analysis' ;
70+ this . statusBarItem . show ( ) ;
71+ }
72+
73+ /**
74+ * Shows session expired status in the status bar.
75+ */
76+ public showSessionExpired ( ) : void {
77+ this . statusBarItem . text = `$(warning) RHDA: Session Expired` ;
78+ this . statusBarItem . command = {
79+ title : 'Re-authenticate with RHDA' ,
80+ command : 'rhda.authenticate' ,
81+ } ;
82+ this . statusBarItem . tooltip = 'Your RHDA session has expired. Click to re-authenticate and restore functionality.' ;
83+ this . statusBarItem . show ( ) ;
84+ }
85+
86+ /**
87+ * Hides the status bar item.
88+ */
89+ public hide ( ) : void {
90+ this . statusBarItem . hide ( ) ;
91+ }
92+
5093 /**
5194 * Disposes of the status bar item.
5295 */
0 commit comments