Initial build: SimpleScan Solo v0.1.0 - Freelancer receipt capture Chrome extension

This commit is contained in:
Bun Bun
2026-06-16 18:27:31 +00:00
commit df4d26c049
33 changed files with 3962 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
export interface Receipt {
id: string;
title: string;
amount: number;
currency: string;
category: TaxCategory;
date: string; // ISO date
vendor: string;
notes: string;
imageDataUrl?: string;
source: 'manual' | 'email' | 'upload' | 'camera';
createdAt: string;
}
export type TaxCategory =
| 'equipment'
| 'home_office'
| 'software'
| 'internet_phone'
| 'travel'
| 'meals'
| 'professional_services'
| 'marketing'
| 'education'
| 'other';
export interface CategoryInfo {
id: TaxCategory;
label: string;
description: string;
icon: string;
}
export interface EmailReceiptHint {
subject: string;
sender: string;
date: string;
amount?: number;
currency?: string;
vendor?: string;
}
export interface AppSettings {
defaultCurrency: string;
taxYear: string;
ownerName: string;
}
export const DEFAULT_SETTINGS: AppSettings = {
defaultCurrency: 'USD',
taxYear: new Date().getFullYear().toString(),
ownerName: '',
};