Commit Graph

43 Commits

Author SHA1 Message Date
Apple
ed6c7ae909 fix: unify microdao types imports 2025-11-28 10:26:12 -08:00
Apple
3f53038cf7 fix: restore microdao api functions and update types 2025-11-28 10:25:03 -08:00
Apple
cbd5b2f731 fix: resolve Next.js route conflict in microdao api 2025-11-28 10:23:15 -08:00
Apple
69cc76fe00 feat: implement Task 029 (Agent Orchestrator & Visibility Flow) 2025-11-28 10:19:13 -08:00
Apple
d58347a890 fix: remove duplicate AgentMicrodaoMembership definition 2025-11-28 09:17:27 -08:00
Apple
4268936269 fix: use export type for isolatedModules 2025-11-28 09:16:40 -08:00
Apple
d367e93d36 fix: update visibility scope types to global/private 2025-11-28 09:15:47 -08:00
Apple
b787f3812a fix: add model field to AgentProfile 2025-11-28 09:14:03 -08:00
Apple
884df75282 fix: add public_slug to AgentProfile 2025-11-28 09:12:55 -08:00
Apple
ce8429d392 fix: add missing fields to AgentProfile 2025-11-28 09:11:49 -08:00
Apple
909d1cb314 fix: add avatar_url to AgentProfile for dashboard 2025-11-28 09:10:34 -08:00
Apple
acc06f41d3 feat: UI alignment - Agent Console, Citizens, MicroDAO Dashboard (TASK 2) 2025-11-28 09:09:00 -08:00
Apple
a445ba7d9a fix: use new AgentSummary fields (title, primary_microdao_name) 2025-11-28 08:02:40 -08:00
Apple
5d4fec3337 fix: add visibility fields to AgentPublicProfile type 2025-11-28 08:00:29 -08:00
Apple
616186824c fix: Next.js 15 route handler params type 2025-11-28 07:58:46 -08:00
Apple
15714fb170 feat: unified Agent/Citizen model with visibility controls
- Add visibility_scope, is_listed_in_directory, is_system, primary_microdao_id to agents
- Create unified list_agent_summaries method
- Add PUT /city/agents/{id}/visibility endpoint
- Add AgentVisibilityCard component
- Update AgentSummary types for frontend
2025-11-28 07:56:33 -08:00
Apple
e7aff95408 fix: Next.js 15 params type in nodes route 2025-11-28 05:11:59 -08:00
Apple
7b9590da01 feat: add Node Directory with multi-node support (TASK 3) 2025-11-28 05:08:55 -08:00
Apple
e95673a6e7 feat: update /agents page with home_node badges and new API 2025-11-28 04:54:27 -08:00
Apple
7e55b72027 fix: show НОДА1/НОДА2 badge instead of node name 2025-11-28 04:46:11 -08:00
Apple
35768f1180 feat: add home_node support to Citizens API and UI
- Add HomeNodeView model to city-service
- Update get_public_citizens and get_public_citizen_by_slug to JOIN node_cache
- Add HomeNode interface to frontend types
- Display node badge on citizen cards
- Show full home_node info on citizen profile page
2025-11-28 04:34:25 -08:00
Apple
dfe63d1b78 fix: use correct endpoint for city rooms on server-side 2025-11-28 03:41:44 -08:00
Apple
cd48b32bb7 fix: add city rooms proxy route 2025-11-28 03:37:05 -08:00
Apple
e853b29126 fix: typescript error in citizens page 2025-11-28 03:33:07 -08:00
Apple
3693611447 fix: update route params to Promise for Next.js 15 2025-11-28 03:31:51 -08:00
Apple
594a05f969 fix: add missing lib files and fix gitignore 2025-11-28 03:14:46 -08:00
Apple
c2becd1314 fix: remove duplicate code in citizens page 2025-11-28 03:12:17 -08:00
Apple
06d0cba7d4 feat: Citizens Layer + Citizen Interact Layer + CityChatWidget 2025-11-28 03:10:47 -08:00
Apple
94bb222c9c fix: Remove SWR dependency from useMicrodao hooks 2025-11-28 01:40:54 -08:00
Apple
88375d441f feat: MicroDAO Dashboard Frontend - list + detail pages 2025-11-28 01:39:27 -08:00
Apple
6bd769ef40 feat(city-map): Add 2D City Map with coordinates and agent presence
- Add migration 013_city_map_coordinates.sql with map coordinates, zones, and agents table
- Add /city/map API endpoint in city-service
- Add /city/agents and /city/agents/online endpoints
- Extend presence aggregator to include agents[] in snapshot
- Add AgentsSource for fetching agent data from DB
- Create CityMap component with interactive room tiles
- Add useCityMap hook for fetching map data
- Update useGlobalPresence to include agents
- Add map/list view toggle on /city page
- Add agent badges to room cards and map tiles
2025-11-27 07:00:47 -08:00
Apple
3de3c8cb36 feat: Add presence heartbeat for Matrix online status
- matrix-gateway: POST /internal/matrix/presence/online endpoint
- usePresenceHeartbeat hook with activity tracking
- Auto away after 5 min inactivity
- Offline on page close/visibility change
- Integrated in MatrixChatRoom component
2025-11-27 00:19:40 -08:00
Apple
5bed515852 feat: Upgrade Global Presence to SSE architecture
- matrix-presence-aggregator v2 with SSE endpoint
- Created @presence_daemon Matrix user
- SSE proxy in Next.js /api/presence/stream
- Updated frontend to use SSE instead of WebSocket
- Real-time city online count and room presence
2025-11-26 14:43:46 -08:00
Apple
78849cc108 feat: Add Global Presence Aggregator system
- GLOBAL_PRESENCE_AGGREGATOR_SPEC.md documentation
- matrix-presence-aggregator service (Python/FastAPI)
  - Matrix sync loop for presence/typing
  - NATS publishing for room presence
