Commit graph

160 commits

Author SHA1 Message Date
4e89b2aeec Fixes: 1) Correct improper function scope for user.save in UpdateUser mutation;
Extra: 1) Minor code readability adjustment.
2025-12-29 17:36:17 +03:00
a91f8e30d3 Features: 1) Add value_type field to FilterableAttributeType for enhanced attribute customization;
Fixes: 1) Remove unused import of `i18n_patterns` in `urls.py`; 2) Update `coverage`, `psutil`, and `types-psutil` dependencies to latest stable versions in `pyproject.toml` and lock file for improved package compatibility;

Extra: 1) General housekeeping and dependency synchronization in `pyproject.toml` and lock file.
2025-12-29 16:04:41 +03:00
28f6e4d78f - Enhance maintenance page: add dynamic theme support, multilingual support, and improved 3D text rendering logic.
- Simplify URL configuration by replacing i18n patterns with direct path handling.
2025-12-28 17:05:20 +03:00
646fc5e1d7 Refactor attribute handling in vendor module: update type annotations and simplify get_or_create logic. 2025-12-27 01:08:56 +03:00
b6d38d07e5 - Improve pagination logic: add default and validation for page size, fix get_paginated_response behavior.
- Update type annotations in `check_translated` command for app config handling.
- Pin and upgrade dependencies in `pyproject.toml` for consistency and latest features.
2025-12-25 14:50:37 +03:00
e9219c8918 Fixes: 1) Correct invalid return type in get_children; 2) Update default return value from {} to [];
Extra: 1) Adjust inline comments for better clarity; 2) General cleanup in `simple.py`.
2025-12-22 13:53:04 +03:00
95fd17bb43 Features: DRF docs I18N 2025-12-21 02:11:51 +03:00
29fb56be89 Features: 1) Add async and sync capabilities to CamelCaseMiddleWare; 2) Include OpenAPI support for Enum name overrides in DRF settings; 3) Integrate OpenAPI types in DRF views for improved schema accuracy.
Fixes: 1) Correct `lookup_field` to `uuid` in various viewsets; 2) Replace `type=str` with `OpenApiTypes.STR` in path parameters of multiple DRF endpoints; 3) Add missing import `iscoroutinefunction` and `markcoroutinefunction`.

Extra: 1) Refactor `__call__` method in `CamelCaseMiddleWare` to separate sync and async logic; 2) Enhance documentation schema responses with precise types in multiple DRF views.
2025-12-19 17:27:36 +03:00
dc7f8be926 Features: 1) None;
Fixes: 1) Add `# ty: ignore` comments to suppress type errors in multiple files; 2) Correct method argument annotations and definitions to align with type hints; 3) Fix cases of invalid or missing imports and unresolved attributes;

Extra: Refactor method definitions to use tuple-based method declarations; replace custom type aliases with `Any`; improve caching utility and error handling logic in utility scripts.
2025-12-19 16:43:39 +03:00
13e7af52aa Features: 1) Improved request processing in middleware by adding mutable QueryDict implementation; 2) Extended type annotations across various modules for enhanced type safety; 3) Refined JWT token lifetime configuration for environment-specific logic.
Fixes: 1) Addressed missing or incorrect imports and type hints with `# ty:ignore` markers; 2) Fixed search queryset error handling in filters module; 3) Resolved issues in viewsets with updated `@action` method usage.

Extra: Removed unused classes and dependencies (e.g., `BaseMutation`, `basedpyright`, and related packages); streamlined GraphQL mutation implementations; cleaned up unused arguments in model `save` methods.
2025-12-19 15:17:17 +03:00
c3b4becc76 Features: 1) Add "is_updatable" to list_filter and additional_fields in admin configuration;
Fixes: None;

Extra: None;
2025-12-18 21:21:28 +03:00
e852d6adf2 Features: 1) Add is_updatable field to Product model with migration; 2) Introduce check_updatable method in AbstractVendor to validate product updatability; 3) Define ProductUnapdatableError for handling non-updatable product logic;
Fixes: none;

Extra: none;
2025-12-18 21:19:01 +03:00
fdd42b8531 Features: I thought that's gonna be like 2 weeks stuff 2025-12-18 19:24:10 +03:00
5f5274f9cd Features: 1) Add detailed type annotations across middleware, tests, and utility code; 2) Integrate stricter type-checking configurations in pyproject.toml; 3) Enhance middleware functionality with additional type-safe logic.
Fixes: 1) Correct default values and type handling in util constructors; 2) Resolve missing or ambiguous `cast` operations for dynamic typing in tests and views; 3) Address potential issues with fallback/default handling in middleware.

