From cb92f36bb55d9fd255893fdde82b56d710faaa8c Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 20 Feb 2026 14:06:31 -0600 Subject: [PATCH] store: Fix: publish-scorecard error embed shows user-provided URL and removes double emoji --- ...embed-shows-user-provided-url-an-543706.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 graph/fixes/fix-publish-scorecard-error-embed-shows-user-provided-url-an-543706.md diff --git a/graph/fixes/fix-publish-scorecard-error-embed-shows-user-provided-url-an-543706.md b/graph/fixes/fix-publish-scorecard-error-embed-shows-user-provided-url-an-543706.md new file mode 100644 index 00000000000..60ffb666d2f --- /dev/null +++ b/graph/fixes/fix-publish-scorecard-error-embed-shows-user-provided-url-an-543706.md @@ -0,0 +1,28 @@ +--- +id: 543706bd-8352-4a4d-8afb-957e0f5e6ef6 +type: fix +title: "Fix: publish-scorecard error embed shows user-provided URL and removes double emoji" +tags: [major-domo, scorebug, ux, fix, embed-template, discord-bot] +importance: 0.55 +confidence: 0.8 +created: "2026-02-20T20:06:31.417368+00:00" +updated: "2026-02-20T20:06:31.417368+00:00" +--- + +# Fix: publish-scorecard Error Embed UX + +## Problem +When a user pasted a Discord message link instead of a Google Sheets URL, the error embed gave no indication of what URL was actually received. This made debugging confusing for the user. + +Also, the error embed had a redundant ❌ emoji in the description — `EmbedTemplate.error()` already adds one to the title automatically, resulting in double emoji. + +## Changes (`commands/gameplay/scorebug.py`) + +1. Added `"**You provided:** \`{url}\`"` to the `SheetsException` error embed description so the user can immediately see what they submitted. +2. Removed the manually added ❌ from the description (double emoji — `EmbedTemplate.error()` auto-adds one to the title). + +## Pattern Reminder +`EmbedTemplate.success()`, `EmbedTemplate.error()`, `EmbedTemplate.warning()`, `EmbedTemplate.info()`, `EmbedTemplate.loading()` all auto-add emoji prefixes to the title. Never put emoji in the `title` parameter, and never manually add a matching emoji to the description. + +## Closes +Issue #39 (UX sub-item). Branch: `fix/scorebug-bugs`.