Commit graph

802 commits

Author SHA1 Message Date
063123d040 Merge branch 'main' into storefront-nuxt 2025-09-30 11:38:28 +03:00
d44bbdd920 Features: 1) Add support for filtering objects by SKU in get_object method; 2) Introduce handling for new feedbacks and do_feedback in additional and serializers;
Fixes: 1) Adjust import order in `viewsets.py` to match project convention; 2) Correct schema name from `seo` to `seo_meta` in documentation;

Extra: 1) Refactor SEO schemas import order for better readability; 2) Update `additional` field structure with consistent formatting.
2025-09-30 11:37:58 +03:00
f95f640a06 Features: 1) Optimized __init__ method in filters to handle annotation logic for rating and price fields, improving query efficiency.
Fixes: 1) Removed redundant annotation logic for `rating` and `price` fields from `qs` method, ensuring no duplication and enhancing maintainability.

Extra: Reorganized filter logic by consolidating annotation processes into the constructor; eliminated unused code for cleaner and more maintainable structure.
2025-09-29 11:35:42 +03:00
bb5911abe6 Features: 1) Introduced search fields with transliteration support across filters and Elasticsearch queries; 2) Simplified name filters in product, category, and brand filters by replacing custom logic with standard icontains; 3) Added process_system_query function with enhanced query capabilities.
Fixes: 1) Corrected inconsistent `QuerySet` type hints in vendors module; 2) Resolved string concatenation issue in `get_uuid_as_path` by prepending the path with "users/".

Extra: Updated Elasticsearch weighting factors and SMART_FIELDS configuration for better search relevance; removed unused methods and redundant comments in filters and documents; cleaned up migrations and adjusted query building logic.
2025-09-27 15:56:52 +03:00
cf268c8af3 Features: None;
Fixes: None;

Extra: 1) Update README.md with a new project description emphasizing simplicity and flexibility.
2025-09-22 15:18:43 +03:00
5f50281029 Merge branch 'main' into storefront-nuxt 2025-09-22 14:11:34 +03:00
1f68fa8b73 Features: 1) Add is_filterable field to Attribute model with migration; 2) Extend admin panel to include is_filterable in general_fields; 3) Update serializers to respect is_filterable for attribute querying; 4) Ensure object types enforce is_filterable in attribute filtering;
Fixes: None;

Extra: Improve `AlterUniqueTogether` constraint for attributes with `name` and `group`;
2025-09-22 14:11:15 +03:00
4a99d51077 Merge branch 'main' into storefront-nuxt 2025-09-19 17:05:29 +03:00
6f4e952b9b Features: 1) Added new language options to User model's language field in vibes_auth; 2) Introduced localized title and content fields to Post model in blog; 3) Implemented multilingual support for various fields in Attribute, AttributeGroup, AttributeValue, Brand, Category, CategoryTag, and Product models in core;
Fixes: None;

Extra: None;
2025-09-19 17:02:11 +03:00
700b55a9b6 Fixes: 1) Handle case where no feedback exists for an order product in resolve_feedback.
Extra: 1) Adjust logic for `resolve_feedback` to safely return the first feedback or `None`.
2025-09-18 15:06:17 +03:00
79714750fa Features: 1) Update resolve_feedback method to retrieve Feedback object based on order_product; 2) Enhance do_feedback method to handle existing feedback with better validation and support for returning feedback deletion count.
Fixes: 1) Fix handling of feedback deletion to return actual delete count rather than `None`.

Extra: 1) Refactor `do_feedback` method for clarity and improved logic flow; 2) Minor updates to error messages for consistency and accuracy.
2025-09-18 14:44:52 +03:00
17a2b01894 Features: 1) Add feedback field to OrderProduct type; 2) Introduce resolution logic for feedback in OrderProduct; 3) Extend allowed statuses for feedback creation to include FAILED;
Fixes: 1) Reorder imports in `core/utils` and `core/utils/seo_builders` sections; 2) Correct misplaced `Boolean` import in `object_types.py`;

