hedgequantx 2.5.5 → 2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/menus/dashboard.js +11 -10
package/package.json
CHANGED
package/src/menus/dashboard.js
CHANGED
|
@@ -44,7 +44,7 @@ const dashboardMenu = async (service) => {
|
|
|
44
44
|
console.log(makeLine(propfirmText, 'center'));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
// Stats bar with
|
|
47
|
+
// Stats bar with icons
|
|
48
48
|
const statsInfo = getCachedStats();
|
|
49
49
|
if (statsInfo) {
|
|
50
50
|
console.log(chalk.cyan('╠' + '═'.repeat(W) + '╣'));
|
|
@@ -58,21 +58,22 @@ const dashboardMenu = async (service) => {
|
|
|
58
58
|
? aiConnection.provider.name.split(' ')[0] // Just "CLAUDE" or "OPENAI"
|
|
59
59
|
: null;
|
|
60
60
|
|
|
61
|
-
// Build
|
|
62
|
-
|
|
63
|
-
const
|
|
61
|
+
// Build plain text for length calculation (unicode ✔ and ○ are 1 char width each)
|
|
62
|
+
// Format: "✔ CONNECTIONS: X ✔ ACCOUNTS: X ✔ BALANCE: $X ○ AI: NONE"
|
|
63
|
+
const plainText = `* CONNECTIONS: ${statsInfo.connections} * ACCOUNTS: ${statsInfo.accounts} * BALANCE: ${balStr} * AI: ${aiStatus || 'NONE'}`;
|
|
64
|
+
const statsLen = plainText.length;
|
|
64
65
|
const statsLeftPad = Math.max(0, Math.floor((W - statsLen) / 2));
|
|
65
66
|
const statsRightPad = Math.max(0, W - statsLen - statsLeftPad);
|
|
66
67
|
|
|
67
|
-
//
|
|
68
|
-
const
|
|
69
|
-
const aiIcon = aiStatus ? chalk.magenta('
|
|
68
|
+
// Build with unicode icons and colors
|
|
69
|
+
const checkIcon = chalk.yellow('✔ ');
|
|
70
|
+
const aiIcon = aiStatus ? chalk.magenta('✔ ') : chalk.gray('○ ');
|
|
70
71
|
const aiText = aiStatus ? chalk.magenta(aiStatus) : chalk.gray('NONE');
|
|
71
72
|
|
|
72
73
|
console.log(chalk.cyan('║') + ' '.repeat(statsLeftPad) +
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
checkIcon + chalk.white(`CONNECTIONS: ${statsInfo.connections}`) + ' ' +
|
|
75
|
+
checkIcon + chalk.white(`ACCOUNTS: ${statsInfo.accounts}`) + ' ' +
|
|
76
|
+
checkIcon + chalk.white('BALANCE: ') + balColor(balStr) + ' ' +
|
|
76
77
|
aiIcon + chalk.white('AI: ') + aiText +
|
|
77
78
|
' '.repeat(statsRightPad) + chalk.cyan('║'));
|
|
78
79
|
}
|