Commit graph

51 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
01ba06d52c Features: 1) Add image_url property to Category and ProductImage models for constructing absolute image URLs; 2) Replace direct image.url references with image_url across serializers and GraphQL resolvers;
Fixes: None;

Extra: 1) Simplify serializer methods by removing redundant `suppress` blocks for `image.url`; 2) Minor adjustments to GraphQL resolver parameter names for consistency.
2025-11-11 14:38:41 +03:00
71b0cdd818 Fixes: 1) Remove unused "categories" field from relation_fields in admin configuration;
Extra: Minor cleanup for better maintainability;
2025-11-10 17:06:17 +03:00
f4c9767585 Features: None;
Fixes: None;

Extra: I18N;
2025-11-10 15:57:15 +03:00
cd067ee5da Features: 1) Add static files configuration in nginx for cross-origin requests.
Fixes: 1) Update Console styling in 'initialize' command to remove non-standard style notice; 2) Simplify STATIC_URL and MEDIA_URL definitions in settings for uniformity.

Extra: 1) Minor cleanup in static and media path handling; 2) Add new location block in nginx for static files access.
2025-11-10 11:51:34 +03:00
39e120e8c6 Features: 1) Add logging for saving vendor responses and processing attributes; 2) Update process_attribute to return AttributeValue upon success.
Fixes: 1) Replace missing return values with `None` in `process_attribute` for clarity; 2) Correct typo in debug log messaging.

Extra: 1) Update method definitions for readability; 2) Improve logging granularity and structure.
2025-11-10 08:44:36 +03:00
3fbe6883c7 2025.4 BETA 2025-11-10 08:36:57 +03:00