Extra: 1) Refactor test cases to ensure stricter adherence to typing hints and valid contracts; 2) Update docstrings to align with new type annotations; 3) Cleanup unused imports and add comments for improved maintainability.
2025-12-18 16:44:13 +03:00
a81f734e23 Features: (1) None;
Fixes: (1) Removed all `# type: ignore` annotations across the codebase; (2) Fixed usage of Django Model methods by eliminating unnecessary `# type: ignore` directives; (3) Adjusted usage of functions like `get()` to align with method expectations, removing incorrect comments;

Extra: (1) Deleted `pyrightconfig.json` as part of migration to a stricter type-checked environment; (2) Minor code cleanup, including formatting changes and refactoring import statements in adherence to PEP8 recommendations.
2025-12-18 15:55:43 +03:00
dd8652df96 Features: 1) Update vendor object creation to use fully qualified module path;
Fixes: 1) Correct path for vendor module resolving import issue;

Extra: 1) Improve readability of vendor initialization logic;
2025-12-17 16:02:35 +03:00
890957197c Extra: RUFF 2025-12-15 20:29:02 +03:00
845ac8853d Extra: 1) I18N 2025-12-10 22:21:36 +03:00
09fdc7a585 Extra: 1) I18N 2025-12-10 21:51:41 +03:00
625fe6e350 Features: 1) Fallback to default avatar image in avatar_url method; 2) Added header component for admin dashboard template; 3) Improved layout sections in admin dashboard templates for consistent spacing;
Fixes: 1) Prevent `.initialized` file creation in debug mode;

Extra: 1) Refactored and reorganized admin dashboard templates for better readability and maintainability.
2025-12-10 21:44:17 +03:00
76cea49c06 Features: 1) Streamline component inclusion in admin dashboard; 2) Simplify KPIs and sales data layout; 3) Revise product list card structure for better readability and maintainability;
Fixes: 1) Remove redundant breaks and unnecessary div wrappings; 2) Simplify filters component by eliminating unnecessary card wrapper;

Extra: Refactor and clean up admin dashboard templates for decluttered structure and improved code consistency;
2025-12-10 20:25:54 +03:00
d891000b19 Features: None;
Fixes: None;

Extra: 1) Remove redundant comments from `_kpis.html`; 2) Exclude unused `_income_overview.html` include from `index.html`; 3) Comment out GA/Yandex/Ads integration placeholder in `_filters.html`.
2025-12-10 19:46:00 +03:00
5962fb1145 Features: 1) Add timeframe filter component in the admin dashboard; 2) Create low stock products widget with tailored design; 3) Extend KPI section to include dynamic data (GMV, Orders, AOV, Net Revenue, Refund Rate); 4) Allow timeframe selection functionality for metrics and charts.
Fixes: 1) Add missing `constance.config` import in `views.py`; 2) Replace hardcoded timeframe logic with configurable period parsing; 3) Ensure proper handling of empty datasets for low stock and KPI calculations.

Extra: Refactor dashboard templates to improve layout and add contextual adjustments (e.g., grid updates, daily sales title); Optimize cache handling for dashboard metrics; Cleanup unused legacy dashboard variables.
2025-12-10 19:33:18 +03:00
d03b6b0ec9 Features: 1) Add avatar_url property to User model.
Fixes: 1) Restore correct imports order in `engine/vibes_auth/models.py`.

Extra: 1) Adjust formatting and grouping for clarity in imports section.
2025-12-10 18:38:40 +03:00
9fe433221a Fixes: 1) Add missing import for UserChangeForm from django.contrib.auth.forms. 2025-12-10 16:37:30 +03:00
2507eecc55 Features: 1) Add password field using ReadOnlyPasswordHashField in UserForm; 2) Enable unfold_markdown in base settings;
Fixes: None;

Extra: None;
2025-12-10 15:55:24 +03:00
c6e60d1f3e Features: 1) Replace ModelForm with UserChangeForm in UserForm; 2) Add add_form and change_password_form to UserAdmin; 3) Add formfield override for TextField with MarkdownWidget in blog admin; 4) Add dropdown menu definitions in Unfold settings.
Fixes: 1) Add missing import for `AdminPasswordChangeForm`, `UserCreationForm`, and `MarkdownWidget`.

