Commit graph

1107 commits

Author SHA1 Message Date
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
41c6f20635 Features:
Fixes: 1) Update DASHBOARD_CALLBACK to point to correct view path;

Extra: None
2025-11-16 14:56:19 +03:00
7c12b24c01 Features: 1) Set LANGUAGE_CODE to "en-gb" for UK English;
Fixes: 1) Remove redundant LANGUAGE_CODE assignment;

Extra: 1) Reordered settings for consistency; 2) Updated LANGUAGES_FLAGS with new flag mappings.
2025-11-16 14:51:31 +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
555666d6fe Features: 1) Add language switching functionality with URL-based language detection and session/cookie persistence;
Fixes: 1) Ensure safe next URL handling with host validation;

Extra: 1) Introduce new i18n module with language normalization and translation support; 2) Add route for language setting endpoint.
2025-11-16 01:23:09 +03:00
efa21cf9c0 Features: 1) Updated Russian translations for UI terms like "Dashboard" → "Панель", "Blogposts" → "Посты", etc.; 2) Added support for multiple locale directories in LOCALE_PATHS; 3) Introduced LANGUAGE_URL_OVERRIDES for URL language normalization.
Fixes: 1) Fixed case sensitivity in region code normalization (lowercase regions); 2) Corrected translation file updates to match new string values.

Extra: 1) Refactored middleware to normalize language codes to lowercase; 2) Added new locale paths for engine modules; 3) Improved consistency in translation keys and fallbacks.
2025-11-16 00:52:39 +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
e9ccbace94 Features: 1) Add STOREFRONT_DOMAIN to UNFOLD config; 2) Update sidebar to show all applications; 3) Rename Prometheus endpoint to /prometheus/metrics/;
Fixes: 1) Remove commented-out TABS config; 2) Set collapsible to False for menu;

Extra: 1) Add SITE_SYMBOL and SHOW_VIEW_ON_SITE; 2) Update SITE_URL to use STOREFRONT_DOMAIN; 3) Minor config cleanup.
2025-11-15 03:19:15 +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
fb84f1f89b Features: 1) Add Dockerfile for supervisor service; 2) Update docker-compose.yml to include supervisor service;
Fixes: 1) No fixes applied;

Extra: 1) Supervisor service configured with environment variables and custom start script; 2) Uses multi-stage build for optimized runtime; 3) Sets up non-root user for security; 4) Exposes port 7777; 5) Depends on app service; 6) Uses default logging config.
2025-11-15 00:21:30 +03:00
6e37044e30 Features: 1) Initialize supervisor package with basic metadata and structure;
Fixes: none;

Extra: None; new package added.
2025-11-15 00:15:52 +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
71fe47d428 Fixes: 1) Remove unused import for BASE_DOMAIN; 2) Fix hardcoded welcome message by adding translation support;
Extra: 1) None;
2025-11-14 14:54:06 +03:00
da68858fa5 Features: 1) Update topmenu_links configuration to add "GraphQL Docs," "Swagger," and "Redoc" with platform-specific URLs; 2) Change default Jazzmin themes to flatly and darkly;
Fixes: 1) Standardize `new_window` settings across `topmenu_links`;

Extra: 1) Reformat and improve readability of `topmenu_links` definitions; 2) Minor code style adjustments.
2025-11-14 14:53:17 +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
943c6ae1b1 Features: 1) Add handler "console" to "django.template", "celery", "django_elasticsearch_dsl", and "elastic_transport.transport" loggers;
Fixes: 1) Remove unused or redundant loggers for "django.request", "django.server", "django.db.backends", "celery.app.trace", and "celery.worker.strategy";

Extra: 1) Simplify log configuration for better maintainability; 2) Adjust logger filter for "django.template".
2025-11-12 16:40:22 +03:00
1ffe03ed02 Features: 1) Add separate logging configuration for Celery;
Fixes: None;

Extra: None;
2025-11-12 16:38:52 +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
3a5fa3c72b Features:
1) Add 'origin' and 'referer' headers to the allowed headers list in settings.

Fixes:
1) Correct order of existing headers for better readability and maintainability.

Extra:
1) General cleanup in `evibes/settings/base.py`.
2025-11-12 13:08:37 +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