You've already forked wizgit-vscode-extension
feat(statusBar): add account name to status bar display
- Updated the status bar item to include an optional account name. - Modified the status bar text to show the account name if available. - Adjusted the interface to accommodate the new accountName property.
This commit is contained in:
21
README.md
21
README.md
@@ -32,6 +32,8 @@ Your intelligent coding companion for comprehensive repository management, right
|
||||
* **File changes display:** View detailed file modifications and diffs
|
||||
* **Smart branch selection:** Choose source and destination branches with intelligent defaults
|
||||
* **Workspace integration:** Auto-detect repository information from your current workspace
|
||||
* **Enhanced viewing experience:** Modern, responsive webview interface for viewing issues and PRs
|
||||
* **Interactive comments section:** Beautiful comments display with hover effects and markdown support
|
||||
|
||||
### 🔐 **Authentication & Security**
|
||||
|
||||
@@ -45,6 +47,8 @@ Your intelligent coding companion for comprehensive repository management, right
|
||||
* **Branch enumeration:** List and select from available local and remote branches
|
||||
* **Progress tracking:** Visual progress indication during operations
|
||||
* **Error handling:** Comprehensive error reporting and troubleshooting
|
||||
* **Status bar integration:** Display current account name and configuration status in VS Code status bar
|
||||
* **Modern UI components:** Enhanced webviews with card-based layouts, smooth animations, and VS Code theme integration
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -123,7 +127,22 @@ You can access these settings through VS Code's Settings UI or by adding them to
|
||||
|
||||
## Release Notes
|
||||
|
||||
### 0.0.4 (Current)
|
||||
### 0.0.5 (Current)
|
||||
|
||||
* Bump version to 0.0.5
|
||||
|
||||
**UI/UX Enhancements:**
|
||||
* **Enhanced comments section:** Complete redesign of comments display in issue and PR webviews with modern card-based layout
|
||||
* **Improved visual design:** Added hover effects, smooth transitions, and better typography for comments
|
||||
* **Account name display:** Status bar now shows the authenticated user's account name after "WizGIT: "
|
||||
* **Better empty states:** Friendly messages when no comments exist with call-to-action prompts
|
||||
* **Markdown support hints:** Added helpful text about markdown formatting in comment forms
|
||||
* **Enhanced comment forms:** Improved styling with better focus states, padding, and visual feedback
|
||||
|
||||
**Bug Fixes & Improvements:**
|
||||
* Fixed status bar initialization to properly display account information on extension startup
|
||||
|
||||
### 0.0.4
|
||||
|
||||
* Bump version to 0.0.4
|
||||
* Fix issue with branch selection dropdown not populating correctly in some cases
|
||||
|
||||
5
package-lock.json
generated
5
package-lock.json
generated
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"name": "wizgit-in-vscode",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.5",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "wizgit-in-vscode",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.5",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"node-fetch": "^3.3.2"
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "wizgit-in-vscode",
|
||||
"displayName": "WizGIT in VS Code",
|
||||
"description": "A VS Code extension to interact with WizGIT API for repository management.",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"publisher": "TerenceCarrera",
|
||||
"icon": "resources/wizgit-marketplace-icon.png",
|
||||
"license": "MIT",
|
||||
|
||||
813
src/extension.ts
813
src/extension.ts
File diff suppressed because it is too large
Load Diff
@@ -52,7 +52,8 @@ export function createStatusBarItem(context: vscode.ExtensionContext): vscode.St
|
||||
updateStatusBar(statusBarItem, {
|
||||
configured: false,
|
||||
hasRepositories: false,
|
||||
notificationCount: 0
|
||||
notificationCount: 0,
|
||||
accountName: undefined
|
||||
});
|
||||
|
||||
context.subscriptions.push(statusBarItem);
|
||||
@@ -63,6 +64,7 @@ export interface StatusBarData {
|
||||
configured: boolean;
|
||||
hasRepositories: boolean;
|
||||
notificationCount: number;
|
||||
accountName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,7 +77,11 @@ export function updateStatusBar(statusBarItem: vscode.StatusBarItem, data: Statu
|
||||
return;
|
||||
}
|
||||
|
||||
let text = '$(git-branch) WizGIT';
|
||||
let text = '$(git-branch) WizGIT: ';
|
||||
|
||||
if (data.accountName) {
|
||||
text += `${data.accountName} `;
|
||||
}
|
||||
|
||||
if (data.hasRepositories) {
|
||||
text += '✓';
|
||||
|
||||
Reference in New Issue
Block a user