Extra: 1) Add `django-unfold-markdown` as a dependency in `uv.lock` and `pyproject.toml`; 2) Remove redundant dropdown configuration from Unfold settings.
2025-12-10 15:33:58 +03:00
8295d3f5ab Features: None;
Fixes: 1) Correct type hint in `validate` method of `serializers.py`; 2) Fix incorrect use of `uuid` by converting to string in various email tasks across `signals.py` and `viewsets.py`;

Extra: None;
2025-12-08 21:56:32 +03:00
88abb002f1 Extra: 1) I18N update compiled 2025-12-08 11:00:00 +03:00
0697c42f3d Extra: 1) I18N update 2025-12-08 10:58:35 +03:00
87ba06ff0c Features: 1) Add LimitsType GraphQL object and payments_limits query to expose deposit limits; 2) Introduce LimitsSerializer and LimitsAPIView for retrieving minimal and maximal deposit amounts; 3) Implement get_limits utility to calculate deposit boundaries dynamically;
Fixes: 1) Add missing `LimitsSerializer` import in `drf.views` module;

Extra: 1) Update `.gitignore` to exclude `queries`; 2) Refactor schema and views to integrate new limits functionality.
2025-12-08 10:48:22 +03:00
cb096a35df Features: 1) Add new permissions for "delete_brand" and "delete_category" to head_stock_manager_permissions; 2) Extend permissions with "delete_address", "change_balance", and "delete_attachment";
Fixes: (none);

Extra: (none);
2025-12-04 16:12:17 +03:00
a96aab33cb Features: 1) Add initialization timestamp tracking to prevent redundant instance initialization; 2) Include .initialized file in .gitignore for production environments;
Fixes: 1) Remove unnecessary pragma from `install_aiohttp_webhook` definition;

Extra: 1) Add logging for `.initialized` read/write failures; 2) General cleanup and formatting improvements in initialization logic;
2025-12-03 13:33:04 +03:00
9034551502 Features: 1) Add configurable options for BACKUP_DATABASE and BACKUP_MEDIA in system settings; 2) Enhance backup_task to handle selective backups and return status message;
Fixes: 1) Add exception handling for invalid image file dimensions in `validators.py`;

Extra: 1) Update settings categories to include new system options; 2) Improve code clarity in `backup_task` and `validators.py`.
2025-12-01 12:38:23 +03:00
5db4c3be37 Fixes: 1) Improve error logging for vendor integration failures by including the integration path.
Extra: 1) Reformat logger.warning message for better readability.
2025-12-01 11:29:48 +03:00
fabb3b5866 Features: 1) Add type annotations in validate method of serializers for improved clarity.
Fixes: 1) Correct type signature in `validate` method for serializers.

Extra: 1) Remove redundant worker log format configurations in Celery; 2) Simplify log message format in log configuration for conciseness.
2025-12-01 09:55:15 +03:00
43ece8c25c Features: 1) Add language validation and fallback for users without proper language settings in initialize.py; 2) Enhance user update mutation with improved error handling and dynamic attribute support; 3) Integrate is_safe_key validation in user attribute updates for better security.
Fixes: 1) Add missing imports for `settings`, `Q`, and `is_safe_key`; 2) Correct user permissions keys in `lists.py` utility.

Extra: 1) Refactor `UpdateUser` mutation for cleaner structure and unified error handling; 2) Format and tidy up list declarations and exception handling for clarity.
2025-11-25 14:26:14 +03:00
acd2f752b9 Features: 1) Add retrieve_user argument handling with pop for enhanced parameter management in serializers;
Fixes: 1) Remove redundant `retrieve_user` initialization from constructors;

Extra: Minor code cleanup for consistency and readability in serializers.
2025-11-25 11:28:30 +03:00
c581534a3b Features: 1) Introduce retrieve_user attribute in TokenObtainPairSerializer initializer;
Fixes: None;

Extra: None;
2025-11-24 20:14:54 +03:00
ecd6e5ad9f Features: 1) Add retrieve_user flag to serializers for optional user data retrieval; 2) Allow flexibility in handling user data as UUID or serialized object;
Fixes: 1) Adjust `mutate` methods in GraphQL mutations to support `retrieve_user` flag; 2) Ensure proper fallback to UUID handling when `retrieve_user` is set to `False`;

