Commit Graph
38 Commits
Author SHA1 Message Date
tiennm99 c7790918af Merge pull request #21 from tiennm99/dependabot/npm_and_yarn/multi-bf05dc1ecf
build(deps): bump picomatch
2026-04-05 11:12:04 +07:00
tiennm99 38b6561e26 Merge pull request #20 from tiennm99/dependabot/npm_and_yarn/flatted-3.4.2
build(deps-dev): bump flatted from 3.3.3 to 3.4.2
2026-04-05 11:11:48 +07:00
tiennm99 8bd463227b feat: add responsive card layout for tables on mobile screens
Tables show as cards on small screens (<640px) with key rate fields
in a compact grid, while desktop retains the full table view.
2026-04-04 13:28:01 +07:00
tiennm99 e235aaff6d feat: add dark mode toggle with system/light/dark cycling
Three-state theme toggle persisted to localStorage. Supports
explicit light/dark override or falling back to system preference.
2026-04-04 13:27:02 +07:00
tiennm99 c7861eed5b feat: sync state to URL params for shareable/bookmarkable queries
Bank, currency, and date range are now reflected in URL search
params. URL params take priority over localStorage on load.
2026-04-04 13:25:52 +07:00
tiennm99 c1e37861d1 feat: add loading progress indicator with day count and progress bar
Show total days being fetched and an animated progress bar during
data loading to give users better feedback on long date ranges.
2026-04-04 13:25:14 +07:00
tiennm99 5d600e0ab9 feat: add retry with exponential backoff for bank API requests
Bank APIs can be flaky; retrying up to 2 times with exponential
backoff (500ms, 1s) improves reliability for transient failures.
2026-04-04 13:23:23 +07:00
tiennm99 ebe1bd3ba7 feat: improve UI/UX with consistent styling and better usability
Replace all inline styles with Tailwind classes, add SVG icons to
action buttons, right-align numeric table cells with tabular-nums,
add sticky table headers, highlight active date preset, improve
empty state with illustration, fix SSR hydration mismatch for
localStorage settings, and make buttons mobile-responsive.
2026-04-04 00:11:32 +07:00
tiennm99 75eed4a75a feat: add rate trend chart with recharts
Toggle "Show Chart" displays line chart above the table.
Supports single-bank and comparison mode visualizations.
Also modularized components: extracted tables, status indicators,
and chart into separate files for maintainability.
2026-04-03 23:27:21 +07:00
tiennm99 7c00e8b948 feat: add BIDV vs TCB comparison mode
Toggle fetches both banks simultaneously, merges by date+currency,
and displays side-by-side in a unified table. Bank selector disabled
in compare mode. Export handles comparison data format.
2026-04-03 23:24:56 +07:00
tiennm99 b2a7070d54 feat: add Excel (.xlsx) export alongside CSV
Use SheetJS (xlsx) for proper Excel file generation.
Both export buttons available: Excel as primary, CSV as secondary.
2026-04-03 23:22:57 +07:00
tiennm99 5c683f4c47 feat: add multi-currency support with currency selector
API now accepts currency param (USD, EUR, JPY, ALL, etc.).
Returns array of rates per date instead of single object.
Frontend adds currency dropdown with 12 common currencies plus "All".
2026-04-03 23:21:25 +07:00
tiennm99 3418461059 feat: remember last bank and date range in localStorage 2026-04-03 23:18:51 +07:00
tiennm99 ba1de1ae4f feat: auto-fetch exchange rates on page load 2026-04-03 23:18:07 +07:00
tiennm99 43b358e28c feat: add date range presets (Today, Last 7d, Last 30d, This month) 2026-04-03 23:17:26 +07:00
tiennm99 2132d97067 feat: add Enter key shortcut to trigger fetch 2026-04-03 23:16:47 +07:00
tiennm99 ea2f3dafcc refactor: parallel fetching, simplified page, consistent dates, cleanup
- Fetch dates in parallel chunks of 5 instead of sequentially
- Simplify page.js to server component, move default dates into viewer
- Replace showTable with hasFetched for clearer semantics
- Normalize date display to yyyy-MM-dd for both banks
- Remove unused Geist_Mono font import (~50KB savings)
- Change lang to "vi" for Vietnamese bank data context
- Clean up empty blocks and redundant variables in API route
2026-04-03 23:14:40 +07:00
tiennm99 339d779540 ci: add Claude Code project configuration 2026-04-03 23:03:43 +07:00
tiennm99 41dd014b75 feat: improve UI/UX with dark mode, better visual hierarchy, and accessibility
- Add card layout, loading spinner, error/empty states for better UX
- Full dark mode support for date picker, tables, and inputs via CSS vars
- Extract reusable RateTable component, remove duplicate table markup
- Fix CSV injection vulnerability with escapeCsv sanitizer
- Fix URL.createObjectURL memory leak
- Replace JS hover handlers with CSS hover for better performance
- Add aria-live region for screen reader announcements
- Fix metadata from default "Create Next App" to proper title
- Differentiate table stripe/hover colors in light mode
2026-04-03 23:02:53 +07:00
tiennm99 6a572e36aa feat: remove debug log 2025-07-08 13:07:00 +07:00
tiennm99 08402cbcf4 feat: handle for missing data days 2025-07-08 12:35:05 +07:00
tiennm99 bf9bd07ad2 fix: a day off on input 2025-07-08 12:27:34 +07:00
tiennm99 3915f6231e feat: update view 2025-06-27 22:48:24 +07:00
tiennm99 41287a9981 feat: add speed insights 2025-06-27 22:37:10 +07:00
tiennm99 69ffffb509 feat: add analytics 2025-06-27 22:30:24 +07:00
tiennm99 f41514c068 feat: update README 2025-06-27 22:17:34 +07:00
tiennm99 02d2e71fdf feat: tuning views 2025-06-27 22:15:10 +07:00
tiennm99 9e08d285d9 feat: refactor 2025-06-27 22:07:15 +07:00
tiennm99 1ec1dde0f5 feat: date picker 2025-06-27 21:55:43 +07:00
tiennm99 c3f2d7e60e feat(nextjs): migrate old logic 2025-06-27 21:44:44 +07:00
tiennm99 5e2aa76e29 feat: reinit nextjs 2025-06-27 12:20:40 +07:00
tiennm99 8a8ccb5109 feat: update css 2025-06-26 20:34:50 +07:00
tiennm99 68eb284362 feat(nextjs): migrate from raw html to nextjs 2025-06-26 20:24:06 +07:00
tiennm99 8d7eff85e3 feat: init next.js 2025-06-26 20:09:37 +07:00
tiennm99 aa3635450c feat(tcb): add tcb (WIP) 2025-06-26 18:21:57 +07:00
tiennm99 b71a09aba3 feat: init
Introduces a new index.html file providing a web interface to fetch and export USD exchange rates from BIDV for a selected date range. The README is updated with feature descriptions and relevant API endpoints.
2025-06-26 12:28:29 +07:00
tiennm99 cba0d5793b Clear and rewrite
The v0.dev prototype history above is superseded by the maintained
exchange-rate-export implementation replayed after this commit.
2026-08-07 12:59:55 +07:00
tiennm99 b74c97c74f chore: clear all Dependabot advisories and add CI (#16)
* build(deps): remove unused frameworks and clear all advisories

The v0 scaffold declared @remix-run/react, @sveltejs/kit, svelte, vue and
vue-router, none of which are imported anywhere in the app. Removing them
drops react-router, react-router-dom, turbo-stream, cookie, vite and their
trees, clearing 13 advisories outright.

Replace xlsx with write-excel-file. The npm release of xlsx is abandoned at
0.18.5, so its prototype pollution and ReDoS advisories have no registry fix,
and SheetJS only ships newer builds from its own CDN as a tarball with no
integrity hash, which pnpm rejects. write-excel-file is maintained, carries no
advisories, and pulls in only fflate. The export writes the same eight columns
in the same order to a sheet named "Exchange Rates", with every value still
written as a string. It also cuts the route's first-load JS from 264 kB to
163 kB.

Add pnpm overrides forcing the lowest release that closes every advisory
affecting the previously resolved version of each remaining transitive dep.
postcss is pinned exactly because pnpm's minimumReleaseAge policy rejects
releases younger than 24h during CI installs.

* ci: add typecheck and build workflow

The repository had no workflows. Type errors are skipped during builds via
next.config.mjs, so check them here where a regression fails the run.
Installs use --frozen-lockfile so dependency overrides cannot silently stop
applying.
2026-07-25 21:18:14 +07:00