feat: Enhance game uniqueness validation to include remote ID and source, and redesign the add game form UI with submission state and feedback.

This commit is contained in:
2025-12-04 18:36:47 +01:00
parent 9140498c6c
commit ff9d5632d7
2 changed files with 361 additions and 85 deletions
+3 -1
View File
@@ -65,7 +65,9 @@ async fn add_game(
let mut games = game_list.lock().await;
let mut game = game.into_inner();
if games.iter().any(|g| g.title == game.title) {
if games.iter().any(|g| {
g.title == game.title || (g.remote_id == game.remote_id && g.source == game.source)
}) {
return None;
}