#!/bin/bash
# Script to categorize and organize standalone documentation files

DOCS_DIR="/home/intlc/projects/proxmox/docs"
ARCHIVE_DIR="$DOCS_DIR/archive"

# Categories
STATUS_FILES=(
    # Status and completion reports
    "ALLOWANCE_FIX_STATUS.md"
    "ALL_COMPONENTS_DEPLOYMENT_STATUS.md"
    "BLOCKSCOUT_COMPLETE_STATUS.md"
    "BLOCKSCOUT_FINAL_STATUS.md"
    "BLOCKSCOUT_IP_VERIFICATION.md"
    "BLOCKSCOUT_MIGRATION_STATUS.md"
    "BLOCKSCOUT_SSL_COMPLETE_STATUS.md"
    "BLOCKSCOUT_STATUS_AND_VERIFICATION.md"
    "CCIP_MONITOR_STATUS.md"
    "CHAIN138_COMPLETION_SUMMARY.md"
    "CLUSTER_CONNECTION_STATUS.md"
    "CODE_COMMAND_WRAPPER_STATUS.md"
    "COMPLETE_NEXT_STEPS_STATUS.md"
    "COMPLETE_PROJECT_STATUS.md"
    "CONTRACT_DEPLOYMENT_PROGRESS.md"
    "CONTRACT_DEPLOYMENT_STATUS_AND_NEXT_STEPS.md"
    "CONTRACT_VERIFICATION_STATUS.md"
    "ETHEREUM_MAINNET_CONFIGURATION_STATUS.md"
    "ETHEREUM_MAINNET_CONFIG_STATUS.md"
    "ETHEREUM_MAINNET_CONTRACTS_VERIFICATION_STATUS.md"
    "ETHEREUM_MAINNET_DEPLOYMENT_STATUS.md"
    "ETHERSCAN_VERIFICATION_STATUS.md"
    "EXPLORER_STATUS_REVIEW.md"
    "LETS_ENCRYPT_SETUP_STATUS.md"
    "MIGRATION_STATUS_UPDATE.md"
    "NEXT_STEPS_COMPLETION_STATUS.md"
    "NEXT_STEPS_STATUS.md"
    "ORACLE_PUBLISHER_SERVICE_STATUS.md"
    "REMAINING_STEPS.md"
    "THIRDWEB_SECRETS_STATUS.md"
    "VERIFICATION_FINAL_STATUS.md"
)