Extra: 1) Refactor serializers and mutations for improved customization and reduced overhead; 2) Add comments and clean up redundant code.
2025-11-24 16:13:42 +03:00
c5fa95d77f Features:
Fixes: 1) Correct indentation issue in `return` statement within vendor response save logic;

Extra: None
2025-11-24 12:26:29 +03:00
357e7b7ee8 Features:
Fixes: 1) Remove unnecessary space before closing parenthesis in `User.objects.get(...)` call;

Extra: None
2025-11-18 22:23:03 +03:00
770d3a935d Features: None
Fixes: 1) Update model type references from `payments.models.Transaction` to `engine.payments.models.Transaction`; 2) Update model type references from `core.models.Order` to `engine.core.models.Order`;

Extra: Consistent namespace fix across multiple files; no functional changes.
2025-11-18 12:51:51 +03:00
b8b7dcc1d1 Features:
Fixes: 1) Replace `Count("id")` with `Count("pk")` in commerce queries; 2) Fix `User.objects.get(...)` call by using `uuid` directly instead of accessing nested `serializer.validated_data["user"]["uuid"]`; 3) Add missing closing parenthesis in `VerifyJSONWebToken` call.

Extra: Minor code cleanup and consistency in UUID access pattern across mutations.
2025-11-18 12:34:55 +03:00
435b7305d7 Features: 1) Add personal_orders_only to the serialized fields for Product;
Extra: 1) Added field to match backend model state;
2025-11-18 12:07:36 +03:00
b40f7e641f Features: 1) No new features; only formatting adjustments for line wrapping in documentation.
Fixes: 1) Fixed line wrapping inconsistencies in English and German sections; 2) Ensured consistent spacing and line breaks in feature lists; 3) Corrected minor spacing issues in authentication and i18n sections.

Extra: 1) Improved readability by ensuring uniform line breaks; 2) No functional changes, purely cosmetic and structural.
2025-11-18 11:31:59 +03:00
4a983e14af Features: 1) Add support for small_logo and big_logo in admin display;
Fixes: 1) Remove deprecated relation_fields;

Extra: 1) Refactor field definitions for clarity and consistency.
2025-11-18 11:13:36 +03:00
71389ee278 Features: 1) Add customer mix and shipped vs digital metrics to dashboard context;
Fixes: 1) Replace failed daily stats with empty lists instead of crashing; 2) Fix inconsistent variable scoping and cleanup;

Extra: 1) Refactor daily stats logic to handle exceptions gracefully; 2) Improve readability by grouping related metrics; 3) Add type annotations for new context variables.
2025-11-17 22:42:38 +03:00
68890017f6 Features: 1) None;
Fixes: 1) Replace direct user access with UUID-based lookup in token mutations;

Extra: 1) Updated all three token mutation methods to use User.objects.get by UUID; 2) Added consistent formatting and indentation.
2025-11-17 16:31:24 +03:00
8caeff538a Extra: 1) Remove chart.js 2025-11-17 16:23:05 +03:00
150e4bcf24 Features: 1) No new features added.
Fixes: 1) Fixed Hebrew translation line breaks and spacing inconsistencies; 2) Corrected punctuation and formatting in user reset password email template; 3) Fixed line breaks in model docstring for proper formatting.

Extra: 1) Updated POT-Creation-Date to reflect latest commit; 2) Minor whitespace and punctuation fixes across multiple translation strings.
2025-11-17 16:19:29 +03:00
be9940cdc0 Features: 1) Added arith template tags for sub and neg operations to support arithmetic in templates;
Fixes: 1) Replaced `add:-X` with `sub:X` in template logic for consistent arithmetic;

Extra: 1) Added `arith` to template load context; 2) Introduced `_to_float` helper for safe type conversion; 3) Used `suppress` to handle invalid conversions gracefully.
2025-11-17 15:59:39 +03:00
08340c801a Features: 1) Added daily sales chart with orders and gross revenue visualization; 2) Added fallback message for insufficient data;
Fixes: 1) Removed deprecated UI elements;

Extra: 1) Refactored layout to use card components; 2) Added responsive chart with dual Y-axes; 3) Included error handling for chart initialization.
2025-11-17 15:50:29 +03:00
0efc3db605 Features:
Fixes: 1) Align migration dependencies with correct auth and token_blacklist migration versions; 2) Ensure proper migration ordering between vibes_auth and token_blacklist.

