Goal
Implement first version of the tavern and workers management
Known Issues
- Errors are not shown when tavern/worker actions fails
- When creating the account the first time, the building list is failing to load
Backend
- Rework Worker class, they are now built exactly like characters
- Until the tavern is ready, the first worker is the first character (when that character dies it get stuck in the crafting tab, will be fix by removing completely) won’t put much time on that as it makes no sense to use the character as worker
- Wrote test to create workers to fill the tavern
- Setup API to list all workers available and by id
- Setup administration API, worker route to generate new workers based on a configurable treshold
- Starting to split the loader function
- Added new count function with mongodb
- Added User Role for future backoffice
- Implemented
- List workers for hire
- List hired workers
- Hire worker
- (Re)Assign Worker
- Extend Worker Contract Duration
- Removed workaround to assign default worker (was using the first character created for an account).
Frontend
- Rework frontend to load worker correctly
- Started Tavern Manager UI
- Fix building action logic to support multi actions
- List available workers for hire
- Hiring worker modal
- List hired workers and contract duration
- Fix page navigation (back btns)
- Assign worker modal (only crafting building is supported)
- Show worker widget when assigned in building (same as in the tavern), meaning we can manage worker from everywhere
- Show worker details in bottom sheet view. (only skills for now)
- Unassign workers (more like a transfer between buildings)
- Increase contract duration (player select the amount of day(s) and pay upfront)
Other
- Removed CLI implementation from backend to cleanup and focus on mobile app
Impact
- Database Reset