Skip to content

Feat/rosters UI#12

Open
Destinea wants to merge 8 commits intofeat/dashboardfrom
feat/rostersUI
Open

Feat/rosters UI#12
Destinea wants to merge 8 commits intofeat/dashboardfrom
feat/rostersUI

Conversation

@Destinea
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 16, 2025 17:27
@Destinea Destinea changed the base branch from master to feat/dashboard November 16, 2025 17:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a comprehensive roster management UI system for ClashKing, featuring a web-based dashboard for managing rosters, groups, categories, and automations.

Key changes:

  • New roster management dashboard with drag-and-drop member organization
  • Authentication and security middleware for JWT-based user verification
  • Email service integration for verification and password reset workflows
  • Database schema updates to support roster automation and user management

Reviewed Changes

Copilot reviewed 33 out of 89 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
utils/security_middleware.py JWT authentication middleware for API endpoints
utils/security.py Multi-method authentication decorator with token validation
utils/password_validator.py Password/email/username validation utilities
utils/email_service.py Email templates and sending logic for user verification
utils/discord_api.py Discord API integration for fetching server data
utils/database.py MongoDB client configuration with collection definitions
utils/custom_coc.py Custom Clash of Clans API client with caching
utils/config.py Configuration with encryption and password hashing setup
test.py Clash Royale API test script
templates/tickets.html Ticketing system UI with modernized styling
templates/roster_management.html Main roster management dashboard template
templates/roster/welcome.html Welcome screen for roster dashboard
templates/roster/styles.css CSS styles for roster UI components
templates/roster/sidebar.html Sidebar navigation for roster dashboard
templates/roster/settings.html Roster settings form template
templates/roster/members.html Member management interface template
templates/roster/groups.html Roster groups management template
templates/roster/group_settings.html Standalone group settings page
templates/roster/dashboard.html Main dashboard layout template
templates/roster/categories.html Signup categories management template
templates/roster/automation.html Automation configuration template
static/roster/settings.js Settings form handling and time conversion logic
static/roster/roster-utils.js Roster creation and display utilities
static/roster/member-search.js Member search and bulk addition functionality
static/roster/member-display.js Member display with drag-and-drop support
static/roster/main.js Dashboard initialization and comparison mode
static/roster/groups-categories.js Groups and categories CRUD operations
static/roster/group-settings.js Group settings page JavaScript
startup.py Application router registration and exception handling
routers/v2/ui/init.py UI routes module initialization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


<!-- Settings Tab Content -->
<div id="content-settings" class="tab-content" {% if not current_roster %}style="display: none"{% endif %}>
<h1 style="color: red; font-size: 24px;">TEST TEMPLATE MODIFICATION</h1>
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove debug/test heading from production template. This appears to be leftover test code.

Suggested change
<h1 style="color: red; font-size: 24px;">TEST TEMPLATE MODIFICATION</h1>

Copilot uses AI. Check for mistakes.
Comment on lines +913 to +915
<h1>TEST AUTOMATION</h1>
<button id="automation-toggle-btn">Test Button</button>
<div id="automation-empty-state">Test Empty State</div>
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove test/debug elements from automation tab. These placeholder elements should be replaced with actual automation UI or removed.

Suggested change
<h1>TEST AUTOMATION</h1>
<button id="automation-toggle-btn">Test Button</button>
<div id="automation-empty-state">Test Empty State</div>

Copilot uses AI. Check for mistakes.

sig = inspect.signature(func)
if "user_id" in sig.parameters:
# on force un user_id factice lié au server
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment contains French text. Should be translated to English for codebase consistency: 'Force a fake user_id linked to the server'.

Suggested change
# on force un user_id factice lié au server
# force a fake user_id linked to the server

Copilot uses AI. Check for mistakes.
</div>
</div>

<!-- ² Section -->
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Malformed HTML comment. Contains stray characters '²' - should be properly formed comment or removed.

Suggested change
<!-- ² Section -->

Copilot uses AI. Check for mistakes.
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