Extra: None
2025-11-17 14:03:01 +03:00
00a172d463 Features: 1) Add currency symbol display in dashboard; 2) Add type hints to dashboard_callback and related functions;
Fixes: 1) Fix type annotations for get_revenue, get_returns, get_total_processed_orders; 2) Add missing import for Context;

Extra: 1) Add type hint for currency_symbol; 2) Add type ignore comments for image_url; 3) Update UNFOLD config to use dict[str, Any]; 4) Add missing import for typing.Any; 5) Refactor template to conditionally display currency symbol.
2025-11-16 23:35:03 +03:00
fa165244b8 Features: 1) Added DigitalAssetDownload functionality to handle file serving and download URL generation; 2) Implemented business purchase flow without registration;
Fixes: 1) Added missing configuration check for NOMINATIM_URL;

Extra: 1) Enhanced error handling for missing digital asset files; 2) Improved API response headers for sitemap index; 3) Added missing fields and metadata support for Product, Order, and Attribute models.
2025-11-16 17:22:16 +03:00
0b7afbfc82 Features: 1) Added digital asset download handling for project storage directory;
Fixes: 1) Fixed missing import for asset download utilities;

Extra: 1) Refactored asset URL generation logic to align with order state validation; 2) Added unit tests for digital asset download endpoints.
2025-11-16 17:10:20 +03:00
d2f46539ee Features: 1) Add top 10 most wished and most popular products lists; 2) Update UI to display lists with cards and counts.
Fixes: 1) Fix translation of "Returns" to "Возвраты"; 2) Fix translation of "Sales vs Returns" to "Продажи и Возвраты".

Extra: 1) Refactor wishlist and order product queries to support top 10 lists; 2) Add backward compatibility for single product views; 3) Update template structure to include new lists and improve layout.
2025-11-16 17:02:36 +03:00
d4ea32c375 Features: 1) Refactored sales vs returns chart rendering for improved structure and readability;
Fixes: 1) Fixed inconsistent whitespace in image tag attributes;

Extra: 1) Added missing line break for visual spacing; 2) Updated footer text for consistency and clarity.
2025-11-16 16:25:11 +03:00
d139b7daf6 Features: 1) Enhance quick links rendering with flexible class styling;
Fixes: 1) Fix inconsistent indentation and formatting in quick links construction;

Extra: 1) Add class attribute to navigation component for layout control; 2) Improve readability by using consistent block structure.
2025-11-16 16:11:14 +03:00
b305876feb Features: 1) Add "eVibes" version display in admin dashboard footer;
Fixes: 1) Remove dashboard title exclusion logic; 2) Refactor quick links to include title, link, and optional icon;

Extra: 1) Add separator and version text component; 2) Update template to render version info; 3) Minor formatting cleanup.
2025-11-16 16:03:11 +03:00
20ecaa683f Features: 1) Added "Orders", "Taskboard", "Support", "Quick Links" settings; 2) Reordered and updated setting labels for consistency.
Fixes: 1) Corrected line endings in locale file; 2) Updated POT-Creation-Date to reflect current build.

Extra: 1) Refactored setting file to improve structure; 2) Ensured translation keys match updated UI labels.
2025-11-16 15:48:23 +03:00
338b2df0c9 Features: 1) Refactored template logic to separate gross/returns context and total calculation for clarity;
Fixes: 1) Fixed duplicate `{% with %}` block causing syntax error;

Extra: 1) Improved template structure for maintainability; 2) Added missing closing `{% endwith %}`.
2025-11-16 15:07:45 +03:00
56826300b6 Features: 1) Added dashboard callback view to expose revenue, returns, and order metrics; 2) Added new admin dashboard template with visual metrics and charts; 3) Integrated language flags into UNFOLD configuration using centralized LANGUAGES_FLAGS.
Fixes: 1) None.

Extra: 1) Refactored language flag definitions into a centralized dictionary in base settings; 2) Added commerce utility functions for revenue, returns, and order processing; 3) Improved code structure and documentation in views and utils.
2025-11-16 14:50:17 +03:00
65002671cf Features: 1) I18N 2025-11-16 00:32:21 +03:00
9f46252f48 Features: 1) Add new admin menu items for Config, Users, Groups, Products, Categories, Brands, Blogposts, Periodic Tasks, and Sitemap; 2) Integrate Unfold's constance additional fields into CONSTANCE_ADDITIONAL_FIELDS;
Fixes: 1) Reorder INSTALLED_APPS to place "constance" after "unfold.contrib.constance";

Extra: 1) Update SVG icon for health check; 2) Add missing import for UNFOLD_CONSTANCE_ADDITIONAL_FIELDS; 3) Fix indentation in constance.py.
2025-11-15 03:57:13 +03:00
e4bf40c48e Features: 1) Add support for xlrd and xlwt packages; 2) Enhance admin interface with Celery beat models and forms.
Fixes: 1) Import missing Celery beat admin classes and forms.

Extra: 1) Update package metadata with latest wheel and sdist URLs; 2) Align import statements with new structure.
2025-11-15 02:49:48 +03:00
376c73ba26 Features: 1) Add tab support for inline admin classes; 2) Introduce new settings for taskboard URL and support contact;
Fixes: 1) Remove redundant imports from admin.py;

Extra: 1) Update inline classes to inherit from TabularInline; 2) Add unfold.contrib modules to INSTALLED_APPS; 3) Reorder imports in admin.py for consistency.
2025-11-15 02:29:23 +03:00
43dc556063 Features: 1) Migrate from Jazzmin to django-unfold for admin UI;
Fixes: 1) Remove deprecated Jazzmin configuration and replace with unfold dependencies; 2) Update DRF API title to use new PROJECT_NAME; 3) Fix import order and remove unused imports in core/viewsets.py;

Extra: 1) Add PROJECT_NAME to base settings; 2) Update INSTALLED_APPS to include unfold-related apps; 3) Clean up unused config references.
2025-11-15 01:38:14 +03:00
1ecd784b4e Features: 1) Add setup for generating authorization tokens in DRFCoreViewsTests; 2) Simplify user handling in JWT mutations using validated serializer data.
Fixes: 1) Correct redundant user lookup in JWT mutations.

Extra: 1) Add TODO comments for HTTP method tests in both DRF and Graphene test modules; 2) Minor cleanup in test files.
2025-11-14 17:21:39 +03:00
aa8d40c781 Features: 1) Add mutations for product management (CreateProduct, UpdateProduct, DeleteProduct) with improved attribute and tag resolution; 2) Introduce enhanced GraphQL inputs for better product handling; 3) Add translation support to payment views and callback handling; 4) Refactor Telegram forwarder to use modern typing annotations (| syntax);
Fixes: 1) Remove redundant `from __future__ import annotations` in multiple files; 2) Correct callback integration to handle missing gateway scenarios gracefully; 3) Fix typos and update class references in tests and views;

Extra: Refactor deprecated mutation definitions and cleanup legacy product mutation references in GraphQL schema.
2025-11-14 17:07:40 +03:00
bf6b9f4424 Features: 1) Add backup_task to manage database and media backups; 2) Introduce periodic scheduling for backup_task via Celery Beat;
Fixes: 1) Apply `--omit` filter for test coverage reports to exclude unnecessary files; 2) Replace `services_data` volume mounts with named Docker volumes for consistency and cleanup (e.g., `postgres-data`, `redis-data`);

Extra: 1) Remove `services_data` from `.gitignore`, Docker-related cleanup in uninstall scripts; 2) Simplified related files removal scripts for Unix and Windows; 3) Minor adjustments in documentation comments.
2025-11-13 17:14:00 +03:00
943aa02cd3 Features: 1) Add test cases for DRF and GraphQL views in core, blog, payments, and vibes_auth applications; 2) Implement reusable GraphQL testing utilities in test classes; 3) Introduce test configuration scripts for Windows and Unix environments.
Fixes: 1) Correct entrypoint scripts by removing redundant `python` reference in `uv run` commands; 2) Resolve incorrect imports and adjust class renaming in vibes_auth tests; 3) Address typing errors and minor omissions in existing code.

Extra: 1) Improve formatting in settings and middleware files; 2) Update messaging test class names for clarity; 3) Cleanup unused imports and extra whitespaces, ensuring cleaner codebase.
2025-11-13 16:42:04 +03:00
3228a89d4b Features:
1) Add new `test_graphene` test module for expanded testing coverage;
2) Introduce `test_drf` module in `engine/blog` for improved API testing;

Fixes:
1) Remove unnecessary `--extra testing` flag from Dockerfile to streamline dependencies;
2) Update `uv.lock` with newer versions of dependencies (`certifi`, `coverage`, `django-constance`) for enhanced security and functionality;

