Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip(app): implement core functionality in wtfdyp.ts
- Began work on `wtfdyp.ts`, the main TypeScript file responsible for orchestrating the extension's core functionality. This file aims to integrate various components of the project, such as fetching invoice data, calculating combinations, and updating the UI based on user input. - Imported `getInvoiceCombinations` and `sortCombinations` functions to utilize the algorithm for finding optimal invoice combinations given a payment amount. - Temporarily commented out the Chrome message listener intended to react to popup actions. This listener will ultimately handle receiving the payment amount from the popup, initiating the combination finding and sorting process, and updating the DOM to reflect the selected invoices. - Included a test scenario with hardcoded invoice amounts and a payment amount to demonstrate the output of the sorting algorithm. This test will be replaced with dynamic data extraction from the page and interaction with the popup. This work-in-progress represents a significant step towards achieving the extension's goal of automating invoice selection. The next steps include finalizing the message listener to interact with the popup, extracting actual invoice data from the page, and implementing DOM manipulation to visually indicate the chosen invoices.
- Loading branch information