local addonName, ns = ...

-- User-facing changelog, newest first. Hand-curated wording (not raw commit
-- subjects). Keep the top entry's `version` in sync with the .toc ## Version
-- whenever you cut a release. Read by script/whatsnew.lua to build the
-- GitHub release body.
ns.releaseNotes = {
    { version = "0.11.3", date = "2026-08-15", changes = {
        "New article: \"Totally Normal Store? Or a Secret Art-deco Bar?\".",
    }},
    { version = "0.11.2", date = "2026-08-08", changes = {
        "New article: \"Thorne's Hidden Town\".",
    }},
    { version = "0.11.1", date = "2026-08-06", changes = {
        "Housing Herald now has a page on addons.dosaki.net: download the addon, report problems and suggest features right from the site - no GitHub account needed.",
    }},
    { version = "0.11.0", date = "2026-08-05", changes = {
        "New - and + buttons on every shopping list row, so you can adjust quantities without typing (the - stops at 1; removing a row stays on the × button).",
        "Closing the Housing Herald window now closes its dialogs with it: Add Dye, Import, Export, Help and the article link popup.",
        "The article link popup is a compact one-line box instead of a mostly-empty window, and only shows a scrollbar when a long export actually needs one.",
        "Dyes the addon can't count yet show 0 instead of a dash, so the list reads consistently.",
        "Tidied the visuals: article card authors and summaries line up with the title, and the -, + and × button glyphs sit properly centred.",
    }},
    { version = "0.10.2", date = "2026-08-01", changes = {
        "Refreshed bundled articles and dyes from housing-herald.com.",
    }},
    { version = "0.10.1", date = "2026-07-26", changes = {
        "The addon's own tracker window is used by default again. Putting the shopping list inside Blizzard's objective tracker is still available in Options > AddOns > Housing Herald, but it can occasionally cause Lua errors, so it is now off unless you turn it on.",
        "Article cards now show who wrote each article, and the title sits over the picture instead of below it.",
        "Renamed the News tab to Articles.",
        "Tidied up the article cards: the summaries all line up now, and the title has a darker backing so it stays readable over bright screenshots.",
    }},
    { version = "0.10.0", date = "2026-07-25", changes = {
        "New Add Dye button on the Shopping List: search every housing dye by name, see its colour, and click to add it (click again to raise the quantity).",
        "Ctrl+Alt+Click a dye in your bags or chat to add it to the shopping list.",
        "Dye counts now track the dye you actually need instead of the pigment it's made from, so the tracker no longer ticks off dyes you don't own.",
        "The on-screen tracker now matches Blizzard's objective tracker, and can be collapsed with the - button in its title bar (it stays collapsed until you expand it again).",
        "Right-click the tracker or the minimap button to open the addon options.",
        "The Blizzard objective tracker is used by default again. If it causes a UI error, the addon now tells you how to switch to the standalone tracker.",
        "Added a Housing Herald section to Options > AddOns for choosing which tracker to use, plus /hherald settings to open it.",
        "The Import, Export and Help windows no longer overlap each other, and their buttons close them on a second click.",
        "An empty shopping list now explains how to add items instead of showing a blank panel.",
    }},
    { version = "0.9.1", date = "2026-07-22", changes = {
        "Fixed the Help text wrapping mid-sentence in awkward places.",
    }},
    { version = "0.9.0", date = "2026-07-22", changes = {
        "Added a Help button to the Shopping List tab (top-right) explaining how to add, manage and track items.",
        "Adding an item no longer prints a chat message - the item just appears in your list.",
    }},
    { version = "0.8.2", date = "2026-07-22", changes = {
        "Ctrl+Alt+Clicking a decor you've already added now increases its quantity instead of doing nothing — click it as many times as you need.",
    }},
    { version = "0.8.1", date = "2026-07-22", changes = {
        "Removed the internal developer diagnostic commands now that the catalog and chat-link integrations are working.",
    }},
    { version = "0.8.0", date = "2026-07-21", changes = {
        "Ctrl+Alt+Click a decor in the housing catalog to add it straight to your shopping list — no need to link it in chat first.",
    }},
    { version = "0.7.2", date = "2026-07-21", changes = {
        "Added an internal /hh mouseprobe diagnostic, a stepping stone toward adding decor directly from the catalog window.",
    }},
    { version = "0.7.1", date = "2026-07-21", changes = {
        "Changed the add-to-shopping-list shortcut to Ctrl+Alt+Click (from Ctrl+Shift+Click) so it doesn't clash with the game's shift-click link behaviour.",
    }},
    { version = "0.7.0", date = "2026-07-21", changes = {
        "Ctrl+Shift+Click any housing decor link or decor item link to add it to your shopping list — works anywhere (chat, bags, catalog links), whether or not the Housing Herald window is open, and doesn't interfere with the normal shift-click behaviour.",
    }},
    { version = "0.6.3", date = "2026-07-21", changes = {
        "Shift-clicking a housing decor chat link now adds that decor to the shopping list (while the Shopping List tab is open). Decor links carry the decor id directly, so it's added instantly with no lookup.",
    }},
    { version = "0.6.2", date = "2026-07-21", changes = {
        "Shift-clicking an item link now adds it to the shopping list while the Shopping List tab is open (the previous hook only worked with a chat box already focused).",
    }},
    { version = "0.6.1", date = "2026-07-21", changes = {
        "Fixed the Shopping List tab showing only tiny icons with no text: rows now fill the panel width, so item names, the quantity box and the remove (X) button are visible again.",
    }},
    { version = "0.6.0", date = "2026-07-21", changes = {
        "Fulfilled tracker items now show a green check in place of the dash. (Removed the small item icons.)",
    }},
    { version = "0.4.2", date = "2026-07-21", changes = {
        "Group headings (\"Decors\"/\"Dyes\") now render in gold and the item lines in white; fulfilled items are dimmed.",
    }},
    { version = "0.4.1", date = "2026-07-21", changes = {
        "Adjusted the colours of the tracker's group headings.",
    }},
    { version = "0.4.0", date = "2026-07-21", changes = {
        "The shopping tracker now groups entries under \"Decors\" and \"Dyes\" headings instead of one flat list.",
    }},
    { version = "0.3.3", date = "2026-07-21", changes = {
        "Clicking a decor entry now opens the Housing Dashboard directly to that item in the catalog.",
    }},
    { version = "0.3.2", date = "2026-07-21", changes = {
        "Opening an entry from the shopping list now switches the Housing Dashboard to its Catalog tab and searches for the item.",
    }},
    { version = "0.3.1", date = "2026-07-21", changes = {
        "Clicking a shopping-list entry now opens the Housing Dashboard (loading it on demand) and pre-fills its search where available.",
        "Shift-clicked item links now resolve to decor instantly via the game's item lookup, without waiting for the background index.",
    }},
    { version = "0.3.0", date = "2026-07-21", changes = {
        "Clicking a shopping-list line in the objective tracker now behaves like the other views (opens the catalog once catalog opening is verified).",
    }},
    { version = "0.2.1", date = "2026-07-21", changes = {
        "The objective-tracker section now shows its \"Housing Herald\" title (it rendered blank in 0.2.0).",
    }},
    { version = "0.2.0", date = "2026-07-21", changes = {
        "The shopping list now appears as a \"Housing Herald\" section in Blizzard's objective tracker, below World Quests.",
        "If the game client rejects the integration, the addon automatically falls back to its own movable tracker window — never breaking the quest tracker.",
    }},
    { version = "0.1.1", date = "2026-07-21", changes = {
        "Fixed a login error that broke Blizzard's quest tracker (\"attempt to compare number with nil\"). The shopping list tracker now always uses its own movable Housing Herald window; objective-tracker integration will return once verified against the live client.",
    }},
    { version = "0.1.0", date = "2026-07-21", changes = {
        "Initial release.",
        "News tab: the latest four Housing Herald articles, with thumbnails and copyable links.",
        "Shopping list: track decor and dyes you still need, with live available/needed counts.",
        "Import/export: paste lists to and from housing-herald.com.",
        "On-screen tracker and /hh commands.",
    }},
}