- city-service: presence_gateway for WS broadcast
- Frontend: real-time online count in room list
  - useGlobalPresence hook
  - Live typing indicators
  - Active room highlighting
2025-11-26 14:22:34 -08:00
Apple
a3e632b9e7 feat: Add PWA support
- PWA_MOBILE_SPEC.md documentation
- manifest.json with app metadata
- Service Worker with caching strategies
- Offline page
- PWA registration in layout
- App icons (placeholder)
2025-11-26 13:56:22 -08:00
Apple
e0d534ea87 fix: Remove HTML5 validation from auth forms
- Add noValidate to forms
- Move validation to JS
- Add proper autoComplete attributes
- Better error messages in Ukrainian
2025-11-26 13:50:13 -08:00
Apple
573afec40f feat: Implement Matrix Presence & Typing indicators
- MATRIX_PRESENCE_TYPING_SPEC.md documentation
- MatrixRestClient: sync-loop with presence+typing events
- MatrixChatRoom: onlineUsers and typingUsers state
- UI: Show N online in header
- UI: Typing indicator with animation
- ChatInput: onTyping callback support
2025-11-26 13:32:51 -08:00
Apple
d9f3134774 fix: Use getAccessToken instead of token from context 2025-11-26 13:17:33 -08:00
Apple
e9c04f6bcd feat: Implement Matrix Chat Client 2025-11-26 13:15:01 -08:00
Apple
5aaf6cbf21 feat: Add Auth Service with JWT authentication 2025-11-26 11:47:00 -08:00
Apple
2c4eb7d432 feat: Add Chat, Agent Console, and Governance UI
- WebSocket chat client for city rooms
- Chat UI components (ChatMessage, ChatInput, ChatRoom)
- Agent Console with agent list and invoke functionality
- Governance/DAO page with proposals and voting
- Updated navigation with new routes
- Extended API client for agents and microdao
2025-11-26 09:57:50 -08:00
Apple
25b638ae3d fix: Add SSR support for API client 2025-11-26 09:26:17 -08:00
Apple
2f30f40c0b feat: Add Next.js 15 glassmorphism frontend for DAARION MVP 2025-11-26 09:20:33 -08:00