feat: add stock database with prisma for portfolio persistence
- Initialize Prisma with SQLite and Stock model - Create database service layer with singleton client - Add API routes for stock CRUD operations - Integrate database with analyze page to persist ticker entries - Add Playwright tests for stock database functionality
This commit is contained in:
@@ -58,14 +58,14 @@ export default function StockViewer() {
|
||||
|
||||
{indicators && (
|
||||
<div className="bg-gray-50 rounded-lg p-4">
|
||||
<h3 className="font-bold text-gray-900 mb-3">
|
||||
<h3 className="text-xl font-bold text-gray-900 mb-3">
|
||||
Results for {symbol.toUpperCase()}
|
||||
</h3>
|
||||
<div className="space-y-2">
|
||||
{Object.entries(indicators).map(([key, value]) => (
|
||||
<div key={key} className="flex justify-between py-1.5 border-b border-gray-200 last:border-0">
|
||||
<span className="text-gray-600 capitalize">{key}</span>
|
||||
<span className="font-mono font-medium">{value.toFixed(2)}</span>
|
||||
<span className="font-mono font-medium text-gray-900">{value.toFixed(2)}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user