Commit graph

187 commits

Author SHA1 Message Date
7f761f751a Fixes: 1) Correct token decoding in user activation check.
Extra: None.
2025-05-28 15:26:53 +03:00
cf721a50fa Features: 1) Add activation_error variable for enhanced error handling; 2) Raise detailed exception in debug mode during user activation failure;
Fixes: 1) Capture and store specific activation errors for debugging purposes;

Extra: 1) Minor cleanup in exception handling logic;
2025-05-28 15:23:59 +03:00
34616d6cd5 Fixes: 1) Correct query order to call nocache before get in vibes_auth/viewsets.py;
Extra: None;
2025-05-28 15:22:19 +03:00
0d9df63ca7 Features: None;
Fixes: 1) Ensure user retrieval bypasses caching using `.nocache()` method;

Extra: None;
2025-05-28 15:14:43 +03:00
861010ae86 Features: 1) Add detailed error traceback in activation error response;
Fixes: 1) Log complete error traceback for debugging activation failures;

Extra: 1) Minor code adjustments and variable addition for error handling;
2025-05-28 14:59:24 +03:00
4e269dc801 Features: 1) Add BulkOrderAction mutation to handle bulk addition/removal of order products; 2) Introduce bulk_add_order_products and bulk_remove_order_products endpoints in viewset; 3) Add BulkAddOrderProductsSerializer and BulkRemoveOrderProductsSerializer.
Fixes: 1) Update `remove_product` model method to handle zero quantity removal; 2) Correct permission check in order product removal.

Extra: 1) Add `autocomplete_fields` for products in admin; 2) Enhance docs with bulk add/remove schemas; 3) Various code refactorings and minor tweaks for improved maintainability.
2025-05-28 14:48:16 +03:00
6e5a008802 Features: None;
Fixes: None;

Extra: 1) Removed redundant "attribute" filter in AttributeValueAdmin to simplify list filters;
2025-05-28 13:04:33 +03:00
ef5cecedda Features: 1) Updated localization file for Czech language (cs_CZ) with extended translations and modifications;
Fixes: None;

Extra: 1) Binary format changes observed in django.mo file, potentially related to recompiled translations;
2025-05-27 16:00:32 +03:00
3ad079b3d9 Features: 1) Extra password validation;
Fixes: 1) ;

Extra: 1) Minor adjustments in binary formatting of the localization file content.
2025-05-27 15:48:40 +03:00
a28ce41394 Features: ;
Fixes: 1) Update environment variable references for STATIC_URL and MEDIA_URL to use 'EVIBES_BASE_DOMAIN';

Extra: ;
2025-05-27 10:56:49 +03:00
008ab92f95 Features: 1) Filter recently viewed products by active status in serializer;
Fixes: 1) Correct default value in `recently_viewed` property to handle cache miss;

Extra: 1) Inline simplification of serializer logic for recently viewed products.
2025-05-26 22:16:32 +03:00
ecad0561a5 Features: None;
Fixes: 1) Remove redundant slashes from CODEOWNERS paths for blog, core, evibes, payments, scripts, vibes_auth, and storefront directories;

Extra: Simplified and standardized path formatting in CODEOWNERS.
2025-05-26 22:13:35 +03:00
419595a10a Features: 1) Assign specific ownership to Dockerfile.app and Dockerfile.storefront.
Fixes: 1) Update CODEOWNERS to replace ambiguous "@default-owner" with "@@owner"; 2) Correct assignments for docker-compose.yml, .gitignore, .dockerignore, and nginx to "@@maintainer".

Extra: Standardized ownership definitions for improved clarity and maintainability.
2025-05-26 18:19:34 +03:00
4533733b96 Merge branch 'storefront' into 'main'
* Features: 1) Add initial storefront configuration including app naming, local storage, and supported locales; 2) Introduce global styles with variables, mixins, and modules; 3) Implement router with locale-based navigation and home page setup; 4) Add Pinia stores for authentication and cart management; 5) Provide GraphQL queries for wishlist, categories, products, orders, languages, company info, and documents; 6) Add GraphQL mutations for authentication, cart, contact, deposit, and wishlist operations; 7) Include SVG assets for eye icons; 8) Add localization file for "en-gb" with buttons, errors, and fields text;
2025-05-26 18:02:48 +03:00
d2deb25e33 Set up storefront with localization, global styles, and GraphQL integration 2025-05-26 18:02:48 +03:00
afcf8c9bd2 Features: None;
Fixes: 1) Update environment variable names to use 'EVIBES_' prefix for consistency;

Extra: None;
2025-05-26 17:40:34 +03:00
72ece668d3 Features:
Fixes:

Extra: 1) Update ruff exclude list to include `static` and `storefront`; 2) Update environment variable names in README for consistency.
2025-05-26 17:36:12 +03:00
c6664bc640 Features:
Fixes:

