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.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
auth update
tilakpatel22e578f5d8b063
diff --git a/fincept-terminal-desktop/bun.lock b/fincept-terminal-desktop/bun.lockindex 021b76e14..d40d25348 100644--- a/fincept-terminal-desktop/bun.lock+++ b/fincept-terminal-desktop/bun.lock@@ -68,6 +68,7 @@"jsonpath": "^1.1.1","jsonpath-plus": "^10.3.0","langchain": "^0.3.34",+ "libphonenumber-js": "^1.12.33","lightweight-charts": "^5.0.9","lucide-react": "^0.544.0","next-themes": "^0.4.6",@@ -84,6 +85,7 @@"react-grid-layout": "^1.5.2","react-i18next": "^16.3.5","react-markdown": "^10.1.0",+ "react-phone-number-input": "^3.4.14","react-plotly.js": "^2.6.0","react-router-dom": "^7.9.6","reactflow": "^11.11.4",@@ -894,6 +896,8 @@"classcat": ["[email protected]", "", {}, "sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w=="],+ "classnames": ["[email protected]", "", {}, "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow=="],+"cliui": ["[email protected]", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="],"clsx": ["[email protected]", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],@@ -938,6 +942,8 @@"core-js": ["[email protected]", "", {}, "sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg=="],+ "country-flag-icons": ["[email protected]", "", {}, "sha512-Z3Zi419FI889tlElMsVhCIS5eRkiLDWixr576J5DPiTe5RGxpbRi+enMpHdYVp5iK5WFjr8P/RgyIFAGhFsiFg=="],+"country-regex": ["[email protected]", "", {}, "sha512-iSPlClZP8vX7MC3/u6s3lrDuoQyhQukh5LyABJ3hvfzbQ3Yyayd4fp04zjLnfi267B/B2FkumcWWgrbban7sSA=="],"crc-32": ["[email protected]", "", { "bin": { "crc32": "bin/crc32.njs" } }, "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ=="],@@ -1352,6 +1358,8 @@"inline-style-parser": ["[email protected]", "", {}, "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA=="],+ "input-format": ["[email protected]", "", { "dependencies": { "prop-types": "^15.8.1" }, "peerDependencies": { "react": ">=18.1.0", "react-dom": ">=18.1.0" }, "optionalPeers": ["react", "react-dom"] }, "sha512-gHMrgrbCgmT4uK5Um5eVDUohuV9lcs95ZUUN9Px2Y0VIfjTzT2wF8Q3Z4fwLFm7c5Z2OXCm53FHoovj6SlOKdg=="],+"internmap": ["[email protected]", "", {}, "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg=="],"ip-address": ["[email protected]", "", {}, "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q=="],@@ -1452,6 +1460,8 @@"levn": ["[email protected]", "", { "dependencies": { "prelude-ls": "~1.1.2", "type-check": "~0.3.2" } }, "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA=="],+ "libphonenumber-js": ["[email protected]", "", {}, "sha512-r9kw4OA6oDO4dPXkOrXTkArQAafIKAU71hChInV4FxZ69dxCfbwQGDPzqR5/vea94wU705/3AZroEbSoeVWrQw=="],+"lightningcss": ["[email protected]", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-android-arm64": "1.30.2", "lightningcss-darwin-arm64": "1.30.2", "lightningcss-darwin-x64": "1.30.2", "lightningcss-freebsd-x64": "1.30.2", "lightningcss-linux-arm-gnueabihf": "1.30.2", "lightningcss-linux-arm64-gnu": "1.30.2", "lightningcss-linux-arm64-musl": "1.30.2", "lightningcss-linux-x64-gnu": "1.30.2", "lightningcss-linux-x64-musl": "1.30.2", "lightningcss-win32-arm64-msvc": "1.30.2", "lightningcss-win32-x64-msvc": "1.30.2" } }, "sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ=="],"lightningcss-android-arm64": ["[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A=="],@@ -1842,6 +1852,8 @@"react-markdown": ["[email protected]", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "hast-util-to-jsx-runtime": "^2.0.0", "html-url-attributes": "^3.0.0", "mdast-util-to-hast": "^13.0.0", "remark-parse": "^11.0.0", "remark-rehype": "^11.0.0", "unified": "^11.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0" }, "peerDependencies": { "@types/react": ">=18", "react": ">=18" } }, "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ=="],+ "react-phone-number-input": ["[email protected]", "", { "dependencies": { "classnames": "^2.5.1", "country-flag-icons": "^1.5.17", "input-format": "^0.3.14", "libphonenumber-js": "^1.12.27", "prop-types": "^15.8.1" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "sha512-T9MziNuvthzv6+JAhKD71ab/jVXW5U20nQZRBJd6+q+ujmkC+/ISOf2GYo8pIi4VGjdIYRIHDftMAYn3WKZT3w=="],+"react-plotly.js": ["[email protected]", "", { "dependencies": { "prop-types": "^15.8.1" }, "peerDependencies": { "plotly.js": ">1.34.0", "react": ">0.13.0" } }, "sha512-g93xcyhAVCSt9kV1svqG1clAEdL6k3U+jjuSzfTV7owaSU9Go6Ph8bl25J+jKfKvIGAEYpe4qj++WHJuc9IaeA=="],"react-refresh": ["[email protected]", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="],diff --git a/fincept-terminal-desktop/package.json b/fincept-terminal-desktop/package.jsonindex 5c6b2c9d4..3b1ef073b 100644--- a/fincept-terminal-desktop/package.json+++ b/fincept-terminal-desktop/package.json@@ -76,6 +76,7 @@"jsonpath": "^1.1.1","jsonpath-plus": "^10.3.0","langchain": "^0.3.34",+ "libphonenumber-js": "^1.12.33","lightweight-charts": "^5.0.9","lucide-react": "^0.544.0","next-themes": "^0.4.6",@@ -92,6 +93,7 @@"react-grid-layout": "^1.5.2","react-i18next": "^16.3.5","react-markdown": "^10.1.0",+ "react-phone-number-input": "^3.4.14","react-plotly.js": "^2.6.0","react-router-dom": "^7.9.6","reactflow": "^11.11.4",diff --git a/fincept-terminal-desktop/src/components/auth/PricingScreen.tsx b/fincept-terminal-desktop/src/components/auth/PricingScreen.tsxindex 9f13c2112..61e1fd9ce 100644--- a/fincept-terminal-desktop/src/components/auth/PricingScreen.tsx+++ b/fincept-terminal-desktop/src/components/auth/PricingScreen.tsx@@ -103,9 +103,9 @@ const PricingScreen: React.FC<PricingScreenProps> = ({if (availablePlans.length > 0 && !selectedPlan) {const currentPlanId = (session?.subscription as any)?.data?.subscription?.plan?.plan_id ||session?.subscription?.subscription?.plan?.plan_id;- // Don't auto-select if user already has current plan, otherwise select starter+ // Don't auto-select if user already has current plan, otherwise select basicif (!currentPlanId) {- setSelectedPlan('starter_20');+ setSelectedPlan('basic');}}}, [availablePlans.length, selectedPlan, session?.subscription]);@@ -117,14 +117,10 @@ const PricingScreen: React.FC<PricingScreenProps> = ({const getPlanIcon = (planId: string) => {const iconMap: Record<string, React.ReactNode> = {'free': <Shield className="w-4 h-4" />,- 'basic': <Shield className="w-4 h-4" />,- 'standard': <Star 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': <Zap className="w-4 h-4" />,- 'starter_20': <Star className="w-4 h-4" />,- 'professional_49': <Zap className="w-4 h-4" />,- 'enterprise_99': <Crown className="w-4 h-4" />,- 'unlimited_199': <Rocket className="w-4 h-4" />+ 'enterprise': <Rocket className="w-4 h-4" />};return iconMap[planId] || <Shield className="w-4 h-4" />;};@@ -260,7 +256,7 @@ const handleSelectPlan = async () => {return (<divkey={plan.plan_id}- onClick={() => !isCurrentPlan && handlePlanClick(plan.plan_id)}+ onClick={() => handlePlanClick(plan.plan_id)}className={`relative rounded-lg border-2 p-4 transition-all duration-200 flex flex-col${isCurrentPlan@@ -386,15 +382,6 @@ const handleSelectPlan = async () => {'Retry')}</Button>- {userType === 'existing' && (- <Button- onClick={handleContinueWithFree}- variant="outline"- className="w-full bg-zinc-800 border-zinc-600 text-white hover:bg-zinc-700 hover:border-zinc-500"- >- Continue with Free Plan- </Button>- )}</div></div></div>@@ -541,31 +528,9 @@ const handleSelectPlan = async () => {</div><div className="flex gap-3">- {userType === 'existing' && !hasActiveSubscription && (- <Button- onClick={handleContinueWithFree}- variant="outline"- className="bg-zinc-800 border-zinc-600 text-white hover:bg-zinc-700 hover:border-zinc-500 px-4 py-2 text-sm transition-colors"- disabled={isLoading}- >- Stay Free- </Button>- )}-- {hasActiveSubscription && (- <Button- onClick={onProceedToDashboard}- variant="outline"- className="bg-zinc-800 border-zinc-600 text-white hover:bg-zinc-700 hover:border-zinc-500 px-4 py-2 text-sm transition-colors"- disabled={isLoading}- >- Keep Current Plan- </Button>- )}-<Button- onClick={handleSelectPlan}- disabled={!selectedPlan || isLoading || isCurrentPlanSelected}+ onClick={selectedPlan === 'free' ? handleContinueWithFree : handleSelectPlan}+ disabled={!selectedPlan || isLoading}className="bg-blue-600 hover:bg-blue-500 text-white font-medium px-6 py-2 text-sm transition-colors disabled:opacity-50">{isLoading ? (@@ -573,12 +538,10 @@ const handleSelectPlan = async () => {<Loader2 className="w-3 h-3 animate-spin mr-2" />Processing...</div>- ) : isCurrentPlanSelected ? (- 'Current Plan'- ) : hasActiveSubscription ? (- `Change to ${selectedPlanData?.name || 'Plan'}`+ ) : selectedPlan === 'free' ? (+ 'Continue with Free') : (- `Start Free Trial - ${selectedPlanData?.name || 'Plan'}`+ `Proceed with ${selectedPlanData?.name || 'Plan'}`)}</Button></div>diff --git a/fincept-terminal-desktop/src/components/auth/RegisterScreen.tsx b/fincept-terminal-desktop/src/components/auth/RegisterScreen.tsxindex 99a37ef31..e42065c7d 100644--- a/fincept-terminal-desktop/src/components/auth/RegisterScreen.tsx+++ b/fincept-terminal-desktop/src/components/auth/RegisterScreen.tsx@@ -5,10 +5,13 @@ import React, { useState, useEffect } from 'react';import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";-import { ArrowLeft, User, Mail, Phone, Lock, Key, ChevronDown, Check, X } from "lucide-react";+import { ArrowLeft, User, Mail, Lock, Key, Check, X } from "lucide-react";import { Screen } from '../../App';import { useAuth } from '@/contexts/AuthContext';import { useTranslation } from 'react-i18next';+import PhoneInput, { getCountryCallingCode as getCallingCode } from 'react-phone-number-input';+import 'react-phone-number-input/style.css';+import './phone-input.css';interface RegisterScreenProps {onNavigate: (screen: Screen) => void;@@ -16,13 +19,6 @@ interface RegisterScreenProps {type RegisterStep = 'form' | 'otp-verification';-interface Country {- name: string;- code: string;- dialCode: string;- flag: string;-}-const RegisterScreen: React.FC<RegisterScreenProps> = ({ onNavigate }) => {const { signup, verifyOtp, session } = useAuth();const { t } = useTranslation('auth');@@ -31,18 +27,14 @@ const RegisterScreen: React.FC<RegisterScreenProps> = ({ onNavigate }) => {firstName: "",lastName: "",email: "",- phone: "",- countryCode: "+1", // Default to USpassword: "",confirmPassword: ""});+ const [phoneNumber, setPhoneNumber] = useState<string | undefined>();const [otp, setOtp] = useState("");const [isLoading, setIsLoading] = useState(false);const [error, setError] = useState("");const [isVerificationComplete, setIsVerificationComplete] = useState(false);- const [countries, setCountries] = useState<Country[]>([]);- const [isCountryDropdownOpen, setIsCountryDropdownOpen] = useState(false);- const [countrySearchTerm, setCountrySearchTerm] = useState("");// Password validation stateconst [passwordValidation, setPasswordValidation] = useState({@@ -53,43 +45,6 @@ const RegisterScreen: React.FC<RegisterScreenProps> = ({ onNavigate }) => {hasSpecialChar: false});- // Fetch countries data from REST Countries API- useEffect(() => {- const fetchCountries = async () => {- try {- const response = await fetch('https://restcountries.com/v3.1/all?fields=name,cca2,idd,flag');- const data = await response.json();-- const formattedCountries: Country[] = data- .filter((country: any) => country.idd?.root && country.idd?.suffixes?.length > 0)- .map((country: any) => ({- name: country.name.common,- code: country.cca2,- dialCode: country.idd.root + (country.idd.suffixes[0] || ''),- flag: country.flag- }))- .sort((a: Country, b: Country) => a.name.localeCompare(b.name));-- setCountries(formattedCountries);- } catch (error) {- console.error('Failed to fetch countries:', error);- // Fallback to common countries if API fails- setCountries([- { name: "United States", code: "US", dialCode: "+1", flag: "🇺🇸" },- { name: "United Kingdom", code: "GB", dialCode: "+44", flag: "🇬🇧" },- { name: "Canada", code: "CA", dialCode: "+1", flag: "🇨🇦" },- { name: "India", code: "IN", dialCode: "+91", flag: "🇮🇳" },- { name: "Australia", code: "AU", dialCode: "+61", flag: "🇦🇺" },- { name: "Germany", code: "DE", dialCode: "+49", flag: "🇩🇪" },- { name: "France", code: "FR", dialCode: "+33", flag: "🇫🇷" },- { name: "Japan", code: "JP", dialCode: "+81", flag: "🇯🇵" },- ]);- }- };-- fetchCountries();- }, []);-// Handle navigation after successful authenticationuseEffect(() => {if (session?.authenticated && session?.user_type === 'registered' && isVerificationComplete) {@@ -122,19 +77,11 @@ const RegisterScreen: React.FC<RegisterScreenProps> = ({ onNavigate }) => {}};- const handleCountrySelect = (country: Country) => {- setFormData(prev => ({ ...prev, countryCode: country.dialCode }));- setIsCountryDropdownOpen(false);- setCountrySearchTerm("");+ const handlePhoneChange = (value: string | undefined) => {+ setPhoneNumber(value);+ if (error) setError("");};- const filteredCountries = countries.filter(country =>- country.name.toLowerCase().includes(countrySearchTerm.toLowerCase()) ||- country.dialCode.includes(countrySearchTerm)- );-- const selectedCountry = countries.find(country => country.dialCode === formData.countryCode);-const handleRegister = async (e: React.FormEvent) => {e.preventDefault();@@ -163,14 +110,22 @@ const RegisterScreen: React.FC<RegisterScreenProps> = ({ onNavigate }) => {const username = `${formData.firstName.trim()}${formData.lastName.trim()}`.toLowerCase();console.log('Generated username:', username);- // Get selected country name- const selectedCountry = countries.find(country => country.dialCode === formData.countryCode);+ // Parse phone number if provided+ let parsedPhone: any = null;+ if (phoneNumber) {+ try {+ const { parsePhoneNumber } = await import('libphonenumber-js');+ parsedPhone = parsePhoneNumber(phoneNumber);+ } catch (err) {+ console.error('Failed to parse phone number:', err);+ }+ }// Prepare additional registration dataconst additionalData = {- phone: formData.phone || undefined,- country_code: formData.countryCode,- country: selectedCountry?.name || undefined+ phone: parsedPhone?.nationalNumber || phoneNumber || undefined,+ country_code: parsedPhone ? `+${parsedPhone.countryCallingCode}` : undefined,+ country: parsedPhone?.country || undefined};const result = await signup(username, formData.email, formData.password, additionalData);@@ -245,14 +200,22 @@ const RegisterScreen: React.FC<RegisterScreenProps> = ({ onNavigate }) => {try {const username = `${formData.firstName.trim()}${formData.lastName.trim()}`.toLowerCase();- // Get selected country name- const selectedCountry = countries.find(country => country.dialCode === formData.countryCode);+ // Parse phone number if provided+ let parsedPhone: any = null;+ if (phoneNumber) {+ try {+ const { parsePhoneNumber } = await import('libphonenumber-js');+ parsedPhone = parsePhoneNumber(phoneNumber);+ } catch (err) {+ console.error('Failed to parse phone number:', err);+ }+ }// Prepare additional registration dataconst additionalData = {- phone: formData.phone || undefined,- country_code: formData.countryCode,- country: selectedCountry?.name || undefined+ phone: parsedPhone?.nationalNumber || phoneNumber || undefined,+ country_code: parsedPhone ? `+${parsedPhone.countryCallingCode}` : undefined,+ country: parsedPhone?.country || undefined};const result = await signup(username, formData.email, formData.password, additionalData);@@ -361,65 +324,36 @@ const RegisterScreen: React.FC<RegisterScreenProps> = ({ onNavigate }) => {<div className="space-y-1"><Label htmlFor="phone" className="text-white text-xs">- {t('register.phoneLabel')}+ {t('register.phoneLabel')} <span className="text-zinc-500">(Optional)</span></Label>- <div className="flex gap-2">- {/* Country Code Dropdown */}- <div className="relative">- <button- type="button"- onClick={() => setIsCountryDropdownOpen(!isCountryDropdownOpen)}- className="bg-zinc-800 border border-zinc-600 text-white h-9 px-2.5 text-sm rounded flex items-center gap-1 hover:bg-zinc-700 focus:border-zinc-500 focus:ring-1 focus:ring-zinc-500 min-w-[75px]"- disabled={isLoading}- >- <span className="text-base">{selectedCountry?.flag || "🌍"}</span>- <span className="text-xs">{formData.countryCode}</span>- <ChevronDown className="h-3 w-3" />- </button>-- {isCountryDropdownOpen && (- <div className="absolute top-full left-0 mt-1 w-80 bg-zinc-800 border border-zinc-600 rounded-lg shadow-lg z-50 max-h-60 overflow-hidden">- <div className="p-2">- <Input- type="text"- placeholder={t('register.searchCountries')}- value={countrySearchTerm}- onChange={(e) => setCountrySearchTerm(e.target.value)}- className="bg-zinc-700 border-zinc-600 text-white placeholder-zinc-500 h-8 text-sm"- />- </div>- <div className="overflow-y-auto max-h-48">- {filteredCountries.slice(0, 50).map((country) => (- <button- key={country.code}- type="button"- onClick={() => handleCountrySelect(country)}- className="w-full px-3 py-2 text-left hover:bg-zinc-700 flex items-center gap-2 text-sm text-white"- >- <span className="text-base">{country.flag}</span>- <span className="flex-1">{country.name}</span>- <span className="text-zinc-400">{country.dialCode}</span>- </button>- ))}- </div>- </div>- )}- </div>-- {/* Phone Number Input */}- <div className="flex-1 relative">- <Phone className="absolute left-2.5 top-1/2 transform -translate-y-1/2 h-3.5 w-3.5 text-zinc-400" />- <Input- id="phone"- type="tel"- placeholder={t('register.phonePlaceholder')}- value={formData.phone}- onChange={(e) => handleChange("phone", e.target.value)}- className="bg-zinc-800 border-zinc-600 text-white placeholder-zinc-500 pl-9 py-2 h-9 text-sm focus:border-zinc-500 focus:ring-1 focus:ring-zinc-500"- disabled={isLoading}- />- </div>- </div>+ <PhoneInput+ international+ defaultCountry="US"+ value={phoneNumber}+ onChange={handlePhoneChange}+ disabled={isLoading}+ placeholder={t('register.phonePlaceholder')}+ className="phone-input-custom"+ style={{+ '--PhoneInput-color--focus': '#71717a',+ '--PhoneInputInternationalIconPhone-opacity': '0.8',+ '--PhoneInputInternationalIconGlobe-opacity': '0.65',+ '--PhoneInputCountrySelect-marginRight': '0.35em',+ '--PhoneInputCountrySelectArrow-width': '0.3em',+ '--PhoneInputCountrySelectArrow-marginLeft': '0.35em',+ '--PhoneInputCountrySelectArrow-borderWidth': '1px',+ '--PhoneInputCountrySelectArrow-opacity': '0.45',+ '--PhoneInputCountrySelectArrow-color': 'currentColor',+ '--PhoneInputCountrySelectArrow-color--focus': 'currentColor',+ '--PhoneInputCountrySelectArrow-transform': 'rotate(45deg)',+ '--PhoneInputCountryFlag-aspectRatio': '1.5',+ '--PhoneInputCountryFlag-height': '1em',+ '--PhoneInputCountryFlag-borderWidth': '1px',+ '--PhoneInputCountryFlag-borderColor': 'rgba(0,0,0,0.5)',+ '--PhoneInputCountryFlag-borderColor--focus': 'currentColor',+ '--PhoneInputCountryFlag-backgroundColor--loading': 'rgba(0,0,0,0.1)'+ } as any}+ /></div><div className="space-y-1">@@ -530,14 +464,6 @@ const RegisterScreen: React.FC<RegisterScreenProps> = ({ onNavigate }) => {</button></p></div>-- {/* Close dropdown when clicking outside */}- {isCountryDropdownOpen && (- <div- className="fixed inset-0 z-40"- onClick={() => setIsCountryDropdownOpen(false)}- />- )}</div>);}diff --git a/fincept-terminal-desktop/src/components/auth/phone-input.css b/fincept-terminal-desktop/src/components/auth/phone-input.cssnew file mode 100644index 000000000..57422e9f6--- /dev/null+++ b/fincept-terminal-desktop/src/components/auth/phone-input.css@@ -0,0 +1,105 @@+/* Custom styles for react-phone-number-input to match our dark theme */++.phone-input-custom {+ width: 100%;+}++.phone-input-custom .PhoneInputInput {+ background-color: #27272a; /* bg-zinc-800 */+ border: 1px solid #52525b; /* border-zinc-600 */+ color: white;+ padding: 0.5rem 0.75rem;+ height: 2.25rem; /* h-9 */+ font-size: 0.875rem; /* text-sm */+ border-radius: 0.375rem;+ width: 100%;+ outline: none;+ transition: all 0.2s;+}++.phone-input-custom .PhoneInputInput::placeholder {+ color: #71717a; /* text-zinc-500 */+}++.phone-input-custom .PhoneInputInput:focus {+ border-color: #71717a; /* border-zinc-500 */+ ring: 1px;+ ring-color: #71717a;+}++.phone-input-custom .PhoneInputInput:disabled {+ opacity: 0.5;+ cursor: not-allowed;+}++.phone-input-custom .PhoneInputCountry {+ background-color: #27272a; /* bg-zinc-800 */+ border: 1px solid #52525b; /* border-zinc-600 */+ border-radius: 0.375rem;+ padding: 0 0.5rem;+ margin-right: 0.5rem;+ height: 2.25rem; /* h-9 */+ display: flex;+ align-items: center;+ cursor: pointer;+ transition: all 0.2s;+}++.phone-input-custom .PhoneInputCountry:hover {+ background-color: #3f3f46; /* hover:bg-zinc-700 */+}++.phone-input-custom .PhoneInputCountry:focus {+ border-color: #71717a; /* border-zinc-500 */+ outline: none;+ ring: 1px;+ ring-color: #71717a;+}++.phone-input-custom .PhoneInputCountryIcon {+ width: 1.5em;+ height: 1em;+}++.phone-input-custom .PhoneInputCountryIcon--border {+ background-color: rgba(0, 0, 0, 0.1);+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.5);+}++.phone-input-custom .PhoneInputCountrySelectArrow {+ color: #a1a1aa; /* text-zinc-400 */+ width: 0.3em;+ height: 0.3em;+ border-style: solid;+ border-color: currentColor;+ border-top-width: 0;+ border-bottom-width: 1px;+ border-left-width: 0;+ border-right-width: 1px;+ transform: rotate(45deg);+ margin-left: 0.5em;+}++/* Country select dropdown */+.PhoneInputCountrySelect {+ position: absolute;+ z-index: 50;+ background-color: #27272a; /* bg-zinc-800 */+ border: 1px solid #52525b; /* border-zinc-600 */+ border-radius: 0.5rem;+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);+ max-height: 15rem;+ overflow-y: auto;+ margin-top: 0.25rem;+}++.PhoneInputCountrySelect option {+ color: white;+ padding: 0.5rem 0.75rem;+ background-color: #27272a;+}++.PhoneInputCountrySelect option:hover,+.PhoneInputCountrySelect option:focus {+ background-color: #3f3f46; /* hover:bg-zinc-700 */+}diff --git a/fincept-terminal-desktop/src/services/authApi.tsx b/fincept-terminal-desktop/src/services/authApi.tsxindex 39bd86d78..3ddb04d0d 100644--- a/fincept-terminal-desktop/src/services/authApi.tsx+++ b/fincept-terminal-desktop/src/services/authApi.tsx@@ -538,10 +538,10 @@ export class AuthUtils {static getAccountTypeDisplay(accountType: string): string {const typeMap: Record<string, string> = {'free': 'Free',- 'starter': 'Starter',- 'professional': 'Professional',- 'enterprise': 'Enterprise',- 'unlimited': 'Unlimited'+ 'basic': 'Basic',+ 'standard': 'Standard',+ 'pro': 'Pro',+ 'enterprise': 'Enterprise'};return typeMap[accountType] || accountType;}