Extra: 1) Update GraphQL schema descriptions for new and existing fields; 2) Minor reformatting of imports for consistency.
2025-09-18 14:26:56 +03:00
dea219f974 Fixes: 1) Remove redundant permission check for core.change_orderproduct in mutations.py;
Extra: None;
2025-09-18 14:10:06 +03:00
3d4df235f2 Merge branch 'main' into storefront-nuxt 2025-09-17 18:58:22 +03:00
018d8ca8e0 Features: 1) Add rating field to Product object with description and GraphQL schema; 2) Implement resolve_rating to fetch the rating value for Product;
Fixes: None;

Extra: 1) Update field lists in `Product` meta to include `rating`.
2025-09-17 18:58:07 +03:00
fe6316dae1 Features: 1) Add has_stock and has_price annotations for stock and price availability checks.
Fixes: 1) Correct conditional logic in `personal_order_only` annotation to use integers for comparison.

Extra: 1) Minor readability improvements in annotation definitions.
2025-09-16 15:46:25 +03:00
91b043ac4f Features: 1) Add personal_order_only ordering option; 2) Annotate queryset with personal_order_only calculated field; 3) Support custom ordering for price and personal_order_only.
Fixes: 1) Correct `rating` ordering logic to use cleaned field names without signs.

Extra: 1) Add missing import for `BooleanField`; 2) Refactor ordering parameter processing for clarity and efficiency.
2025-09-16 15:04:59 +03:00
87b62b32e8 Merge branch 'main' into storefront-nuxt
# Conflicts:
#	storefront/public/robots.txt
2025-09-15 14:23:54 +03:00
143cd6804b Features: 1) Add dynamic tree prefetching for ordered and random scenarios; 2) Introduce create_ordered_tree_prefetch with depth-limiting capability;
Fixes: 1) Simplify ordering logic by consolidating expressions for both parent and child nodes;

Extra: 1) Refactor query construction for improved readability; 2) Remove redundant variable `parent_order` and `child_order`.
2025-09-15 13:54:05 +03:00
7d2c85b03b Fixes: 1) Correctly append human_readable_id to meta_fields instead of mistakenly adding sku;
Extra: No changes outside this fix.
2025-09-15 13:43:05 +03:00
874fa8a40d Features: 1) Update localized strings for da_DK translations in vibes_auth; 2) Update localized strings for zh_Hans translations in core;
Fixes: 1) Correct `attributes` definition in `da_DK` translations; 2) Add missing localization details in `zh_Hans`;

Extra: Update project version metadata from 2.9.3 to 3.0.0.
2025-09-15 12:54:46 +03:00
492aeb85db Merge branch 'main' into storefront-nuxt 2025-09-13 15:45:33 +03:00
47750e98d0 Features: 1) Rename configuration file to nginx.conf;
Fixes:

Extra:
2025-09-13 15:45:21 +03:00
e639e49e7e Merge branch 'main' into storefront-nuxt
# Conflicts:
#	docker-compose.yml
2025-09-13 15:31:06 +03:00
ee6b011da8 Features: 1) 3.0.0 released
Extra: Check out storefront-nuxt branch!
2025-09-13 15:28:59 +03:00
10626b49d8 Features: 1) None;
Fixes: 1) Corrected `docker-compose.yml` to reference renamed Dockerfiles for `app`, `worker`, `stock_updater`, and `beat`;

Extra: 1) Renamed Dockerfiles to align with consistent naming convention.
2025-09-13 15:15:27 +03:00
a70967db73 Features: 1) Add support for dynamic EVIBES_BASE_DOMAIN and EVIBES_PROJECT_NAME environment variables in storefront Dockerfile.
Fixes: 1) Ensure `NODE_ENV` is consistently removed from Dockerfile and docker-compose.

Extra: 1) Simplify `NODE_ENV` handling in docker-compose configuration.
2025-09-13 15:12:55 +03:00
b68911006b Features: 1) Add Dockerfile for building and running storefront application; 2) Introduce multi-stage build with separation of development and runtime environments; 3) Include environment variable management and non-root user setup;
Fixes: 1) Update dependencies in `package-lock.json` with the latest versions to address compatibility issues;