Extra:
1) Remove deprecated packages (`bandit`, `cfgv`, `distlib`) from `uv.lock` for cleanup;
2) Adjust `uv.lock` content and formatting to be consistent with updated dependencies.
2025-11-13 15:24:44 +03:00
425464114c Fixes: 1) Pass raise_exc=True to get_integration_class_object to handle unknown gateways properly;
Extra: 1) No additional changes.
2025-11-12 22:06:44 +03:00
f3a1bb7110 Features: 1) Add new DEBUG_DATABASE setting for database logging control; 2) Enable conditional logging based on DEBUG_DATABASE for django.db logger;
Fixes: 1) Correct type casting of `uuid` in payment transaction retrieval;

Extra: 1) Minor cleanup in logging configuration imports;
2025-11-12 22:05:15 +03:00
af49dacb09 Features: 1) Handle UnknownGatewayError when processing transactions.
Fixes: 1) Ensure `uuid` defaults to an empty string in `Transaction` retrieval.

Extra: 1) Add missing import for `UnknownGatewayError`.
2025-11-12 17:29:21 +03:00
b03757508b Features: 1) Update callback URL to exclude gateway parameter; 2) Process callback using associated transaction's gateway integration class;
Fixes: 1) Remove unused import for `UnknownGatewayError`;

Extra: 1) Cleanup unreachable code and obsolete comments in `CallbackAPIView`.
2025-11-12 17:27:43 +03:00
b4dbfc8b25 Features: 1) Add Spanish translations for new admin messages and user-visible strings; 2) Enhance formatting of multi-line strings across multiple languages for consistency.
Fixes: 1) Correct alignment and ensure continuity in French and Polish translation files; 2) Address incomplete business identifier message in Spanish.

Extra: Improve clarity in token refresh and viewset-related comments; trim redundant whitespace in localized files.
2025-11-12 15:59:03 +03:00
b1da9b90e2 Features: 1) Add new message "You cannot jump over your head!" in admin interface localization; 2) Update line references across various locales; 3) Improve formatting of multiline text in translation files;
Fixes: 1) Fix inconsistencies in string concatenation for English translations; 2) Correct missing or misplaced message references in locale files;

Extra: Resolve spacing and encoding inconsistencies in translation files.
2025-11-12 15:56:00 +03:00
45ae5b02f3 Features: (1) Adjust group creation logic to assign permissions only when groups are newly created;
Fixes: (1) Correct conditional checks in group initialization to ensure permission assignment;

Extra: (1) Minor refactor to improve code readability around permission assignment logic;
2025-11-12 15:36:43 +03:00
0abcb50e60 Features: 1) Add predefined permission sets and corresponding group initialization in initialize command.
Fixes: 1) Correct `image_url` return logic in models; 2) Fix indentation in the `save` method of `payments` model; 3) Update a minor comment typo in `serializers.py`.

Extra: 1) Minor cleanup of unused imports in `initialize` command.
2025-11-12 15:29:08 +03:00
d91a979e25 Features: 1) Simplify save method by removing validation logic tied to config.
Fixes: 1) Remove unused import for `constance.config`.

Extra: 1) Minor cleanup in `save` method for improved readability.
2025-11-12 13:14:53 +03:00
6d8d4def5b Fixes: 1) Correct HTTP header key to use "HTTP_X_EVIBES_AUTH" for token-based authentication. 2025-11-12 12:56:15 +03:00
9632915593 Features: 1) Add absolute URI resolution for image in Category and ProductImage.
Fixes: 1) Ensure fallback to empty string when `image` is None in `Category` and `ProductImage`.

Extra: Refactored `resolve_image` methods for improved URL handling.
2025-11-12 12:53:28 +03:00
59b09c40f6 Features: 1) Add creation logic for "User Support" group in initialization;
Fixes: 1) None;

Extra: 1) Update comment to outline pending group creation tasks.
2025-11-12 12:20:40 +03:00
255c3f9328 Extra: 1) I18N for messaging 2025-11-12 12:12:28 +03:00
de0cb836fc Features: 1) Add rate-limiting decorators for multiple API methods across core viewsets; 2) Add translation support to messaging documentation.
Fixes: 1) Fix missing import for `send_message` moved to method scope in Telegram message handler; 2) Correct Swagger UI socket connection setting to `False`.

Extra: 1) Minor code cleanup and reformatting in viewsets and settings.
2025-11-12 11:50:51 +03:00
554769d48e Features: 1) Add detailed serializers for user messages, staff inbox, and thread consumers; 2) Update schema definitions to support new serializers with improved descriptions and summaries; 3) Introduce flexible event-based serializer for staff inbox actions.
Fixes: 1) Replace generic serializers with context-specific implementations in schema definitions.

