From b993cb89b246e008d439eeba55ea89f6eadeac75 Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Wed, 23 Apr 2025 21:02:54 -0400 Subject: [PATCH] Update Copilot instructions to reflect in-memory data usage and remove references to static JSON files --- .github/copilot-instructions.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 73cef85..d476e3f 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -9,7 +9,7 @@ This project is a web user interface (UI) for a CRUD (Create, Read, Update, Dele * **Framework:** Astro (latest version) * **Language:** TypeScript, JavaScript (client-side scripts), HTML, CSS * **Styling:** Plain CSS (`src/styles/global.css`) -* **Data:** Currently using static JSON files (`src/data/accounts.json`, `src/data/transactions.json`). **The goal is to eventually replace this with a backend API.** +* **Data:** Currently using in-memory arrays. **The goal is to eventually integrate with a backend API.** ## Current State & Key Features @@ -17,7 +17,7 @@ This project is a web user interface (UI) for a CRUD (Create, Read, Update, Dele * **Sidebar:** (`src/components/Sidebar.astro`) Contains account selection dropdown and a collapsible section for adding new transactions. Includes an account summary section. * **Main Content:** (`src/components/MainContent.astro`) Displays the header with the current account name and the transaction list. * **Components:** Separate Astro components exist for major UI sections (Sidebar, MainContent, TransactionTable, AddTransactionForm, AccountSummary). -* **Data Loading:** Initial data for accounts and transactions is loaded from static JSON files on the server-side (`src/pages/index.astro`). +* **Data Loading:** Currently using empty arrays for accounts and transactions, initialized in `src/pages/index.astro`. * **Account Switching:** Selecting an account from the dropdown in the sidebar correctly updates the Main Content area (header, transaction table) and the Account Summary section using client-side JavaScript (`