6c8e2b34234ae9536a74e15783bc4af765b8f686
- Refactor useActiveBans to use useListData generic hook instead of inline state management - Refactor useBans to use useListData generic hook for consistency - Add comprehensive 'API Usage Layering' section to Web-Development.md documenting: - Tier 1: API Functions (pure wrappers around HTTP calls) - Tier 2: Reusable Generic Hooks (useListData, useConfigItem for common patterns) - Tier 3: Domain Hooks (compose Tier 2 with domain-specific logic) - Tier 4: Components (receive data/actions via props or context) - Document pattern for action callbacks with automatic data refresh - List anti-patterns to avoid for future consistency These changes improve composability, testability, and reduce code duplication by establishing a clear convention for data-fetching patterns across the frontend. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Description
No description provided
Languages
Python
61.2%
TypeScript
24.9%
HTML
8.4%
Markdown
2.5%
Roff
0.9%
Other
2%