Extra: 1) Remove unused dependencies and redundant package references from `package-lock.json` for optimization; 2) Improve scripts and permission setups in Dockerfile for clarity and security.
2025-09-13 14:13:26 +03:00
dc19e1f0a0 Merge remote-tracking branch 'origin/storefront-nuxt' into storefront-nuxt 2025-09-13 13:02:24 +03:00
282c0ae541 Merge branch 'main' into storefront-nuxt 2025-09-13 13:02:00 +03:00
0601e00064 Features: None;
Fixes: 1) Ensure `validated_data` fields are safely popped when creating a new user; 2) Add default empty string fallback for optional fields in `first_name` and `last_name`;

Extra: None;
2025-09-13 13:01:44 +03:00
e78d2fc652 Features: 1) Update robots.txt to include improved crawler directives for /profile while maintaining SEO sitemap and host details;
Fixes: 1) Remove redundant `robots_frontend.txt` file and replace with consolidated `robots.txt` from `storefront/public`;

Extra: 1) Standardize formatting of crawler directives in `robots.txt`.
2025-09-13 12:59:53 +03:00
9877633a2c Merge branch 'main' into storefront-nuxt 2025-09-13 12:54:17 +03:00
40ae24a04c Features: 1) Add SEO-related fragments to GraphQL queries including SEOMETA_FRAGMENT usage in brands, categories, and products queries; 2) Enable localized and dynamic SEO metadata handling in category pages with Vue composables and useSeoMeta; 3) Replace obsolete client-only wrapper with native Nuxt components like nuxt-marquee for enhanced rendering;
Fixes: 1) Correct file path imports by removing `.js` extensions in GraphQL fragments; 2) Resolve typo in `usePromocodeStore` composables to ensure consistent store usage; 3) Add missing `:type="submit"` to login form button for proper form submission handling;

Extra: 1) Remove unused `.idea` and `README.md` files for repository cleanup; 2) Delete extraneous dependencies from `package-lock.json` for streamlined package management; 3) Refactor category slug handling with improved composable logic for cleaner route parameters and SEO alignment.
2025-09-13 12:53:06 +03:00
2f98354f35 Features: 1) Add slug field to BrandFilter with filtering and ordering support; 2) Implement send_promocode_created_email task using a new email template; 3) Create signal to notify users upon promocode creation.
Fixes: None;

Extra: Refactor imports in `signals.py` and `emailing.py`; Add formatting and responsive styles for email template.
2025-09-09 16:27:04 +03:00
2f4cceaa6a Features: 1) Add hreflang to metadata response across viewsets; 2) Update GraphQL schema to use hreflang as a string instead of a list.
Fixes: 1) Correct `hreflang` field type in serializers and GraphQL object types.

Extra: Refactor redundant `hreflang` handling; ensure uniform `LANGUAGE_CODE` usage throughout.
2025-09-09 15:30:05 +03:00
6539a63f4f Features: 1) Add slug field to Brand GraphQL object type;
Fixes: 1) None;

Extra: 1) None;
2025-09-09 14:21:04 +03:00
81b2da33d2 Features: 1) Prevent CRM trigger for instances with "PENDING" status;
Fixes: 1) Adjust `.dockerignore` and `.gitignore` to replace `db_backups/` with `backups/`;

Extra: None;
2025-09-08 21:36:58 +03:00
4d9e276f2b Features: 1) Add handling for multiple AMO CRM providers in gateway initialization; 2) Suppress CRMException in CRM-related signal processing;
Fixes: 1) Correct provider name from "amo" to "AmoCRM";

Extra: 1) Remove unused `time` import and redundant token caching logic; 2) Add missing CRMException import to signals; 3) Minor code cleanup and readability improvements;
2025-09-08 04:56:09 +03:00
2c67af969e Features: 1) Add STATUS_MAP dictionary to map status codes in AmoCRM; 2) Update update_order_status method to use STATUS_MAP for status mapping.
Fixes: 1) Simplify retrieval of `OrderCrmLink` to use `get()` instead of `filter().first()`; 2) Eliminate redundant `Order` lookup by utilizing `link.order`.

Extra: Refactored code to enhance readability and efficiency in status update logic.
2025-09-07 03:06:06 +03:00
0ca0756e50 Features: 1) Add support for authorization code grant type in the Amo gateway.
Fixes: 1) Improve validation logic to ensure only one default CRM provider within the model.

Extra: 1) Replace CRM object string representation to use `name` instead of `crm_lead_id`; 2) Refactor token caching to improve reliability and readability.
2025-09-07 03:03:29 +03:00
3769482f56 Features: 1) Add _create_contact and _get_customer_name to handle customer-related details; 2) Introduce process_order_changes to streamline order processing.
Fixes: 1) Correct logging format for CRM integration error messages.

Extra: Remove unused fields `pipeline_id` and `stage_map`; refine `_build_lead_payload`; enhance error logging with stack traces.
2025-09-07 02:33:54 +03:00
23e4611c5e Features: 1) Add readonly_fields for uuid, modified, and created in CustomerRelationshipManagementProvider; 2) Add additional readonly_fields for OrderCrmLink;
Fixes: 1) Fix email validation to properly handle `self.instance` checks in serializers;

Extra: 1) Remove unnecessary blank lines and reformat code for better readability; 2) Consolidate migration field definitions to a single line for cleaner diff;
2025-09-07 01:30:03 +03:00
3cd12423fe Features: 1) Add migration to update verbose_name and verbose_name_plural for CustomerRelationshipManagementProvider.
Fixes: 1) Correct `verbose_name` and `verbose_name_plural` in `CustomerRelationshipManagementProvider` model.

Extra: 1) None.
2025-09-07 01:16:48 +03:00
a4ca20c8be Features: 1) Add CustomerRelationshipManagementProvider model with fields for integration details and attributes; 2) Add OrderCrmLink model to associate orders with CRM providers; 3) Register both models (CustomerRelationshipManagementProvider and OrderCrmLink) in the admin interface;
Fixes: 1) Correct verbose_name usage for `attributes` field in an existing model;

Extra: 1) Adjust admin field grouping and formatting consistency for readability.
2025-09-07 01:06:36 +03:00
9f9d58e471 Merge branch 'feature/crms-integration' 2025-09-07 00:11:06 +03:00
d203095c65 Features: 1) Integrated CRM trigger functionality for Order model, allowing CRM updates during state changes; 2) Added handling for multiple or missing OrderCrmLink entries within upsert_order; 3) Introduced fns_api_key handling in CRM configurations.
Fixes: 1) Resolved malformed phone number issue in serializer when `instance` is unavailable; 2) Corrected relation field naming for `OrderCrmLink` (`order_uuid` to `order`); 3) Ensured only one default CRM provider can exist.

Extra: 1) Refactored `is_business` logic with error handling; 2) Improved logging for CRM integration errors; 3) Added `integration_location` and `default` fields to CRM configuration model.
2025-09-07 00:09:29 +03:00
acd1e3b407 Features: 1) Add request schema using UserSerializer for user creation endpoint; 2) Implement validation for attributes in user serializer, ensuring it's a dictionary and requiring business_identificator for business accounts;
Fixes: None;

Extra: None;
2025-09-06 23:22:31 +03:00
99288ebbc8 Features: 1) Add conditional ordering for children_qs to handle random child order; 2) Enable prefetch optimization by adding prefetch_related(None).
Fixes: None;

Extra: Minor refactor in `children_qs` assignment for clarity.
2025-09-06 03:09:38 +03:00
752f96fcdd Features: 1) Introduce AmoOrderGateway to handle interaction with AMO CRM; 2) Add models CustomerRelationshipManagementProvider and OrderCrmLink to support CRM integration; 3) Implement any_crm_integrations utility function to check CRM provider existence;
Fixes: None;

Extra: 1) Add `URLField` import in models.py; 2) Adjust `save` method signature in models.py to improve typing consistency; 3) Raise custom `CRMException` for CRM setup errors;
2025-09-06 03:07:26 +03:00