Skip to content

Commit 66f6f9f

Browse files
committed
refactor: Remove Bugcrowd login status indicator
- Remove login status UI from popup (Connected/Not Connected) - Remove checkBugcrowdLoginStatus() function - Simplify auto-renew session to work silently in background - Update documentation to reflect simplified implementation - Keep core auto-renew functionality intact
1 parent 26516c7 commit 66f6f9f

File tree

3 files changed

+1
-37
lines changed

3 files changed

+1
-37
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Whether you're writing reports, managing submissions, or communicating with tria
5959

6060
### v1.4.0
6161
- Added **Auto-Renew Session** feature to automatically refresh Bugcrowd session every hour, preventing the 2-hour timeout
62-
- Added **Bugcrowd Login Status** indicator in the extension popup
6362
- Improved session management with background service worker
6463

6564
### v1.3.0
@@ -106,10 +105,9 @@ The Auto-Renew Session feature is **enabled by default** and works automatically
106105

107106
- Refreshes your Bugcrowd session every hour
108107
- Prevents the 2-hour session timeout
109-
- Shows your Bugcrowd login status (Connected/Not Connected)
110108
- Can be toggled on/off in the extension popup
111109

112-
> **Note:** This feature requires you to be logged into Bugcrowd. The extension will show "Not Connected" if you're not logged in.
110+
> **Note:** This feature works silently in the background. Make sure you're logged into Bugcrowd for it to function properly.
113111
114112
#### Set ChatGPT API Token
115113

extension/popup.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ <h1>CrowdAssist</h1>
161161
<label for="auto-renew-session">Auto-Renew Session</label>
162162
</div>
163163
<div class="help-text">Automatically refresh your Bugcrowd session every hour to prevent timeout.</div>
164-
<div class="help-text" id="bugcrowd-login-status" style="margin-top: 6px; font-weight: 500;">
165-
Bugcrowd Status: <span id="login-status-text">Checking...</span>
166-
</div>
167164
</div>
168165

169166
<button class="btn" id="save-token">Save Settings</button>

extension/popup.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ function applyTheme(theme) {
107107
helpText.style.color = styles.helpTextColor;
108108
});
109109

110-
// Apply theme to login status container (but preserve the colored status text)
111-
const loginStatusContainer = document.getElementById('bugcrowd-login-status');
112-
if (loginStatusContainer) {
113-
loginStatusContainer.style.color = styles.labelColor;
114-
}
115-
116110
// Apply theme to buttons
117111
const buttons = document.querySelectorAll('.btn');
118112
buttons.forEach(button => {
@@ -160,28 +154,6 @@ document.addEventListener('DOMContentLoaded', function() {
160154
const saveButton = document.getElementById('save-token');
161155
const testButton = document.getElementById('test-token');
162156
const statusDiv = document.getElementById('status');
163-
const loginStatusText = document.getElementById('login-status-text');
164-
165-
// Check Bugcrowd login status
166-
async function checkBugcrowdLoginStatus() {
167-
try {
168-
const cookies = await chrome.cookies.getAll({
169-
domain: '.bugcrowd.com'
170-
});
171-
172-
if (cookies && cookies.length > 0) {
173-
loginStatusText.textContent = 'Connected';
174-
loginStatusText.style.color = '#28a745';
175-
} else {
176-
loginStatusText.textContent = 'Not Connected';
177-
loginStatusText.style.color = '#dc3545';
178-
}
179-
} catch (error) {
180-
console.error('Error checking login status:', error);
181-
loginStatusText.textContent = 'Unknown';
182-
loginStatusText.style.color = '#6c757d';
183-
}
184-
}
185157

186158
// Load existing settings and apply theme
187159
chrome.storage.sync.get(['openai_token', 'theme_mode', 'auto_renew_session'], function(result) {
@@ -208,9 +180,6 @@ document.addEventListener('DOMContentLoaded', function() {
208180

209181
// Apply the current theme
210182
getCurrentTheme(applyTheme);
211-
212-
// Check login status
213-
checkBugcrowdLoginStatus();
214183
});
215184

216185
// Listen for theme changes to provide live preview

0 commit comments

Comments
 (0)