Skip to content

feat: Staff Rewards#275

Merged
itinerare merged 18 commits into
lk-arpg:developfrom
itinerare:feature/staff-rewards
Mar 6, 2022
Merged

feat: Staff Rewards#275
itinerare merged 18 commits into
lk-arpg:developfrom
itinerare:feature/staff-rewards

Conversation

@itinerare
Copy link
Copy Markdown
Member

@itinerare itinerare commented Feb 27, 2022

Adds an optional (configurable/toggleable in config/lorekeeper/extensions.php) extension that can automatically dispense a configurable amount of a configured currency to a staff member on them performing an action for which rewards are enabled.
Actions enabled for rewards are configured via different files in config/lorekeeper/staff-reward-actions, with each file corresponding to a different overall action (e.g. "process submission" for accepting/rejecting submissions and claims) for which staff should receive rewards. Rewards can only be dispensed for a specific action once and are broadly configured for only things that are one-time such as processing things through queues.
The amount of currency given to a staff member for performing each action can be configured via the staff rewards admin panel, accessible only to the admin rank; this also is populated via the config files via a command (php artisan update-staff-reward-actions) which can be run manually, but also runs daily via scheduler.

This builds on the earlier admin logging additions and also fixes a bug or two I encountered with that work while I was working on this. It also adds some additional logging to support staff rewards.

Tested locally/live; requires php artisan migrate .

itinerare and others added 17 commits February 18, 2022 12:05
- toggleable in config/lorekeeper/extensions.php
- builds on admin action logging
- reward is configurable per action in the admin panel
- new configurable actions can be added via config file in config/lorekeeper/staff-reward-actions
Conflicts:
	app/Console/Kernel.php
	app/Services/InventoryManager.php
	config/lorekeeper/extensions.php
	resources/views/pages/credits.blade.php
Conflicts:
	app/Console/Kernel.php
	app/Helpers/Helpers.php
	app/Http/Controllers/Admin/Data/CharacterCategoryController.php
	app/Http/Controllers/Admin/HomeController.php
	app/Http/Controllers/Admin/SubmissionController.php
	app/Http/Controllers/Admin/Users/UserController.php
	app/Services/CharacterCategoryService.php
	app/Services/CharacterManager.php
	app/Services/CurrencyManager.php
	app/Services/CurrencyService.php
	app/Services/DesignUpdateManager.php
	app/Services/FeatureService.php
	app/Services/GalleryManager.php
	app/Services/GalleryService.php
	app/Services/InventoryManager.php
	app/Services/ItemService.php
	app/Services/ReportManager.php
	app/Services/Service.php
	app/Services/SubmissionManager.php
	app/Services/TradeManager.php
	app/Services/UserService.php
	config/lorekeeper/admin_sidebar.php
- prompted by staff rewards failing due to logging
@itinerare itinerare added enhancement New feature or request needs review Pull requests that are pending community review labels Feb 27, 2022
@itinerare itinerare added reviewed Pull requests that have received community review and are pending merge and removed needs review Pull requests that are pending community review labels Mar 6, 2022
@itinerare itinerare merged commit cc84522 into lk-arpg:develop Mar 6, 2022
@itinerare itinerare deleted the feature/staff-rewards branch March 6, 2022 18:06
tess-cos pushed a commit to tess-cos/lorekeeper that referenced this pull request Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request reviewed Pull requests that have received community review and are pending merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants