Skip to content

feat: add spoiler mode to admin table#10

Closed
selfire1 wants to merge 1 commit intomainfrom
claude/add-spoiler-mode-admin-01LbX7fnfQdJC5Y34AHruWxt
Closed

feat: add spoiler mode to admin table#10
selfire1 wants to merge 1 commit intomainfrom
claude/add-spoiler-mode-admin-01LbX7fnfQdJC5Y34AHruWxt

Conversation

@selfire1
Copy link
Owner

  • Add lastUpdatedBy field to prediction_entries schema to track who last modified each tip
  • User tips are marked with the user's ID when created or edited
  • Admin tips are marked with the admin's ID when created or edited via admin table
  • Add "Show spoilers" toggle button in admin table
  • Hide tips with "No spoilers" text for future races not updated by current admin
  • Spoiler logic: only hide if race is in future AND last updated by someone else
  • Modal always shows actual tip values regardless of spoiler mode
  • Generate and apply database migration for new field

- Add lastUpdatedBy field to prediction_entries schema to track who last modified each tip
- User tips are marked with the user's ID when created or edited
- Admin tips are marked with the admin's ID when created or edited via admin table
- Add "Show spoilers" toggle button in admin table
- Hide tips with "No spoilers" text for future races not updated by current admin
- Spoiler logic: only hide if race is in future AND last updated by someone else
- Modal always shows actual tip values regardless of spoiler mode
- Generate and apply database migration for new field
@selfire1 selfire1 closed this Nov 30, 2025
@selfire1 selfire1 deleted the claude/add-spoiler-mode-admin-01LbX7fnfQdJC5Y34AHruWxt branch November 30, 2025 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants