990 B
990 B
2025-12-17 Change Default Filter Flags
Objective
Change the default state of the "Ignore Basic Lands", "Ignore Commander Sets", and "Ignore Tokens" flags from checked (true) to unchecked (false) to match user preference.
Changes
-
Client-Side (
src/client/src/modules/cube/CubeManager.tsx):- Updated the initial state of the
filtersobject. - The defaults for
ignoreBasicLands,ignoreCommander, andignoreTokensare nowfalse. - This affects new users or sessions where
localStoragedoes not have saved preferences.
- Updated the initial state of the
-
Server-Side (
src/server/index.ts):- Updated the default fallback values for
filtersin the/api/packs/generateroute. - If no filters are provided in the request payload, the server now defaults these flags to
false.
- Updated the default fallback values for
Verification
- Verified that the variable names match the UI labels.
- Verified that the logic correctly implements "unchecked" by setting the boolean values to
false.