Add calculated values for gross_profit_margin, operating_margin, and other_operating_expenses to provide more comprehensive financial data matching fiscal.ai methodology. Implementation: - Add calculate_gross_profit_margin() function for (Gross Profit / Revenue) × 100 - Add calculate_operating_margin() function for (Operating Profit / Revenue) × 100 - Add calculate_other_operating_expenses() to derive from components - Include comprehensive unit tests with edge case coverage Safety features: - Null propagation using ? operator for missing data - Division protection with f64::EPSILON checks - Proper handling of negative values (losses) - Semantic distinction between Some(0.0) and None Validation: MSFT FY2024 data shows 68.8% gross margin and 45.6% operating margin, matching fiscal.ai calculations. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Tauri + React + Typescript
This template should help get you started developing with Tauri, React and Typescript in Vite.
Documentation
Local-First News
The news runtime lives in src-tauri/src/news/ and stores feed state plus articles in a local SQLite database under the app data directory. Reads are local-first: the UI and /news terminal command render cached articles immediately, while refreshes update the local cache in the background.
Frontend example:
import { useNewsFeed } from './src/news';
const { articles, refresh, toggleSaved, markRead } = useNewsFeed({
onlyHighlighted: true,
limit: 20,
});
Terminal usage:
/news
/news NVDA
/news never fetches the network at read time. It filters articles already persisted in the local news database.