cfin_new

Reinitialized repo for cfin project from local, with README.

https://github.com/abc0008/cfin_new

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Reinitialized repo for cfin project from local, with README.

Basic Info
  • Host: GitHub
  • Owner: abc0008
  • Language: Python
  • Default Branch: main
  • Size: 1.02 GB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Created 10 months ago · Last pushed 7 months ago
Metadata Files
Readme Citation

README_Color_Scheme_Update.md

FDAS Professional Styling Update - COMPLETE

Overview

The FDAS frontend has been completely redesigned to match the professional style of the financial presentation PDF. This update includes new color schemes, Avenir Pro typography, professional layout design, and comprehensive component styling to create a high-end financial presentation interface.

Color Palette

Brand Colors

  • Mulberry: #8f0f56 - Primary brand color
  • Lust: #e5241d - Alert/destructive color
  • Lust Border: #e61d24 - Border variant
  • Hobgoblin: #02a88e - Secondary brand color (positive/success)
  • Tamahagane: #3c3e3e - Dark neutral
  • Mt. Rushmore: #828282 - Medium neutral
  • Pigeon: #acafaf - Light neutral
  • Caribbean Blue: #00bed5 - Accent color

Semantic Colors

  • Background: #ffffff (Pure white for clean presentation)
  • Header Text: #0d0d0d (Near black for readability)
  • Normal Text: #595959 (Professional gray)
  • Success: Hobgoblin #02a88e
  • Warning: Caribbean Blue #00bed5
  • Error: Lust #e5241d

Typography

  • Primary Font: Avenir Pro Demi (600 weight) - For headers and emphasis
  • Light Font: Avenir Pro Light (300 weight) - For body text and descriptions
  • Fallbacks: ui-sans-serif, system-ui, sans-serif

✅ Updated Files - COMPLETE

1. Core Styling Infrastructure

  • src/app/globals.css - Updated CSS custom properties, Avenir Pro fonts, professional form elements
  • tailwind.config.js - Extended with brand colors and Avenir Pro font families
  • src/app/layout.tsx - Added Avenir Pro font imports and updated body classes

2. Color System

  • src/components/charts/chartColors.ts - Professional chart colors matching presentation style
  • All CSS custom properties - Converted to semantic design tokens

3. Page Components - ALL UPDATED

  • src/app/page.tsx - Home page with professional styling, brand colors, Avenir Pro fonts
  • src/app/dashboard/page.tsx - Dashboard with comprehensive professional styling
  • src/app/workspace/page.tsx - Workspace page styling (uses updated components)

4. Core Layout Components - ALL UPDATED

  • src/components/layout/Header.tsx - Professional header with brand colors
  • src/components/metrics/MetricCard.tsx - Financial metric cards with professional styling

5. Chart Components - ALL UPDATED

  • src/components/charts/PieChart.tsx - Professional chart styling with brand colors
  • src/components/charts/chartColors.ts - Complete color palette for financial data

6. Workspace Components - ALL UPDATED

  • src/components/chat/ChatInterface.tsx - Professional chat styling with brand colors
  • src/components/chat/InteractiveElements.tsx - Updated interactive elements with semantic colors
  • src/components/visualization/Canvas.tsx - Professional visualization container
  • src/components/analysis/AnalysisControls.tsx - Professional analysis control panel

7. Document Management - ALL UPDATED

  • src/components/document/UploadForm.tsx - Professional upload interface
  • src/components/DocumentList.tsx - Clean document listing with brand colors
  • src/lib/api/documents.ts - Added missing deleteDocument method (fixed runtime error)

8. UI Components

  • All shadcn/ui components automatically inherit the new color system through CSS custom properties
  • Form elements use professional styling classes

Key Design Features

1. Professional Typography

  • Avenir Pro Demi for headers and important text
  • Avenir Pro Light for body text and descriptions
  • Consistent font sizing and line heights
  • Improved readability and hierarchy

2. Clean Color Scheme

  • Pure white backgrounds for clean presentation style
  • Strategic use of brand colors for emphasis
  • Semantic color system for consistent theming
  • High contrast for accessibility

3. Financial Presentation Style

  • Clean, minimal design matching high-end financial presentations
  • Professional spacing and layout
  • Subtle shadows and borders
  • Data-focused visual hierarchy

4. Interactive Elements

  • Smooth hover transitions
  • Professional button styles
  • Clean form elements
  • Consistent feedback states

Technical Implementation

CSS Custom Properties

All colors are defined as CSS custom properties in globals.css and can be used throughout the application via Tailwind utilities like: - bg-primary (Mulberry) - text-foreground (Near black) - border-border (Professional gray)

Component Classes

Professional utility classes available: - .fdas-input - Professional form inputs - .fdas-button-primary - Primary action buttons - .fdas-card - Clean card containers - .citation-link - Citation styling

Font Integration

Avenir Pro fonts are loaded via Google Fonts and integrated into the Tailwind configuration for easy usage: - font-avenir-pro - Regular weight - font-avenir-pro-demi - Demi weight - font-avenir-pro-light - Light weight

Browser Compatibility

  • Modern browsers with CSS custom property support
  • Graceful fallbacks to system fonts if Avenir Pro fails to load
  • Responsive design maintained across all screen sizes

Development Notes

  • All hardcoded colors replaced with semantic design tokens
  • Consistent spacing using Tailwind's spacing scale
  • Proper TypeScript types maintained
  • Accessibility considerations preserved
  • Fixed runtime error: "undefined is not an object (evaluating 'documents.length')"

Status: ✅ COMPLETE - All styling updates have been successfully implemented to match the professional financial presentation style.

Owner

  • Login: abc0008
  • Kind: user

Citation (citations_block_issue_summary.rtf)

{\rtf1\ansi\ansicpg1252\cocoartf2821
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\margl1440\margr1440\vieww11520\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\f0\fs24 \cf0 Based on my analysis of the code and documentation, I've identified the key issues with the citations\
  implementation:\
\
  1. API Configuration:\
    - The code is correctly configured to use Claude's citation feature with "anthropic-beta": \
  "citations-2023-11-13,pdfs-2024-09-25" header\
    - Using the latest "claude-3-5-sonnet-latest" model which supports citations\
    - Document objects are correctly formatted with "citations": \{"enabled": True\}\
  2. Database Schema Support:\
    - The Message model has a content_blocks JSON column to store structured content\
    - There's a Citation model for database storage and MessageCitation for linking messages to citations\
  3. Citation Processing:\
    - The code has extensive debugging for citation handling\
    - Both a primary path (for structured citations) and fallback (for text citations like [Page X])\
    - The _convert_claude_citation method handles different citation formats\
  4. Missing Update Path:\
    - While there is an update_message method, it uses a generic db.add() approach rather than explicitly\
  handling content_blocks\
    - If the db.add() method doesn't fully propagate content_blocks JSON updates, this could be an issue\
  5. Format Mismatch:\
    - The official docs specify "citations": \{"enabled": true\} with lowercase "true" (JavaScript syntax)\
    - Your code correctly uses Python's True value, which should be properly serialized to JSON\
\
  Key Recommendations:\
\
  1. Explicit Update Method:\
    - Add a dedicated method in the repository to update content_blocks specifically\
    - Use an explicit SQL update statement rather than relying on ORM merging\
  2. Content Block Format Check:\
    - Ensure the content_blocks being saved match the expected database format\
    - Consider adding explicit type conversion or validation before storing\
  3. Citation Validation:\
    - Add a validation step to verify all citation IDs exist before linking to messages\
    - Implement better error handling when citation retrieval fails\
  4. Format Consistency:\
    - Ensure boolean values are consistently serialized properly (True vs. true)\
    - Check that all properties match the exact casing expected by the API\
  5. SDK Version Update:\
    - Consider updating the Anthropic SDK to the latest version (0.44.0 as of writing)\
    - The API has evolved and newer SDKs handle citations more effectively\
\
  The code has a robust citation infrastructure with good fallback mechanisms, but the database update\
  path for content_blocks might be the weak link that's preventing citations from properly appearing in\
  the UI or conversation history.}

GitHub Events

Total
  • Issue comment event: 3
  • Public event: 1
  • Push event: 39
  • Pull request review event: 2
  • Pull request event: 23
  • Create event: 14
Last Year
  • Issue comment event: 3
  • Public event: 1
  • Push event: 39
  • Pull request review event: 2
  • Pull request event: 23
  • Create event: 14

Dependencies

nextjs-fdas/package.json npm
  • @babel/core ^7.26.10 development
  • @babel/preset-env ^7.26.9 development
  • @babel/preset-react ^7.26.3 development
  • @babel/preset-typescript ^7.27.0 development
  • @testing-library/jest-dom ^6.6.3 development
  • @testing-library/react ^16.2.0 development
  • @types/jest ^29.5.14 development
  • @types/node ^20 development
  • @types/react ^18 development
  • @types/react-dom ^18 development
  • autoprefixer ^10.0.1 development
  • babel-jest ^29.7.0 development
  • eslint ^8 development
  • eslint-config-next 14.2.4 development
  • identity-obj-proxy ^3.0.0 development
  • jest ^29.7.0 development
  • jest-environment-jsdom ^29.7.0 development
  • postcss ^8 development
  • tailwindcss ^3.3.0 development
  • typescript ^5 development
  • @anthropic-ai/sdk ^0.16.1
  • @radix-ui/react-avatar ^1.0.4
  • @radix-ui/react-collapsible ^1.1.3
  • @radix-ui/react-dialog ^1.0.5
  • @radix-ui/react-dropdown-menu ^2.0.6
  • @radix-ui/react-popover ^1.0.7
  • @radix-ui/react-select ^2.0.0
  • @radix-ui/react-slot ^1.0.2
  • @radix-ui/react-tabs ^1.0.4
  • @radix-ui/react-toast ^1.1.5
  • class-variance-authority ^0.7.0
  • clsx ^2.1.0
  • langchain ^0.1.25
  • langsmith ^0.1.25
  • lucide-react ^0.359.0
  • mdast-util-to-markdown ^2.1.2
  • next 14.2.4
  • pdfjs-dist ^4.3.136
  • react ^18
  • react-dom ^18
  • react-hook-form ^7.51.1
  • react-markdown ^10.1.0
  • react-pdf-highlighter ^6.1.0
  • react-syntax-highlighter ^15.6.1
  • recharts ^2.15.1
  • remark-gfm ^4.0.1
  • tailwind-merge ^2.2.2
  • tailwindcss-animate ^1.0.7
  • zod ^3.22.4
package.json npm
  • @eslint/js ^9.9.1 development
  • @types/react ^18.3.5 development
  • @types/react-dom ^18.3.0 development
  • @vitejs/plugin-react ^4.3.1 development
  • autoprefixer ^10.4.18 development
  • eslint ^9.9.1 development
  • eslint-plugin-react-hooks ^5.1.0-rc.0 development
  • eslint-plugin-react-refresh ^0.4.11 development
  • form-data ^4.0.2 development
  • globals ^15.9.0 development
  • node-fetch ^3.3.2 development
  • postcss ^8.4.35 development
  • tailwindcss ^3.4.1 development
  • typescript ^5.5.3 development
  • typescript-eslint ^8.3.0 development
  • vite ^5.4.2 development
  • lucide-react ^0.344.0
  • pdfjs-dist ^4.10.38
  • react ^18.3.1
  • react-dom ^18.3.1
  • react-pdf-highlighter ^8.0.0-rc.0
  • recharts ^2.12.2
  • zod ^3.24.2
backend/requirements.in pypi
  • PyPDF2 ==3.0.1
  • aiofiles ==23.2.1
  • aiosqlite ==0.19.0
  • alembic ==1.13.1
  • anthropic ==0.21.3
  • boto3 ==1.34.45
  • fastapi ==0.110.0
  • httpx ==0.27.0
  • langchain *
  • langchain-anthropic *
  • langchain-community *
  • langchain-core *
  • langgraph *
  • psycopg2-binary ==2.9.9
  • pydantic ==2.6.1
  • pytest ==7.4.4
  • python-dotenv ==1.0.1
  • python-multipart ==0.0.9
  • redis ==5.0.1
  • sqlalchemy ==2.0.23
  • starlette ==0.36.3
  • tiktoken ==0.6.0
  • uvicorn ==0.28.0
backend/requirements.txt pypi
  • PyPDF2 ==3.0.1
  • aiofiles ==23.2.1
  • aiosqlite ==0.19.0
  • alembic ==1.13.1
  • anthropic ==0.21.3
  • boto3 ==1.34.45
  • fastapi ==0.110.0
  • httpx ==0.27.0
  • langchain *
  • langchain-anthropic *
  • langchain-community *
  • langchain-core *
  • langgraph *
  • psycopg2-binary ==2.9.9
  • pydantic ==2.6.1
  • pytest ==7.4.4
  • python-dotenv ==1.0.1
  • python-multipart ==0.0.9
  • redis ==5.0.1
  • sqlalchemy ==2.0.23
  • starlette ==0.36.3
  • tiktoken ==0.6.0
  • uvicorn ==0.28.0
.github/workflows/python-ci.yml actions
  • HarmonDay/actions-postgresql v1 composite
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
nextjs-fdas/package-lock.json npm
  • 1054 dependencies
.github/workflows/claude-production-readiness.yml actions
  • actions/cache v3 composite
  • actions/checkout v4 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
.github/workflows/claude.yml actions
  • actions/checkout v4 composite
  • anthropics/claude-code-action beta composite