Skip to content

Added set of new features#16

Open
Nyliar wants to merge 26 commits intoTaum:masterfrom
Nyliar:feature/internationalization
Open

Added set of new features#16
Nyliar wants to merge 26 commits intoTaum:masterfrom
Nyliar:feature/internationalization

Conversation

@Nyliar
Copy link
Copy Markdown

@Nyliar Nyliar commented Dec 24, 2025

Imported previous PR content to this one

  • Imported advanced search options (0 stats, Hand/Recall/Arrow effects)
  • Imported save/load searchs functions

Updated UI

  • Rework for more display options :
    • Moved filters to the right in a collapsible drawer. Added sections for parameters, also collapsible
    • Added light/dark mode
    • Added results visualization mode (row or grid, grid can count 2/3/4 results per row)
    • Added bigger card visualization popover on image click
    • Added active search summary under match count
  • Added reset filters button
  • Added "restore last search" button (eg: start a search, navigate to abilities list, go back to search. You can reapply your last search immediately if need be, or after a new page opening)
  • Updated trigger/condition/effect to display a list of matching abilities when typing. Manual typing is still possible and will ensure partial matching, while selecting an existing element in list will ensure full sentence match.

Added a set of new functions

  • Added internationalization, allowing user to switch between english or french
    • Updated crawler and database accordingly to be able to save / read french in cards names and effects
    • Added button to switch language
  • Added user management (login/logout/register/unregister), used for upcoming feature
  • Added save/load search
  • Added multi abilities search (combined per set of Trigger/Condition/Effect, up to 3 set at once, with "match any" or "match all" options. Important: the search for multi abilities with "match all" option goes through multiple steps for performance improvement. It applies first set as root search (normal one), then filter results according to following sets)
  • Added connection through google (option, needs to be enabled and configured)

And i think that's all. Been a busy week

Nyliar and others added 26 commits December 16, 2025 14:04
- Added i18n package
- Added fr/en translations resource files
- Added button for language switch + save to cookies
- Updated all UI to use resources rather than hardcoded text

Remains:
- Find a way to apply localization to trigger/condition/effect (might need crawler update)
Added new crawler, using public api rather than old private one:
- Query by cardFamilyId rather than unique one by one (reduce drastically the number of calls, as uniques can now be queried per batch of 30 cards)
- On the other hand, each query runs twice, one per local (en-us, fr-fr) to retrieve internalizations
- Added post process to parse and store abilities and parts as in english
- Added support in search results grid displaying logic to switch according to active language
- Added support in search engine for abilities filtering per locale
- Added support in abilities list for active language automatic switch

still got some perks to fix
Added loading gif while lang is being processed from cookie, preventing flash between langs (eg: default to english, then switch to fr)
…rch returns cards where FR lang is not filled, auto switch to en)
- Added assets for language selection buttons
- Added light/dark mode switcher
- Moved search filters on collapsible drawer on the right of the screen
- Added view modes (line vs grid, 2/3/4 elements per row in grid mode)
- Added filters recap under results count
- Added login, register, logout and unregister options
- Added corresponding pages and component for login and registration
- Added db tables to save search per user
- Added button to save or delete filters
- Added dialog to name the current save
- Changed icon from png to svg
…n more, allow to do some "exception" cases)

Allow for user connection with nickname or email rather than just email
- Modify UI to add the possibility to register a set trigger/condition/effect to apply to the search (up to a count of 3)
- Added buttons to apply search mode: any of the registered set, of all at once
- Updated search logic to handle multi ability filtering (two different functions are ran: for normal search/1 set, go to normal function, for multiple go the "search", as pure sql combinations can become too extensive. Thus we find by the first set, then filter again according to mode)
Updated readme and env to enable this option disabling if not needed / configured
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant