feat: dark mode & accessibility contrast improvements (closes #104)#476
Open
TallowX92 wants to merge 4 commits intorohitdash08:mainfrom
Open
feat: dark mode & accessibility contrast improvements (closes #104)#476TallowX92 wants to merge 4 commits intorohitdash08:mainfrom
TallowX92 wants to merge 4 commits intorohitdash08:mainfrom
Conversation
…#121) Adds a weekly financial summary endpoint and frontend page showing spending totals, category breakdowns, week-over-week changes, upcoming bills, and auto-generated insights. Backend (GET /digest/weekly): - Aggregates current and previous week expenses by category - Computes total_spent, total_income, net_flow, wow_change_pct - Category breakdown with delta and delta_pct vs previous week - Upcoming bills due within the next 7 days - insights[] — human-readable trend sentences (top category, WoW changes ≥5%, biggest category increase/decrease ≥20%, bill alerts) - Redis cache with 1-hour TTL, graceful fallback if Redis unavailable - Optional ?week_start=YYYY-MM-DD param (defaults to current Monday) Frontend: - api/digest.ts — typed API client - pages/Digest.tsx — summary cards, category bar chart with WoW delta badges, insights list, upcoming bills panel, prev/next week navigation - /digest route registered in App.tsx and Navbar Tests (tests/test_digest.py — 10 tests): - Empty week returns zero summary - Expenses appear in category breakdown - Income excluded from spending totals - Custom week_start param - Upcoming bills included - Top spending category is highest spend - WoW change computed correctly - Cache hit returns cached response - Auth required (401 without JWT) - Insights list is non-empty when data present
a559591 to
e7e4283
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dark mode implementation with system preference detection, persistent toggle, and full accessibility contrast compliance.
Changes:
Demo updated — improved color palette for better contrast ratios.
https://github.com/user-attachments/assets/c31a9cc6-81a0-46a4-aca2-82bcebd74149
/claim #104