Skip to content

Commit a7916fe

Browse files
cscoder69claude
andcommitted
v1.2.3 (not released): /cqi debug, Report a bug button, error capture, CHANGELOG for CurseForge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9adda78 commit a7916fe

8 files changed

Lines changed: 190 additions & 8 deletions

File tree

‎.pkgmeta‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
package-as: CSCoder_QuestIndicator
22

3+
# The changes shown on CurseForge for each file.
4+
manual-changelog:
5+
filename: CHANGELOG.md
6+
markup-type: markdown
7+
38
ignore:
49
- media
510
- tools
611
- README.md
712
- CLAUDE.md
13+
- CHANGELOG.md
814
- .github

‎CHANGELOG.md‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# CS.Coder - Quest Indicator
2+
3+
## v1.2.3
4+
5+
- **Report a bug** button in the options window, with the link to the issues page.
6+
- **/cqi debug**: a short report to copy (versions, client, language, main settings, place, other nameplate and quest addons, the addon's last errors), ready to paste in a bug report.
7+
- Every release is now checked automatically before it is published.
8+
9+
## v1.2.2
10+
11+
- **A new look**: the options open in their own window, with switches, gold buttons and sliders. The game's AddOns options keep a short page with an "Open settings" button.
12+
- A green **check mark** when a mob is no longer needed.
13+
- The **count pulses** when it goes up and turns gold when one is left.
14+
- A chat line when a quest is **ready to turn in**.
15+
- **Quest summary** on the minimap button.
16+
- **Quick themes**: Classic, Subtle and Flashy.
17+
- A play button next to each sound, and a **volume** slider.
18+
- Icons **hide in instanced content** (dungeons and raids) by default.
19+
- Safer with the nameplates dungeons hand out.
20+
21+
## v1.2.1
22+
23+
- A **setup guide** for new characters (`/cqi setup`).
24+
- **Icon anchor**: top, bottom, left or right of the nameplate.
25+
- Quest items can have their **own icon, float and glow**, and show the **count** too.
26+
- Sharper, centred icons; new sounds; profile **export and import**; help on hover; what's new window.
27+
28+
## v1.2.0
29+
30+
- Progress text with fonts, formats, outline, colour and shadow; sound when an objective completes.
31+
- 37 icons in 3 categories, picked from an icon window; one scrolling settings page; preview window.
32+
33+
## v1.1.0
34+
35+
- Profiles, 6 languages, colour by quest type, combat fade/hide, minimap button, smooth float.
36+
37+
## v1.0.0
38+
39+
- First release: quest mob icons, quest item icon, options panel.

‎CLAUDE.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ live in game after `/reload`.
137137
game closed meanwhile). At 100% it plays on Master.
138138
- **Hide in instanced content** (`hideInInstances`, on by default; the user's tester got errors in
139139
dungeons). `UsablePlate(unit)` never returns forbidden plates; plates are measured outside instances only.
140+
- **Bug reports (v1.2.3):** `/cqi debug` (`ShowDebug`: versions, client, language, main switches,
141+
instance, plate cvars, other quest/nameplate addons, last errors) and a "Report a bug" button
142+
(issues URL), both in the copy window (`OpenShareWindow("copy", title, hint, text)`). Errors that
143+
mention the addon are kept in `root.lastErrors` (last 10) by a wrapper around the current error
144+
handler, which still receives every error.
140145
- **Badge experiment** (2026-11-09): built, tried in game, user found it ugly and dropped it; the
141146
commits were reverted. Do not bring it back unless asked (maybe with real artwork).
142147
- `/cqi` opens the options, `/cqi toggle` toggles the addon, `/cqi setup` the guide, `/cqi news` what's new, `/cqi plate` measures the target plate.
@@ -160,6 +165,11 @@ whether the mock is missing an API (e.g. it once returned nil for `GetHighlightT
160165
Keep CurseForge's own "Automatic Packaging" **off** (the GitHub Action does it; both would double-upload).
161166
- **Version numbers (user, 2026-11-09):** bump only the third digit for now (v1.2.1, v1.2.2, ...);
162167
the minor number was going up too fast.
168+
- **Every release, before tagging:** add the version's section at the top of `CHANGELOG.md` (the
169+
packager uploads it as the file's changelog, `.pkgmeta` manual-changelog) and update `NEWS_TEXT`
170+
in all 6 languages. The workflow's `check` job (syntax, both mock runs, `tools/check_translations.lua`)
171+
must pass or nothing is uploaded; it can be run by hand with
172+
`gh workflow run "Package and release" --ref <branch>` (the release job only runs on tags).
163173
- Commits publish nothing. To release: bump nothing by hand, just
164174
`git tag -a vX.Y.Z -m "..." && git push origin vX.Y.Z`, then `gh run watch` the "Package and release" run.
165175
New files go through CurseForge moderation.

‎CSCoder_QuestIndicator.lua‎

Lines changed: 82 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ function UpdateMinimapButton()
19241924
end
19251925
end
19261926

1927-
local BuildPanel, ShowWizard, ShowNews
1927+
local BuildPanel, ShowWizard, ShowNews, ShowDebug
19281928
do -- the options window, its sections, the setup guide and what's new (one block: the main
19291929
-- chunk would pass Lua's 200-locals limit)
19301930
---------------------------------------------------------------------------------------------
@@ -2270,19 +2270,74 @@ do
22702270
end
22712271

22722272
-- mode: "export" (text ready to copy) or "import" (paste and press Import).
2273-
function OpenShareWindow(mode)
2273+
-- mode: "export" (text ready to copy), "import" (paste and press Import), or "copy" with a
2274+
-- title, a hint and the text to copy (debug report, bug link).
2275+
function OpenShareWindow(mode, copyTitle, copyHint, copyText)
22742276
if not window then Build() end
2275-
local exporting = mode == "export"
2276-
title:SetText(exporting and L.SHARE_EXPORT_TITLE or L.SHARE_IMPORT_TITLE)
2277-
hint:SetText(exporting and L.SHARE_EXPORT_HINT or string.format(L.SHARE_IMPORT_HINT, tostring(ActiveProfileName())))
2278-
action:SetShown(not exporting)
2277+
local copying = mode ~= "import"
2278+
if mode == "copy" then
2279+
title:SetText(copyTitle)
2280+
hint:SetText(copyHint)
2281+
else
2282+
title:SetText(mode == "export" and L.SHARE_EXPORT_TITLE or L.SHARE_IMPORT_TITLE)
2283+
hint:SetText(mode == "export" and L.SHARE_EXPORT_HINT or string.format(L.SHARE_IMPORT_HINT, tostring(ActiveProfileName())))
2284+
end
2285+
action:SetShown(not copying)
22792286
window:Show()
2280-
input:SetText(exporting and Export() or "")
2287+
input:SetText((mode == "copy" and copyText) or (mode == "export" and Export()) or "")
22812288
input:SetFocus()
2282-
if exporting then input:HighlightText() end
2289+
if copying then
2290+
input:SetCursorPosition(0)
2291+
input:HighlightText()
2292+
end
22832293
end
22842294
end
22852295

2296+
-- /cqi debug: one line with what helps to find a problem (versions, client, language, the
2297+
-- profile's main switches, the place, other quest/nameplate addons, the last errors of this
2298+
-- addon), shown ready to copy.
2299+
local BUG_URL = "https://github.com/cscoder69/CSCoder_QuestIndicator/issues"
2300+
function ShowDebug()
2301+
local parts = {}
2302+
local function Add(label, value) parts[#parts + 1] = label .. "=" .. tostring(value) end
2303+
Add("addon", AddonVersion())
2304+
if GetBuildInfo then
2305+
local version, build, _, toc = GetBuildInfo()
2306+
Add("client", tostring(version) .. "." .. tostring(build) .. " (" .. tostring(toc) .. ")")
2307+
end
2308+
Add("locale", GetLocale and GetLocale())
2309+
Add("language", root.language)
2310+
Add("profile", ActiveProfileName())
2311+
for _, key in ipairs({ "active", "enabled", "objects", "progress", "objectProgress", "hideInInstances", "sound", "soundVolume", "style", "anchor" }) do
2312+
Add(key, db[key])
2313+
end
2314+
if IsInInstance then
2315+
local inside, kind = IsInInstance()
2316+
Add("instance", inside and tostring(kind) or "no")
2317+
end
2318+
if C_CVar and C_CVar.GetCVar then
2319+
Add("enemyPlates", C_CVar.GetCVar("nameplateShowEnemies"))
2320+
Add("softInteract", C_CVar.GetCVar("SoftTargetInteract"))
2321+
end
2322+
local plate = root.plateGeom
2323+
Add("plate", plate and string.format("%.0fx%.0f", plate.w or 0, plate.h or 0) or "none")
2324+
local others = {}
2325+
local isLoaded = (C_AddOns and C_AddOns.IsAddOnLoaded) or IsAddOnLoaded
2326+
for _, name in ipairs({ "ForeverLootSparkles", "Questie", "Plater", "TidyPlates", "Kui_Nameplates", "ElvUI", "OneForAll", "pfQuest" }) do
2327+
if isLoaded and isLoaded(name) then others[#others + 1] = name end
2328+
end
2329+
Add("addons", #others > 0 and table.concat(others, ",") or "none")
2330+
local errors = root.lastErrors or {}
2331+
Add("errors", #errors)
2332+
for i = #errors, math.max(1, #errors - 2), -1 do parts[#parts + 1] = "err" .. i .. "=" .. errors[i] end
2333+
OpenShareWindow("copy", L.DEBUG_TITLE, L.DEBUG_HINT, "CQI-DEBUG " .. table.concat(parts, " | "))
2334+
end
2335+
2336+
-- "Report a bug": the issues page, ready to copy.
2337+
local function ShowBugLink()
2338+
OpenShareWindow("copy", L.BUG_TITLE, L.BUG_HINT, BUG_URL)
2339+
end
2340+
22862341
local function BuildProfilesTab(tab)
22872342
-- This tab is laid out from the panel's top; the box starts lower in the options window.
22882343
local TOP, LEFT = TOP - 48, LEFT + 20
@@ -2545,6 +2600,11 @@ function BuildPanel()
25452600
toggle:SetSize(110, 22)
25462601
toggle:SetPoint("TOPRIGHT", panel, "TOPRIGHT", -50, -18)
25472602
Loc(toggle, "PREVIEW")
2603+
local bug = Skin.Button(panel)
2604+
bug:SetSize(130, 22)
2605+
bug:SetPoint("TOPRIGHT", toggle, "BOTTOMRIGHT", 0, -6)
2606+
Loc(bug, "BUG_BUTTON")
2607+
bug:SetScript("OnClick", ShowBugLink)
25482608
toggle:SetScript("OnClick", function()
25492609
if window:IsShown() then
25502610
root.previewHidden = true
@@ -3002,6 +3062,18 @@ events:SetScript("OnEvent", function(_, event, arg1)
30023062
LoadSavedVariables()
30033063
L = BuildLocale(root.language)
30043064
BuildPanel()
3065+
if geterrorhandler and seterrorhandler then
3066+
local previous = geterrorhandler()
3067+
seterrorhandler(function(message, ...)
3068+
if type(message) == "string" and message:find(ADDON, 1, true) then
3069+
root.lastErrors = root.lastErrors or {}
3070+
local line = (date and date("%H:%M ") or "") .. message:gsub("[\r\n|]+", " "):sub(1, 300)
3071+
table.insert(root.lastErrors, line)
3072+
while #root.lastErrors > 10 do table.remove(root.lastErrors, 1) end
3073+
end
3074+
if previous then return previous(message, ...) end
3075+
end)
3076+
end
30053077
return
30063078
end
30073079
if not db then return end
@@ -3091,6 +3163,8 @@ SlashCmdList.CSCODERQUESTINDICATOR = function(msg)
30913163
ShowWizard()
30923164
elseif cmd == "news" then
30933165
ShowNews()
3166+
elseif cmd == "debug" then
3167+
ShowDebug()
30943168
elseif cmd == "plate" then
30953169
-- Measures the target's nameplate for the preview and prints what was found.
30963170
-- Protected: an error here would leave the text stuck in the chat box.

‎Locales.lua‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,3 +1217,39 @@ for code, texts in pairs(volume) do
12171217
l.SOUND_VOLUME, l.TIP_SOUND_VOLUME = texts[1], texts[2]
12181218
if l.NEWS_TEXT then l.NEWS_TEXT = l.NEWS_TEXT:gsub("\n\n", "\n|cffffd200•|r " .. texts[3] .. "\n\n", 1) end
12191219
end
1220+
1221+
-- /cqi debug and "Report a bug".
1222+
local debugText = {
1223+
enUS = { DEBUG_TITLE = "Debug info", DEBUG_HINT = "Press Ctrl+C to copy this and send it with your bug report.",
1224+
BUG_BUTTON = "Report a bug", BUG_TITLE = "Report a bug",
1225+
BUG_HINT = "Copy this link (Ctrl+C) and open it in your browser. Type /cqi debug for the info to paste in your report." },
1226+
ptBR = { DEBUG_TITLE = "Informações de depuração", DEBUG_HINT = "Aperte Ctrl+C para copiar e mande junto com o relato do bug.",
1227+
BUG_BUTTON = "Reportar bug", BUG_TITLE = "Reportar um bug",
1228+
BUG_HINT = "Copie este link (Ctrl+C) e abra no navegador. Digite /cqi debug para pegar as informações e colar no relato." },
1229+
esES = { DEBUG_TITLE = "Información de depuración", DEBUG_HINT = "Pulsa Ctrl+C para copiar esto y envíalo con tu informe de error.",
1230+
BUG_BUTTON = "Informar error", BUG_TITLE = "Informar de un error",
1231+
BUG_HINT = "Copia este enlace (Ctrl+C) y ábrelo en tu navegador. Escribe /cqi debug para obtener la información que pegar en tu informe." },
1232+
deDE = { DEBUG_TITLE = "Debug-Infos", DEBUG_HINT = "Drücke Strg+C, um dies zu kopieren, und sende es mit deinem Fehlerbericht.",
1233+
BUG_BUTTON = "Fehler melden", BUG_TITLE = "Einen Fehler melden",
1234+
BUG_HINT = "Kopiere diesen Link (Strg+C) und öffne ihn im Browser. Gib /cqi debug ein, um die Infos für deinen Bericht zu bekommen." },
1235+
frFR = { DEBUG_TITLE = "Infos de débogage", DEBUG_HINT = "Appuyez sur Ctrl+C pour copier ceci et envoyez-le avec votre rapport de bug.",
1236+
BUG_BUTTON = "Signaler un bug", BUG_TITLE = "Signaler un bug",
1237+
BUG_HINT = "Copiez ce lien (Ctrl+C) et ouvrez-le dans votre navigateur. Tapez /cqi debug pour obtenir les infos à coller dans votre rapport." },
1238+
itIT = { DEBUG_TITLE = "Informazioni di debug", DEBUG_HINT = "Premi Ctrl+C per copiare e invialo con la tua segnalazione.",
1239+
BUG_BUTTON = "Segnala un bug", BUG_TITLE = "Segnala un bug",
1240+
BUG_HINT = "Copia questo link (Ctrl+C) e aprilo nel browser. Digita /cqi debug per le informazioni da incollare nella segnalazione." },
1241+
}
1242+
for code, keys in pairs(debugText) do
1243+
for k, v in pairs(keys) do locales[code][k] = v end
1244+
end
1245+
1246+
-- What's new (shown once after updating): v1.2.3.
1247+
local news123 = {
1248+
enUS = "|cffffd200•|r A |cffffd200Report a bug|r button in the options window.\n|cffffd200•|r |cff00ff00/cqi debug|r: a short report to copy and send with a bug report, so problems get fixed faster.\n|cffffd200•|r Every release is now checked automatically before it is published.",
1249+
ptBR = "|cffffd200•|r Um botão |cffffd200Reportar bug|r na janela de opções.\n|cffffd200•|r |cff00ff00/cqi debug|r: um relatório curto para copiar e mandar junto com o relato do bug, para os problemas serem corrigidos mais rápido.\n|cffffd200•|r Cada versão agora é verificada automaticamente antes de ser publicada.",
1250+
esES = "|cffffd200•|r Un botón |cffffd200Informar error|r en la ventana de opciones.\n|cffffd200•|r |cff00ff00/cqi debug|r: un informe corto para copiar y enviar con tu informe de error, para corregir los problemas antes.\n|cffffd200•|r Cada versión se comprueba ahora automáticamente antes de publicarse.",
1251+
deDE = "|cffffd200•|r Ein Knopf |cffffd200Fehler melden|r im Optionsfenster.\n|cffffd200•|r |cff00ff00/cqi debug|r: ein kurzer Bericht zum Kopieren für deine Fehlermeldung, damit Probleme schneller behoben werden.\n|cffffd200•|r Jede Version wird jetzt vor der Veröffentlichung automatisch geprüft.",
1252+
frFR = "|cffffd200•|r Un bouton |cffffd200Signaler un bug|r dans la fenêtre d'options.\n|cffffd200•|r |cff00ff00/cqi debug|r : un court rapport à copier et à joindre à votre signalement, pour corriger les problèmes plus vite.\n|cffffd200•|r Chaque version est maintenant vérifiée automatiquement avant d'être publiée.",
1253+
itIT = "|cffffd200•|r Un pulsante |cffffd200Segnala un bug|r nella finestra delle opzioni.\n|cffffd200•|r |cff00ff00/cqi debug|r: un breve rapporto da copiare e inviare con la segnalazione, per correggere i problemi più in fretta.\n|cffffd200•|r Ogni versione ora viene controllata automaticamente prima di essere pubblicata.",
1254+
}
1255+
for code, text in pairs(news123) do locales[code].NEWS_TEXT = text end

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ A floating, animated **"!"** over the mobs and items you still need for your que
4040
| `/cqi toggle` | Turns the addon on or off |
4141
| `/cqi setup` | Opens the setup guide again |
4242
| `/cqi news` | Shows what's new in this version |
43+
| `/cqi debug` | A short report to copy into a bug report |
4344
| `/cqi plate` | Measures your target's nameplate so the preview matches it |
4445

4546
## Notes

‎media/curseforge.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ A floating "!" over every quest mob and item you still need, with live progress
4040
| `/cqi toggle` | Turns the addon on or off |
4141
| `/cqi setup` | Opens the setup guide again |
4242
| `/cqi news` | Shows what's new in this version |
43+
| `/cqi debug` | A short report to copy into a bug report |
4344

4445
### Notes
4546

‎tools/wowmock.lua‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ env.GetTime = function() return 12.5 end
6262
env.wipe = function(t) for k in pairs(t) do t[k] = nil end return t end
6363
env.print = function(...) end
6464
env.PlaySound = function() end
65+
env.GetBuildInfo = function() return "1.60.1", "12345", "Nov 1 2026", 16001 end
66+
env.date = os.date
67+
-- Error handlers: the addon wraps the current one to keep its own errors for /cqi debug.
68+
local gameHandled = 0
69+
env.geterrorhandler = function() return function() gameHandled = gameHandled + 1 end end
70+
env.seterrorhandler = function(fn) rawset(env, "_handler", fn) end
6571
env.C_Timer = { After = function(_, fn) fn() end }
6672
env.C_NamePlate = { GetNamePlates = function() return {} end, GetNamePlateForUnit = function() return nil end }
6773
env.C_QuestLog = { GetNumQuestLogEntries = function() return 0 end, GetInfo = function() return nil end, GetQuestObjectives = function() return {} end }
@@ -129,6 +135,15 @@ try("slash", env.SlashCmdList.CSCODERQUESTINDICATOR, "toggle")
129135
try("slash open", env.SlashCmdList.CSCODERQUESTINDICATOR, "")
130136
try("slash setup", env.SlashCmdList.CSCODERQUESTINDICATOR, "setup")
131137
try("slash news", env.SlashCmdList.CSCODERQUESTINDICATOR, "news")
138+
try("slash debug", env.SlashCmdList.CSCODERQUESTINDICATOR, "debug")
139+
-- An error from this addon is kept for /cqi debug and still reaches the game's handler.
140+
if rawget(env, "_handler") then
141+
try("error handler", env._handler, "Interface/AddOns/CSCoder_QuestIndicator/CSCoder_QuestIndicator.lua:1: test error")
142+
try("error handler", env._handler, "Interface/AddOns/OtherAddon/x.lua:1: not ours")
143+
local kept = env.CSCoderQuestIndicatorDB.lastErrors or {}
144+
print("errors kept for debug:", #kept, "| passed on to the game:", gameHandled)
145+
try("slash debug with errors", env.SlashCmdList.CSCODERQUESTINDICATOR, "debug")
146+
end
132147
print("setup seen:", env.CSCoderQuestIndicatorDB.setupSeen["Tester - Realm"])
133148

134149
-- /cqi plate on a fake target plate drawn at 0.8 distance scale: the saved size must be the

0 commit comments

Comments
 (0)