@umituz/web-virtual 1.1.2 → 1.2.0

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/README.md CHANGED
@@ -4,11 +4,16 @@ Universal 3D Virtual Environment Engine for Web and React.
4
4
 
5
5
  Build realistic, high-performance, interactive 3D virtual offices, farms, industrial factories, schools, and hospitals with locked 60fps rendering, raycasting, and contextual inspectors.
6
6
 
7
+ All UI strings are **English** so the package drops into any product without locale friction. Consumer-supplied data (entity names, missions, roles) is rendered verbatim.
8
+
7
9
  ---
8
10
 
9
11
  ## Features
10
12
 
11
13
  - **Universal Engine**: Agnostic to domain (Corporate Offices, Agriculture, Automation Factories, Campus, Healthcare).
14
+ - **Hot-Synced Entities (1.2.0)**: When the `world` prop changes (e.g. a status poll), entities are diffed and updated **in place** — the scene, camera position, lights and cached GLB models are never rebuilt. No flicker, no reloads, no lost camera angle.
15
+ - **WebGL Resilience (1.2.0)**: Graceful fallback UI when WebGL is unavailable, and a one-click restore overlay if the GPU context is lost mid-session.
16
+ - **Battery Friendly (1.2.0)**: The render loop pauses automatically while the tab is hidden.
12
17
  - **Locked 60 FPS Performance**: Direct GPU CSS `translate3d` projection for floating labels and pins without React state re-rendering overhead during orbit/zoom.
13
18
  - **Interactive Entities & Raycasting**: Click and hover directly on 3D desks, monitors, robots, or avatars.
14
19
  - **Architectural Presets**:
@@ -17,9 +22,10 @@ Build realistic, high-performance, interactive 3D virtual offices, farms, indust
17
22
  - `factoryPreset`: Conveyor belts, robotic arms, storage racks.
18
23
  - `schoolPreset`: Lecture halls, interactive smartboards, science labs.
19
24
  - `hospitalPreset`: Triage rooms, consultation suites, patient monitoring.
20
- - **Contextual Inspector**: Slide-out drawer displaying role, status, metadata, and custom application actions.
25
+ - **DigitalHQView**: A complete, embeddable "digital headquarters" screen — 3D office floor, operations dashboard, and an AI command center wired through a single `onDispatchMission` callback.
26
+ - **Contextual Inspector & Profile Drawer**: Role, status, metrics, latest task, and custom application actions.
21
27
  - **Day & Night Simulation**: One-click smooth lighting transitions.
22
- - **Pin & Label Modes**: Minimal 28px circular pins (`#1`..`#17`) with status indicators, expandable chips, or hidden mode.
28
+ - **Pin & Label Modes**: Minimal circular pins (`#1`..`#17`) with status indicators, expandable chips, or hidden mode.
23
29
 
24
30
  ---
25
31
 
@@ -57,6 +63,58 @@ export function MyOfficePage() {
57
63
  }
