major-domo-v2/views
Cal Corum 213e754673 Add input validation for help command name and category
The help command creation modal was accepting names with spaces and
special characters (e.g., "scorecard links"), which passed to the API
but caused Pydantic validation errors when reading the records back.

Changes:
- Add regex validation in modal on_submit for topic name and category
- Only allow lowercase letters, numbers, dashes, and underscores
- Show clear error messages with valid examples when validation fails
- Normalize name/category to lowercase before storing

This prevents invalid records from being created in the database.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-11 19:11:42 -06:00
..
__init__.py CLAUDE: SUCCESSFUL STARTUP - Discord Bot v2.0 fully operational 2025-08-16 07:36:47 -05:00
base.py CLAUDE: Add toggleable stats to /player command and injury system improvements 2025-10-17 23:26:08 -05:00
CLAUDE.md CLAUDE: Add comprehensive CLAUDE.md documentation files for AI agent guidance 2025-10-20 20:30:07 -05:00
common.py CLAUDE: SUCCESSFUL STARTUP - Discord Bot v2.0 fully operational 2025-08-16 07:36:47 -05:00
confirmations.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
custom_commands.py CLAUDE: Fix double emoji issue in Discord embeds 2025-10-16 23:09:21 -05:00
draft_views.py CLAUDE: Fix draft channel configuration not persisting 2025-10-24 22:52:57 -05:00
embeds.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
help_commands.py Add input validation for help command name and category 2025-12-11 19:11:42 -06:00
modals.py CLAUDE: Fix injury roll validation to support playoff weeks 2025-10-29 00:56:39 -05:00
players.py Hotfix: await team call 2025-10-21 14:58:30 -05:00
trade_embed.py Add trade acceptance workflow with transaction logging (v2.22.0) 2025-12-04 13:46:10 -06:00
transaction_embed.py Follow-up updates for bug fix 2025-10-27 14:28:33 -05:00