Extra: 1) Correct capitalization of CODEOWNERS entries for @SaVBaD.
2025-05-26 16:14:45 +03:00
d86a6ed3c8 RUFF 2025-05-26 16:12:59 +03:00
1219067721 Features:
Fixes:

Extra: 1) Correct build key order in docker-compose.yml for app, worker, beat, and flower services;
2025-05-26 16:03:01 +03:00
165f7be0ae Features: 1) Add support for specifying build context in all service definitions of docker-compose.yml;
Fixes: 1) Correct build key structure for Dockerfile definitions across services;

Extra: Code cleanup for consistency in unused storefront service comments;
2025-05-26 15:59:49 +03:00
f16c03d2a6 Features: 1) Expand .gitignore to include comprehensive rules for Python, Node, Docker, IDEs, test artifacts, and distribution files;
Fixes: None;

Extra: 1) Add comments and structure to `.gitignore` for improved readability and maintainability; 2) Update placeholder comments in `docker-compose.yml` for future services.
2025-05-26 15:54:43 +03:00
83b86a81f4 Features: 1) Expand .gitignore to include comprehensive rules for Python, Node, Docker, IDEs, test artifacts, and distribution files;
Fixes: None;

Extra: 1) Add comments and structure to `.gitignore` for improved readability and maintainability; 2) Update placeholder comments in `docker-compose.yml` for future services.
2025-05-26 15:40:14 +03:00
8961029176 Features: 1) Add Dockerfile.app with author label for application container; 2) Add CODEOWNERS file for ownership management; 3) Introduce Dockerfile.storefront for storefront container; 4) Add .gitkeep file for storefront folder;
Fixes: 1) Update `docker-compose.yml` to use `Dockerfile.app` instead of default build context;

Extra: 1) Add commented-out `storefront` service in `docker-compose.yml` for potential future use; 2) Minor cleanup and structuring of Docker setup;
2025-05-26 15:34:45 +03:00
7a1853ce02 Features: 1) Add @extend_schema_field for get_recently_viewed to improve OpenAPI schema generation.
Fixes: 1) Correct logic in `get_recently_viewed` method to properly handle `recently_viewed` items.

Extra: 1) Add missing import for `drf_spectacular.utils.extend_schema_field`; 2) Update method docstring for clarity; 3) Adjust typing in `get_recently_viewed` to use `List[Dict[str, Any]]`.
2025-05-26 15:17:49 +03:00
d7843f0bbf Features: 1) Add 'recently_viewed' field to user serializer;
Fixes:

Extra: 1) Remove 'created' field from user
2025-05-26 15:12:21 +03:00
71dd240505 Features: 1) Add 'recently_viewed' field to user serializer;
Fixes:

Extra:
2025-05-26 15:11:33 +03:00
475b0a0c94 Features: 1) Add support for 'create' action with explicit 'ALLOW' flag in AddressViewSet; 2) Introduce refined permission handling with scoped user actions and public model visibility checks in EvibesPermission.
Fixes: 1) Ensure 'user' is set to authenticated user in AddressSerializer.create method.

Extra: 1) Refactor EvibesPermission for clarity and comprehensive action handling; 2) Add detailed class-level docstring for EvibesPermission; 3) Simplify queryset filtering logic with USER_SCOPED_ACTIONS and explicit permission checks.
2025-05-26 15:06:24 +03:00
89f6594751 Features: 1) Add RecentProductConnection to support recently viewed products in GraphQL; 2) Implement recently_viewed field in UserType with reverse-chronological product ordering; 3) Add recently_viewed field to UserSerializer and return data with ProductSimpleSerializer.
Fixes: 1) Fix `resolve_recently_viewed` to handle empty UUIDs and avoid breaking queries.

Extra: Refactor imports in `graphene/object_types.py` and `serializers.py` for better clarity; Adjust minor formatting in `TokenObtainSerializer`.
2025-05-26 14:54:21 +03:00
f76b000e07 Features: 1) Update recently_viewed to use GenericScalar for UUIDs;
Fixes: 1) Correct resolve_recently_viewed logic to ensure default behavior;

Extra: 1) Minor cleanup in resolve_recently_viewed for simplified return logic;
2025-05-23 06:56:57 +03:00
41f8cf55b5 Features: 1) Allow skipping address validation for fully digital products;
Fixes: 1) Correct improper logic when checking for missing addresses;

Extra: 1) Minor structural improvement to conditional logic for clarity;
2025-05-22 18:30:24 +03:00
880d7edda9 Features: 1) Add "slug" field to Category model with AutoSlugField for unique slugs; 2) Ensure slugs are populated during migration with robust error handling;
Fixes: None;

Extra: 1) Adjust migration order for proper execution;
2025-05-22 14:26:48 +03:00
fefa4746df Features: 1) Add "autocomplete" action to permissions checks.
Fixes: None;

