@aion0/forge 0.2.35 → 0.2.36

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.
@@ -57,6 +57,7 @@ export default function Dashboard({ user }: { user: any }) {
57
57
  const [showNotifications, setShowNotifications] = useState(false);
58
58
  const [showUserMenu, setShowUserMenu] = useState(false);
59
59
  const [theme, setTheme] = useState<'dark' | 'light'>('dark');
60
+ const [displayName, setDisplayName] = useState(user?.name || 'Forge');
60
61
  const terminalRef = useRef<WebTerminalHandle>(null);
61
62
 
62
63
  // Theme: load from localStorage + apply
@@ -75,6 +76,14 @@ export default function Dashboard({ user }: { user: any }) {
75
76
  localStorage.setItem('forge-theme', next);
76
77
  };
77
78
 
79
+ // Fetch display name from settings
80
+ const refreshDisplayName = useCallback(() => {
81
+ fetch('/api/settings').then(r => r.json())
82
+ .then((s: any) => { if (s.displayName) setDisplayName(s.displayName); })
83
+ .catch(() => {});
84
+ }, []);
85
+ useEffect(() => { refreshDisplayName(); }, [refreshDisplayName]);
86
+
78
87
  // Version check (on mount + every 10 min)
79
88
  useEffect(() => {
80
89
  const check = () => fetch('/api/version').then(r => r.json()).then(setVersionInfo).catch(() => {});
@@ -375,7 +384,7 @@ export default function Dashboard({ user }: { user: any }) {
375
384
  onClick={() => { setShowUserMenu(v => !v); setShowNotifications(false); }}
376
385
  className="text-[10px] text-[var(--text-secondary)] hover:text-[var(--text-primary)] flex items-center gap-1 px-1"
377
386
  >
378
- {user?.name || 'local'} <span className="text-[8px]">▾</span>
387
+ {displayName} <span className="text-[8px]">▾</span>
379
388
  </button>
380
389
  {showUserMenu && (
381
390
  <>
@@ -572,7 +581,7 @@ export default function Dashboard({ user }: { user: any }) {
572
581
  {showMonitor && <MonitorPanel onClose={() => setShowMonitor(false)} />}
573
582
 
574
583
  {showSettings && (
575
- <SettingsModal onClose={() => { setShowSettings(false); fetchData(); }} />
584
+ <SettingsModal onClose={() => { setShowSettings(false); fetchData(); refreshDisplayName(); }} />
576
585
  )}
577
586
  </div>
578
587
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aion0/forge",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "Unified AI workflow platform — multi-model task orchestration, persistent sessions, web terminal, remote access",
5
5
  "type": "module",
6
6
  "scripts": {