COMPLETION_FILES=(
    # Completion reports
    "ADMIN_VERIFICATION_COMPLETE.md"
    "ALI_INFRASTRUCTURE_COMPLETE.md"
    "ALLOWANCE_FIX_COMPLETE.md"
    "ALL_ALLOWANCES_FIX_COMPLETE.md"
    "ALL_ISSUES_FIXED_SUMMARY.md"
    "ALL_NEXT_ACTIONS_COMPLETE.md"
    "ALL_NEXT_STEPS_COMPLETE.md"
    "ALL_NEXT_STEPS_COMPLETE_FINAL.md"
    "ALL_NEXT_STEPS_COMPLETE_SUMMARY.md"
    "ALL_OPTIONAL_TASKS_COMPLETE.md"
    "ALL_RECOMMENDATIONS_COMPLETE.md"
    "ALL_REMAINING_ACTIONS_COMPLETE.md"
    "ALL_REMAINING_TASKS_COMPLETE.md"
    "ALL_STEPS_COMPLETE.md"
    "ALL_TASKS_COMPLETE_FINAL.md"
    "ALL_TASKS_COMPLETE_SUMMARY.md"
    "ALL_TODOS_COMPLETE.md"
    "ALL_TODOS_COMPLETE_FINAL.md"
    "BLOCKSCOUT_ALL_COMPLETE.md"
    "BLOCKSCOUT_ALL_FIXES_COMPLETE.md"
    "BLOCKSCOUT_ALL_STEPS_COMPLETE.md"
    "BLOCKSCOUT_ALL_TASKS_COMPLETE.md"
    "BLOCKSCOUT_CLOUDFLARE_SETUP_COMPLETE.md"
    "BLOCKSCOUT_COMPLETE_FINAL.md"
    "BLOCKSCOUT_COMPLETE_SETUP_FINAL.md"
    "BLOCKSCOUT_COMPLETE_SUCCESS.md"
    "BLOCKSCOUT_COMPLETE_SUMMARY.md"
    "BLOCKSCOUT_FINAL_COMPLETE.md"
    "BLOCKSCOUT_FINAL_SUCCESS.md"
    "BLOCKSCOUT_FIX_COMPLETE.md"
    "BLOCKSCOUT_FIXED_SUCCESS.md"
    "BLOCKSCOUT_IMPLEMENTATION_COMPLETE.md"
    "BLOCKSCOUT_METAMASK_FIX_COMPLETE.md"
    "BLOCKSCOUT_SSL_SETUP_COMPLETE.md"
    "BLOCKSCOUT_STATIC_IP_COMPLETE.md"
    "BLOCKSCOUT_WEB_INTERFACE_FIXED.md"
    "BRIDGE_CONFIGURATION_COMPLETE.md"
    "BRIDGE_MONITORING_EXPLORER_COMPLETE.md"
    "BRIDGE_VERIFICATION_FINAL_STATUS.md"
    "CCIP_ALL_TASKS_COMPLETE.md"
    "CCIP_ALL_TASKS_SUMMARY.md"
    "CCIP_MONITOR_FIX_COMPLETE.md"
    "CHAIN138_COMPLETE_IMPLEMENTATION.md"
    "CHAIN138_REVIEW_COMPLETE.md"
    "CLOUDFLARED_UPDATE_COMPLETE.md"
    "CLOUDFLARE_CONFIGURATION_COMPLETE.md"
    "CLOUDFLARE_EXPLORER_SETUP_COMPLETE.md"
    "CLUSTER_NODE_NAMES_FIXED.md"
    "COMPLETE_DEPLOYMENT_SUMMARY.md"
    "CONTRACT_DEPLOYMENT_COMPLETE_SUMMARY.md"
    "CONTRACT_DEPLOYMENT_SUCCESS.md"
    "ETHEREUM_MAINNET_ALL_TASKS_COMPLETE.md"
    "ETHEREUM_MAINNET_DEPLOYMENT_COMPLETE.md"
    "ETHEREUM_MAINNET_DEPLOYMENT_SUCCESS.md"
    "ETHEREUM_MAINNET_NEXT_STEPS_COMPLETE.md"
    "EXPLORER_COMPLETE_FUNCTIONALITY_REVIEW.md"
    "EXPLORER_FEATURES_COMPLETE.md"
    "EXPLORER_RESTORATION_COMPLETE.md"
    "EXPLORER_RESTORATION_FINAL_STATUS.md"
    "EXPLORER_SETUP_COMPLETE.md"
    "FINAL_BRIDGE_VERIFICATION_COMPLETE.md"
    "FINAL_COMPLETION_STATUS.md"
    "FINAL_SETUP_COMPLETE.md"
    "FIXES_COMPLETE_SUMMARY.md"
    "IP_ADDRESS_REVIEW_COMPLETE.md"
    "LETS_ENCRYPT_COMPLETE_SUMMARY.md"
    "LETS_ENCRYPT_RPC_2500_COMPLETE.md"
    "LETS_ENCRYPT_SETUP_COMPLETE.md"
    "LETS_ENCRYPT_SETUP_SUCCESS.md"
    "METAMASK_INTEGRATION_COMPLETE.md"
    "METAMASK_SUBMODULE_PUSH_COMPLETE.md"
    "METAMASK_SUBMODULE_SETUP_COMPLETE.md"
    "MIRACLES_IN_MOTION_CLOUDFLARE_COMPLETE.md"
    "MIRACLES_IN_MOTION_DEPLOYMENT_COMPLETE.md"
    "MIRACLES_IN_MOTION_DEPLOYMENT_FINAL.md"
    "MIRACLES_IN_MOTION_DEPLOYMENT_FINAL_STATUS.md"
    "MIRACLES_IN_MOTION_TUNNEL_ACTIVE.md"
    "NEXT_ACTIONS_COMPLETED.md"
    "NEXT_STEPS_COMPLETE.md"
    "NGINX_RPC_2500_COMPLETE_SETUP.md"
    "NGINX_RPC_2500_SETUP_COMPLETE.md"
    "ORACLE_PUBLISHER_CONFIGURATION_COMPLETE.md"
    "ORACLE_PUBLISHER_FINAL_FIX_COMPLETE.md"
    "ORACLE_PUBLISHER_SERVICE_COMPLETE.md"
    "PROXMOX_PVE_PVE2_FIX_COMPLETE.md"
    "QUICKSTART_COMPLETE_SUMMARY.md"
    "R630_01_THIN1_CONFIGURED.md"
    "R630_02_VM_RECOVERY_COMPLETE.md"
    "RPC_TROUBLESHOOTING_COMPLETE.md"
    "STORAGE_ENABLED_SUMMARY.md"
    "STORAGE_FIX_COMPLETE.md"
    "STORAGE_MIGRATION_FIX_SUMMARY.md"
    "THIRDWEB_BRIDGE_CHAIN138_SUPPORTED.md"
    "THIRDWEB_CREDENTIALS_CONFIGURED.md"
    "VERIFICATION_COMPLETE_SUMMARY.md"
    "VERIFICATION_QUICKSTART_RESULTS.md"
    "WETH_UTILITIES_EXPLORER_COMPLETE.md"
)

