feat: categories and popups #171

Merged
enes merged 22 commits from 116-categories into staging 2024-12-12 16:37:38 +00:00
Collaborator

This PR adds the following:

  • update axios package (1.7.3 -> 1.7.9)
  • Generic alert popup
    • NSFW popup
      • Prompt that shows popup when enabling any of the NSFW options (when allowed, we save to local storage and no longer prompt)
    • Reset popup on mod page (create - clears all, edit - returns to previous state)
    • Reset popup on blog page (write - clears all, edit - returns to previous state)
  • utility for session storage
  • Categories labels logic
    • base predefined (hardcoded) categories.json in the src/assets/categories
    • Autocomplete form in the ModForm.tsx for submits and edits
    • Rendering of categories on mod page
    • Linking to game page from category segments (opens in the new tab)
      • links override active filter with a different visual representation
    • refactor ModFilter to accept children props
      • add category filtering to mods filter (optional)
    • Category Filter Popup component on game page
      • Indeterminate state showing hierarchy selection hint
    • Ability to add user defined categories (supports full hierarchy with > notation)
      • in filter popup (text input + 'Add' button)
      • in autocomplete (text input + 'Add' button)
      • by clicking Add in the combined list on new categories (that only existing on the mod but not locally or in assets)

Closes #116
Closes #137
Closes #168

This PR adds the following: - update axios package (1.7.3 -> 1.7.9) - Generic alert popup - NSFW popup - Prompt that shows popup when enabling any of the NSFW options (when allowed, we save to local storage and no longer prompt) - Reset popup on mod page (create - clears all, edit - returns to previous state) - Reset popup on blog page (write - clears all, edit - returns to previous state) - utility for session storage - Categories labels logic - base predefined (hardcoded) `categories.json` in the `src/assets/categories` - Autocomplete form in the `ModForm.tsx` for submits and edits - Rendering of categories on mod page - Linking to game page from category segments (opens in the new tab) - links override active filter with a different visual representation - refactor `ModFilter` to accept children props - add category filtering to mods filter (optional) - Category Filter Popup component on game page - Indeterminate state showing hierarchy selection hint - Ability to add user defined categories (supports full hierarchy with `>` notation) - in filter popup (text input + 'Add' button) - in autocomplete (text input + 'Add' button) - by clicking `Add` in the combined list on new categories (that only existing on the mod but not locally or in assets) Closes #116 Closes #137 Closes #168
enes added 18 commits 2024-12-12 13:36:42 +00:00
Author
Collaborator

WIP:

  • - Update labels and text for categories (popup lists)
  • - Reset popup on mod page (create - clears all, edit - returns to previous state)
WIP: - [ ] - Update labels and text for categories (popup lists) - [x] - Reset popup on mod page (create - clears all, edit - returns to previous state)
enes changed title from feat: categories and popups to wip: feat: categories and popups 2024-12-12 13:46:43 +00:00
enes added 1 commit 2024-12-12 15:22:06 +00:00
enes added 1 commit 2024-12-12 15:48:26 +00:00
enes changed title from wip: feat: categories and popups to feat: categories and popups 2024-12-12 15:50:20 +00:00
enes added 1 commit 2024-12-12 16:20:06 +00:00
enes added 1 commit 2024-12-12 16:29:57 +00:00
enes merged commit b27711ed6b into staging 2024-12-12 16:37:38 +00:00
Sign in to join this conversation.
No description provided.