2acf52788f
style(collections): format Payload collection configs
2026-08-16 23:27:51 -04:00
5679020b42
feat: wire storage actions and collection hooks to emit game events
...
- Emit events from all storage/grid server actions: addResource,
removeResource, transferResource, placeResourceOnGrid, moveGridItem,
mergeGridStacks, rotateGridItem, removeGridItem, splitGridStack,
retrieveFromVoid, and autoArrangeGrid
- Add afterChange hook on GameStructures to capture admin-panel edits
- Emit structure:resize event from Structures beforeChange hook on grid
dimension changes
2026-07-28 16:08:08 -04:00
59769076ff
feat: add GameEventLogs collection and event emission infrastructure
...
- New game-event-logs collection with timestamp, type, message, actor,
structure, targetCollection/targetId, and data (JSON) fields
- EventTypes constants registry for modular event category management
- emitGameEvent() utility for emitting events from server actions and hooks
- Register collection in Payload config
- Document event log system architecture in AGENTS.md
2026-07-28 16:08:04 -04:00
159755af8d
feat(collections): add grid fields to game-structures and resources schemas
...
GameStructures:
- Add gridX, gridY, rotated fields to storedResources rows
- Remove beforeValidate hook that merged duplicate resources
- Add read access (was missing)
- Add min: 1 constraint on amount
Resources:
- Add gridWidth, gridHeight, stackable, maxStackSize, rotatable fields
- Add read access (was missing)
- Wrap game-rules afterRead hook in try/catch to handle missing global
2026-07-28 14:02:35 -04:00
0280d564f9
feat: add faction ownership to game-structures and relax factions read access
...
- Allow authenticated users to read factions (was developer-only)
- Add optional faction relationship field to game-structures
- Regenerate payload-types.ts
2026-07-27 19:19:41 -04:00
2e00220808
chore: remove redundant access control property
2025-12-19 01:31:00 -05:00
def59ee1fb
fix: move Dashboard to frontend, pin dependencies in bun.lock to specific versions for stability
2025-12-17 15:15:07 -05:00