Commit Graph

57 Commits

Author SHA1 Message Date
IGNY8 VPS (Salman)
a6fab8784d lamost fully fixed umfold template 2025-12-14 17:30:10 +00:00
IGNY8 VPS (Salman)
eb88a0e12d django phase2.3.4. 2025-12-14 15:10:41 +00:00
IGNY8 VPS (Salman)
c51270a3be final prcing fixes 2025-12-13 21:12:36 +00:00
IGNY8 VPS (Salman)
410d2b33ec pricign tbale udpated 2025-12-13 19:52:49 +00:00
IGNY8 VPS (Salman)
6e2101d019 feat: add Usage Limits Panel component with usage tracking and visual indicators for limits
style: implement custom color schemes and gradients for account section, enhancing visual hierarchy
2025-12-12 13:15:15 +00:00
IGNY8 VPS (Salman)
7a35981038 feat(multi-tenancy): implement critical fixes for orphaned users and permissions
- Simplified HasTenantAccess permission logic to ensure every authenticated user has an account.
- Added fallback to system account for OpenAI settings in AI configuration.
- Allowed any authenticated user to check task progress in IntegrationSettingsViewSet.
- Created a script to identify and fix orphaned users without accounts.
- Updated error response handling in business endpoints for clarity.
2025-12-10 09:51:06 +00:00
IGNY8 VPS (Salman)
5fb3687854 logo and architecture fixes 2025-12-09 14:28:44 +00:00
IGNY8 VPS (Salman)
6a4f95c35a docs re-org 2025-12-09 13:26:35 +00:00
IGNY8 VPS (Salman)
4d13a57068 feat(billing): add missing payment methods and configurations
- Added migration to include global payment method configurations for Stripe and PayPal (both disabled).
- Ensured existing payment methods like bank transfer and manual payment are correctly configured.
- Added database constraints and indexes for improved data integrity in billing models.
- Introduced foreign key relationship between CreditTransaction and Payment models.
- Added webhook configuration fields to PaymentMethodConfig for future payment gateway integrations.
- Updated SignUpFormUnified component to handle payment method selection based on user country and plan.
- Implemented PaymentHistory component to display user's payment history with status indicators.
2025-12-09 06:14:44 +00:00
IGNY8 VPS (Salman)
72d0b6b0fd fixes fixes fixes tenaancy 2025-12-09 02:43:51 +00:00
IGNY8 VPS (Salman)
bfbade7624 Complete Implemenation of tenancy 2025-12-09 00:11:35 +00:00
alorig
92d16c76a7 Revert "sadasd"
This reverts commit 9f85ce4f52.
2025-12-09 00:26:01 +05:00
IGNY8 VPS (Salman)
9f85ce4f52 sadasd 2025-12-08 18:22:10 +00:00
IGNY8 VPS (Salman)
144e955b92 Fixing PLans page 2025-12-08 14:12:08 +00:00
IGNY8 VPS (Salman)
da3b45d1c7 adsasdasd 2025-12-08 11:51:00 +00:00
IGNY8 VPS (Salman)
8231c499c2 dasdas 2025-12-08 08:52:44 +00:00
IGNY8 VPS (Salman)
40b7aced14 asdasd 2025-12-08 07:47:01 +00:00
IGNY8 VPS (Salman)
42d04fb7f2 sdsd 2025-12-08 07:33:37 +00:00
IGNY8 VPS (Salman)
d144f5d19a refactor 2025-12-08 07:11:06 +00:00
IGNY8 VPS (Salman)
4e9d8af768 sadasd 2025-12-08 06:15:35 +00:00
IGNY8 VPS (Salman)
6dcbc651dd Refactor account and permission handling: Simplified account filtering logic in AccountModelViewSet and removed redundant admin/system user checks from permissions. Enhanced user access methods to streamline site access verification and improved error handling for account context requirements. Updated throttling logic to eliminate unnecessary system account bypass conditions. 2025-12-08 05:23:06 +00:00
IGNY8 VPS (Salman)
508b6b4220 Enhance billing and subscription management: Added payment method checks in ProtectedRoute, improved error handling in billing components, and optimized API calls to reduce throttling. Updated user account handling in various components to ensure accurate plan and subscription data display. 2025-12-07 10:07:28 +00:00
IGNY8 VPS (Salman)
bfb07947ea many fixes of backeend and fronteend 2025-12-06 16:41:35 +00:00
IGNY8 VPS (Salman)
a0eee0df42 basic accoutn delteion fixed 2025-12-06 16:06:56 +00:00
IGNY8 VPS (Salman)
3a7ea1f4f3 docs and billing adn acaoutn 40% 2025-12-04 23:56:38 +00:00
IGNY8 VPS (Salman)
ca5451c795 fixes 2025-12-01 08:54:52 +00:00
IGNY8 VPS (Salman)
aeaac01990 sd 2025-12-01 04:07:47 +00:00
IGNY8 VPS (Salman)
42bc24f2c0 fix fix fix 2025-12-01 00:13:46 +00:00
IGNY8 VPS (Salman)
59e9cb4322 import 2025-11-30 05:06:43 +00:00
IGNY8 VPS (Salman)
d2f3f3ef97 seed keywords 2025-11-29 23:30:22 +00:00
alorig
a82be89d21 405 error 2025-11-21 20:59:50 +05:00
IGNY8 VPS (Salman)
744e5d55c6 wp api 2025-11-21 13:46:31 +00:00
IGNY8 VPS (Salman)
d14d6d89b1 Remove obsolete migration files and update initial migration timestamps for various modules; ensure consistency in migration history across the project. 2025-11-20 23:32:45 +00:00
alorig
b0409d965b refactor-upto-phase 6 2025-11-20 21:29:14 +05:00
IGNY8 VPS (Salman)
6c6133a683 Enhance public access and error handling in site-related views and loaders
- Updated `DebugScopedRateThrottle` to allow public access for blueprint list requests with site filters.
- Modified `SiteViewSet` and `SiteBlueprintViewSet` to permit public read access for list requests.
- Enhanced `loadSiteDefinition` to resolve site slugs to IDs, improving the loading process for site definitions.
- Improved error handling in `SiteDefinitionView` and `loadSiteDefinition` for better user feedback.
- Adjusted CSS styles for better layout and alignment in shared components.
2025-11-18 22:40:00 +00:00
alorig
ef16ad760f docs adn mig 2025-11-18 06:42:40 +05:00
alorig
9a6d47b91b Phase 6 2025-11-18 05:21:27 +05:00
IGNY8 VPS (Salman)
7f8982a0ab Add scheduled automation task and update URL routing
- Introduced a new scheduled task for executing automation rules every 5 minutes in the Celery beat schedule.
- Updated URL routing to include a new endpoint for automation-related functionalities.
- Refactored imports in various modules to align with the new business layer structure, ensuring backward compatibility for billing models, exceptions, and services.
2025-11-16 22:11:05 +00:00
IGNY8 VPS (Salman)
9ab87416d8 Merge branch 'feature/phase-0-credit-system' 2025-11-16 21:29:55 +00:00
IGNY8 VPS (Salman)
fc6dd5623a Add refresh token functionality and improve login response handling
- Introduced RefreshTokenView to allow users to refresh their access tokens using a valid refresh token.
- Enhanced LoginView to ensure correct user/account loading and improved error handling during user serialization.
- Updated API response structure to include access and refresh token expiration times.
- Adjusted frontend API handling to support both new and legacy token response formats.
2025-11-16 21:06:22 +00:00
Desktop
37a64fa1ef Revert "Fix authentication: Use token's account_id as authoritative source"
This reverts commit 46b5b5f1b2.
2025-11-17 01:35:30 +05:00
Desktop
c4daeb1870 Revert "Fix authentication: Follow unified API model - token account_id is authoritative"
This reverts commit 8171014a7e.
2025-11-17 01:35:26 +05:00
Desktop
11a5a66c8b Revert "Revert to main branch account handling logic"
This reverts commit 219dae83c6.
2025-11-17 01:35:19 +05:00
IGNY8 VPS (Salman)
b2e60b749a 1 2025-11-16 20:02:45 +00:00
IGNY8 VPS (Salman)
9f3c4a6cdd Fix middleware: Don't set request.user, only request.account
- Middleware should only set request.account, not request.user
- Let DRF authentication handle request.user setting
- This prevents conflicts between middleware and DRF authentication
- Fixes /me endpoint returning wrong user issue
2025-11-16 19:49:55 +00:00
IGNY8 VPS (Salman)
219dae83c6 Revert to main branch account handling logic
- Restored fallback to user.account when token account_id is missing/invalid
- Restored validation that user.account matches token account_id
- If user's account changed, use user.account (the correct one)
- Matches main branch behavior which has correct config
- Fixes wrong user/account showing issue
2025-11-16 19:44:18 +00:00
IGNY8 VPS (Salman)
8171014a7e Fix authentication: Follow unified API model - token account_id is authoritative
- Simplified authentication logic to match unified API documentation
- Token's account_id is now the sole source of truth for account context
- Removed validation against user.account (no longer valid per unified API model)
- Middleware now simply extracts account_id from JWT and sets request.account
- Matches documented flow: Extract Account ID → Load Account Object → Set request.account
2025-11-16 19:36:18 +00:00
IGNY8 VPS (Salman)
46b5b5f1b2 Fix authentication: Use token's account_id as authoritative source
- Token's account_id is now authoritative for current account context
- For developers/admins: Always use token's account_id (they can access any account)
- For regular users: Verify they belong to token's account, fallback to user.account if not
- This ensures correct account context is set, especially for developers working across accounts
- Fixes bug where wrong user/account was shown after login
2025-11-16 19:34:02 +00:00
IGNY8 VPS (Salman)
a10e89ab08 Phase 0: Remove plan operation limit fields (credit-only system)
- Removed all operation limit fields from Plan model
- Kept account management limits (max_users, max_sites, etc.)
- Updated PlanSerializer to remove limit fields
- Updated PlanAdmin to remove limit fieldsets
- Created migration to remove limit fields from database
- Plan model now only has credits, billing, and account management fields
2025-11-16 18:50:24 +00:00
IGNY8 VPS (Salman)
d3ec7cf2e3 Refactor authentication and integration handling
- Exclude the 'MeView' endpoint from public API documentation, marking it as an internal authenticated endpoint.
- Enhance error handling in the 'IntegrationSettingsViewSet' to gracefully manage empty request data and improve logging for account and settings lookups.
- Update API key retrieval logic to ensure fallback mechanisms are more robust and informative.
- Refactor user data fetching in the auth store to utilize a unified API system, improving error handling and data consistency.
2025-11-16 09:49:24 +00:00