Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

built version for 3.1.4

tilakpatel22e12c9b0dc9ef
diff --git a/fincept-terminal-desktop/package.json b/fincept-terminal-desktop/package.json
index c985a2362..5f253c344 100644
--- a/fincept-terminal-desktop/package.json
+++ b/fincept-terminal-desktop/package.json
@@ -1,7 +1,7 @@
{
"name": "fincept-terminal-desktop",
"private": true,
- "version": "3.1.0",
+ "version": "3.1.4",
"type": "module",
"license": "AGPL-3.0-or-later",
"scripts": {
diff --git a/fincept-terminal-desktop/src-tauri/Cargo.lock b/fincept-terminal-desktop/src-tauri/Cargo.lock
index f6bcc2d8c..a338cdb4c 100644
--- a/fincept-terminal-desktop/src-tauri/Cargo.lock
+++ b/fincept-terminal-desktop/src-tauri/Cargo.lock
@@ -1688,7 +1688,7 @@ dependencies = [
[[package]]
name = "fincept-terminal-desktop"
-version = "3.1.0"
+version = "3.1.4"
dependencies = [
"ahash 0.8.12",
"anyhow",
diff --git a/fincept-terminal-desktop/src-tauri/Cargo.toml b/fincept-terminal-desktop/src-tauri/Cargo.toml
index ee53ba70a..4bc17eaa1 100644
--- a/fincept-terminal-desktop/src-tauri/Cargo.toml
+++ b/fincept-terminal-desktop/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "fincept-terminal-desktop"
-version = "3.1.0"
+version = "3.1.4"
description = "Professional-grade financial analysis platform with AI-powered insights and real-time market data"
authors = ["Fincept Corporation <[email protected]>"]
edition = "2021"
diff --git a/fincept-terminal-desktop/src-tauri/resources/requirements-numpy2.txt b/fincept-terminal-desktop/src-tauri/resources/requirements-numpy2.txt
index c1824a1aa..ed40611f7 100644
--- a/fincept-terminal-desktop/src-tauri/resources/requirements-numpy2.txt
+++ b/fincept-terminal-desktop/src-tauri/resources/requirements-numpy2.txt
@@ -124,8 +124,5 @@ pyarrow>=16.0.0
pandarallel>=1.6.0
gym>=0.26.0
-# Database
-peewee>=3.17.0,<3.18.0
-
# MLflow
mlflow>=2.0.0
diff --git a/fincept-terminal-desktop/src-tauri/tauri.conf.json b/fincept-terminal-desktop/src-tauri/tauri.conf.json
index e8f4804d0..214fbdcc1 100644
--- a/fincept-terminal-desktop/src-tauri/tauri.conf.json
+++ b/fincept-terminal-desktop/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "FinceptTerminal",
- "version": "3.1.0",
+ "version": "3.1.4",
"identifier": "com.fincept.terminal",
"build": {
"beforeDevCommand": "bun run dev",
diff --git a/fincept-terminal-desktop/src/components/auth/PricingScreen.tsx b/fincept-terminal-desktop/src/components/auth/PricingScreen.tsx
index 2bcbdece2..6203bbd7e 100644
--- a/fincept-terminal-desktop/src/components/auth/PricingScreen.tsx
+++ b/fincept-terminal-desktop/src/components/auth/PricingScreen.tsx
@@ -101,9 +101,9 @@ const PricingScreen: React.FC<PricingScreenProps> = ({
// Separate effect to set default selection when plans are loaded
useEffect(() => {
if (availablePlans.length > 0 && !selectedPlan) {
- const currentPlanId = session?.user_info?.account_type || 'free';
- // Auto-select user's current plan
- setSelectedPlan(currentPlanId);
+ const currentPlanId = session?.user_info?.account_type;
+ // Auto-select user's current plan if they have one, otherwise select 'basic'
+ setSelectedPlan(currentPlanId || 'basic');
}
}, [availablePlans.length, selectedPlan, session?.user_info?.account_type]);
@@ -113,20 +113,20 @@ const PricingScreen: React.FC<PricingScreenProps> = ({
const getPlanIcon = (planId: string) => {
const iconMap: Record<string, React.ReactNode> = {
- 'free': <Shield className="w-4 h-4" />,
'basic': <Star className="w-4 h-4" />,
'standard': <Zap className="w-4 h-4" />,
'pro': <Crown className="w-4 h-4" />,
'enterprise': <Rocket className="w-4 h-4" />
};
- return iconMap[planId] || <Shield className="w-4 h-4" />;
+ return iconMap[planId] || <Star className="w-4 h-4" />;
};
// Check if selecting a plan is a downgrade
const isDowngrade = (targetPlanId: string): boolean => {
- const currentPlanId = session?.user_info?.account_type || 'free';
+ const currentPlanId = session?.user_info?.account_type;
+ if (!currentPlanId) return false; // No current plan, can't downgrade
+
const planTiers: { [key: string]: number } = {
- 'free': 0,
'basic': 1,
'standard': 2,
'pro': 3,
@@ -220,10 +220,6 @@ const handleSelectPlan = async () => {
}
};
- const handleContinueWithFree = () => {
- onProceedToDashboard();
- };
-
const handleRetryLoadPlans = async () => {
setError('');
setHasLoadedPlans(false);
@@ -388,11 +384,9 @@ const handleSelectPlan = async () => {
const selectedPlanData = availablePlans.find(p => p.plan_id === selectedPlan);
// Get current plan info (credit-based system)
- // In credit system, users can always buy more credits
- // Free plan users have 350 credits, can purchase any plan
- const currentPlanId = session?.user_info?.account_type || 'free';
- const currentPlanData = availablePlans.find(p => p.plan_id === currentPlanId);
- const hasActiveSubscription = !!session?.user_info?.account_type && session.user_info.account_type !== 'free';
+ const currentPlanId = session?.user_info?.account_type;
+ const currentPlanData = currentPlanId ? availablePlans.find(p => p.plan_id === currentPlanId) : undefined;
+ const hasActiveSubscription = !!currentPlanId;
const isCurrentPlanSelected = selectedPlan === currentPlanId;
const pendingPlanData = availablePlans.find(p => p.plan_id === pendingPlanSelection);
@@ -473,10 +467,8 @@ const handleSelectPlan = async () => {
<p className="text-zinc-400 text-sm">
{hasActiveSubscription && currentPlanData
- ? `Currently on ${currentPlanData.name} plan. Select a different plan to upgrade or downgrade.`
- : userType === 'existing'
- ? 'Currently on Free plan. Upgrade for advanced features and higher limits.'
- : 'Select a plan that fits your financial analysis needs. Start with 14-day free trial.'
+ ? `Currently on ${currentPlanData.name}. Select a different plan to upgrade or downgrade.`
+ : 'Select a plan that fits your financial analysis needs.'
}
</p>
</div>
@@ -526,8 +518,8 @@ const handleSelectPlan = async () => {
<div className="flex gap-3">
<Button
- onClick={selectedPlan === 'free' ? handleContinueWithFree : handleSelectPlan}
- disabled={!selectedPlan || isLoading}
+ onClick={handleSelectPlan}
+ disabled={!selectedPlan || isLoading || isCurrentPlanSelected}
className="bg-blue-600 hover:bg-blue-500 text-white font-medium px-6 py-2 text-sm transition-colors disabled:opacity-50"
>
{isLoading ? (
@@ -535,8 +527,8 @@ const handleSelectPlan = async () => {
<Loader2 className="w-3 h-3 animate-spin mr-2" />
Processing...
</div>
- ) : selectedPlan === 'free' ? (
- 'Continue with Free'
+ ) : isCurrentPlanSelected ? (
+ 'Current Plan'
) : (
`Proceed with ${selectedPlanData?.name || 'Plan'}`
)}
diff --git a/fincept-terminal-desktop/src/components/tabs/LoginAuditDashboard.tsx b/fincept-terminal-desktop/src/components/tabs/LoginAuditDashboard.tsx
index 154460d5e..6fcb94b0c 100644
--- a/fincept-terminal-desktop/src/components/tabs/LoginAuditDashboard.tsx
+++ b/fincept-terminal-desktop/src/components/tabs/LoginAuditDashboard.tsx
@@ -64,7 +64,7 @@ const mockLoginEvents: LoginEvent[] = [
ipAddress: '192.168.1.1',
geoCountry: 'US',
geoCity: 'New York',
- clientVersion: '3.1.0',
+ clientVersion: '3.1.4',
},
{
logId: '2',
diff --git a/fincept-terminal-desktop/src/components/tabs/TradingTab.tsx b/fincept-terminal-desktop/src/components/tabs/TradingTab.tsx
index 7452bcc5e..9e3c0555b 100644
--- a/fincept-terminal-desktop/src/components/tabs/TradingTab.tsx
+++ b/fincept-terminal-desktop/src/components/tabs/TradingTab.tsx
@@ -1857,7 +1857,7 @@ export function TradingTab() {
alignItems: 'center',
flexShrink: 0
}}>
- <span>Fincept Terminal v3.1.0 | Professional Trading Platform</span>
+ <span>Fincept Terminal v3.1.4 | Professional Trading Platform</span>
<span>
Broker: <span style={{ color: BLOOMBERG.ORANGE }}>{activeBroker?.toUpperCase() || 'NONE'}</span> |
Mode: <span style={{ color: tradingMode === 'paper' ? BLOOMBERG.GREEN : BLOOMBERG.RED }}>
diff --git a/fincept-terminal-desktop/src/components/tabs/equity-trading/integrations/PaperTradingIntegration.ts b/fincept-terminal-desktop/src/components/tabs/equity-trading/integrations/PaperTradingIntegration.ts
index 2b8065ded..c88bdae3f 100644
--- a/fincept-terminal-desktop/src/components/tabs/equity-trading/integrations/PaperTradingIntegration.ts
+++ b/fincept-terminal-desktop/src/components/tabs/equity-trading/integrations/PaperTradingIntegration.ts
@@ -193,7 +193,7 @@ export class PaperTradingIntegration {
id: 'paper-trading',
name: 'Paper Trading',
type: PluginType.PRE_ORDER,
- version: '3.1.0', // Updated to match paper trading system version
+ version: '3.1.4', // Updated to match paper trading system version
execute: async (context: PluginContext): Promise<PluginResult> => {
if (!this.enabled) {
diff --git a/fincept-terminal-desktop/src/constants/version.ts b/fincept-terminal-desktop/src/constants/version.ts
index a946880d4..20858cc9b 100644
--- a/fincept-terminal-desktop/src/constants/version.ts
+++ b/fincept-terminal-desktop/src/constants/version.ts
@@ -2,7 +2,7 @@
// This file is the single source of truth for the app version displayed in the UI
// The build version comes from tauri.conf.json and package.json
-export const APP_VERSION = '3.1.0';
+export const APP_VERSION = '3.1.4';
export const APP_NAME = 'Fincept Terminal';
export const APP_BUILD_DATE = new Date().toISOString().split('T')[0];
diff --git a/fincept-terminal-desktop/src/paper-trading/README.md b/fincept-terminal-desktop/src/paper-trading/README.md
index 640a89f15..3ff94dbac 100644
--- a/fincept-terminal-desktop/src/paper-trading/README.md
+++ b/fincept-terminal-desktop/src/paper-trading/README.md
@@ -335,6 +335,12 @@ assert(stats.profitFactor >= 0);
## 🎯 Version History
+### v3.1.4 (2026-01-10) - Current Release 🚀
+**Latest stable release**
+- Updated pricing system integration
+- Removed free plan references
+- Bug fixes and improvements
+
### v3.1.0 (2025-12-31) - Production-Hardened 🛡️
**All critical bugs fixed - Truly production-ready**
- ✅ **CRITICAL FIX**: TransactionLockManager lock release (was completely broken)
@@ -346,7 +352,7 @@ assert(stats.profitFactor >= 0);
- 📄 Added comprehensive audit documentation
### v3.0.0 (2025-12-31) - Production Release 🚀
-**⚠️ WARNING: Had critical bugs, use v3.1.0 instead**
+**⚠️ WARNING: Had critical bugs, use v3.1.4 or v3.1.0 instead**
- ✅ Transaction locking for thread safety (but broken release)
- ✅ Atomic order editing
- ✅ Optimized price caching (asset class-specific)
@@ -364,7 +370,7 @@ assert(stats.profitFactor >= 0);
---
-**Version**: 3.1.0 (Production-Hardened)
+**Version**: 3.1.4 (Current Release)
**Location**: `src/paper-trading/`
**License**: MIT
**Status**: ✅ **PRODUCTION-READY** for real-time trading simulation
diff --git a/fincept-terminal-desktop/src/services/paymentApi.tsx b/fincept-terminal-desktop/src/services/paymentApi.tsx
index 6c9cfa9b8..41be72521 100644
--- a/fincept-terminal-desktop/src/services/paymentApi.tsx
+++ b/fincept-terminal-desktop/src/services/paymentApi.tsx
@@ -31,19 +31,11 @@ interface CheckoutRequest {
interface SubscriptionPlan {
plan_id: string;
name: string;
- pricing: {
- currency: string;
- amount: number;
- base_usd: number;
- symbol: string;
- };
+ price_usd: number;
credits: number;
- validity_days: number;
features: string[];
- is_free: boolean;
- // Legacy fields for backward compatibility
+ // Computed fields for display
description?: string;
- price_usd?: number;
price_display?: string;
credits_amount?: number;
support_type?: string;
@@ -209,18 +201,18 @@ export class PaymentApiService {
plansData = (plansData as any).data;
}
- // Add backward compatibility fields to each plan
+ // Add computed display fields to each plan
if (response.success && plansData?.plans) {
plansData.plans = plansData.plans.map((plan: any, index: number) => ({
...plan,
- // Add backward compatibility fields
- price_usd: plan.pricing?.base_usd || 0,
- price_display: `${plan.pricing?.symbol || '$'}${plan.pricing?.amount || 0}`,
- credits_amount: plan.credits || 0,
- description: plan.features?.join(', ') || '',
- support_type: plan.is_free ? 'community' : 'priority',
- support_display: plan.is_free ? 'Community Support' : 'Priority Support',
- validity_display: plan.validity_days > 0 ? `${plan.validity_days} days` : 'One-time',
+ // Add computed display fields
+ price_display: `$${plan.price_usd}`,
+ credits_amount: plan.credits,
+ description: plan.features?.[0] || '',
+ support_type: plan.price_usd === 0 ? 'community' : 'priority',
+ support_display: plan.features?.find((f: string) => f.toLowerCase().includes('support')) ||
+ (plan.price_usd === 0 ? 'Community Support' : 'Priority Support'),
+ validity_display: '30 days', // Default to monthly
is_popular: plan.plan_id === 'standard', // Mark standard as popular
display_order: index + 1
}));