Enhancement: Discord QOL — editable Player Since override + mobile rec-button spacing#485
Draft
baltinerdist wants to merge 11 commits into
Draft
Enhancement: Discord QOL — editable Player Since override + mobile rec-button spacing#485baltinerdist wants to merge 11 commits into
baltinerdist wants to merge 11 commits into
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Assigning null to a yapo property is skipped by YapoSave's isset() guard, so the override could never be cleared. Write '0000-00-00' explicitly to clear; get_player_since_date treats it the same as NULL (computed fallback). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
… hint - Server-side checkdate() validation on player_since_override (reject garbage/impossible dates). - Fix the same yapo null-skip bug on park_member_since clear (was silently no-op). - Render the 'Current first sign-in' hint as a human-readable date. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…n mobile The Grant/Delete/+1 action buttons on the award-recommendations tabs (Player, Park, Kingdom) stack vertically on mobile (<=768px) and sat only 5px apart, causing mis-taps. Bump the stacked gap to 14px. Single shared .pk-rec-actions rule covers all three surfaces. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
c544a83 to
1ca6386
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two Discord-requested quality-of-life items.
1. Editable "Player Since" override (admin)
"Player Since" on the player profile was always computed as
MIN(ork_attendance.date), so it could never predate a player's first recorded sign-in — players with incompletely-imported early attendance looked more recent than they actually were.This adds an admin-editable override:
ork_mundane.player_since_override(migration indb-migrations/).NULL/zero-date = use the computed value; a date overrides it. Mirrors the existingpark_member_sinceoverride.Player::get_player_since_date()— the override-vs-computed coalesce lives entirely in the library layer (no business logic leaks into controllers).Bugfixes found during end-to-end testing:
YapoSavesilently skipsnull-assigned fields (isset()guard), so clearing the override never persisted. Fixed by writing the zero-date to clear (the resolver treats it as "use computed"). The same latent bug on the adjacentpark_member_sinceclear is fixed too.checkdate()validation so a malformed/impossible date can't be stored.Migration ordering: run the migration before deploying the code — under PDO
ERRMODE_WARNINGan unknown column silently rolls back the entire mundaneUPDATE.Verified end-to-end locally: set → profile shows the override; clear → reverts to computed; invalid input rejected; unrelated fields preserved.
2. More vertical space between stacked rec action buttons (mobile)
On the award-recommendations tabs (Player, Park, Kingdom), the Grant / Delete / +1 buttons stack vertically on mobile (≤768px) and sat only 5px apart, causing mis-taps. Bumped the stacked gap to 10px. Single shared
.pk-rec-actionsrule covers all three surfaces; desktop layout and dark mode unaffected.Opened as a draft. Design/plan notes are included under
docs/superpowers/— happy to drop those from the PR if you'd prefer a leaner diff.🤖 Generated with Claude Code