From b1ef3c3688da809b2ab7fbfb4b3d7a51189797ea Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 8 May 2026 07:58:54 -0400 Subject: [PATCH] feat(web/flutter): expand error-copy map with auth + validation + 404 codes --- flutter_client/assets/error-copy.json | 34 ++++++++++++++++++++++++++- web/src/lib/styles/error-copy.json | 34 ++++++++++++++++++++++++++- 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/flutter_client/assets/error-copy.json b/flutter_client/assets/error-copy.json index a3c3e4cf..9a29973f 100644 --- a/flutter_client/assets/error-copy.json +++ b/flutter_client/assets/error-copy.json @@ -1,6 +1,34 @@ { "unknown": "Something went wrong.", "unauthenticated": "Your session has ended. Please sign in again.", + "auth_required": "You need to sign in to do that.", + "forbidden": "You don't have permission to do that.", + "not_authorized": "You don't have permission to do that.", + "invalid_credentials": "Wrong username or password.", + "wrong_password": "Current password is incorrect.", + "password_too_short": "Password must be at least 8 characters.", + "username_invalid": "That username isn't valid.", + "username_taken": "That username is already taken.", + "email_invalid": "Enter a valid email address.", + "email_taken": "That email is already in use.", + "invalid_token": "That link has expired or already been used. Request a new one.", + "invite_invalid": "That invite has expired or already been used.", + "invite_required": "An invite is required to register on this server.", + "last_admin": "Can't demote or delete the last admin.", + "no_email_on_file": "No email is associated with that account.", + "not_configured": "This integration isn't set up yet.", + "validation": "Some fields aren't valid. Check and try again.", + "missing_fields": "Required fields are missing.", + "missing_query": "Search needs at least one keyword.", + "invalid_id": "Invalid identifier.", + "invalid_body": "Couldn't read the request.", + "bad_request": "Invalid request.", + "bad_body": "Couldn't read the request.", + "bad_kind": "Invalid request type.", + "bad_paging": "Invalid page size or offset.", + "bad_reason": "Invalid quarantine reason.", + "mbid_required": "An MBID is required for this lookup.", + "system_playlist_readonly": "System playlists can't be edited directly.", "connection_refused": "Couldn't reach the server. Check the URL and try again.", "lidarr_unreachable": "Lidarr is unreachable right now. Try again, or check Admin → Integrations.", "lidarr_disabled": "Lidarr integration is not enabled.", @@ -12,5 +40,9 @@ "album_mbid_missing": "This track has no Lidarr album to remove.", "request_not_pending": "This request is no longer pending.", "request_not_found": "That request no longer exists.", - "track_not_found": "That track no longer exists." + "track_not_found": "That track no longer exists.", + "album_not_found": "That album no longer exists.", + "artist_not_found": "That artist no longer exists.", + "playlist_not_found": "That playlist no longer exists.", + "user_not_found": "That user no longer exists." } diff --git a/web/src/lib/styles/error-copy.json b/web/src/lib/styles/error-copy.json index a3c3e4cf..9a29973f 100644 --- a/web/src/lib/styles/error-copy.json +++ b/web/src/lib/styles/error-copy.json @@ -1,6 +1,34 @@ { "unknown": "Something went wrong.", "unauthenticated": "Your session has ended. Please sign in again.", + "auth_required": "You need to sign in to do that.", + "forbidden": "You don't have permission to do that.", + "not_authorized": "You don't have permission to do that.", + "invalid_credentials": "Wrong username or password.", + "wrong_password": "Current password is incorrect.", + "password_too_short": "Password must be at least 8 characters.", + "username_invalid": "That username isn't valid.", + "username_taken": "That username is already taken.", + "email_invalid": "Enter a valid email address.", + "email_taken": "That email is already in use.", + "invalid_token": "That link has expired or already been used. Request a new one.", + "invite_invalid": "That invite has expired or already been used.", + "invite_required": "An invite is required to register on this server.", + "last_admin": "Can't demote or delete the last admin.", + "no_email_on_file": "No email is associated with that account.", + "not_configured": "This integration isn't set up yet.", + "validation": "Some fields aren't valid. Check and try again.", + "missing_fields": "Required fields are missing.", + "missing_query": "Search needs at least one keyword.", + "invalid_id": "Invalid identifier.", + "invalid_body": "Couldn't read the request.", + "bad_request": "Invalid request.", + "bad_body": "Couldn't read the request.", + "bad_kind": "Invalid request type.", + "bad_paging": "Invalid page size or offset.", + "bad_reason": "Invalid quarantine reason.", + "mbid_required": "An MBID is required for this lookup.", + "system_playlist_readonly": "System playlists can't be edited directly.", "connection_refused": "Couldn't reach the server. Check the URL and try again.", "lidarr_unreachable": "Lidarr is unreachable right now. Try again, or check Admin → Integrations.", "lidarr_disabled": "Lidarr integration is not enabled.", @@ -12,5 +40,9 @@ "album_mbid_missing": "This track has no Lidarr album to remove.", "request_not_pending": "This request is no longer pending.", "request_not_found": "That request no longer exists.", - "track_not_found": "That track no longer exists." + "track_not_found": "That track no longer exists.", + "album_not_found": "That album no longer exists.", + "artist_not_found": "That artist no longer exists.", + "playlist_not_found": "That playlist no longer exists.", + "user_not_found": "That user no longer exists." }