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
This commit is contained in:
@@ -124,3 +124,4 @@ export function MessengerPage() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -21,3 +21,4 @@ export async function createChannel(data: ChannelCreateInput): Promise<Channel>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -28,3 +28,4 @@ export async function getChannelMessages(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,3 +23,4 @@ export async function getChannels(microdaoId?: string): Promise<Channel[]> {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -24,3 +24,4 @@ export async function sendMessage(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -41,3 +41,4 @@ export function ChannelHeader({ channel, isConnected }: Props) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -45,3 +45,4 @@ export function ChannelList({ channels, selectedChannelId, onSelectChannel }: Pr
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,3 +77,4 @@ export function MessageComposer({ onSend, disabled }: Props) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -63,3 +63,4 @@ export function MessageList({ messages, loading }: Props) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -41,3 +41,4 @@ export function useChannels(microdaoId?: string) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -60,3 +60,4 @@ export function useMessages(channelId: string) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -110,3 +110,4 @@ export function useMessagingWebSocket(channelId: string): UseMessagingWebSocketR
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -98,3 +98,4 @@ export interface WebSocketMessage {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user