8d442b7c6f01 Refactor currency handling in client models and calculations: Update models to store values in GTQ instead of centavos, adjust cost basis calculations, and modify API responses and frontend currency formatting to reflect the new structure.padreug2025-07-06 00:00:48 +02:00
8c3faeec3f00 Add currency conversion utilities and update API models: Introduce functions for converting between GTQ and centavos, and enhance API models to reflect these changes for client dashboard and transaction data.padreug2025-07-05 23:38:22 +02:00
35c407f9aaFix cost basis calculations to convert centavos to GTQ: Update average cost basis formulas in client dashboard summary and analytics functions for accurate currency handling.padreug2025-07-05 17:29:11 +02:00
d2866276a9Update currency handling in models and views: Modify model attributes to specify values in centavos for precision. Adjust CSV export and currency formatting functions to convert centavos to GTQ for accurate display and export.padreug2025-07-05 14:59:05 +02:00
f32e1bb9aeUpdate milestone rewards and display: Revise milestone thresholds and corresponding labels for 10k, 50k, and 100M sats. Enhance formatting for larger amounts with a consistent progression pattern and update the dashboard to reflect these changes.padreug2025-06-30 08:32:12 +02:00
340dc22c20Refactor client configuration access: Remove direct access to sensitive admin config and local client-limits endpoint. Implement fetching of client limits via a secure public API. Update registration form to reflect changes and enhance user experience.padreug2025-06-27 23:21:36 +02:00
16db140bb6Enhance milestone rewards display: Add new milestones for 5M, 20M, and 100M sats with corresponding labels and icons. Update progress calculation to reflect these new thresholds in the dashboard.padreug2025-06-27 23:31:56 +02:00
03179647ecRefactor DCA client registration form: Update wallet selection to use walletOptions computed property for better data handling. Change element ID from 'dcaClient' to 'vue' for consistency. Improve error handling and data validation in chart loading and registration processes.padreug2025-06-27 00:28:49 +02:00
306549a656wrap q-icon in div to prevent text rendering problempadreug2025-06-26 14:17:19 +02:00
315bcae4caAdd client registration functionality: Implement API endpoint for client self-registration, including validation and error handling. Update frontend to support registration form and status checks, enhancing user experience for DCA clients.padreug2025-06-26 14:07:22 +02:00
c86d650e5aRefactor API authentication: Replace 'require_invoice_key' with 'require_admin_key' for dashboard endpoints to restrict access to admin users only. Update related frontend API calls to use 'adminkey' instead of 'inkey' for consistency.padreug2025-06-26 13:18:17 +02:00
74b7d0f9a3Update database schema references in CRUD operations: Change all instances of 'satmachineadmin' to 'satoshimachine' in SQL queries and database connection to reflect the new schema name.padreug2025-06-26 10:14:50 +02:00
5f9cc828b3Refine DCA dashboard display: Simplify text and enhance active stacking indicator with a new badge and spinner for improved user feedback when conditions are met.padreug2025-06-22 22:10:14 +02:00
9c0e3db828Enhance DCA dashboard display: Add spinner and active stacking indicator to the dashboard for improved user feedback when current fiat balance is positive and DCA status is active.padreug2025-06-22 21:41:01 +02:00
a042745c04Enhance milestone progress calculation and logging: Add detailed logging for the milestone progress function to aid in debugging and improve handling of cases with no dashboard data. Update HTML to display progress with two decimal places for better precision.padreug2025-06-22 21:39:23 +02:00
0962573176Improve chart loading logic and state management: Enhance loading state handling to prevent conflicts during chart initialization, add detailed logging for better debugging, and ensure proper cleanup of existing charts before creating new ones. Implement checks to skip chart creation if the loading state changes, improving overall user experience.padreug2025-06-22 19:59:04 +02:00
9e65f05906Enhance chart styling and interactivity: Improve placeholder chart appearance with enhanced styling, update Chart.js configuration for better visual clarity, and add tooltip functionality for displaying values in a user-friendly format.padreug2025-06-22 19:53:02 +02:00
6da61d953bEnhance chart loading and validation logic: Introduce loading state management to prevent multiple simultaneous requests, improve data validation for cumulative sats and labels, and add detailed logging for better debugging. Update HTML to ensure chart canvas is always rendered and disable button during loading.padreug2025-06-22 18:01:10 +02:00
d50033f834Refactor cumulative sats chart logic: Implement timeline data usage for cumulative calculations, enhancing accuracy and performance. Introduce fallback mechanism to group cost basis history by date, ensuring unique entries and improved chart rendering. Add detailed chart configuration for better user interaction and visual clarity.padreug2025-06-22 17:48:18 +02:00
fee7ba13b2Enhance date handling in analytics: Improve date parsing logic to correctly handle ISO strings with timezone information, ensuring accurate local date representation. Add debug logging for raw and formatted dates to aid in troubleshooting.padreug2025-06-22 16:27:43 +02:00
955eddd817Improve error handling and data validation in client analytics: Update API to return empty analytics data instead of raising an error when no data is available. Enhance date formatting checks in analytics calculations and frontend chart rendering to ensure robustness against invalid date formats.padreug2025-06-22 16:27:37 +02:00
c3adc37d84Enhance DCA dashboard styling: Update text styles for improved emphasis on transaction data and milestones, including bolding key metrics and adjusting font sizes for better visual hierarchy.padreug2025-06-22 20:47:48 +02:00
a292f48544replace 'sessions' with 'purchases'padreug2025-06-22 20:41:36 +02:00
733fbdd0b4Update circular progress component styles: Adjust thickness and color properties for improved visual consistency in milestone tracking display.padreug2025-06-22 20:40:33 +02:00
7e030c5d0aRefactor milestone tracking: Introduce a new method to determine the next milestone based on total sats accumulated, and update progress calculations accordingly. Adjust frontend to display progress towards the next milestone and enhance user feedback with additional milestone indicators.padreug2025-06-22 20:36:46 +02:00
08e5cc20e3Remove Bitcoin icon from DCA dashboard header for a cleaner visual presentation, maintaining focus on the content.padreug2025-06-22 20:20:18 +02:00
35060b01d7Refactor dashboard icons: Replace icon components with emoji representations for improved visual appeal and clarity in the DCA dashboard, enhancing user engagement.padreug2025-06-22 20:15:27 +02:00
272041f8bbEnhance DCA dashboard: Add excitement to sat formatting for larger amounts, implement refresh functionality with notifications for data loading errors, and introduce stacking milestones and DCA tips sections for improved user engagement and insights.padreug2025-06-22 20:13:41 +02:00
1730c5cd81Refactor transaction table: Disable sorting for transaction fields and streamline date formatting in the dashboard display for improved clarity and consistency.padreug2025-06-22 17:15:18 +02:00
9c4b7a307aimprove frontend layout with a new table format for better user experience and clarity in transaction details.padreug2025-06-22 16:52:25 +02:00
79d29f52a1Enhance transaction history display: Update SQL query and model to include transaction timepadreug2025-06-22 16:52:20 +02:00
3d0fc9c910Add fiat value toggle functionality: Introduce a button to show/hide fiat values in the dashboard, enhancing user control over displayed financial data.padreug2025-06-22 16:13:48 +02:00
fdf41c016aUpdate dashboard card styles: Change background colors and text classes for current value and unrealized gain/loss sections to enhance visual clarity and user experience.padreug2025-06-22 16:08:22 +02:00
591036aa54Update dashboard summary calculations: Adjust unrealized gain/loss metrics to include current fiat balance alongside Bitcoin holdings, enhancing accuracy in financial insights for users.padreug2025-06-22 16:07:07 +02:00
9821be0406Enhance client dashboard summary: Add current fiat value of Bitcoin holdings and wallet currency to the summary metrics. Update model and frontend to display current value and unrealized gains/losses, improving financial insights for users.padreug2025-06-22 16:02:43 +02:00
e05404fcabEnhance client dashboard summary: Add pending fiat deposits to the summary metrics and update the model and frontend to display pending deposits, improving visibility of cash awaiting confirmation for DCA processing.padreug2025-06-22 15:40:56 +02:00
9ea8c37940Enhance client dashboard summary calculations: Update SQL queries to accurately reflect total confirmed and pending deposits, and adjust metrics for average cost basis and remaining balance. Modify API and frontend to ensure values are in full currency units, improving clarity and consistency in financial data representation.padreug2025-06-22 15:37:49 +02:00
4f0d2adf2aRefactor DCA dashboard components: Update Vue.js app structure and improve HTML template for better loading and error handling. Enhance dashboard layout with new card sections for summary and recent transactions, and add a sidebar for quick stats. Clean up unused methods and streamline data rendering.padreug2025-06-22 13:44:01 +02:00
f779d000b4Update client API and frontend for DCA dashboard: Modify API endpoints to correctly reference wallet user, enhance Vue.js component with loading and error states, and implement data fetching for dashboard summary and transactions. Update HTML template to reflect new client extension structure and improve user experience with dynamic content rendering.padreug2025-06-22 13:07:23 +02:00
cc12d68953Refactor client extension: Remove background task functionalities and transaction processing logic, simplifying the client extension to a read-only dashboard. Update related imports and clean up code for improved maintainability.padreug2025-06-22 12:39:21 +02:00
1570e7ba95Refactor CRUD operations for client extension: Update database interactions to focus on the admin extension, streamline client dashboard functionalities, and enhance transaction history retrieval. Remove legacy DCA client references and improve code organization for better maintainability.padreug2025-06-22 12:32:10 +02:00
32e8f31b82Refactor client API endpoints for DCA dashboard: Update endpoint structure to focus on client-specific functionalities, including dashboard summary, transaction history, and analytics. Enhance code readability with improved formatting and add support for exporting transaction data in CSV format.padreug2025-06-22 12:25:50 +02:00
edb0b4d05eRefactor migrations and models for client extension: Remove legacy DCA migration functions and simplify database schema. Update Pydantic models to reflect new client dashboard structure, consolidating and renaming classes for clarity and relevance to client extension functionality.padreug2025-06-22 12:08:32 +02:00
6db94179ccReplace [mM]yextension with [sS]at[mM]achine[aA]dminpadreug2025-06-20 22:16:58 +02:00
896ca5f3caRefactor DCA Admin migration script: Simplify and consolidate database schema creation for Dollar Cost Averaging administration, including DCA clients, deposits, payments, and Lamassu configuration. Remove legacy migration functions and enhance clarity with updated table structures and comments.padreug2025-06-20 22:10:16 +02:00
75dd03b15aRefactor MyExtension to DCA Admin: Update extension name and description in config.json, remove legacy MyExtension CRUD operations and related API endpoints, and adjust router tags. Clean up unused files and methods to streamline the codebase for DCA administration functionality.padreug2025-06-20 21:51:38 +02:00
edca91579cUpdate README.md to provide comprehensive documentation for DCA Admin Extension: include detailed overview, features, installation instructions, configuration management, usage guidelines for administrators and end users, technical details, and troubleshooting tips. Enhance clarity and usability for developers integrating with Lamassu ATM transactions.padreug2025-06-20 01:58:19 +02:00
1af15b6e26Add Lamassu transaction endpoints and UI integration: implement API endpoints for retrieving all processed Lamassu transactions and specific transaction details, including distribution information. Enhance frontend to display transaction data in a table format with export functionality and detailed views for distributions, improving user experience and data accessibility.padreug2025-06-20 01:37:31 +02:00
dc35cae44eAdd CRUD operations for Lamassu transactions: implement create, retrieve, and update functions for storing processed Lamassu transactions in the database. Enhance migration script to create the necessary database table and update models to include transaction data structures. Integrate transaction storage into the LamassuTransactionProcessor for improved audit and UI display capabilities.padreug2025-06-20 00:49:46 +02:00
c38a20b6daEnhance transaction detail extraction in LamassuTransactionProcessor: implement None-safe defaults for transaction fields and add validation checks for required fields, improving error handling and logging for missing data.padreug2025-06-20 00:16:33 +02:00
3a03efde20Fix type conversion for fiat and crypto amounts in LamassuTransactionProcessor: update processing logic to convert values to integers after converting to float, ensuring accurate handling of monetary values.padreug2025-06-19 23:31:21 +02:00
39741075b4Enhance memo creation in LamassuTransactionProcessor: update memo formatting to include DCA metrics such as fiat amount and cost basis per BTC for both target and commission wallets. This improves clarity and provides better financial context for transactions.padreug2025-06-19 21:35:47 +02:00
645970b3e7Add remaining balance display and fetch functionality for DCA clients: update index.js to include remaining_balance in client data retrieval and enhance index.html to display the balance with conditional formatting. Ensure balances are refreshed after data updates for accurate representation.padreug2025-06-19 17:40:31 +02:00
5bbcee2afaAdd DCA payment status update functionality: implement update_dca_payment_status method in CRUD operations and integrate it into the LamassuTransactionProcessor for updating payment statuses to 'confirmed' or 'failed' based on transaction outcomes. Enhance error handling and logging for better traceability.padreug2025-06-19 17:33:24 +02:00
5f21a27f0eAdd test transaction endpoint and UI integration: implement API for simulating transactions with mock data, including commission and discount calculations. Enhance frontend to trigger test transactions and display results in a dialog, improving user experience and testing capabilities.padreug2025-06-19 17:33:16 +02:00
df8b36fc0fAdd commission wallet support in Lamassu configuration: update database schema to include commission_wallet_id, modify related models and CRUD operations, and implement commission payment functionality in transaction processing. Enhance UI components to allow selection of the commission wallet for improved user experience.padreug2025-06-19 17:08:07 +02:00
033e329870Add crediting functionality for source wallet in transaction processing: implement credit_source_wallet method to credit the source wallet with the full crypto amount from Lamassu transactions. Update process_transaction method to call this new functionality before calculating DCA distributions, ensuring accurate wallet balance management.padreug2025-06-19 16:58:44 +02:00
1c1f358d82Add source wallet ID support for DCA distributions: update Lamassu configuration to include source_wallet_id, modify related models and CRUD operations, and enhance transaction processing to utilize the configured source wallet for payments. Update UI components to allow selection of the source wallet.padreug2025-06-19 16:35:11 +02:00
1388133f22Add DCA payment sending functionality in LamassuTransactionProcessor: implement send_dca_payment method to create and send Bitcoin payments to clients' wallets, including invoice creation and error handling. Update transaction processing to log payment success or failure.padreug2025-06-19 16:09:06 +02:00
c5755d48d1Refactor transaction fetching in LamassuTransactionProcessor: update SQL query to filter for confirmed and authorized transactions, ensuring only valid dispenses are retrieved. Adjust transaction time field to use confirmed_at for improved accuracy.padreug2025-06-19 10:35:54 +02:00
63638c089fEnhance DCA system documentation: add detailed progress updates on completed features, current state, next steps, and technical implementation details. Include sections on SSH-based database polling, transaction processing, smart poll tracking, client management, admin interface, and database schema.padreug2025-06-18 17:30:26 +02:00
2bc9a00c47Implement client username display in myextension: add getClientUsername method to retrieve usernames for clients and update the UI to show usernames instead of client IDs in the table.padreug2025-06-18 17:06:54 +02:00
b615ed0504Add username field to DCA clients: update database schema, CRUD operations, and UI components to support username functionality for improved user experience.padreug2025-06-18 17:04:54 +02:00
1d9cda3931change myextension icon to aio graphicpadreug2025-06-18 16:46:54 +02:00
c63785f6b9Update commission percentage handling in transaction processing: adjust logic to use decimal values directly from transaction data, which is how Lamassu stores thempadreug2025-06-18 16:40:41 +02:00
33b148415fRefactor commission and exchange rate calculations in transaction processing: update logic to derive base crypto amount from total crypto, enhance logging to reflect base amounts for DCA distribution, and ensure accurate client share calculations based on base amounts.padreug2025-06-18 16:36:53 +02:00
ba03953291Update transaction processing to include discount in commission calculations: adjust effective commission logic, enhance logging for transaction details, and ensure accurate net crypto distribution for clients.padreug2025-06-18 16:33:18 +02:00
e00eb0f88cEnhance transaction processing to include discount handling: update commission calculation to account for discounts, improve logging for transaction details, and adjust client distribution logic to reflect net crypto amounts after commission and discounts.padreug2025-06-18 16:33:10 +02:00
ac2b0f539cImplement date and time formatting for polling information in Lamassu configuration: add formatDateTime method to enhance date display, update UI to utilize new formatting for last poll and last successful poll timestamps.padreug2025-06-18 16:14:33 +02:00
a4c5d11d99Refactor transaction fetching logic in LamassuTransactionProcessor: update query to retrieve all transactions since the threshold, filter out already processed transactions using local database, and enhance logging to provide detailed insights on new transactions.padreug2025-06-18 16:07:33 +02:00
a107f825afAdd last poll tracking to Lamassu configuration: update database schema to include last_poll_time and last_successful_poll fields, modify CRUD operations to record poll times, and enhance transaction processing to utilize these timestamps for improved polling accuracy.padreug2025-06-18 15:56:55 +02:00
3c6262b309Refactor transaction processing to utilize SSH for database queries: implement execute_ssh_query method, enhance error handling, and update connection testing steps. Modify API to fetch transactions via SSH configuration, improving security and reliability.padreug2025-06-18 15:37:00 +02:00
c4ab8c27efEnhance SSH tunnel functionality in transaction processing: implement subprocess-based SSH tunnel as a fallback, improve error handling, and add detailed connection testing with step-by-step reporting. Update API to utilize new testing method and enhance UI to display detailed results.padreug2025-06-18 15:33:51 +02:00
8f046ad0c5Add SSH tunnel support to Lamassu configuration: update database schema, models, and UI components to include SSH settings. Implement SSH tunnel setup and teardown in transaction processing for enhanced security.padreug2025-06-18 13:40:30 +02:00
1f7999a556Add Lamassu database configuration: implement CRUD operations, polling tasks, and UI components for managing database settings. Introduce hourly transaction polling and manual poll functionality.padreug2025-06-18 10:56:05 +02:00
c9f7140d95Refactor total DCA balance calculation: remove redundant state variable and update computed property to directly calculate balance from deposits.padreug2025-06-18 10:08:44 +02:00
46b7a1450dAdd temporary DCA client creation endpoint for testing and enhance quick deposit UI with new form for adding deposits. Clean up code formatting for consistency.padreug2025-06-17 20:09:53 +02:00
b3332e585aRefactor DCA client management: remove CRUD operations for clients and update UI to focus on deposit management. Introduce quick deposit form for existing clients.padreug2025-06-17 19:28:53 +02:00
7bafc67370Add DCA admin extension with CRUD operations for clients and deposits, including UI components for managing deposits and client details.padreug2025-06-17 19:26:31 +02:00
1196349cbcRemove the FOREIGN KEY constraints which can cause issues in SQLite; clean up the syntaxpadreug2025-06-17 18:30:09 +02:00
22ebdc76bbAdd DCA CRUD operations and models for clients, deposits, and paymentspadreug2025-06-17 18:29:23 +02:00