• Mahmoud Aglan's avatar
    feat: match history — real data from DB with opponent names, result colors, rating changes · cb7dd082
    Mahmoud Aglan authored
    New API: /api/match-history.php
    - Fetches completed matches where player was white OR black
    - Enriches with opponent display names from profiles
    - Returns: result, time_control, bot_id, rating changes, move count, date
    - Supports game_key filter and limit parameter
    
    History scene rewritten:
    - Shows real matches with colored left border (green=win, red=loss, gold=draw)
    - Opponent name (or bot name if vs bot)
    - Rating change (+12 / -8) in matching color
    - Time control label (5+0, 10+0, etc.)
    - Relative time (5د, 2س, 3ي)
    - Proper result detection for all match_result enum values
    - Empty state with helpful message
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    cb7dd082
Name
Last commit
Last update
.claude Loading commit data...
Connections and docs Loading commit data...
admin Loading commit data...
api Loading commit data...
config Loading commit data...
docs Loading commit data...
includes Loading commit data...
public Loading commit data...
screenshots Loading commit data...
.gitignore Loading commit data...
.htaccess Loading commit data...
ARCHITECTURE.md Loading commit data...
ASSET_REGISTRY.json Loading commit data...
ASSET_REGISTRY.md Loading commit data...
BUILD_ORDER.md Loading commit data...
DATABASE_REFERENCE.md Loading commit data...
DESIGN.md Loading commit data...
Dockerfile Loading commit data...
PLAN.md Loading commit data...
Stockfishbotsapi.txt Loading commit data...
captain-definition Loading commit data...
index.php Loading commit data...