58
64
  ```
59
65
 
66
+ ### Live status updates (hot-sync)
67
+
68
+ Poll or stream your data and pass a fresh `world` object — the engine diffs entities and updates status rings, animations and transforms in place. Poll every few seconds without penalty:
69
+
70
+ ```tsx
71
+ const world = useMemo(
72
+ () => createEnvironment({ preset: officePreset, name: 'HQ', entities: liveEntities }),
73
+ [liveEntities],
74
+ )
75
+
76
+ return <VirtualWorld world={world} preset={officePreset} />
77
+ ```
78
+
79
+ ### Full digital HQ screen
80
+
81
+ ```tsx
82
+ import { DigitalHQView, createEnvironment, officePreset } from '@umituz/web-virtual'
83
+
84
+ <DigitalHQView
85
+ world={world}
86
+ preset={officePreset}
87
+ deskCapacity={17}
88
+ onDispatchMission={async ({ prompt, targetId, isDemo }) => {
89
+ await fetch('/api/office/dispatch', {
90
+ method: 'POST',
91
+ body: JSON.stringify({ prompt, targetId, demo: isDemo }),
92
+ })
93
+ }}
94
+ getEntityLatestTask={(id) => latestTaskById.get(id) ?? null}
95
+ />
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Key props
101
+
102
+ ### `VirtualWorld`
103
+
104
+ | Prop | Type | Notes |
105
+ |---|---|---|
106
+ | `world` | `WorldDefinition` | Hot-synced: changes update the scene in place. |
107
+ | `preset` | `WorldPreset` | Scene is built once per preset instance. |
108
+ | `pinMode` | `'pins' \| 'labels' \| 'off'` | Controlled or uncontrolled label display. |
109
+ | `nightMode` | `boolean` | Smooth day/night lighting transition. |
110
+ | `onSelectEntity` / `onHoverEntity` | callback | Fired from 3D raycast hits and pins. |
111
+
112
+ Ref API (`VirtualWorldRef`): `focusOnEntity`, `setCameraPreset`, `resetCamera`, `setNightMode`, `resize`.
113
+
114
+ ### `DigitalHQView`
115
+
116
+ Everything `VirtualWorld` renders plus an operations dashboard and AI command center. Notable props: `projects`, `activities`, `presetMissions`, `deskCapacity` (defaults to the world's entity count), `getEntityMetrics`, `getEntityLatestTask`, `onDispatchMission({ prompt, targetId, isDemo })`, `onSeedSquad`.
117
+
60
118
  ---
61
119
 
62
120
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-virtual",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "Universal 3D Virtual Environment Engine for Web & React — Offices, Farms, Factories, Schools, Hospitals with 60fps performance, raycasting and interactive entities.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -73,6 +73,8 @@ export interface DigitalHQViewProps {
73
73
  onSelectEntity?: (entity: WorldEntity | null) => void
74
74
  getEntityMetrics?: (entityId: string) => EntityRunMetrics | undefined
75
75
  getEntityLatestTask?: (entityId: string) => EntityLatestTask | null
76
+ /** Total number of desks in the office layout (defaults to the world's entity count). */
77
+ deskCapacity?: number
76
78
  returnUrl?: string
77
79
  standaloneUrl?: string
78
80
  className?: string
@@ -96,6 +98,7 @@ export function DigitalHQView({
96
98
  onSelectEntity,
97
99
  getEntityMetrics,
98
100
  getEntityLatestTask,
101
+ deskCapacity,
99
102
  returnUrl = '/app/office',
100
103
  standaloneUrl = '/digital-hq',
101
104
  className = '',
@@ -194,6 +197,9 @@ export function DigitalHQView({
194
197
  return world.entities.filter((e) => e.status === 'awaiting_approval').length
195
198
  }, [world.entities])
196
199
 
200
+ // Total desks in the office layout (defaults to the world's entity count)
201
+ const capacity = deskCapacity ?? world.entities.length
202
+
197
203
  return (
198
204
  <div className={`wv-hq-container ${nightMode ? 'is-night' : ''} ${className}`}>
199
205
  {/* 1. Header Toolbar */}
@@ -208,25 +214,25 @@ export function DigitalHQView({
208
214
  <h1 className="wv-hq-brand-title">{world.name}</h1>
209
215
  <span className="wv-hq-badge">Universal 3D</span>
210
216
  </div>
211
- <p className="wv-hq-brand-desc">Yapay Zeka Destekli Sanal Karargah</p>
217
+ <p className="wv-hq-brand-desc">AI-powered virtual headquarters</p>
212
218
  </div>
213
219
  </div>
214
220
 
215
221
  <div className="wv-hq-stats-row">
216
222
  <span className="wv-hq-stat-pill is-green">
217
223
  <span className="wv-hq-pip" />
218
- {world.entities.length} / 17 Masa Dolu
224
+ {world.entities.length} / {capacity} desks staffed
219
225
  </span>
220
226
  {activeWorkersCount > 0 && (
221
227
  <span className="wv-hq-stat-pill is-purple">
222
228
  <Zap size={12} />
223
- {activeWorkersCount} Görevde
229
+ {activeWorkersCount} on a mission
224
230
  </span>
225
231
  )}
226
232
  {pendingApprovalsCount > 0 && (
227
233
  <span className="wv-hq-stat-pill is-amber">
228
234
  <Clock size={12} />
229
- {pendingApprovalsCount} Onay Bekliyor
235
+ {pendingApprovalsCount} awaiting approval
230
236
  </span>
231
237
  )}
232
238
  </div>
@@ -240,7 +246,7 @@ export function DigitalHQView({
240
246
  className={`wv-hq-mode-tab ${activeMode === 'office' ? 'is-active' : ''}`}
241
247
  >
242
248
  <Compass size={14} color="#3b82f6" />
243
- <span>Ofis Katı (3D)</span>
249
+ <span>Office floor (3D)</span>
244
250
  </button>
245
251
 
246
252
  <button
@@ -249,7 +255,7 @@ export function DigitalHQView({
249
255
  className={`wv-hq-mode-tab ${activeMode === 'operations' ? 'is-active' : ''}`}
250
256
  >
251
257
  <LayoutDashboard size={14} color="#06b6d4" />
252
- <span>Operasyonlar</span>
258
+ <span>Operations</span>
253
259
  {projects.length > 0 && (
254
260
  <span className="wv-hq-tab-count">{projects.length}</span>
255
261
  )}
@@ -261,7 +267,7 @@ export function DigitalHQView({
261
267
  className={`wv-hq-mode-tab ${activeMode === 'command_center' ? 'is-active' : ''}`}
262
268
  >
263
269
  <Terminal size={14} color="#a855f7" />
264
- <span>AI Komuta Merkezi</span>
270
+ <span>AI command center</span>
265
271
  {pendingApprovalsCount > 0 && (
266
272
  <span className="wv-hq-tab-badge">{pendingApprovalsCount}</span>
267
273
  )}
@@ -270,7 +276,7 @@ export function DigitalHQView({
270
276
 
271
277
  {/* Header Right Actions */}
272
278
  <div className="wv-hq-header-right">
273
- {onSeedSquad && world.entities.length < 17 && (
279
+ {onSeedSquad && world.entities.length < capacity && (
274
280
  <button
275
281
  type="button"
276
282
  onClick={onSeedSquad}
@@ -278,7 +284,7 @@ export function DigitalHQView({
278
284
  className="wv-hq-action-btn is-seed"
279
285
  >
280
286
  {isSeeding ? <Loader2 size={13} className="wv-spin" /> : <Sparkles size={13} />}
281
- <span>Kadro Ekle (17)</span>
287
+ <span>Build squad ({capacity})</span>
282
288
  </button>
283
289
  )}
284
290
 
@@ -289,11 +295,11 @@ export function DigitalHQView({
289
295
  type="button"
290
296
  onClick={handleCyclePinMode}
291
297
  className={`wv-hq-action-btn ${pinMode !== 'off' ? 'is-active' : ''}`}
292
- title="Etiketleri Değiştir: Kapalı ➔ Numaralar (#) ➔ İsimler"
298
+ title="Cycle labels: off ➔ numbers (#) ➔ names"
293
299
  >
294
300
  <Tag size={14} />
295
301
  <span>
296
- {pinMode === 'off' ? 'Etiketler: Kapalı' : pinMode === 'pins' ? 'Masa No (#)' : 'İsimler'}
302
+ {pinMode === 'off' ? 'Labels: off' : pinMode === 'pins' ? 'Desk no. (#)' : 'Names'}
297
303
  </span>
298
304
  </button>
299
305
 
@@ -302,10 +308,10 @@ export function DigitalHQView({
302
308
  type="button"
303
309
  onClick={() => setShowCommandBar((prev) => !prev)}
304
310
  className={`wv-hq-action-btn ${showCommandBar ? 'is-active' : ''}`}
305
- title={showCommandBar ? 'Görev Panelini Kapat' : 'Görev Panelini Aç'}
311
+ title={showCommandBar ? 'Hide mission panel' : 'Show mission panel'}
306
312
  >
307
313
  <Terminal size={14} />
308
- <span className="wv-hide-mobile">Görev Paneli</span>
314
+ <span className="wv-hide-mobile">Mission panel</span>
309
315
  </button>
310
316
 
311
317
  {/* Roster Sidebar Toggle */}
@@ -313,10 +319,10 @@ export function DigitalHQView({
313
319
  type="button"
314
320
  onClick={handleToggleRoster}
315
321
  className={`wv-hq-action-btn ${showRoster ? 'is-active' : ''}`}
316
- title={showRoster ? 'Kadro Panelini Gizle' : 'Kadro Panelini Aç'}
322
+ title={showRoster ? 'Hide roster panel' : 'Show roster panel'}
317
323
  >
318
324
  {showRoster ? <PanelRightClose size={15} /> : <PanelRightOpen size={15} />}
319
- <span className="wv-hide-mobile">Kadro ({world.entities.length})</span>
325
+ <span className="wv-hide-mobile">Roster ({world.entities.length})</span>
320
326
  </button>
321
327
 
322
328
  {/* Lighting Toggle */}
@@ -328,7 +334,7 @@ export function DigitalHQView({
328
334
  virtualWorldRef.current?.setNightMode(next)
329
335
  }}
330
336
  className="wv-hq-icon-btn"
331
- title={nightMode ? 'Gündüz Moduna Geç (Mimari Beyaz)' : 'Gece Moduna Geç (Akşam Işıkları)'}
337
+ title={nightMode ? 'Switch to day mode (bright studio)' : 'Switch to night mode (evening lights)'}
332
338
  >
333
339
  {nightMode ? <Sun size={15} color="#f59e0b" /> : <Moon size={15} />}
334
340
  </button>
@@ -338,7 +344,7 @@ export function DigitalHQView({
338
344
  type="button"
339
345
  onClick={() => virtualWorldRef.current?.resetCamera()}
340
346
  className="wv-hq-icon-btn"
341
- title="Kamerayı Varsayılan İzometrik Açıya Sıfırla"
347
+ title="Reset camera to the default isometric angle"
342
348
  >
343
349
  <RotateCcw size={15} />
344
350
  </button>
@@ -351,16 +357,16 @@ export function DigitalHQView({
351
357
  target="_blank"
352
358
  rel="noreferrer"
353
359
  className="wv-hq-action-btn"
354
- title="Tam Ekran Bağımsız Sayfada Aç"
360
+ title="Open as a standalone fullscreen page"
355
361
  >
356
362
  <ExternalLink size={14} />
357
- <span className="wv-hide-mobile">Ayrı Sayfada Aç</span>
363
+ <span className="wv-hide-mobile">Open standalone</span>
358
364
  </a>
359
365
  ) : (
360
366
  <a
361
367
  href={returnUrl}
362
368
  className="wv-hq-action-btn"
363
- title="Dashboard'a Dön"
369
+ title="Back to dashboard"
364
370
  >
365
371
  <ArrowRight size={14} style={{ transform: 'rotate(180deg)' }} />
366
372
  <span className="wv-hide-mobile">Dashboard</span>
@@ -371,7 +377,7 @@ export function DigitalHQView({
371
377
  type="button"
372
378
  onClick={handleToggleFullscreen}
373
379
  className="wv-hq-icon-btn"
374
- title={isFullscreen ? 'Tam Ekrandan Çık' : 'Tam Ekran'}
380
+ title={isFullscreen ? 'Exit fullscreen' : 'Fullscreen'}
375
381
  >
376
382
  {isFullscreen ? <Minimize2 size={15} /> : <Maximize2 size={15} />}
377
383
  </button>
@@ -382,7 +388,7 @@ export function DigitalHQView({
382
388
  onClick={onRefresh}
383
389
  disabled={refreshing}
384
390
  className="wv-hq-icon-btn"
385
- title="Verileri Yenile"
391
+ title="Refresh data"
386
392
  >
387
393
  <RefreshCw size={15} className={refreshing ? 'wv-spin' : ''} />
388
394
  </button>
@@ -401,14 +407,14 @@ export function DigitalHQView({
401
407
  {loading && (
402
408
  <div className="wv-hq-loading-overlay">
403
409
  <Loader2 size={32} className="wv-spin" color="#3b82f6" />
404
- <p>3D Dijital Ofis Katı Yükleniyor...</p>
410
+ <p>Loading the 3D office floor...</p>
405
411
  </div>
406
412
  )}
407
413
 
408
414
  {/* Navigation Hint */}
409
415
  <div className="wv-hq-nav-hint">
410
416
  <Compass size={14} color="#3b82f6" />
411
- <span>3D Masaya Tıkla: Bilgiler Açılır • Sol Tık: Çevir • Sağ Tık: Kaydır • Tekerlek: Yakınlaş</span>
417
+ <span>Click a 3D desk to open its profile • Left drag: orbit • Right drag: pan • Wheel: zoom</span>
412
418
  </div>
413
419
 
414
420
  {/* 3D Viewport */}
@@ -503,38 +509,38 @@ export function DigitalHQView({
503
509
  <div className="wv-hq-ops-metrics-grid">
504
510
  <div className="wv-hq-ops-metric-card">
505
511
  <div className="wv-ops-metric-header">
506
- <span>Toplam Proje</span>
512
+ <span>Total projects</span>
507
513
  <FolderKanban size={16} color="#3b82f6" />
508
514
  </div>
509
515
  <div className="wv-ops-metric-num">{projects.length}</div>
510
- <p className="wv-ops-metric-sub">Aktif iş geliştirme portföyü</p>
516
+ <p className="wv-ops-metric-sub">Active work portfolio</p>
511
517
  </div>
512
518
 
513
519
  <div className="wv-hq-ops-metric-card">
514
520
  <div className="wv-ops-metric-header">
515
- <span>Departman Sayısı</span>
521
+ <span>Departments</span>
516
522
  <Building2 size={16} color="#06b6d4" />
517
523
  </div>
518
524
  <div className="wv-ops-metric-num">{departments.length}</div>
519
- <p className="wv-ops-metric-sub">Fonksiyonel çalışma hücresi</p>
525
+ <p className="wv-ops-metric-sub">Functional work cells</p>
520
526
  </div>
521
527
 
522
528
  <div className="wv-hq-ops-metric-card">
523
529
  <div className="wv-ops-metric-header">
524
- <span>Aktif Çalışan</span>
530
+ <span>Active staff</span>
525
531
  <Zap size={16} color="#a855f7" />
526
532
  </div>
527
- <div className="wv-ops-metric-num">{activeWorkersCount} / 17</div>
528
- <p className="wv-ops-metric-sub">Masasında çalışan uzmanlar</p>
533
+ <div className="wv-ops-metric-num">{activeWorkersCount} / {capacity}</div>
534
+ <p className="wv-ops-metric-sub">Specialists working at their desks</p>
529
535
  </div>
530
536
 
531
537
  <div className="wv-hq-ops-metric-card">
532
538
  <div className="wv-ops-metric-header">
533
- <span>Onay Bekleyen</span>
539
+ <span>Awaiting approval</span>
534
540
  <Clock size={16} color="#f59e0b" />
535
541
  </div>
536
542
  <div className="wv-ops-metric-num">{pendingApprovalsCount}</div>
537
- <p className="wv-ops-metric-sub">Yönetici onayı bekleyen görevler</p>
543
+ <p className="wv-ops-metric-sub">Missions pending a manager approval</p>
538
544
  </div>
539
545
  </div>
540
546
 
@@ -543,7 +549,7 @@ export function DigitalHQView({
543
549
  <div className="wv-hq-ops-dept-col">
544
550
  <h2 className="wv-hq-section-heading">
545
551
  <Building2 size={16} color="#3b82f6" />
546
- <span>Departman Odaları & Masaları</span>
552
+ <span>Department rooms & desks</span>
547
553
  </h2>
548
554
 
549
555
  <div className="wv-hq-dept-cards-grid">
@@ -556,14 +562,14 @@ export function DigitalHQView({
556
562
  <div>
557
563
  <div className="wv-dept-card-top">
558
564
  <span className="wv-dept-color-pip" style={{ backgroundColor: dept.color }} />
559
- {isDeptBusy && <span className="wv-dept-busy-badge">⚡ Çalışıyor</span>}
565
+ {isDeptBusy && <span className="wv-dept-busy-badge">⚡ Working</span>}
560
566
  </div>
561
567
  <h3 className="wv-dept-name">{dept.name}</h3>
562
568
  <p className="wv-dept-desc">{dept.description}</p>
563
569
  </div>
564
570
 
565
571
  <div className="wv-dept-card-bottom">
566
- <span>{deptEntities.length} Masa</span>
572
+ <span>{deptEntities.length} {deptEntities.length === 1 ? 'desk' : 'desks'}</span>
567
573
  <button
568
574
  type="button"
569
575
  onClick={() => {
@@ -572,7 +578,7 @@ export function DigitalHQView({
572
578
  }}
573
579
  className="wv-dept-link-btn"
574
580
  >
575
- <span>Odaya Git</span>
581
+ <span>Go to room</span>
576
582
  <ArrowRight size={13} />
577
583
  </button>
578
584
  </div>
@@ -586,14 +592,14 @@ export function DigitalHQView({
586
592
  <div className="wv-hq-ops-act-col">
587
593
  <h2 className="wv-hq-section-heading">
588
594
  <Activity size={16} color="#3b82f6" />
589
- <span>Sistem Aktivite Akışı</span>
595
+ <span>System activity feed</span>
590
596
  </h2>
591
597
 
592
598
  <div className="wv-hq-act-box">
593
599
  {activities.length === 0 ? (
594
600
  <div className="wv-hq-empty-act">
595
601
  <Clock size={24} style={{ opacity: 0.4, margin: '0 auto 8px' }} />
596
- <p>Kayıtlı sistem aktivitesi bulunmuyor.</p>
602
+ <p>No recorded system activity yet.</p>
597
603
  </div>
598
604
  ) : (
599
605
  activities.slice(0, 8).map((act) => (
@@ -628,9 +634,9 @@ export function DigitalHQView({
628
634
  <Terminal size={20} />
629
635
  </div>
630
636
  <div>
631
- <h2 className="wv-dispatch-title">Yapay Zeka Komuta ve Orkestrasyon</h2>
637
+ <h2 className="wv-dispatch-title">AI command & orchestration</h2>
632
638
  <p className="wv-dispatch-sub">
633
- Genel Müdürlük üzerinden tüm departman çalışanlarına otomatik görev dağıtımı yapın.
639
+ Dispatch missions to every department automatically through the general manager.
634
640
  </p>
635
641
  </div>
636
642
  </div>
@@ -640,7 +646,7 @@ export function DigitalHQView({
640
646
  value={promptText}
641
647
  onChange={(e) => setPromptText(e.target.value)}
642
648
  rows={3}
643
- placeholder="Şirket hedefinizi veya karmaşık projenizi yazın... (Örn: Yeni dijital pazarlama kampanyası için strateji, görsel briefler ve bütçe planını oluştur)"
649
+ placeholder="Describe a company goal or a complex project... (e.g. Build the strategy, visual briefs and budget plan for our new digital marketing campaign)"
644
650
  className="wv-dispatch-textarea"
645
651
  />
646
652
  <div className="wv-dispatch-actions-row">
@@ -650,7 +656,7 @@ export function DigitalHQView({
650
656
  className={`wv-demo-toggle-btn ${isDemoMode ? 'is-demo' : 'is-ai'}`}
651
657
  >
652
658
  {isDemoMode ? <Sparkles size={14} /> : <Bot size={14} />}
653
- <span>{isDemoMode ? 'Demo Hızlı Simülasyon' : 'Gerçek LLM API'}</span>
659
+ <span>{isDemoMode ? 'Fast demo simulation' : 'Real LLM API'}</span>
654
660
  </button>
655
661
 
656
662
  <button
@@ -660,7 +666,7 @@ export function DigitalHQView({
660
666
  className="wv-dispatch-submit-big-btn"
661
667
  >
662
668
  {isLaunching ? <Loader2 size={16} className="wv-spin" /> : <Send size={15} />}
663
- <span>Orkestrasyonu Başlat</span>
669
+ <span>Start orchestration</span>
664
670
  </button>
665
671
  </div>
666
672
  </div>
@@ -670,13 +676,13 @@ export function DigitalHQView({
670
676
  <div className="wv-hq-review-section">
671
677
  <h3 className="wv-hq-section-heading">
672
678
  <Clock size={16} color="#f59e0b" />
673
- <span>Onay ve Denetim Bekleyen Görevler</span>
679
+ <span>Missions awaiting review & approval</span>
674
680
  </h3>
675
681
 
676
682
  <div className="wv-hq-review-feed">
677
683
  {world.entities.filter((e) => getEntityLatestTask && getEntityLatestTask(e.id)).length === 0 ? (
678
684
  <div className="wv-hq-empty-feed">
679
- Henüz tamamlanan veya onay bekleyen bir görev bulunmuyor.
685
+ No completed or approval-pending missions yet.
680
686
  </div>
681
687
  ) : (
682
688
  world.entities
@@ -709,7 +715,7 @@ export function DigitalHQView({
709
715
  className="wv-review-view-btn"
710
716
  >
711
717
  <Eye size={14} />
712
- <span>Raporu Gör</span>
718
+ <span>View report</span>
713
719
  </button>
714
720
  </div>
715
721
  )
@@ -91,7 +91,7 @@ export function EntityInspector({
91
91
  justifyContent: 'center',
92
92
  borderRadius: 6,
93
93
  }}
94
- title="Kapat (Esc)"
94
+ title="Close (Esc)"
95
95
  >
96
96
  <X size={16} />
97
97
  </button>
@@ -101,10 +101,10 @@ export function EntityInspector({
101
101
  <div style={{ padding: 14, overflowY: 'auto', display: 'flex', flexDirection: 'column', gap: 12 }}>
102
102
  {/* Role & Department */}
103
103
  <div>
104
- <div style={{ fontSize: 13, fontWeight: 500, color: '#e2e8f0' }}>{entity.role || 'Varlık'}</div>
104
+ <div style={{ fontSize: 13, fontWeight: 500, color: '#e2e8f0' }}>{entity.role || 'Entity'}</div>
105
105
  {entity.department && (
106
106
  <div style={{ fontSize: 11, color: '#94a3b8', marginTop: 2 }}>
107
- Departman: {entity.department}
107
+ Department: {entity.department}
108
108
  </div>
109
109
  )}
110
110
  </div>
@@ -132,10 +132,10 @@ export function EntityInspector({
132
132
  }}
133
133
  >
134
134
  {entity.status === 'running' || entity.status === 'working'
135
- ? 'Görev Yürütülüyor'
135
+ ? 'Working on a mission'
136
136
  : entity.status === 'awaiting_approval'
137
- ? 'Onay Bekliyor'
138
- : 'Hazır / Boşta'}
137
+ ? 'Awaiting approval'
138
+ : 'Ready / idle'}
139
139
  </span>
140
140
  </div>
141
141
 
@@ -160,7 +160,7 @@ export function EntityInspector({
160
160
  fontSize: 11,
161
161
  }}
162
162
  >
163
- <div style={{ fontWeight: 600, color: '#94a3b8', marginBottom: 6 }}>ÖZELLİKLER</div>
163
+ <div style={{ fontWeight: 600, color: '#94a3b8', marginBottom: 6 }}>ATTRIBUTES</div>
164
164
  {Object.entries(entity.metadata).map(([k, v]) => (
165
165
  <div
166
166
  key={k}
@@ -212,7 +212,7 @@ export function EntityInspector({
212
212
  }}
213
213
  >
214
214
  <Focus size={14} />
215
- 3D Kamerayı Odakla
215
+ Focus 3D camera
216
216
  </button>
217
217
  )}
218
218
 
@@ -39,7 +39,7 @@ export function VirtualCommandBar({
39
39
  defaultOpen = false,
40
40
  isOpen: externalIsOpen,
41
41
  onToggleOpen,
42
- placeholder = "Genel Müdür'e veya bir uzmana görev verin... (Enter ile gönder)",
42
+ placeholder = "Assign a mission to the general manager or a specialist... (Enter to send)",
43
43
  className = '',
44
44
  }: VirtualCommandBarProps): ReactNode {
45
45
  const [internalIsOpen, setInternalIsOpen] = useState(defaultOpen)
@@ -56,10 +56,10 @@ export function VirtualCommandBar({
56
56
  type="button"
57
57
  onClick={() => handleToggle(true)}
58
58
  className="wv-command-collapsed-btn"
59
- aria-label="Komut Barını Aç"
59
+ aria-label="Open mission panel"
60
60
  >
61
61
  <Send size={14} color="#3b82f6" />
62
- <span>⚡ Görev Paneli ▲</span>
62
+ <span>⚡ Mission Panel ▲</span>
63
63
  </button>
64
64
  )
65
65
  }
@@ -86,9 +86,9 @@ export function VirtualCommandBar({
86
86
  type="button"
87
87
  onClick={() => handleToggle(false)}
88
88
  className="wv-collapse-btn"
89
- title="Komut Barını Küçült"
89
+ title="Collapse mission panel"
90
90
  >
91
- Gizle ▼
91
+ Hide ▼
92
92
  </button>
93
93
  </div>
94
94
  )}
@@ -102,9 +102,9 @@ export function VirtualCommandBar({
102
102
  onChange={(e) => onChangeTarget(e.target.value)}
103
103
  className="wv-target-select"
104
104
  >
105
- <option value="auto">👑 Genel Müdür (Otomatik Delege)</option>
105
+ <option value="auto">👑 General Manager (auto-delegate)</option>
106
106
  {entities.length > 0 && (
107
- <optgroup label="Ofis Masaları / Çalışanlar">
107
+ <optgroup label="Office desks / staff">
108
108
  {entities.map((en) => (
109
109
  <option key={en.id} value={en.id}>
110
110
  {en.pinNumber ? `#${en.pinNumber} ` : ''}
@@ -138,10 +138,10 @@ export function VirtualCommandBar({
138
138
  type="button"
139
139
  onClick={onToggleDemoMode}
140
140
  className={`wv-demo-toggle-btn ${isDemoMode ? 'is-demo' : 'is-ai'}`}
141
- title="Çalışma Modu"
141
+ title="Execution mode"
142
142
  >
143
143
  {isDemoMode ? <Sparkles size={14} /> : <Bot size={14} />}
144
- <span className="wv-demo-label">{isDemoMode ? 'Demo Hızlı' : 'Gerçek AI'}</span>
144
+ <span className="wv-demo-label">{isDemoMode ? 'Fast demo' : 'Real AI'}</span>
145
145
  </button>
146
146
  )}
147
147
 
@@ -157,7 +157,7 @@ export function VirtualCommandBar({
157
157
  ) : (
158
158
  <>
159
159
  <Send size={14} style={{ marginRight: 6 }} />
160
- <span>Ateşle</span>
160
+ <span>Launch</span>
161
161
  </>
162
162
  )}
163
163
  </button>