Extra: 1) Minor code cleanup and reorganization for improved readability and maintainability; 2) Add comments for new serializers.
2025-11-12 11:37:34 +03:00
0464c1b11b Features: 1) Introduced Telegram forwarder with bot functionality for message forwarding and user support; 2) Added new commands (/start, /unlink, /help) for Telegram bot; 3) Enabled webhook integration and message linking via Telegram.
Fixes: 1) Replaced legacy `TELEGRAM_API_TOKEN` configuration with `TELEGRAM_TOKEN`; 2) Incorporated anti-spam checks for user messages to prevent abuse.

Extra: Refactored websocket consumers by integrating Telegram support and enhancing thread-assignment workflows; improved logging and API consistency; minor cleanup and deprecations.
2025-11-12 11:23:44 +03:00
73162635be Fixes: 1) Remove unused fields small_logo and big_logo from BrandDetailSerializer.
Extra: 1) Cleanup related unused methods `get_small_logo` and `get_big_logo`.
2025-11-12 10:25:56 +03:00
5a046fb628 Features: 1) Messaging submodule drafts 2025-11-11 23:31:06 +03:00
6109643acb Features: 1) Introduced ChatThread and ChatMessage models for messaging functionality; 2) Added ThreadStatus and SenderType choices for structured messaging states; 3) Integrated Django migrations with indexing for new models;
Fixes: 1) Corrected `admin.py` imports for consistency and model alignment;

Extra: Refactored `choices.py` for reusable enums; restructured `models.py` for clarity and maintainability.
2025-11-11 18:31:17 +03:00
52a62f0f6f Features: 1) Update POT creation date across all translation files; 2) Refresh translation references to correct serializer line numbers.
Fixes: None;

Extra: Update and clean up comments in translation files across locales.
2025-11-11 18:06:30 +03:00
73138c3911 Features: 1) Update "Storefront" and "GraphQL Docs" links to use BASE_DOMAIN and STOREFRONT_DOMAIN constants.
Fixes: 1) Add missing import for `BASE_DOMAIN` and `STOREFRONT_DOMAIN`.

Extra: 1) Remove unused `base_domain` field from `ConfigType`.
2025-11-11 16:24:24 +03:00
9d97ec3d76 Features: 1) Replace constance with django.conf.settings for dynamic config values; 2) Update UserSerializer to include avatar instead of avatar_url.
Fixes: 1) Remove unused `get_avatar_url` method in `UserSerializer`.

Extra: 1) Reorganize imports in serializers and middleware for clarity; 2) General code cleanup in `UserSerializer`.
2025-11-11 16:17:40 +03:00
ee25bb67f0 Features: 1) Introduced STOREFRONT_DOMAIN in settings as a replacement for FRONTEND_DOMAIN;
Fixes: 1) Updated email templates to use `STOREFRONT_DOMAIN` instead of `FRONTEND_DOMAIN`; 2) Added a missing import for `settings` in emailing utilities;

Extra: 1) Removed unused configuration keys `FRONTEND_DOMAIN` and `BASE_DOMAIN`; 2) Cleaned up obsolete imports and formatting in serializers; 3) Adjusted environment file generation scripts to use `STOREFRONT_DOMAIN`.
2025-11-11 16:12:48 +03:00
a6bceb66db Fixes: 1) Remove unused relation fields small_logo and big_logo from admin configuration;
Extra: 1) Clean up relation fields for clarity and maintainability;
2025-11-11 16:04:46 +03:00
a2665b593b Features: 1) Remove unused small_logo and big_logo fields from BrandProductDetailSerializer and BrandSimpleSerializer.
Fixes: 1) None.

Extra: 1) Cleanup unused methods and associated meta field definitions for logo handling in serializers.
2025-11-11 16:00:42 +03:00
5f9f07d8f4 Features: 1) Replace config.BASE_DOMAIN with settings.BASE_DOMAIN across the codebase; 2) Add support for dynamic STATIC_URL and MEDIA_URL based on initialization state; 3) Introduce INITIALIZED flag to determine application state;
Fixes: 1) Add missing import for `settings` in multiple modules;

Extra: 1) Remove unused `SerializerMethodField` from serializers; 2) Update `RELEASE_DATE` to align with new version; 3) General cleanup and consistency adjustments.
2025-11-11 15:08:44 +03:00