Commit Graph
43 Commits
Author SHA1 Message Date
xmanrui 9fa48be961 feat: add coffee emoji, rearrange right room and lounge furniture
- Add  coffee cup on left room desk
- Move clock to wall (row 0), swap plant/bookshelf in right room
- Rotate right room PC to 270°
- Adjust lounge lamp, plant positions
2026-02-25 20:28:34 +08:00
xmanrui 1f67240653 fix: render heatmap and photograph as z-sorted wall decorations
Add them as drawables with zY = TILE_SIZE + 0.5 so they render
on top of wall sprites but below characters. Fixes occlusion issue.
2026-02-25 19:46:03 +08:00
xmanrui 274c19db6f feat: display photograph on right room wall
Load photograph.png and render it on the right work room's top wall,
scaled 4/3x with bottom-anchored positioning.
2026-02-25 18:49:41 +08:00
xmanrui 374b3f4711 feat: add sofa to lounge, rearrange rest area furniture
- Add 🛋️ sofa (5x scale, 180° rotation) on carpet center
- Move vending machine, water cooler, fridge, bookshelf to wall
- Remove two small paintings
- Fix fractional coords crash in getInteractionPoints
2026-02-25 18:17:59 +08:00
xmanrui 6f23076a33 feat: add sofa emoji to bottom-right lounge area
🛋️ sofa at (14.5, 13.5) with 180° rotation and 5x scale.
2026-02-25 17:25:56 +08:00
xmanrui f47b5d5ddc feat: add pixel cat that wanders the office
Orange pixel cat spawns at a random walkable tile and continuously
wanders around the office at 60% walk speed with short pauses.
Cat cannot be selected or assigned to seats.
2026-02-25 17:10:43 +08:00
xmanrui f75fe3f4a8 feat: add phone emoji with emojiScale support on left room desk
Add PHONE furniture type with 📱 emoji at 2/3 scale. Add emojiScale
field to FurnitureCatalogEntry and FurnitureInstance for per-item
emoji sizing.
2026-02-25 16:57:49 +08:00
xmanrui c6f3246ea0 fix: use white background for heatmap so gray cells are visible 2026-02-25 16:37:07 +08:00
xmanrui 0e36beb073 feat: add GitHub-style contribution heatmap on left room top wall
Mock 52×7 green heatmap rendered on the top wall of the left room,
using GitHub's 5-level color scheme. Follows zoom and pan.
2026-02-25 16:32:20 +08:00
xmanrui f820792b41 feat: add page title, PC emoji with rotation support
- Add i18n title "OpenClaw Agents 两室一厅办公室" to pixel office page
- Replace PC sprites with 💻 emoji, camera-only flash effect
- Add rotation field to PlacedFurniture/FurnitureInstance for emoji rotation
- Adjust PC positions for better visual alignment with desks
2026-02-25 15:42:08 +08:00
xmanrui 12e43f5983 feat: add idle furniture interaction and doorway entrance animation
Idle characters now have a 40% chance to walk to nearby furniture
(water cooler, bookshelf, whiteboard, fridge) and linger for 5-15s.
Agents spawning from offline walk in from doorway tiles instead of
appearing directly at their seat.
2026-02-25 13:53:07 +08:00
xmanrui a497240ee7 feat: add camera emoji furniture with flash effect on right room desk
Add emoji-based furniture rendering support. Camera placed at center of
right room desk with a radial flash effect every 10 seconds. Fix surface
item z-sorting for fractional positions.
2026-02-25 05:41:59 +08:00
xmanrui 1de7fa6a2b feat: add i18n agent status labels, color-coded tags, and working state effects
- Add i18n for agent states (working/idle/offline/waiting) in zh/en
- Working tag: green with pulse animation
- Idle tag: yellow with pulse animation
- Offline tag: slate gray, clearly visible
- Working character label: green with breathing blink effect
2026-02-25 05:21:56 +08:00
xmanrui bc4a2f1abc feat: add back-facing PC and rearrange left room for face-to-face desk layout
- Add PC_BACK sprite and furniture type for rear-view monitor
- Top 2 desks: benches above, back-facing PCs
- Bottom 2 desks: benches below, front-facing PCs
2026-02-25 04:48:37 +08:00
xmanrui 55a123a659 feat: add horizontal wood table, rearrange left room layout, fix fractional seat pathfinding
- Add TABLE_WOOD_SM_HORIZONTAL type with transposed sprite
- Left room: 4 horizontal desks in 2x2 grid with benches and PCs
- Support fractional furniture positions (half-tile offset for centering)
- Round seat coords for pathfinding while keeping fractional x/y for visual alignment
2026-02-25 04:42:00 +08:00
xmanrui e6dec3623c style: improve agent label visibility with larger gold text and darker shadow 2026-02-25 03:49:07 +08:00
xmanrui 9775828a05 style: add alternating dotted horizontal grid lines for ceramic tile effect 2026-02-25 03:31:06 +08:00
xmanrui 3cef998727 style: thicken floor grid lines for better ceramic tile effect 2026-02-25 03:19:58 +08:00
xmanrui 4f8e73bfae fix: improve floor rendering with seamless tiles and ceramic grid effect
- Use fillRect for floor tiles to eliminate hairline seams between tiles
- Add subtle half-tile grid overlay for ceramic tile floor effect
- Auto-fit zoom uses 0.5-step floor for pixel-perfect screen fit
2026-02-25 03:17:19 +08:00
xmanrui 6204ec899a feat: enrich Pixel Office with tileset sprites, PNG character/wall loading, and richer default layout
- Add 15 tileset furniture sprites recovered from git history
- Extend FurnitureType with 15 new types (tables, chairs, bench, decor, paintings)
- Expand furniture catalog with all new entries
- Load character sprites from PNG sheets (6 characters) and wall tiles from walls.png
- Redesign default layout to 21x17 multi-room office with 40 furniture pieces
- Auto-fit zoom to screen with pixel-perfect integer scaling
2026-02-25 02:46:52 +08:00
xmanrui eebe431560 feat: implement Pixel Office Phase 2 - layout editor, persistence, sound, sub-agent visualization
- Add layout editor with floor/wall paint, erase, furniture place/move/rotate/delete tools
- Add editor state management (undo/redo, selection, drag, ghost preview)
- Add EditorToolbar and EditActionBar UI components
- Add layout persistence API (GET/POST to ~/.openclaw/pixel-office/layout.json)
- Add notification sound system (Web Audio API ascending chime on agent completion)
- Add sub-agent visualization via session JSONL parsing
- Fix agent activity API to read from agents.list config and correct session paths
- Add agent name labels above character sprites in canvas renderer
- Add i18n translations for editor features (zh/en)
2026-02-25 01:39:44 +08:00
xmanrui 7b8e5affc3 feat: add weekly token usage sparkline and total token tooltip in agent cards 2026-02-24 20:03:51 +08:00
xmanrui 295020f549 feat: add real-time agent status indicator (working/online/idle/offline) with 30s polling 2026-02-24 19:01:31 +08:00
xmanrui 12d24431f8 feat: add alert interval options, today avg response time with color coding, message count in agent cards 2026-02-24 18:18:45 +08:00
xmanrui eec4d7a7ae feat: show default model and fallback models at top of models page 2026-02-24 17:27:57 +08:00
xmanrui 9298838cf5 feat: add gateway health status indicator on bot dashboard
- Add /api/gateway-health endpoint to check gateway service status
- Add GatewayStatus component with 10s auto-polling
- Show green checkmark when healthy, red cross with error details when down
- Click gateway badge to open OpenClaw web chat page
- Fix variable name collision in alert-monitor.tsx (setInterval shadowing)
- Add i18n translations for gateway status (zh/en)
2026-02-24 14:54:41 +08:00
xmanrui 7579cf5609 feat: add i18n support for alert center 2026-02-23 22:56:07 +08:00
xmanrui d05949fd3c feat: add alert center with configurable rules 2026-02-23 19:20:49 +08:00
xmanrui 322e814a89 fix: only change page title, keep sidebar unchanged 2026-02-23 15:16:22 +08:00
xmanrui 0239627091 fix: change nav.agents text to 'OpenClaw 机器人' 2026-02-23 15:14:15 +08:00
xmanrui 7915a913c9 feat: add dark/light theme toggle
- Add light theme CSS variables in globals.css
- Create ThemeProvider with localStorage persistence (lib/theme.tsx)
- Add ThemeSwitcher button (☀️/🌙) to sidebar
- Wrap app with ThemeProvider in providers.tsx
2026-02-23 07:09:45 +08:00
xmanrui ba0997ad9c ui: language switcher changed to dropdown, default zh 2026-02-22 12:57:30 +08:00
xmanrui a16734ee45 i18n: rename nav.agents English to Bots 2026-02-22 12:40:15 +08:00
xmanrui c5af40c926 ui: rename Test Session button to Test Agent 2026-02-22 12:34:58 +08:00
xmanrui b9e025cb45 feat: add Test Sessions button to test all agent main sessions
- New /api/test-sessions endpoint: tests all agents via Gateway chatCompletions
- New button on agents page: 🔌 Test Sessions
- Session test result shown next to agent name (--///)
- i18n support for zh-CN and en
2026-02-22 12:26:49 +08:00
xmanrui d2be7021ca ui: add hint that session tests don't send messages to platform chats
- Add sessions.testHint i18n text (zh-CN + en)
- Show hint next to 'Test All' button on sessions page
2026-02-22 11:16:38 +08:00
xmanrui f3967992e7 feat: 新增平台连通性测试按钮,每个平台标签右侧显示测试结果 2026-02-21 16:25:24 +08:00
xmanrui d377028705 fix: 按钮文字改为「测试绑定的模型」(i18n) 2026-02-21 14:32:25 +08:00
xmanrui cc851933ca feat: 会话列表页新增「测试全部」按钮,支持一键并发测试所有会话 2026-02-21 13:44:00 +08:00
xmanrui 7a5e5fdb63 feat: 优化 sessions 和 stats 页面交互
- sessions/stats 页面无 agent 参数时显示 agent 选择列表
- 为每个会话显示上下文使用量进度条
- 修复测试功能:改用明确回复的消息,避免 NO_REPLY 过滤
2026-02-21 02:57:51 +08:00
xmanrui 42dae42d04 feat: collapsible sidebar, language switcher in header, test-agents API
- Add collapsible sidebar with smooth transition (expanded/collapsed)
- Move language switcher to sidebar header (top-left)
- Remove duplicate LanguageSwitcher from all sub-pages
- Add /api/test-agents endpoint for testing agent model connectivity
- Use plain CSS for sidebar layout (fix Tailwind v4 flex issues)
2026-02-21 01:25:29 +08:00
xmanrui 5fb7ce95fe fix: resolve hydration mismatch in i18n provider
Initialize locale as 'zh' on both server and client, then read
localStorage in useEffect to avoid SSR/client text mismatch.
2026-02-20 17:11:49 +08:00
xmanrui ea345868f4 feat: add i18n support (zh-CN/en) with language switcher
- Add lib/i18n.tsx with translation dictionaries, I18nProvider, useI18n hook, and LanguageSwitcher component
- Add app/providers.tsx client-side provider wrapper
- Internationalize all pages: home, models, stats, sessions, skills
- Update layout.tsx with I18nProvider
- Default language: Chinese, switchable to English via button
- Language preference persisted in localStorage
- Fix DayStat type error in stats API route
2026-02-20 17:00:27 +08:00