Extra: None;
2025-05-22 00:36:32 +03:00
a8b1925aae Features: 1) Add query parameters q and limit to address autocomplete schema for enhanced filtering; 2) Update 'create' endpoint schema to use AddressCreateSerializer;
Fixes: 1) Replace `AddressAutocompleteInputSerializer` with `AddressCreateSerializer` in imports and references;

Extra: None;
2025-05-21 20:04:12 +03:00
1520142d6f Features: 1) None;
Fixes: 1) Ensure user.save() is called after setting a new password;

Extra: None;
2025-05-21 16:32:21 +03:00
cb66f217ac Features: ;
Fixes: 1) Correct DEEPL_API_URL to use the v2/translate endpoint;

Extra: ;
2025-05-21 15:34:54 +03:00
88133b2f93 Features: 1) Update DeepL API URL to standard endpoint in deepl_translate.py and translate_fields.py;
Fixes: 1) None;

Extra: 1) Replaced deprecated API-free URL with standard DeepL API URL for consistency.
2025-05-21 15:31:08 +03:00
797e56a0cd Features: 1) Add translate_fields management command for field translations via DeepL; 2) Add slug population script in 0022_category_slug migration.
Fixes: 1) Update locale codes in `deepl_translate.py` to lowercase for consistency.

Extra: 1) Minor refactoring to ensure compatibility and avoid undefined behavior in slug population logic.
2025-05-21 14:27:38 +03:00
a6bbbc6101 Features: 1) Add CaseInsensitiveListFilter for category_slugs to filter by category slug;
Fixes:

Extra:
2025-05-21 12:39:01 +03:00
71cb0fc2db Features: 1) Add AutoSlugField "slug" to Category model with unique and auto-populating behavior; 2) Include "slug" field in CategoryFilter and relevant serializers (detail and simple); 3) Add "slug" to GraphQL object type for categories;
Fixes: None;

Extra: Add migration for new "slug" field in Category model.
2025-05-21 12:37:30 +03:00
6678b84de2 Features: 1) Add forwards and backwards migration logic for language field normalization using Lower; 2) Enhance allowed choices formatting in language field for improved readability;
Fixes: None;

Extra: 1) Minor code cleanup and reorganization in migration file;
2025-05-21 10:10:26 +03:00
6b71695d86 Features: ;
Fixes: ;

Extra: 1) Standardize flag file naming convention by renaming files to lowercase locale codes (e.g., ar-AR.png to ar-ar.png).
2025-05-20 22:35:22 +03:00
4991828b9b Features: 1) Updated user language field in vibes_auth to include more language options with a default set to 'en-gb';
Fixes: 1) Standardized field names in core models by renaming locale-specific fields to lowercase format for consistency (e.g., name_en_GB to name_en_gb);

Extra: Applied migrations to reflect these changes in vibes_auth and core apps for smoother db schema alignment.
2025-05-20 22:08:04 +03:00
110c2828ae Features: ;
Fixes: ;

Extra: 1) Remove unused `LocaleMiddleware` and replace with `CustomLocaleMiddleware`.
2025-05-20 21:42:04 +03:00
123459ede5 Features: 1) Add CustomLocaleMiddleware for language normalization and activation.
Fixes: None;

Extra: 1) Add CustomLocaleMiddleware to middleware stack in base settings; 2) Add missing import for LocaleMiddleware and translation module; 3) Refactor locale handling by extending LocaleMiddleware.
2025-05-20 21:39:07 +03:00
9d7efa310a Features: 1) None;
Fixes: 1) Remove unused `GrapheneLocaleMiddleware` and `CustomLocaleCommonMiddleware` from middleware stack; 2) Remove unused `get_language_from_header` import and related translation logic;

Extra: 1) Clean up settings and middleware files by removing redundant locale handling logic; 2) Minor formatting adjustments for consistency.
2025-05-20 21:06:20 +03:00
b18c75ccd2 Features: None;
Fixes: 1) Correct "name" field reference by replacing dynamic LANGUAGE_CODE-based key;
Extra: 1) Remove unnecessary get_prepopulated_fields method; 2) Minor cleanup of admin field logic;
2025-05-20 20:34:11 +03:00
b4b52897fb Features: 1) Dynamically adjust the 'name' field in admin based on LANGUAGE_CODE.
Fixes: 1) Add missing import for LANGUAGE_CODE from settings.

Extra: None.
2025-05-20 20:24:25 +03:00
c839c8a211 Features: ;
Fixes: ;

Extra: 1) Add `# type: ignore` comments to admin site unregister and register calls for typing compliance;
2025-05-20 19:46:53 +03:00
57a6654c89 Features: 1) Add return type annotations for admin actions.
Fixes: 1) Correct translation wrapping by converting to strings with str().

Extra: 1) Minor refactoring and cleanup in admin action methods for clarity.
2025-05-20 19:46:10 +03:00