Kelsidavis-WoWee/include/ui
Pavel Okhlopkov 97106bd6ae fix(render): code quality cleanup
Magic number elimination:
- Create protocol_constants.hpp, warden_constants.hpp,
  render_constants.hpp, ui_constants.hpp
- Replace ~55 magic numbers across game_handler, warden_handler,
  m2_renderer_render

Reduce nesting depth:
- Extract 5 parseEffect* methods from handleSpellLogExecute
  (max indent 52 → 16 cols)
- Extract resolveSpellSchool/playSpellCastSound/playSpellImpactSound
  from 3× duplicate audio blocks in handleSpellGo
- Flatten SMSG_INVENTORY_CHANGE_FAILURE with early-return guards
- Extract drawScreenEdgeVignette() for 3 duplicate vignette blocks

DRY extract patterns:
- Replace 12 compound expansion checks with isPreWotlk() across
  movement_handler (9), chat_handler (1), social_handler (1)

const to constexpr:
- Promote 23+ static const arrays/scalars to static constexpr across
  12 source files

Error handling:
- Convert PIN auth from exceptions to std::optional<PinProof>
- Add [[nodiscard]] to 15+ initialize/parse methods
- Wrap ~20 unchecked initialize() calls with LOG_WARNING/LOG_ERROR

Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
2026-04-06 22:43:13 +03:00
..
action_bar_panel.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
auth_screen.hpp feat(animation): 452 named constants, 30-phase character animation state machine 2026-04-04 23:02:53 +03:00
character_create_screen.hpp Fix character creation for expansion-filtered servers (Turtle WoW) 2026-02-14 00:57:33 -08:00
character_screen.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
chat_panel.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
combat_ui.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
dialog_manager.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
game_screen.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
inventory_screen.hpp refactor: consolidate duplicate enchantment name cache in inventory tooltips 2026-03-25 18:08:08 -07:00
keybinding_manager.hpp refactor: remaining C-style casts, color constants, and header guard cleanup 2026-03-25 11:57:22 -07:00
quest_log_screen.hpp Add search bar and Active/Ready filter to quest log 2026-03-11 23:17:38 -07:00
realm_screen.hpp Improve UI layout, spell casting, and realm selection screen 2026-02-17 03:50:36 -08:00
settings_panel.hpp chore(renderer): extract AnimationController and remove audio pass-throughs 2026-04-02 13:06:31 +03:00
social_panel.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
spellbook_screen.hpp feat: add insufficient-power tint to action bar spell slots 2026-03-12 06:01:42 -07:00
talent_screen.hpp feat: add confirmation dialog before spending talent points 2026-03-18 11:23:35 -07:00
toast_manager.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
ui_colors.hpp refactor: add kCastGreen/kQueueGreen constants, remove dead code 2026-03-27 15:01:12 -07:00
ui_constants.hpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
ui_helpers.hpp refactor(ui): extract shared helpers into ui_helpers.hpp 2026-04-03 03:45:39 -07:00
ui_manager.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
ui_services.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00
window_manager.hpp chore(application): extract appearance controller and unify UI flow 2026-04-01 20:59:17 +03:00