FIX_FILES=(
    # Fix reports
    "BLOCKSCOUT_EXPLORER_FIX.md"
    "BLOCKSCOUT_FIREWALL_FIX_COMPLETE.md"
    "BLOCKSCOUT_FIXES_APPLIED.md"
    "BLOCKSCOUT_HEADER_LINKS_FIX.md"
    "BLOCKSCOUT_IP_FIX_APPLIED.md"
    "BLOCKSCOUT_METAMASK_ETHERS_FIX.md"
    "BLOCKSCOUT_RESTART_FIX.md"
    "BLOCKSCOUT_WEB_INTERFACE_404_FIX.md"
    "CHAIN138_ACCESS_CONTROL_CORRECTED.md"
    "ETHERSCAN_BYTECODE_MISMATCH_FIX.md"
    "ETHERSCAN_VERIFICATION_BYTECODE_MISMATCH_FIX.md"
    "ETHERSCAN_VERIFICATION_CORRECTED.md"
    "ETHERSCAN_VERIFICATION_FIXED.md"
    "ETHERSCAN_VERIFICATION_FIX_COMPILER_VERSION.md"
    "FIXES_APPLIED_SUMMARY.md"
    "METAMASK_RPC_CHAIN_ID_ERROR_FIX.md"
    "METAMASK_TRANSACTION_DROPPED_FIX.md"
    "METAMASK_USD_PRICE_FIX.md"
    "METAMASK_WETH9_FIX_INSTRUCTIONS.md"
    "MIGRATION_STORAGE_FIX.md"
    "NGINX_BESU_CLOUDFLARED_FIX_SUMMARY.md"
    "NGINX_PUBLIC_ENDPOINTS_FIX_COMPLETE.md"
    "ORACLE_API_KEYS_QUICK_FIX.md"
    "ORACLE_PUBLISHER_ALL_FIXES_AND_RECOMMENDATIONS.md"
    "ORACLE_PUBLISHER_COMPLETE_FIX_SUMMARY.md"
    "ORACLE_PUBLISHER_COMPREHENSIVE_FIX.md"
    "ORACLE_PUBLISHER_FINAL_FIX_COMPLETE.md"
    "R630_01_THIN1_FIX.md"
    "THIRDWEB_BRIDGE_QUICK_FIX.md"
    "VERIFICATION_CRITICAL_FIX.md"
    "VERIFICATION_FINAL_CORRECTED.md"
)

echo "Organization script created. Ready to categorize files."
