================================================================================ PROJECT WORK LOG (session notes — CodeIgniter "application" + Finance Dashboard) Use this template to copy tasks into your tracker by day. ================================================================================ NOTE: Most changes below were made under: c:\Users\lenovo\Downloads\application\ If your deployment path differs, adjust accordingly. -------------------------------------------------------------------------------- DAY / DATE: _______________ -------------------------------------------------------------------------------- [ ] Finance Dashboard — Refactor: load tabs lazily (one AJAX call per tab), not all queries on index. [ ] Finance Dashboard — BY APPRAISERS hub tab: single tab stacks Orders with fee, BY APPRAISERS matrix, % Work by Appraisers, Revenue Contribution (removed separate top tabs for those). [ ] Finance Dashboard — routes.php: custom finance_dashboard routes were ADDED then REMOVED per user; URLs use FinanceDashboard/sheet/{key} like rest of app. [ ] Finance Dashboard — index.php: jQuery .on() → .bind() + $.ajax success/error (old jQuery ~2012). [ ] Finance Dashboard — Empty AJAX response: nested load->view fixed; sheet_table_partial uses include + get_instance()->load->view; _echoSheetHtml fallback. [ ] Finance Dashboard — Professional loader (CSS spinner) in tab panels. [ ] Finance Dashboard — Order Cohort: Research/Development/Step 2–4 Yes/No green/red (fdcohortyes/fdcohortno + sheet_table_partial). [ ] Finance Dashboard — Order Cohort: Due date + Bank due date columns (dateDue, dateDueBank prefs). [ ] Finance Dashboard — Order Cohort: "No of pending days" text like invoice.php (Due Today / Overdue / Due in / invoiced date). [ ] Finance Dashboard — sheet_table_partial: removed Row# + A–Z header; first sheet row = , rest . [ ] Finance Dashboard — Orders with fee: fixed column alignment (explicit row array order vs array_values on DB row). [ ] Finance Dashboard — Revenue Dashboard: month dropdown (?ym=YYYY-MM), data filtered by year/month; options from Jan 2026 through Dec of current year (no 2024/2025); default Jan 2026 if year < 2026. [ ] Views added/updated: finance_dashboard/index.php, sheet_fragment.php, appraisers_hub_fragment.php, sheet_table_partial.php, revenue_dashboard_fragment.php. [ ] Controller: FinanceDashboard.php (sheet(), getOrderCohortSheet, getOrdersWithFee, getRevenueDashboardSheet, helpers). -------------------------------------------------------------------------------- DAY / DATE: _______________ -------------------------------------------------------------------------------- [ ] (Add your tasks for this day) -------------------------------------------------------------------------------- DAY / DATE: _______________ -------------------------------------------------------------------------------- [ ] (Add your tasks for this day) ================================================================================ FILES TO VERIFY ON SERVER (CodeIgniter app) ================================================================================ controllers/FinanceDashboard.php views/finance_dashboard/index.php views/finance_dashboard/sheet_fragment.php views/finance_dashboard/appraisers_hub_fragment.php views/finance_dashboard/sheet_table_partial.php views/finance_dashboard/revenue_dashboard_fragment.php config/routes.php (finance routes removed — confirm no duplicate in views/config/routes.php) ================================================================================