
-- ============================================================
-- FILE: MidnightWeeklyTracker.lua
-- PURPOSE: Stub module placeholder for a future Weekly Tracker
--   feature. Registers Addon.WeeklyTracker and marks it as
--   loaded, but provides no actual tracking functionality yet.
-- HOW IT WORKS:
--   Sets Addon.WeeklyTracker.initialized = true and
--   WeeklyTracker.enabled = false. Logs a "stub" message via
--   MidnightUI_Diagnostics or MidnightUI_Debug if available.
-- DEPENDS ON: nothing (optional debug helpers)
-- EXPORTS: Addon.WeeklyTracker (table, stub state only)
-- OWNED SAVEDVARIABLES: none
-- EVENTS REGISTERED: none
-- FRAMES CREATED: none
-- GOTCHAS: This file is intentionally empty of logic. Do not
--   add real feature code here until the module is designed —
--   the stub just ensures the table exists for any code that
--   checks Addon.WeeklyTracker.initialized defensively.
-- ============================================================

local ADDON_NAME, Addon = ...
if type(ADDON_NAME) ~= "string" or ADDON_NAME == "" then
    ADDON_NAME = "MidnightUI"
end
if type(Addon) ~= "table" then
    Addon = {}
end

local MODULE_NAME = "MidnightWeeklyTracker"

Addon.WeeklyTracker = Addon.WeeklyTracker or {}
local WeeklyTracker = Addon.WeeklyTracker

local function Log(message)
    if _G.MidnightUI_Diagnostics and type(_G.MidnightUI_Diagnostics.LogDebugSource) == "function" then
        _G.MidnightUI_Diagnostics.LogDebugSource(MODULE_NAME, tostring(message))
    elseif _G.MidnightUI_Debug then
        _G.MidnightUI_Debug("[" .. MODULE_NAME .. "] " .. tostring(message))
    end
end

if not WeeklyTracker.initialized then
    WeeklyTracker.initialized = true
    WeeklyTracker.enabled = false
end

