Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"fast-check": "^3.23.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Search for imports and usage of fast-check in the codebase

# Search for fast-check imports in test files and source files
echo "=== Searching for fast-check imports ==="
rg -n --type=ts --type=tsx --type=js --type=jsx -C3 "from ['\"]fast-check['\"]|require\(['\"]fast-check['\"]"

# Search for fc.* usage patterns (common fast-check API usage)
echo -e "\n=== Searching for fast-check API usage (fc.*) ==="
rg -n --type=ts --type=tsx --type=js --type=jsx -C3 '\bfc\.(property|assert|integer|string|array|record)'

# List test files that might use it
echo -e "\n=== Listing test files ==="
fd -e test.ts -e test.tsx -e spec.ts -e spec.tsx -e test.js -e test.jsx

Repository: anonfedora/stellovault

Length of output: 434


🏁 Script executed:

#!/bin/bash
# Description: Check fast-check version validity and security advisories

# Check npm for the specific version
echo "=== Checking if fast-check@3.23.2 exists on npm ==="
curl -s https://registry.npmjs.org/fast-check/3.23.2 | jq -r '.version // "Version not found"'

# Check for latest version
echo -e "\n=== Latest version of fast-check ==="
curl -s https://registry.npmjs.org/fast-check/latest | jq -r '.version'

# Check for security advisories
echo -e "\n=== Security advisories for fast-check ==="
gh api graphql -f query='
{
  securityVulnerabilities(first: 5, ecosystem: NPM, package: "fast-check") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
      firstPatchedVersion {
        identifier
      }
    }
  }
}'

Repository: anonfedora/stellovault

Length of output: 373


Remove unused fast-check dependency.

The fast-check library was added to devDependencies but is not imported or used anywhere in the codebase. Codebase search returned no results for imports or API usage patterns despite 4 existing test files. This is a dead dependency that adds unnecessary overhead to the project and should be removed.

If property-based testing will be used in future test files, consider adding this dependency only when tests are written.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@frontend/package.json` at line 26, Remove the unused devDependency
"fast-check" from frontend package.json: open package.json, locate the
"fast-check" entry in devDependencies and delete that line, then run dependency
cleanup (e.g., npm/yarn install or prune) to update lockfile and node_modules;
if you later add property-based tests, re-add "fast-check" at that time.

"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/loans/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import Link from "next/link";
import { useLoans } from "@/hooks/useLoans";
import { RepaymentSchedule } from "@/components/loans/RepaymentSchedule";
import { Button } from "@/components/ui/Button";
import { shortenAddress, getExplorerUrl } from "@/utils/stellar";
import { ArrowLeft, Loader2, ExternalLink } from "lucide-react";
import { shortenAddress } from "@/utils/stellar";
import { ArrowLeft, Loader2 } from "lucide-react";

const STATUS_STYLES: Record<string, string> = {
PENDING:
Expand Down
34 changes: 4 additions & 30 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,18 @@
"use client";

import React, { useState } from "react";
import React from "react";
import {
ChevronRight,
Lock,
Zap,
TrendingUp,
CheckCircle2,
ArrowUpRight,
Wallet,
LogOut,
} from "lucide-react";
import Link from "next/link";
import { Footer, Navbar } from "@/components";

export default function Home() {
const [isConnected, setIsConnected] = useState(false);
const [walletAddress, setWalletAddress] = useState<string | null>(null);
const [isWalletMenuOpen, setIsWalletMenuOpen] = useState(false);

const handleWalletConnect = async () => {
const mockAddress =
"G" + Math.random().toString(16).slice(2, 54).toUpperCase();
setWalletAddress(mockAddress);
setIsConnected(true);
setIsWalletMenuOpen(false);
};

const handleWalletDisconnect = () => {
setWalletAddress(null);
setIsConnected(false);
};

const shortenAddress = (addr: string) => {
return `${addr.slice(0, 6)}...${addr.slice(-4)}`;
};
return (
<div className="w-full min-h-screen bg-white">
{/* Navigation */}
Expand All @@ -58,9 +36,7 @@ export default function Home() {
</p>

<div className="flex flex-col sm:flex-row gap-4 justify-center pt-4">
<button
className="bg-blue-900 text-white px-8 py-4 rounded-full text-lg font-semibold hover:shadow-xl hover:scale-105 transition-all flex items-center justify-center gap-2 group"
>
<button className="bg-blue-900 text-white px-8 py-4 rounded-full text-lg font-semibold hover:shadow-xl hover:scale-105 transition-all flex items-center justify-center gap-2 group">
Connect Wallet
<ArrowUpRight className="w-5 h-5 group-hover:translate-x-1 group-hover:-translate-y-1 transition-transform" />
</button>
Expand Down Expand Up @@ -455,9 +431,7 @@ export default function Home() {
</p>

<div className="flex flex-col sm:flex-row gap-4 justify-center pt-4">
<button
className="bg-blue-900 text-white px-10 py-4 rounded-full text-lg font-semibold hover:shadow-xl hover:scale-105 transition-all"
>
<button className="bg-blue-900 text-white px-10 py-4 rounded-full text-lg font-semibold hover:shadow-xl hover:scale-105 transition-all">
Connect Wallet & Start Trading
</button>
<button className="border-2 border-blue-900 text-blue-900 px-10 py-4 rounded-full text-lg font-semibold hover:bg-blue-50 transition-all">
Expand All @@ -468,7 +442,7 @@ export default function Home() {
</section>

{/* Footer */}
<Footer />
<Footer />
</div>
);
}
Loading
Loading