fix(map): completed/accepted/repeatable available-quest pins (#7 #9 #10)

#7: Completed quests kept showing as available '!'. The server completed-
quest list arrives async via QUEST_QUERY_COMPLETE, often after available
quests were first drawn. Recalculate available quests once char.complete is
populated by that event so completed quests are removed (also clears the
already-completed subset of #8).

#9: An accepted quest's available '!' could linger on the minimap until
/reload. UnloadQuestFramesByDataType unloaded the frame but left its name in
questIdFrames and _G; it now removes those references so the icon is torn
down immediately on both map and minimap.

#10: Added 'Hide repeatable quests below level 60' (Icons tab, off by
default) to hide repeatable available quests (e.g. the Ascension Callboard)
from map/minimap until level 60. Enforced in _DrawQuestIfAvailable and
ShouldBeHidden so existing minimap pins are removed too; reappear at 60.

Lint: selene 0 errors. Tests: 145 successes / same 7 pre-existing failures.
This commit is contained in:
Xurkon
2026-06-09 23:18:38 -05:00
parent 4827a3131e
commit ab560d5711
7 changed files with 42 additions and 1 deletions
+8
View File
@@ -755,6 +755,14 @@ function QuestieCompat:QUEST_QUERY_COMPLETE(event)
QuestieCompat.Merge(Questie.db.char.complete, Questie.db.char.weekly)
end
end
-- The completed-quest list arrives asynchronously from the server (this event), often
-- AFTER available quests were first drawn — so quests that are actually already complete
-- kept showing as available '!' until something else forced a redraw (e.g. /reload).
-- Recalculate now that char.complete is populated so completed quests are removed. (#7)
if QuestieQuest and QuestieQuest.started and AvailableQuests and AvailableQuests.CalculateAndDrawAll then
AvailableQuests.CalculateAndDrawAll()
end
end
-- https://wowpedia.fandom.com/wiki/API_IsQuestFlaggedCompleted